Class: AWS.ACM

Inherits:
AWS.Service show all
Identifier:
acm
API Version:
2015-12-08
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Sending a Request Using ACM

var acm = new AWS.ACM();
acm.addTagsToCertificate(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the ACM object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var acm = new AWS.ACM({apiVersion: '2015-12-08'});

You can also set the API version globally in AWS.config.apiVersions using the acm service identifier:

AWS.config.apiVersions = {
  acm: '2015-12-08',
  // other service API versions
};

var acm = new AWS.ACM();

Version:

  • 2015-12-08

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.ACM(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a ACM object

var acm = new AWS.ACM({apiVersion: '2015-12-08'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com'.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.ACM.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.ACM.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.ACM.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and returns the amount of time to delay in milliseconds. The base option will be ignored if this option is supplied.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

addTagsToCertificate(params = {}, callback) ⇒ AWS.Request

Adds one or more tags to an ACM Certificate. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a key and an optional value. You specify the certificate on input by its Amazon Resource Name (ARN). You specify the tag by using a key-value pair.

You can apply a tag to just one certificate if you want to identify a specific characteristic of that certificate, or you can apply the same tag to multiple certificates if you want to filter for a common relationship among those certificates. Similarly, you can apply the same tag to multiple resources if you want to specify a relationship among those resources. For example, you can add the same tag to an ACM Certificate and an Elastic Load Balancing load balancer to indicate that they are both used by the same website. For more information, see Tagging ACM Certificates.

To remove one or more tags, use the RemoveTagsFromCertificate action. To view all of the tags that have been applied to the certificate, use the ListTagsForCertificate action.

Service Reference:

Examples:

Calling the addTagsToCertificate operation

var params = {
  CertificateArn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
acm.addTagsToCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CertificateArn — (String)

      String that contains the ARN of the ACM Certificate to which the tag is to be applied. This must be of the form:

      arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

      For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    • Tags — (Array<map>)

      The key-value pair that defines the tag. The tag value is optional.

      • Keyrequired — (String)

        The key of the tag.

      • Value — (String)

        The value of the tag.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteCertificate(params = {}, callback) ⇒ AWS.Request

Deletes an ACM Certificate and its associated private key. If this action succeeds, the certificate no longer appears in the list of ACM Certificates that can be displayed by calling the ListCertificates action or be retrieved by calling the GetCertificate action. The certificate will not be available for use by other AWS services.

Note: You cannot delete an ACM Certificate that is being used by another AWS service. To delete a certificate that is in use, the certificate association must first be removed.

Service Reference:

Examples:

Calling the deleteCertificate operation

var params = {
  CertificateArn: 'STRING_VALUE' /* required */
};
acm.deleteCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CertificateArn — (String)

      String that contains the ARN of the ACM Certificate to be deleted. This must be of the form:

      arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

      For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeCertificate(params = {}, callback) ⇒ AWS.Request

Returns detailed metadata about the specified ACM Certificate.

Service Reference:

Examples:

Calling the describeCertificate operation

var params = {
  CertificateArn: 'STRING_VALUE' /* required */
};
acm.describeCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CertificateArn — (String)

      The Amazon Resource Name (ARN) of the ACM Certificate. The ARN must have the following form:

      arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

      For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Certificate — (map)

        Metadata about an ACM certificate.

        • CertificateArn — (String)

          The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

        • DomainName — (String)

          The fully qualified domain name for the certificate, such as www.example.com or example.com.

        • SubjectAlternativeNames — (Array<String>)

          One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.

        • DomainValidationOptions — (Array<map>)

          Contains information about the initial validation of each domain name that occurs as a result of the RequestCertificate request. This field exists only when the certificate type is AMAZON_ISSUED.

          • DomainNamerequired — (String)

            A fully qualified domain name (FQDN) in the certificate. For example, www.example.com or example.com.

          • ValidationEmails — (Array<String>)

            A list of email addresses that ACM used to send domain validation emails.

          • ValidationDomain — (String)

            The domain name that ACM used to send domain validation emails.

          • ValidationStatus — (String)

            The validation status of the domain name.

            Possible values include:
            • "PENDING_VALIDATION"
            • "SUCCESS"
            • "FAILED"
        • Serial — (String)

          The serial number of the certificate.

        • Subject — (String)

          The name of the entity that is associated with the public key contained in the certificate.

        • Issuer — (String)

          The name of the certificate authority that issued and signed the certificate.

        • CreatedAt — (Date)

          The time at which the certificate was requested. This value exists only when the certificate type is AMAZON_ISSUED.

        • IssuedAt — (Date)

          The time at which the certificate was issued. This value exists only when the certificate type is AMAZON_ISSUED.

        • ImportedAt — (Date)

          The date and time at which the certificate was imported. This value exists only when the certificate type is IMPORTED.

        • Status — (String)

          The status of the certificate.

          Possible values include:
          • "PENDING_VALIDATION"
          • "ISSUED"
          • "INACTIVE"
          • "EXPIRED"
          • "VALIDATION_TIMED_OUT"
          • "REVOKED"
          • "FAILED"
        • RevokedAt — (Date)

          The time at which the certificate was revoked. This value exists only when the certificate status is REVOKED.

        • RevocationReason — (String)

          The reason the certificate was revoked. This value exists only when the certificate status is REVOKED.

          Possible values include:
          • "UNSPECIFIED"
          • "KEY_COMPROMISE"
          • "CA_COMPROMISE"
          • "AFFILIATION_CHANGED"
          • "SUPERCEDED"
          • "CESSATION_OF_OPERATION"
          • "CERTIFICATE_HOLD"
          • "REMOVE_FROM_CRL"
          • "PRIVILEGE_WITHDRAWN"
          • "A_A_COMPROMISE"
        • NotBefore — (Date)

          The time before which the certificate is not valid.

        • NotAfter — (Date)

          The time after which the certificate is not valid.

        • KeyAlgorithm — (String)

          The algorithm that was used to generate the key pair (the public and private key).

          Possible values include:
          • "RSA_2048"
          • "RSA_1024"
          • "EC_prime256v1"
        • SignatureAlgorithm — (String)

          The algorithm that was used to sign the certificate.

        • InUseBy — (Array<String>)

          A list of ARNs for the AWS resources that are using the certificate. A certificate can be used by multiple AWS resources.

        • FailureReason — (String)

          The reason the certificate request failed. This value exists only when the certificate status is FAILED. For more information, see Certificate Request Failed in the AWS Certificate Manager User Guide.

          Possible values include:
          • "NO_AVAILABLE_CONTACTS"
          • "ADDITIONAL_VERIFICATION_REQUIRED"
          • "DOMAIN_NOT_ALLOWED"
          • "INVALID_PUBLIC_DOMAIN"
          • "OTHER"
        • Type — (String)

          The source of the certificate. For certificates provided by ACM, this value is AMAZON_ISSUED. For certificates that you imported with ImportCertificate, this value is IMPORTED. ACM does not provide managed renewal for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see Importing Certificates in the AWS Certificate Manager User Guide.

          Possible values include:
          • "IMPORTED"
          • "AMAZON_ISSUED"
        • RenewalSummary — (map)

          Contains information about the status of ACM's managed renewal for the certificate. This field exists only when the certificate type is AMAZON_ISSUED.

          • RenewalStatusrequired — (String)

            The status of ACM's managed renewal of the certificate.

            Possible values include:
            • "PENDING_AUTO_RENEWAL"
            • "PENDING_VALIDATION"
            • "SUCCESS"
            • "FAILED"
          • DomainValidationOptionsrequired — (Array<map>)

            Contains information about the validation of each domain name in the certificate, as it pertains to ACM's managed renewal. This is different from the initial validation that occurs as a result of the RequestCertificate request. This field exists only when the certificate type is AMAZON_ISSUED.

            • DomainNamerequired — (String)

              A fully qualified domain name (FQDN) in the certificate. For example, www.example.com or example.com.

            • ValidationEmails — (Array<String>)

              A list of email addresses that ACM used to send domain validation emails.

            • ValidationDomain — (String)

              The domain name that ACM used to send domain validation emails.

            • ValidationStatus — (String)

              The validation status of the domain name.

              Possible values include:
              • "PENDING_VALIDATION"
              • "SUCCESS"
              • "FAILED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getCertificate(params = {}, callback) ⇒ AWS.Request

Retrieves an ACM Certificate and certificate chain for the certificate specified by an ARN. The chain is an ordered list of certificates that contains the root certificate, intermediate certificates of subordinate CAs, and the ACM Certificate. The certificate and certificate chain are base64 encoded. If you want to decode the certificate chain to see the individual certificate fields, you can use OpenSSL.

Note: Currently, ACM Certificates can be used only with Elastic Load Balancing and Amazon CloudFront.

Service Reference:

Examples:

Calling the getCertificate operation

var params = {
  CertificateArn: 'STRING_VALUE' /* required */
};
acm.getCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Certificate — (String)

        String that contains the ACM Certificate represented by the ARN specified at input.

      • CertificateChain — (String)

        The certificate chain that contains the root certificate issued by the certificate authority (CA).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

importCertificate(params = {}, callback) ⇒ AWS.Request

Imports an SSL/TLS certificate into AWS Certificate Manager (ACM) to use with ACM's integrated AWS services.

Note: ACM does not provide managed renewal for certificates that you import.

For more information about importing certificates into ACM, including the differences between certificates that you import and those that ACM provides, see Importing Certificates in the AWS Certificate Manager User Guide.

To import a certificate, you must provide the certificate and the matching private key. When the certificate is not self-signed, you must also provide a certificate chain. You can omit the certificate chain when importing a self-signed certificate.

The certificate, private key, and certificate chain must be PEM-encoded. For more information about converting these items to PEM format, see Importing Certificates Troubleshooting in the AWS Certificate Manager User Guide.

To import a new certificate, omit the CertificateArn field. Include this field only when you want to replace a previously imported certificate.

This operation returns the Amazon Resource Name (ARN) of the imported certificate.

Service Reference:

Examples:

Calling the importCertificate operation

var params = {
  Certificate: new Buffer('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, /* required */
  PrivateKey: new Buffer('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, /* required */
  CertificateArn: 'STRING_VALUE',
  CertificateChain: new Buffer('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */
};
acm.importCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CertificateArn — (String)

      The Amazon Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this field.

    • Certificate — (Buffer, Typed Array, Blob, String)

      The certificate to import. It must meet the following requirements:

      • Must be PEM-encoded.

      • Must contain a 1024-bit or 2048-bit RSA public key.

      • Must be valid at the time of import. You cannot import a certificate before its validity period begins (the certificate's NotBefore date) or after it expires (the certificate's NotAfter date).

    • PrivateKey — (Buffer, Typed Array, Blob, String)

      The private key that matches the public key in the certificate. It must meet the following requirements:

      • Must be PEM-encoded.

      • Must be unencrypted. You cannot import a private key that is protected by a password or passphrase.

    • CertificateChain — (Buffer, Typed Array, Blob, String)

      The certificate chain. It must be PEM-encoded.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCertificates(params = {}, callback) ⇒ AWS.Request

Retrieves a list of ACM Certificates and the domain name for each. You can optionally filter the list to return only the certificates that match the specified status.

Service Reference:

Examples:

Calling the listCertificates operation

var params = {
  CertificateStatuses: [
    PENDING_VALIDATION | ISSUED | INACTIVE | EXPIRED | VALIDATION_TIMED_OUT | REVOKED | FAILED,
    /* more items */
  ],
  MaxItems: 0,
  NextToken: 'STRING_VALUE'
};
acm.listCertificates(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CertificateStatuses — (Array<String>)

      The status or statuses on which to filter the list of ACM Certificates.

    • NextToken — (String)

      Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.

    • MaxItems — (Integer)

      Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        When the list is truncated, this value is present and contains the value to use for the NextToken parameter in a subsequent pagination request.

      • CertificateSummaryList — (Array<map>)

        A list of ACM Certificates.

        • CertificateArn — (String)

          Amazon Resource Name (ARN) of the certificate. This is of the form:

          arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

          For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

        • DomainName — (String)

          Fully qualified domain name (FQDN), such as www.example.com or example.com, for the certificate.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForCertificate(params = {}, callback) ⇒ AWS.Request

Lists the tags that have been applied to the ACM Certificate. Use the certificate's Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM Certificate, use the AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate action.

Service Reference:

Examples:

Calling the listTagsForCertificate operation

var params = {
  CertificateArn: 'STRING_VALUE' /* required */
};
acm.listTagsForCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CertificateArn — (String)

      String that contains the ARN of the ACM Certificate for which you want to list the tags. This has the following form:

      arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

      For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (Array<map>)

        The key-value pairs that define the applied tags.

        • Keyrequired — (String)

          The key of the tag.

        • Value — (String)

          The value of the tag.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

removeTagsFromCertificate(params = {}, callback) ⇒ AWS.Request

Remove one or more tags from an ACM Certificate. A tag consists of a key-value pair. If you do not specify the value portion of the tag when calling this function, the tag will be removed regardless of value. If you specify a value, the tag is removed only if it is associated with the specified value.

To add tags to a certificate, use the AddTagsToCertificate action. To view all of the tags that have been applied to a specific ACM Certificate, use the ListTagsForCertificate action.

Service Reference:

Examples:

Calling the removeTagsFromCertificate operation

var params = {
  CertificateArn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
acm.removeTagsFromCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CertificateArn — (String)

      String that contains the ARN of the ACM Certificate with one or more tags that you want to remove. This must be of the form:

      arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

      For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    • Tags — (Array<map>)

      The key-value pair that defines the tag to remove.

      • Keyrequired — (String)

        The key of the tag.

      • Value — (String)

        The value of the tag.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

requestCertificate(params = {}, callback) ⇒ AWS.Request

Requests an ACM Certificate for use with other AWS services. To request an ACM Certificate, you must specify the fully qualified domain name (FQDN) for your site. You can also specify additional FQDNs if users can reach your site by using other names. For each domain name you specify, email is sent to the domain owner to request approval to issue the certificate. After receiving approval from the domain owner, the ACM Certificate is issued. For more information, see the AWS Certificate Manager User Guide.

Service Reference:

Examples:

Calling the requestCertificate operation

var params = {
  DomainName: 'STRING_VALUE', /* required */
  DomainValidationOptions: [
    {
      DomainName: 'STRING_VALUE', /* required */
      ValidationDomain: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  IdempotencyToken: 'STRING_VALUE',
  SubjectAlternativeNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
acm.requestCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DomainName — (String)

      Fully qualified domain name (FQDN), such as www.example.com, of the site 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.

      The maximum length of a 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.

    • SubjectAlternativeNames — (Array<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 limit is 10 domain names. If you need more than 10 names, you must request a limit increase. For more information, see Limits.

    • IdempotencyToken — (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.

    • DomainValidationOptions — (Array<map>)

      The domain name that you want ACM to use to send you emails to validate your ownership of the domain.

      • DomainNamerequired — (String)

        A fully qualified domain name (FQDN) in the certificate request.

      • ValidationDomainrequired — (String)

        The domain name that you want ACM to use to send you validation emails. This domain name is the suffix of the email addresses that you want ACM to use. This must be the same as the DomainName value or a superdomain of the DomainName value. For example, if you request a certificate for testing.example.com, you can specify example.com for this value. In that case, ACM sends domain validation emails to the following five addresses:

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CertificateArn — (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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

resendValidationEmail(params = {}, callback) ⇒ AWS.Request

Resends the email that requests domain ownership validation. The domain owner or an authorized representative must approve the ACM Certificate before it can be issued. The certificate can be approved by clicking a link in the mail to navigate to the Amazon certificate approval website and then clicking I Approve. However, the validation email can be blocked by spam filters. Therefore, if you do not receive the original mail, you can request that the mail be resent within 72 hours of requesting the ACM Certificate. If more than 72 hours have elapsed since your original request or since your last attempt to resend validation mail, you must request a new certificate. For more information about setting up your contact email addresses, see Configure Email for your Domain.

Service Reference:

Examples:

Calling the resendValidationEmail operation

var params = {
  CertificateArn: 'STRING_VALUE', /* required */
  Domain: 'STRING_VALUE', /* required */
  ValidationDomain: 'STRING_VALUE' /* required */
};
acm.resendValidationEmail(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CertificateArn — (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 — (String)

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

    • ValidationDomain — (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:

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.