Open richardhboyd opened 3 years ago
we do accept alias:
The encryption key for the domain. This is used to encrypt content stored in a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a key alias, or a key alias ARN
According to api doc, the pattern is Pattern: \S+
, this is already a string
type so I'll this like this for now.
This fees like one of those times where, in the attempt to give developers the most flexibility, we have made it more confusing. By accepting many different types of values, we have precluded the possibility of automated tools to assist customers in defining this. cfn-lint will accept any string, even emojis?
Can you add a pattern for a valid KMS Key Arn? Do you accept Aliases?
https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-codeartifact/blob/master/aws-codeartifact-domain/aws-codeartifact-domain.json#L20