Skip to content

Commit 44b3ed9

Browse files
committed
Add CustomPlugin and WorkerConfiguration resources along with tagging support for all resources
1 parent 1bada21 commit 44b3ed9

File tree

113 files changed

+11490
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+11490
-78
lines changed

.github/workflows/pr-ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v2
21-
- name: Set up JDK 1.8
22-
uses: actions/setup-java@v1
21+
- name: Set up JDK 17
22+
uses: actions/setup-java@v2
2323
with:
24-
java-version: 1.8
24+
java-version: 17
25+
distribution: adopt
2526
- name: Set up Python 3.8
2627
uses: actions/setup-python@v2
2728
with:

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# macOS
2+
.DS_Store
3+
._*
4+
5+
# Maven outputs
6+
.classpath
7+
8+
# IntelliJ
9+
*.iml
10+
.idea
11+
out.java
12+
out/
13+
.settings
14+
.project
15+
16+
# Auto-generated files
17+
target/
18+
build
19+
.gradle
20+
gradle
21+
gradlew
22+
gradlew.bat
23+
wrapper
24+
*.zip
25+
# Allow CustomPlugin ZIP file to be uplaoded.
26+
!*/contract-tests-artifacts/**/*.zip
27+
.factorypath
28+
29+
# Our logs
30+
rpdk.log*
31+
32+
# Contains credentials
33+
sam-tests/
34+
35+
# CFN Contract Tests V1 outputs
36+
.hypothesis
37+
38+
# VS Code
39+
.vscode/

aws-kafkaconnect-connector/.rpdk-config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"artifact_type": "RESOURCE",
33
"typeName": "AWS::KafkaConnect::Connector",
44
"language": "java",
5-
"runtime": "java8",
5+
"runtime": "java17",
66
"entrypoint": "software.amazon.kafkaconnect.connector.HandlerWrapper::handleRequest",
77
"testEntrypoint": "software.amazon.kafkaconnect.connector.HandlerWrapper::testEntrypoint",
88
"settings": {
@@ -21,5 +21,6 @@
2121
"codegen_template_path": "guided_aws",
2222
"protocolVersion": "2.0.0"
2323
},
24+
"logProcessorEnabled": "true",
2425
"executableEntrypoint": "software.amazon.kafkaconnect.connector.HandlerWrapperExecutable"
2526
}

aws-kafkaconnect-connector/aws-kafkaconnect-connector.json

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
"typeName": "AWS::KafkaConnect::Connector",
33
"description": "Resource Type definition for AWS::KafkaConnect::Connector",
44
"additionalProperties": false,
5-
"taggable": false,
5+
"tagging": {
6+
"taggable": true,
7+
"tagOnCreate": true,
8+
"tagUpdatable": true,
9+
"cloudFormationSystemTags": true,
10+
"tagProperty": "/properties/Tags"
11+
},
612
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-kafkaconnect.git",
713
"properties": {
814
"Capacity": {
@@ -65,6 +71,15 @@
6571
"type": "string",
6672
"pattern": "arn:(aws|aws-us-gov|aws-cn):iam:.*"
6773
},
74+
"Tags": {
75+
"description": "A collection of tags associated with a resource",
76+
"type": "array",
77+
"uniqueItems": true,
78+
"insertionOrder": false,
79+
"items": {
80+
"$ref": "#/definitions/Tag"
81+
}
82+
},
6883
"WorkerConfiguration": {
6984
"$ref": "#/definitions/WorkerConfiguration"
7085
}
@@ -368,6 +383,25 @@
368383
"CpuUtilizationPercentage"
369384
]
370385
},
386+
"Tag": {
387+
"type": "object",
388+
"properties": {
389+
"Key": {
390+
"type": "string",
391+
"minLength": 1,
392+
"maxLength": 128
393+
},
394+
"Value": {
395+
"type": "string",
396+
"maxLength": 256
397+
}
398+
},
399+
"required": [
400+
"Value",
401+
"Key"
402+
],
403+
"additionalProperties": false
404+
},
371405
"Vpc": {
372406
"description": "Information about a VPC used with the connector.",
373407
"type": "object",
@@ -451,6 +485,11 @@
451485
"primaryIdentifier": [
452486
"/properties/ConnectorArn"
453487
],
488+
"additionalIdentifiers": [
489+
[
490+
"/properties/ConnectorName"
491+
]
492+
],
454493
"readOnlyProperties": [
455494
"/properties/ConnectorArn"
456495
],
@@ -473,6 +512,8 @@
473512
"permissions": [
474513
"kafkaconnect:CreateConnector",
475514
"kafkaconnect:DescribeConnector",
515+
"kafkaconnect:TagResource",
516+
"kafkaconnect:ListTagsForResource",
476517
"iam:CreateServiceLinkedRole",
477518
"iam:PassRole",
478519
"ec2:CreateNetworkInterface",
@@ -492,7 +533,8 @@
492533
},
493534
"read": {
494535
"permissions": [
495-
"kafkaconnect:DescribeConnector"
536+
"kafkaconnect:DescribeConnector",
537+
"kafkaconnect:ListTagsForResource"
496538
]
497539
},
498540
"delete": {
@@ -508,6 +550,9 @@
508550
"permissions": [
509551
"kafkaconnect:UpdateConnector",
510552
"kafkaconnect:DescribeConnector",
553+
"kafkaconnect:TagResource",
554+
"kafkaconnect:ListTagsForResource",
555+
"kafkaconnect:UntagResource",
511556
"iam:CreateServiceLinkedRole",
512557
"logs:UpdateLogDelivery",
513558
"logs:GetLogDelivery",

0 commit comments

Comments
 (0)