public static interface CreateDomainRequest.Builder extends CodeartifactRequest.Builder, SdkPojo, CopyableBuilder<CreateDomainRequest.Builder,CreateDomainRequest>
Modifier and Type | Method and Description |
---|---|
CreateDomainRequest.Builder |
domain(String domain)
The name of the domain to create.
|
CreateDomainRequest.Builder |
encryptionKey(String encryptionKey)
The encryption key for the domain.
|
CreateDomainRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateDomainRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateDomainRequest.Builder |
tags(Collection<Tag> tags)
One or more tag key-value pairs for the domain.
|
CreateDomainRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
One or more tag key-value pairs for the domain.
|
CreateDomainRequest.Builder |
tags(Tag... tags)
One or more tag key-value pairs for the domain.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateDomainRequest.Builder domain(String 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.
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.CreateDomainRequest.Builder encryptionKey(String encryptionKey)
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 in the AWS Key Management Service API Reference and AWS KMS API
Permissions Reference 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 in the AWS Key Management Service Developer Guide.
encryptionKey
- 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 in the AWS Key Management Service API Reference and AWS
KMS API Permissions Reference 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 in the AWS Key Management Service Developer Guide.
CreateDomainRequest.Builder tags(Collection<Tag> tags)
One or more tag key-value pairs for the domain.
tags
- One or more tag key-value pairs for the domain.CreateDomainRequest.Builder tags(Tag... tags)
One or more tag key-value pairs for the domain.
tags
- One or more tag key-value pairs for the domain.CreateDomainRequest.Builder tags(Consumer<Tag.Builder>... tags)
One or more tag key-value pairs for the domain.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
CreateDomainRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateDomainRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.