#[non_exhaustive]pub struct CreateDomainInputBuilder { /* private fields */ }
Expand description
A builder for CreateDomainInput
.
Implementations§
source§impl CreateDomainInputBuilder
impl CreateDomainInputBuilder
sourcepub fn domain(self, input: impl Into<String>) -> Self
pub fn domain(self, input: impl Into<String>) -> Self
The name of the domain to create. All domain names in an Amazon Web Services Region that are in the same Amazon Web Services 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.
This field is required.sourcepub fn set_domain(self, input: Option<String>) -> Self
pub fn set_domain(self, input: Option<String>) -> Self
The name of the domain to create. All domain names in an Amazon Web Services Region that are in the same Amazon Web Services 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.
sourcepub fn get_domain(&self) -> &Option<String>
pub fn get_domain(&self) -> &Option<String>
The name of the domain to create. All domain names in an Amazon Web Services Region that are in the same Amazon Web Services 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.
sourcepub fn encryption_key(self, input: impl Into<String>) -> Self
pub fn encryption_key(self, input: impl Into<String>) -> Self
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 Key Management Service API Reference and Key Management Service API Permissions Reference in the 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 Key Management Service Developer Guide.
sourcepub fn set_encryption_key(self, input: Option<String>) -> Self
pub fn set_encryption_key(self, input: Option<String>) -> Self
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 Key Management Service API Reference and Key Management Service API Permissions Reference in the 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 Key Management Service Developer Guide.
sourcepub fn get_encryption_key(&self) -> &Option<String>
pub fn get_encryption_key(&self) -> &Option<String>
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 Key Management Service API Reference and Key Management Service API Permissions Reference in the 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 Key Management Service Developer Guide.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
One or more tag key-value pairs for the domain.
One or more tag key-value pairs for the domain.
One or more tag key-value pairs for the domain.
sourcepub fn build(self) -> Result<CreateDomainInput, BuildError>
pub fn build(self) -> Result<CreateDomainInput, BuildError>
Consumes the builder and constructs a CreateDomainInput
.
source§impl CreateDomainInputBuilder
impl CreateDomainInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDomainOutput, SdkError<CreateDomainError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDomainOutput, SdkError<CreateDomainError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDomainInputBuilder
impl Clone for CreateDomainInputBuilder
source§fn clone(&self) -> CreateDomainInputBuilder
fn clone(&self) -> CreateDomainInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateDomainInputBuilder
impl Debug for CreateDomainInputBuilder
source§impl Default for CreateDomainInputBuilder
impl Default for CreateDomainInputBuilder
source§fn default() -> CreateDomainInputBuilder
fn default() -> CreateDomainInputBuilder
source§impl PartialEq for CreateDomainInputBuilder
impl PartialEq for CreateDomainInputBuilder
source§fn eq(&self, other: &CreateDomainInputBuilder) -> bool
fn eq(&self, other: &CreateDomainInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.