Skip to content

Commit

Permalink
fix(cfnspec): add missing CodeArtifact properties
Browse files Browse the repository at this point in the history
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
  • Loading branch information
njlynch committed Dec 1, 2020
1 parent 8f1af0d commit 9ea3cfb
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions packages/@aws-cdk/cfnspec/spec-source/710_CodeArtifact_patch.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}
}
}
}

0 comments on commit 9ea3cfb

Please sign in to comment.