Struct aws_sdk_acm::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Client for AWS Certificate Manager

Client for invoking operations on AWS Certificate Manager. Each operation on AWS Certificate Manager is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_acm::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::retry::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_acm::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_acm::Client::from_conf(config);

Implementations§

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AddTagsToCertificate operation.

Constructs a fluent builder for the DeleteCertificate operation.

Constructs a fluent builder for the DescribeCertificate operation.

Constructs a fluent builder for the ExportCertificate operation.

Constructs a fluent builder for the GetAccountConfiguration operation.

Constructs a fluent builder for the GetCertificate operation.

Constructs a fluent builder for the ImportCertificate operation.

Constructs a fluent builder for the ListCertificates operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListTagsForCertificate operation.

Constructs a fluent builder for the PutAccountConfiguration operation.

Constructs a fluent builder for the RemoveTagsFromCertificate operation.

Constructs a fluent builder for the RenewCertificate operation.

Constructs a fluent builder for the RequestCertificate operation.

  • The fluent builder is configurable:
    • domain_name(impl Into<String>) / set_domain_name(Option<String>):

      Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.

      In compliance with RFC 5280, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length.

    • validation_method(ValidationMethod) / set_validation_method(Option<ValidationMethod>):

      The method you want to use if you are requesting a public certificate to validate that you own or control domain. You can validate with DNS or validate with email. We recommend that you use DNS validation.

    • subject_alternative_names(Vec<String>) / set_subject_alternative_names(Option<Vec<String>>):

      Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. For example, add the name www.example.net to a certificate for which the DomainName field is www.example.com if users can reach your site by using either name. The maximum number of domain names that you can add to an ACM certificate is 100. However, the initial quota is 10 domain names. If you need more than 10 names, you must request a quota increase. For more information, see Quotas.

      The maximum length of a SAN DNS name is 253 octets. The name is made up of multiple labels separated by periods. No label can be longer than 63 octets. Consider the following examples:

      • (63 octets).(63 octets).(63 octets).(61 octets) is legal because the total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets.

      • (64 octets).(63 octets).(63 octets).(61 octets) is not legal because the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds 63 octets.

      • (63 octets).(63 octets).(63 octets).(62 octets) is not legal because the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.

    • idempotency_token(impl Into<String>) / set_idempotency_token(Option<String>):

      Customer chosen string that can be used to distinguish between calls to RequestCertificate. Idempotency tokens time out after one hour. Therefore, if you call RequestCertificate multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates.

    • domain_validation_options(Vec<DomainValidationOption>) / set_domain_validation_options(Option<Vec<DomainValidationOption>>):

      The domain name that you want ACM to use to send you emails so that you can validate domain ownership.

    • options(CertificateOptions) / set_options(Option<CertificateOptions>):

      Currently, you can use this parameter to specify whether to add the certificate to a certificate transparency log. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser. For more information, see Opting Out of Certificate Transparency Logging.

    • certificate_authority_arn(impl Into<String>) / set_certificate_authority_arn(Option<String>):

      The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. If you do not provide an ARN and you are trying to request a private certificate, ACM will attempt to issue a public certificate. For more information about private CAs, see the Amazon Web Services Private Certificate Authority user guide. The ARN must have the following form:

      arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012

    • tags(Vec<Tag>) / set_tags(Option<Vec<Tag>>):

      One or more resource tags to associate with the certificate.

    • key_algorithm(KeyAlgorithm) / set_key_algorithm(Option<KeyAlgorithm>):

      Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not supported by all network clients. Some AWS services may require RSA keys, or only support ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not broken. Check the requirements for the AWS service where you plan to deploy your certificate.

      Default: RSA_2048

  • On success, responds with RequestCertificateOutput with field(s):
    • certificate_arn(Option<String>):

      String that contains the ARN of the issued certificate. This must be of the form:

      arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012

  • On failure, responds with SdkError<RequestCertificateError>

Constructs a fluent builder for the ResendValidationEmail operation.

  • The fluent builder is configurable:
    • certificate_arn(impl Into<String>) / set_certificate_arn(Option<String>):

      String that contains the ARN of the requested certificate. The certificate ARN is generated and returned by the RequestCertificate action as soon as the request is made. By default, using this parameter causes email to be sent to all top-level domains you specified in the certificate request. The ARN must be of the form:

      arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012

    • domain(impl Into<String>) / set_domain(Option<String>):

      The fully qualified domain name (FQDN) of the certificate that needs to be validated.

    • validation_domain(impl Into<String>) / set_validation_domain(Option<String>):

      The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the Domain value or a superdomain of the Domain value. For example, if you requested a certificate for site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com, ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:

      • admin@subdomain.example.com

      • administrator@subdomain.example.com

      • hostmaster@subdomain.example.com

      • postmaster@subdomain.example.com

      • webmaster@subdomain.example.com

  • On success, responds with ResendValidationEmailOutput
  • On failure, responds with SdkError<ResendValidationEmailError>

Constructs a fluent builder for the UpdateCertificateOptions operation.

Creates a new client from an SDK Config.

Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Creates a new client from the service Config.

Panics
  • This method will panic if the conf is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the conf is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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