pub struct CreateDomainName { /* private fields */ }Expand description
Fluent builder constructing a request to CreateDomainName.
Creates a new domain name.
Implementations§
source§impl CreateDomainName
impl CreateDomainName
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateDomainName, AwsResponseRetryClassifier>, SdkError<CreateDomainNameError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateDomainName, AwsResponseRetryClassifier>, SdkError<CreateDomainNameError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateDomainNameOutput, SdkError<CreateDomainNameError>>
pub async fn send(
self
) -> Result<CreateDomainNameOutput, SdkError<CreateDomainNameError>>
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.
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The name of the DomainName resource.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The name of the DomainName resource.
sourcepub fn certificate_name(self, input: impl Into<String>) -> Self
pub fn certificate_name(self, input: impl Into<String>) -> Self
The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.
sourcepub fn set_certificate_name(self, input: Option<String>) -> Self
pub fn set_certificate_name(self, input: Option<String>) -> Self
The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.
sourcepub fn certificate_body(self, input: impl Into<String>) -> Self
pub fn certificate_body(self, input: impl Into<String>) -> Self
[Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name provided by your certificate authority.
sourcepub fn set_certificate_body(self, input: Option<String>) -> Self
pub fn set_certificate_body(self, input: Option<String>) -> Self
[Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name provided by your certificate authority.
sourcepub fn certificate_private_key(self, input: impl Into<String>) -> Self
pub fn certificate_private_key(self, input: impl Into<String>) -> Self
[Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
sourcepub fn set_certificate_private_key(self, input: Option<String>) -> Self
pub fn set_certificate_private_key(self, input: Option<String>) -> Self
[Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
sourcepub fn certificate_chain(self, input: impl Into<String>) -> Self
pub fn certificate_chain(self, input: impl Into<String>) -> Self
[Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate authority. Do not include any intermediaries that are not in the chain of trust path.
sourcepub fn set_certificate_chain(self, input: Option<String>) -> Self
pub fn set_certificate_chain(self, input: Option<String>) -> Self
[Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate authority. Do not include any intermediaries that are not in the chain of trust path.
sourcepub fn certificate_arn(self, input: impl Into<String>) -> Self
pub fn certificate_arn(self, input: impl Into<String>) -> Self
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
sourcepub fn set_certificate_arn(self, input: Option<String>) -> Self
pub fn set_certificate_arn(self, input: Option<String>) -> Self
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
sourcepub fn regional_certificate_name(self, input: impl Into<String>) -> Self
pub fn regional_certificate_name(self, input: impl Into<String>) -> Self
The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
sourcepub fn set_regional_certificate_name(self, input: Option<String>) -> Self
pub fn set_regional_certificate_name(self, input: Option<String>) -> Self
The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
sourcepub fn regional_certificate_arn(self, input: impl Into<String>) -> Self
pub fn regional_certificate_arn(self, input: impl Into<String>) -> Self
The reference to an AWS-managed certificate that will be used by regional endpoint for this domain name. AWS Certificate Manager is the only supported source.
sourcepub fn set_regional_certificate_arn(self, input: Option<String>) -> Self
pub fn set_regional_certificate_arn(self, input: Option<String>) -> Self
The reference to an AWS-managed certificate that will be used by regional endpoint for this domain name. AWS Certificate Manager is the only supported source.
sourcepub fn endpoint_configuration(self, input: EndpointConfiguration) -> Self
pub fn endpoint_configuration(self, input: EndpointConfiguration) -> Self
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
sourcepub fn set_endpoint_configuration(
self,
input: Option<EndpointConfiguration>
) -> Self
pub fn set_endpoint_configuration(
self,
input: Option<EndpointConfiguration>
) -> Self
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.
sourcepub fn security_policy(self, input: SecurityPolicy) -> Self
pub fn security_policy(self, input: SecurityPolicy) -> Self
The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.
sourcepub fn set_security_policy(self, input: Option<SecurityPolicy>) -> Self
pub fn set_security_policy(self, input: Option<SecurityPolicy>) -> Self
The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.
sourcepub fn mutual_tls_authentication(
self,
input: MutualTlsAuthenticationInput
) -> Self
pub fn mutual_tls_authentication(
self,
input: MutualTlsAuthenticationInput
) -> Self
The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.
sourcepub fn set_mutual_tls_authentication(
self,
input: Option<MutualTlsAuthenticationInput>
) -> Self
pub fn set_mutual_tls_authentication(
self,
input: Option<MutualTlsAuthenticationInput>
) -> Self
The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.
sourcepub fn ownership_verification_certificate_arn(
self,
input: impl Into<String>
) -> Self
pub fn ownership_verification_certificate_arn(
self,
input: impl Into<String>
) -> Self
The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
sourcepub fn set_ownership_verification_certificate_arn(
self,
input: Option<String>
) -> Self
pub fn set_ownership_verification_certificate_arn(
self,
input: Option<String>
) -> Self
The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
Trait Implementations§
source§impl Clone for CreateDomainName
impl Clone for CreateDomainName
source§fn clone(&self) -> CreateDomainName
fn clone(&self) -> CreateDomainName
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more