Struct aws_sdk_codeartifact::client::fluent_builders::CreateDomain [−][src]
pub struct CreateDomain<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateDomain
.
Creates a domain. CodeArtifact domains make it easier to manage multiple repositories across an organization. You can use a domain to apply permissions across many repositories owned by different AWS accounts. An asset is stored only once in a domain, even if it's in multiple repositories.
Although you can have multiple domains, we recommend a single production domain that contains all published artifacts so that your development teams can find and share packages. You can use a second pre-production domain to test changes to the production domain configuration.
Implementations
impl<C, M, R> CreateDomain<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateDomain<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateDomainOutput, SdkError<CreateDomainError>> where
R::Policy: SmithyRetryPolicy<CreateDomainInputOperationOutputAlias, CreateDomainOutput, CreateDomainError, CreateDomainInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateDomainOutput, SdkError<CreateDomainError>> where
R::Policy: SmithyRetryPolicy<CreateDomainInputOperationOutputAlias, CreateDomainOutput, CreateDomainError, CreateDomainInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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.
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.
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.
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.
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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateDomain<C, M, R>
impl<C, M, R> Unpin for CreateDomain<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateDomain<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more