From 7526fbbb72d43a6007022f676a926f7279c9abae Mon Sep 17 00:00:00 2001 From: Nick Lynch Date: Tue, 1 Dec 2020 12:31:51 +0000 Subject: [PATCH] chore(cfnspec): add missing CodeArtifact properties The spec for CodeArtifact is currently missing one required property (`Repository.domainName`) and two other optional properties. This patch adds the missing properties until the spec is updated. fixes #11790 related #11569 --- .../spec-source/710_CodeArtifact_patch.json | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 packages/@aws-cdk/cfnspec/spec-source/710_CodeArtifact_patch.json diff --git a/packages/@aws-cdk/cfnspec/spec-source/710_CodeArtifact_patch.json b/packages/@aws-cdk/cfnspec/spec-source/710_CodeArtifact_patch.json new file mode 100644 index 0000000000000..63a32c327d7a9 --- /dev/null +++ b/packages/@aws-cdk/cfnspec/spec-source/710_CodeArtifact_patch.json @@ -0,0 +1,49 @@ +{ + "ResourceTypes": { + "AWS::CodeArtifact::Domain": { + "patch": { + "description": "Adds missing properties for AWS::CodeArtifact::Domain", + "operations": [ + { + "op": "add", + "path": "/Properties/EncryptionKey", + "value": { + "Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-domain.html#cfn-codeartifact-domain-encryptionkey", + "PrimitiveType": "String", + "UpdateType": "Immutable", + "Required": false + } + } + ] + } + }, + "AWS::CodeArtifact::Repository": { + "patch": { + "description": "Adds missing properties for AWS::CodeArtifact::Repository", + "operations": [ + { + "op": "add", + "path": "/Properties/DomainName", + "value": { + "Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-repository.html#cfn-codeartifact-repository-domainname", + "PrimitiveType": "String", + "UpdateType": "Immutable", + "Required": true + } + }, + { + "op": "add", + "path": "/Properties/DomainOwner", + "value": { + "Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-repository.html#cfn-codeartifact-repository-domainowner", + "PrimitiveType": "String", + "UpdateType": "Immutable", + "Required": false + } + } + ] + } + } + } +} +