class Aws::CodeArtifact::Types::CreateDomainRequest
@note When making an API call, you may pass CreateDomainRequest
data as a hash: { domain: "DomainName", # required encryption_key: "Arn", tags: [ { key: "TagKey", # required value: "TagValue", # required }, ], }
@!attribute [rw] domain
The name of the domain to create. All domain names in an AWS Region that are in the same AWS account must be unique. The domain name is used as the prefix in DNS hostnames. Do not use sensitive information in a domain name because it is publicly discoverable. @return [String]
@!attribute [rw] encryption_key
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. To specify an `encryptionKey`, your IAM role must have `kms:DescribeKey` and `kms:CreateGrant` permissions on the encryption key that is used. For more information, see [DescribeKey][1] in the *AWS Key Management Service API Reference* and [AWS KMS API Permissions Reference][2] in the *AWS Key Management Service Developer Guide*. CodeArtifact supports only symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more information, see [Using symmetric and asymmetric keys][3] in the *AWS Key Management Service Developer Guide*. [1]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestSyntax [2]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html [3]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html @return [String]
@!attribute [rw] tags
One or more tag key-value pairs for the domain. @return [Array<Types::Tag>]
@see docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateDomainRequest AWS API Documentation
Constants
- SENSITIVE