Skip to content

Commit

Permalink
Update extension name to awscommunity config proactiveeval
Browse files Browse the repository at this point in the history
  • Loading branch information
tschia committed Jan 30, 2024
1 parent 1ce003e commit 773b747
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 32 deletions.
2 changes: 1 addition & 1 deletion hooks/Config_ProactiveEvaluation/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AWSSamples::ConfigProactiveEval::Hook
# AwsCommunity::Config::ProactiveEval

- [Overview](#overview)

Expand Down
14 changes: 7 additions & 7 deletions hooks/Config_ProactiveEvaluation/hook/.rpdk-config
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"artifact_type": "HOOK",
"typeName": "AWSSamples::ConfigProactiveEval::Hook",
"typeName": "AwsCommunity::Config::ProactiveEval",
"language": "java",
"runtime": "java11",
"entrypoint": "com.awssamples.configproactiveeval.hook.HookHandlerWrapper::handleRequest",
"testEntrypoint": "com.awssamples.configproactiveeval.hook.HookHandlerWrapper::testEntrypoint",
"entrypoint": "com.awscommunity.config.proactiveeval.HookHandlerWrapper::handleRequest",
"testEntrypoint": "com.awscommunity.config.proactiveeval.HookHandlerWrapper::testEntrypoint",
"settings": {
"version": false,
"subparser_name": null,
Expand All @@ -18,12 +18,12 @@
"profile": null,
"namespace": [
"com",
"awssamples",
"configproactiveeval",
"hook"
"awscommunity",
"config",
"proactiveeval"
],
"codegen_template_path": "guided_aws",
"protocolVersion": "2.0.0"
},
"executableEntrypoint": "com.awssamples.configproactiveeval.hook.HookHandlerWrapperExecutable"
"executableEntrypoint": "com.awscommunity.config.proactiveeval.HookHandlerWrapperExecutable"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"typeName": "AWSSamples::ConfigProactiveEval::Hook",
"description": "Sample hook to call AWS Config proactive evaluations",
"typeName": "AwsCommunity::Config::ProactiveEval",
"description": "This hook calls AWS Config proactive evaluations to assess compliance of the resource",
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-samples/",
"documentationUrl": "https://github.com/aws-cloudformation/aws-cloudformation-samples/",
"typeConfiguration": {
Expand Down
2 changes: 1 addition & 1 deletion hooks/Config_ProactiveEvaluation/hook/hook-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Resources:
Ref: AWS::AccountId
StringLike:
aws:SourceArn:
Fn::Sub: arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:type/hook/AWSSamples-ConfigProactiveEval-Hook/*
Fn::Sub: arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:type/hook/AwsCommunity-Config-ProactiveEval/*
Path: "/"
Policies:
- PolicyName: HookTypePolicy
Expand Down
8 changes: 4 additions & 4 deletions hooks/Config_ProactiveEvaluation/hook/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.awssamples.configproactiveeval.hook</groupId>
<artifactId>awssamples-configproactiveeval-hook-handler</artifactId>
<name>awssamples-configproactiveeval-hook-handler</name>
<groupId>com.awscommunity.config.proactiveeval</groupId>
<artifactId>awscommunity-config-proactiveeval-handler</artifactId>
<name>awscommunity-config-proactiveeval-handler</name>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

Expand Down Expand Up @@ -239,7 +239,7 @@
<resource>
<directory>${project.basedir}</directory>
<includes>
<include>awssamples-configproactiveeval-hook.json</include>
<include>awscommunity-config-proactiveeval.json</include>
</includes>
</resource>
<resource>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

import org.apache.commons.lang3.exception.ExceptionUtils;

import software.amazon.awssdk.services.config.model.InvalidParameterValueException;
import software.amazon.cloudformation.proxy.AmazonWebServicesClientProxy;
import software.amazon.cloudformation.proxy.HandlerErrorCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

import software.amazon.cloudformation.proxy.StdCallbackContext;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

import software.amazon.awssdk.services.config.ConfigClient;
import software.amazon.cloudformation.HookLambdaWrapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

/**
* Handle the configuration.
Expand All @@ -9,6 +9,6 @@ class Configuration extends BaseHookConfiguration {
* Initialize with the hook schema configuration file.
*/
public Configuration() {
super("awssamples-configproactiveeval-hook.json");
super("awscommunity-config-proactiveeval.json");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

import software.amazon.cloudformation.proxy.AmazonWebServicesClientProxy;
import software.amazon.cloudformation.proxy.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

import software.amazon.cloudformation.proxy.AmazonWebServicesClientProxy;
import software.amazon.cloudformation.proxy.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

import software.amazon.awssdk.services.config.model.EvaluationMode;
import software.amazon.awssdk.services.config.model.GetResourceEvaluationSummaryRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertNotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

import static org.mockito.Mockito.spy;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.awssamples.configproactiveeval.hook;
package com.awscommunity.config.proactiveeval;

import static org.mockito.Mockito.spy;

Expand Down
10 changes: 5 additions & 5 deletions hooks/Config_ProactiveEvaluation/hook/template.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: AWS SAM template for the AWSSamples::ConfigProactiveEval::Hook resource type
Description: AWS SAM template for the AwsCommunity::Config::ProactiveEval resource type

Globals:
Function:
Expand All @@ -11,13 +11,13 @@ Resources:
TypeFunction:
Type: AWS::Serverless::Function
Properties:
Handler: com.awssamples.configproactiveeval.hook.HookHandlerWrapper::handleRequest
Handler: com.awscommunity.config.proactiveeval.HookHandlerWrapper::handleRequest
Runtime: java11
CodeUri: ./target/awssamples-configproactiveeval-hook-handler-1.0-SNAPSHOT.jar
CodeUri: ./target/awscommunity-config-proactiveeval-handler-1.0-SNAPSHOT.jar

TestEntrypoint:
Type: AWS::Serverless::Function
Properties:
Handler: com.awssamples.configproactiveeval.hook.HookHandlerWrapper::testEntrypoint
Handler: com.awscommunity.config.proactiveeval.HookHandlerWrapper::testEntrypoint
Runtime: java11
CodeUri: ./target/awssamples-configproactiveeval-hook-handler-1.0-SNAPSHOT.jar
CodeUri: ./target/awscommunity-config-proactiveeval-handler-1.0-SNAPSHOT.jar

0 comments on commit 773b747

Please sign in to comment.