Struct aws_sdk_lightsail::client::fluent_builders::CreateCertificate [−][src]
pub struct CreateCertificate<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateCertificate
.
Creates an SSL/TLS certificate for an Amazon Lightsail content delivery network (CDN) distribution and a container service.
After the certificate is valid, use the AttachCertificateToDistribution
action to use the certificate and its domains with your distribution. Or use the
UpdateContainerService
action to use the certificate and its domains with your
container service.
Only certificates created in the us-east-1
AWS Region can be attached to
Lightsail distributions. Lightsail distributions are global resources that can reference
an origin in any AWS Region, and distribute its content globally. However, all
distributions are located in the us-east-1
Region.
Implementations
impl<C, M, R> CreateCertificate<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateCertificate<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateCertificateOutput, SdkError<CreateCertificateError>> where
R::Policy: SmithyRetryPolicy<CreateCertificateInputOperationOutputAlias, CreateCertificateOutput, CreateCertificateError, CreateCertificateInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateCertificateOutput, SdkError<CreateCertificateError>> where
R::Policy: SmithyRetryPolicy<CreateCertificateInputOperationOutputAlias, CreateCertificateOutput, CreateCertificateError, CreateCertificateInputOperationRetryAlias>,
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 for the certificate.
The name for the certificate.
The domain name (e.g., example.com
) for the certificate.
The domain name (e.g., example.com
) for the certificate.
Appends an item to subjectAlternativeNames
.
To override the contents of this collection use set_subject_alternative_names
.
An array of strings that specify the alternate domains (e.g., example2.com
)
and subdomains (e.g., blog.example.com
) for the certificate.
You can specify a maximum of nine alternate domains (in addition to the primary domain name).
Wildcard domain entries (e.g., *.example.com
) are not supported.
An array of strings that specify the alternate domains (e.g., example2.com
)
and subdomains (e.g., blog.example.com
) for the certificate.
You can specify a maximum of nine alternate domains (in addition to the primary domain name).
Wildcard domain entries (e.g., *.example.com
) are not supported.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values to add to the certificate during create.
Use the TagResource
action to tag a resource after it's created.
The tag keys and optional values to add to the certificate during create.
Use the TagResource
action to tag a resource after it's created.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateCertificate<C, M, R>
impl<C, M, R> Send for CreateCertificate<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateCertificate<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateCertificate<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateCertificate<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