Module Smaws_Client_ACM

ACM client library built on EIO.

Types

type nonrec validation_method =
  1. | DNS
  2. | EMAIL
type nonrec validation_exception = {
  1. message : string option;
}

The supplied input failed to satisfy constraints of an Amazon Web Services service.

type nonrec certificate_transparency_logging_preference =
  1. | DISABLED
  2. | ENABLED
type nonrec certificate_options = {
  1. certificate_transparency_logging_preference : certificate_transparency_logging_preference option;
    (*

    You can opt out of certificate transparency logging by specifying the DISABLED option. Opt in by specifying ENABLED.

    *)
}

Structure that contains options for your certificate. Currently, you can use this only to specify whether to opt in to or out of certificate transparency logging. Some browsers require that public certificates issued for your domain be recorded in a log. Certificates that are not logged typically generate a browser error. Transparency makes it possible for you to detect SSL/TLS certificates that have been mistakenly or maliciously issued for your domain. For general information, see Certificate Transparency Logging.

type nonrec update_certificate_options_request = {
  1. options : certificate_options;
    (*

    Use to update the options for your certificate. Currently, you can specify whether to add your certificate to a 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.

    *)
  2. certificate_arn : string;
    (*

    ARN of the requested certificate to update. This must be of the form:

    arn:aws:acm:us-east-1:{i account}:certificate/{i 12345678-1234-1234-1234-123456789012} 
    *)
}
type nonrec resource_not_found_exception = {
  1. message : string option;
}

The specified certificate cannot be found in the caller's account or the caller's account cannot be found.

type nonrec limit_exceeded_exception = {
  1. message : string option;
}

An ACM quota has been exceeded.

type nonrec invalid_state_exception = {
  1. message : string option;
}

Processing has reached an invalid state.

type nonrec invalid_arn_exception = {
  1. message : string option;
}

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

type nonrec too_many_tags_exception = {
  1. message : string option;
}

The request contains too many tags. Try the request again with fewer tags.

type nonrec throttling_exception = {
  1. message : string option;
}

The request was denied because it exceeded a quota.

type nonrec tag_policy_exception = {
  1. message : string option;
}

A specified tag did not comply with an existing tag policy and was rejected.

type nonrec tag = {
  1. value : string option;
    (*

    The value of the tag.

    *)
  2. key : string;
    (*

    The key of the tag.

    *)
}

A key-value pair that identifies or specifies metadata about an ACM resource.

type nonrec sort_order =
  1. | DESCENDING
  2. | ASCENDING
type nonrec sort_by =
  1. | CREATED_AT
type nonrec revocation_reason =
  1. | A_A_COMPROMISE
  2. | PRIVILEGE_WITHDRAWN
  3. | REMOVE_FROM_CRL
  4. | CERTIFICATE_HOLD
  5. | CESSATION_OF_OPERATION
  6. | SUPERCEDED
  7. | AFFILIATION_CHANGED
  8. | CA_COMPROMISE
  9. | KEY_COMPROMISE
  10. | UNSPECIFIED
type nonrec record_type =
  1. | CNAME
type nonrec resource_record = {
  1. value : string;
    (*

    The value of the CNAME record to add to your DNS database. This is supplied by ACM.

    *)
  2. type_ : record_type;
    (*

    The type of DNS record. Currently this can be CNAME.

    *)
  3. name : string;
    (*

    The name of the DNS record to create in your domain. This is supplied by ACM.

    *)
}

Contains a DNS record value that you can use to validate ownership or control of a domain. This is used by the DescribeCertificate action.

type nonrec resource_in_use_exception = {
  1. message : string option;
}

The certificate is in use by another Amazon Web Services service in the caller's account. Remove the association and try again.

type nonrec resend_validation_email_request = {
  1. validation_domain : 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
    *)
  2. domain : string;
    (*

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

    *)
  3. certificate_arn : 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

    *)
}
type nonrec invalid_domain_validation_options_exception = {
  1. message : string option;
}

One or more values in the DomainValidationOption structure is incorrect.

type nonrec request_in_progress_exception = {
  1. message : string option;
}

The certificate request is in process and the certificate in your account has not yet been issued.

type nonrec request_certificate_response = {
  1. certificate_arn : string option;
    (*

    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

    *)
}
type nonrec domain_validation_option = {
  1. validation_domain : 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:

    • admin@example.com
    • administrator@example.com
    • hostmaster@example.com
    • postmaster@example.com
    • webmaster@example.com
    *)
  2. domain_name : string;
    (*

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

    *)
}

Contains information about the domain names that you want ACM to use to send you emails that enable you to validate domain ownership.

type nonrec key_algorithm =
  1. | EC_secp521r1
  2. | EC_secp384r1
  3. | EC_prime256v1
  4. | RSA_4096
  5. | RSA_3072
  6. | RSA_2048
  7. | RSA_1024
type nonrec request_certificate_request = {
  1. key_algorithm : key_algorithm option;
    (*

    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

    *)
  2. tags : tag list option;
    (*

    One or more resource tags to associate with the certificate.

    *)
  3. certificate_authority_arn : string option;
    (*

    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

    *)
  4. options : certificate_options option;
    (*

    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.

    *)
  5. domain_validation_options : domain_validation_option list option;
    (*

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

    *)
  6. idempotency_token : string option;
    (*

    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.

    *)
  7. subject_alternative_names : string list option;
    (*

    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.
    *)
  8. validation_method : validation_method option;
    (*

    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.

    *)
  9. domain_name : 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.

    *)
}
type nonrec invalid_tag_exception = {
  1. message : string option;
}

One or both of the values that make up the key-value pair is not valid. For example, you cannot specify a tag value that begins with aws:.

type nonrec invalid_parameter_exception = {
  1. message : string option;
}

An input parameter was invalid.

type nonrec renewal_status =
  1. | FAILED
  2. | SUCCESS
  3. | PENDING_VALIDATION
  4. | PENDING_AUTO_RENEWAL
type nonrec domain_status =
  1. | FAILED
  2. | SUCCESS
  3. | PENDING_VALIDATION
type nonrec domain_validation = {
  1. validation_method : validation_method option;
    (*

    Specifies the domain validation method.

    *)
  2. resource_record : resource_record option;
    (*

    Contains the CNAME record that you add to your DNS database for domain validation. For more information, see Use DNS to Validate Domain Ownership.

    Note: The CNAME information that you need does not include the name of your domain. If you include
 your domain name in the DNS database CNAME record, validation fails.
 For example, if the name is "_a79865eb4cd1a6ab990a45779b4e0b96.yourdomain.com", only "_a79865eb4cd1a6ab990a45779b4e0b96" must be used.

    *)
  3. validation_status : domain_status option;
    (*

    The validation status of the domain name. This can be one of the following values:

    • PENDING_VALIDATION
    • SUCCESS
    • FAILED
    *)
  4. validation_domain : string option;
    (*

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

    *)
  5. validation_emails : string list option;
    (*

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

    *)
  6. domain_name : string;
    (*

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

    *)
}

Contains information about the validation of each domain name in the certificate.

type nonrec failure_reason =
  1. | OTHER
  2. | SLR_NOT_FOUND
  3. | PCA_ACCESS_DENIED
  4. | PCA_INVALID_DURATION
  5. | PCA_INVALID_ARGS
  6. | PCA_RESOURCE_NOT_FOUND
  7. | PCA_NAME_CONSTRAINTS_VALIDATION
  8. | PCA_REQUEST_FAILED
  9. | PCA_INVALID_STATE
  10. | PCA_INVALID_ARN
  11. | PCA_LIMIT_EXCEEDED
  12. | CAA_ERROR
  13. | DOMAIN_VALIDATION_DENIED
  14. | INVALID_PUBLIC_DOMAIN
  15. | DOMAIN_NOT_ALLOWED
  16. | ADDITIONAL_VERIFICATION_REQUIRED
  17. | NO_AVAILABLE_CONTACTS
type nonrec renewal_summary = {
  1. updated_at : Smaws_Lib.CoreTypes.Timestamp.t;
    (*

    The time at which the renewal summary was last updated.

    *)
  2. renewal_status_reason : failure_reason option;
    (*

    The reason that a renewal request was unsuccessful.

    *)
  3. domain_validation_options : domain_validation list;
    (*

    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.

    *)
  4. renewal_status : renewal_status;
    (*

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

    *)
}

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

type nonrec renewal_eligibility =
  1. | INELIGIBLE
  2. | ELIGIBLE
type nonrec renew_certificate_request = {
  1. certificate_arn : string;
    (*

    String that contains the ARN of the ACM certificate to be renewed. 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).

    *)
}
type nonrec remove_tags_from_certificate_request = {
  1. tags : tag list;
    (*

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

    *)
  2. certificate_arn : 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).

    *)
}
type nonrec expiry_events_configuration = {
  1. days_before_expiry : int option;
    (*

    Specifies the number of days prior to certificate expiration when ACM starts generating EventBridge events. ACM sends one event per day per certificate until the certificate expires. By default, accounts receive events starting 45 days before certificate expiration.

    *)
}

Object containing expiration events options associated with an Amazon Web Services account.

type nonrec put_account_configuration_request = {
  1. idempotency_token : string;
    (*

    Customer-chosen string used to distinguish between calls to PutAccountConfiguration. Idempotency tokens time out after one hour. If you call PutAccountConfiguration multiple times with the same unexpired idempotency token, ACM treats it as the same request and returns the original result. If you change the idempotency token for each call, ACM treats each call as a new request.

    *)
  2. expiry_events : expiry_events_configuration option;
    (*

    Specifies expiration events associated with an account.

    *)
}
type nonrec conflict_exception = {
  1. message : string option;
}

You are trying to update a resource or configuration that is already being created or updated. Wait for the previous operation to finish and try again.

type nonrec access_denied_exception = {
  1. message : string option;
}

You do not have access required to perform this action.

type nonrec list_tags_for_certificate_response = {
  1. tags : tag list option;
    (*

    The key-value pairs that define the applied tags.

    *)
}
type nonrec list_tags_for_certificate_request = {
  1. certificate_arn : string;
    (*

    String that contains the ARN of the ACM certificate for which you want to list the tags. This 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).

    *)
}
type nonrec certificate_status =
  1. | FAILED
  2. | REVOKED
  3. | VALIDATION_TIMED_OUT
  4. | EXPIRED
  5. | INACTIVE
  6. | ISSUED
  7. | PENDING_VALIDATION
type nonrec certificate_type =
  1. | PRIVATE
  2. | AMAZON_ISSUED
  3. | IMPORTED
type nonrec key_usage_name =
  1. | CUSTOM
  2. | ANY
  3. | DECIPHER_ONLY
  4. | ENCHIPER_ONLY
  5. | CRL_SIGNING
  6. | CERTIFICATE_SIGNING
  7. | KEY_AGREEMENT
  8. | DATA_ENCIPHERMENT
  9. | KEY_ENCIPHERMENT
  10. | NON_REPUDATION
  11. | DIGITAL_SIGNATURE
type nonrec extended_key_usage_name =
  1. | CUSTOM
  2. | NONE
  3. | ANY
  4. | IPSEC_USER
  5. | IPSEC_TUNNEL
  6. | IPSEC_END_SYSTEM
  7. | OCSP_SIGNING
  8. | TIME_STAMPING
  9. | EMAIL_PROTECTION
  10. | CODE_SIGNING
  11. | TLS_WEB_CLIENT_AUTHENTICATION
  12. | TLS_WEB_SERVER_AUTHENTICATION
type nonrec certificate_summary = {
  1. revoked_at : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

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

    *)
  2. imported_at : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

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

    *)
  3. issued_at : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

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

    *)
  4. created_at : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

    The time at which the certificate was requested.

    *)
  5. not_after : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

    The time after which the certificate is not valid.

    *)
  6. not_before : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

    The time before which the certificate is not valid.

    *)
  7. renewal_eligibility : renewal_eligibility option;
    (*

    Specifies whether the certificate is eligible for renewal. At this time, only exported private certificates can be renewed with the RenewCertificate command.

    *)
  8. exported : bool option;
    (*

    Indicates whether the certificate has been exported. This value exists only when the certificate type is PRIVATE.

    *)
  9. in_use : bool option;
    (*

    Indicates whether the certificate is currently in use by any Amazon Web Services resources.

    *)
  10. extended_key_usages : extended_key_usage_name list option;
    (*

    Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).

    *)
  11. key_usages : key_usage_name list option;
    (*

    A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.

    *)
  12. key_algorithm : key_algorithm option;
    (*

    The algorithm that was used to generate the public-private key pair.

    *)
  13. type_ : certificate_type option;
    (*

    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 Certificate Manager User Guide.

    *)
  14. status : certificate_status option;
    (*

    The status of the certificate.

    A certificate enters status PENDING_VALIDATION upon being requested, unless it fails for any of the reasons given in the troubleshooting topic Certificate request fails. ACM makes repeated attempts to validate a certificate for 72 hours and then times out. If a certificate shows status FAILED or VALIDATION_TIMED_OUT, delete the request, correct the issue with DNS validation or Email validation, and try again. If validation succeeds, the certificate enters status ISSUED.

    *)
  15. has_additional_subject_alternative_names : bool option;
    (*

    When called by ListCertificates, indicates whether the full list of subject alternative names has been included in the response. If false, the response includes all of the subject alternative names included in the certificate. If true, the response only includes the first 100 subject alternative names included in the certificate. To display the full list of subject alternative names, use DescribeCertificate.

    *)
  16. subject_alternative_name_summaries : string list option;
    (*

    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.

    When called by ListCertificates, this parameter will only return the first 100 subject alternative names included in the certificate. To display the full list of subject alternative names, use DescribeCertificate.

    *)
  17. domain_name : string option;
    (*

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

    *)
  18. certificate_arn : string option;
    (*

    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).

    *)
}

This structure is returned in the response object of ListCertificates action.

type nonrec list_certificates_response = {
  1. certificate_summary_list : certificate_summary list option;
    (*

    A list of ACM certificates.

    *)
  2. next_token : string option;
    (*

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

    *)
}
type nonrec filters = {
  1. key_types : key_algorithm list option;
    (*

    Specify one or more algorithms that can be used to generate key pairs.

    Default filtering returns only RSA_1024 and RSA_2048 certificates that have at least one domain. To return other certificate types, provide the desired type signatures in a comma-separated list. For example, "keyTypes": ["RSA_2048","RSA_4096"] returns both RSA_2048 and RSA_4096 certificates.

    *)
  2. key_usage : key_usage_name list option;
    (*

    Specify one or more KeyUsage extension values.

    *)
  3. extended_key_usage : extended_key_usage_name list option;
    (*

    Specify one or more ExtendedKeyUsage extension values.

    *)
}

This structure can be used in the ListCertificates action to filter the output of the certificate list.

type nonrec list_certificates_request = {
  1. sort_order : sort_order option;
    (*

    Specifies the order of sorted results. If you specify SortOrder, you must also specify SortBy.

    *)
  2. sort_by : sort_by option;
    (*

    Specifies the field to sort results by. If you specify SortBy, you must also specify SortOrder.

    *)
  3. max_items : int option;
    (*

    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.

    *)
  4. next_token : string option;
    (*

    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.

    *)
  5. includes : filters option;
    (*

    Filter the certificate list. For more information, see the Filters structure.

    *)
  6. certificate_statuses : certificate_status list option;
    (*

    Filter the certificate list by status value.

    *)
}
type nonrec invalid_args_exception = {
  1. message : string option;
}

One or more of of request parameters specified is not valid.

type nonrec key_usage = {
  1. name : key_usage_name option;
    (*

    A string value that contains a Key Usage extension name.

    *)
}

The Key Usage X.509 v3 extension defines the purpose of the public key contained in the certificate.

type nonrec import_certificate_response = {
  1. certificate_arn : string option;
    (*

    The Amazon Resource Name (ARN) of the imported certificate.

    *)
}
type nonrec import_certificate_request = {
  1. tags : tag list option;
    (*

    One or more resource tags to associate with the imported certificate.

    Note: You cannot apply tags when reimporting a certificate.

    *)
  2. certificate_chain : bytes option;
    (*

    The PEM encoded certificate chain.

    *)
  3. private_key : bytes;
    (*

    The private key that matches the public key in the certificate.

    *)
  4. certificate : bytes;
    (*

    The certificate to import.

    *)
  5. certificate_arn : string option;
    (*

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

    *)
}
type nonrec get_certificate_response = {
  1. certificate_chain : string option;
    (*

    Certificates forming the requested certificate's chain of trust. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs.

    *)
  2. certificate : string option;
    (*

    The ACM-issued certificate corresponding to the ARN specified as input.

    *)
}
type nonrec get_certificate_request = {
  1. certificate_arn : string;
    (*

    String that contains a certificate ARN in the following format:

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

    For more information about ARNs, see Amazon Resource Names (ARNs).

    *)
}
type nonrec get_account_configuration_response = {
  1. expiry_events : expiry_events_configuration option;
    (*

    Expiration events configuration options associated with the Amazon Web Services account.

    *)
}
type nonrec extended_key_usage = {
  1. oi_d : string option;
    (*

    An object identifier (OID) for the extension value. OIDs are strings of numbers separated by periods. The following OIDs are defined in RFC 3280 and RFC 5280.

    • 1.3.6.1.5.5.7.3.1 (TLS_WEB_SERVER_AUTHENTICATION)
    • 1.3.6.1.5.5.7.3.2 (TLS_WEB_CLIENT_AUTHENTICATION)
    • 1.3.6.1.5.5.7.3.3 (CODE_SIGNING)
    • 1.3.6.1.5.5.7.3.4 (EMAIL_PROTECTION)
    • 1.3.6.1.5.5.7.3.8 (TIME_STAMPING)
    • 1.3.6.1.5.5.7.3.9 (OCSP_SIGNING)
    • 1.3.6.1.5.5.7.3.5 (IPSEC_END_SYSTEM)
    • 1.3.6.1.5.5.7.3.6 (IPSEC_TUNNEL)
    • 1.3.6.1.5.5.7.3.7 (IPSEC_USER)
    *)
  2. name : extended_key_usage_name option;
    (*

    The name of an Extended Key Usage value.

    *)
}

The Extended Key Usage X.509 v3 extension defines one or more purposes for which the public key can be used. This is in addition to or in place of the basic purposes specified by the Key Usage extension.

type nonrec export_certificate_response = {
  1. private_key : string option;
    (*

    The encrypted private key associated with the public key in the certificate. The key is output in PKCS #8 format and is base64 PEM-encoded.

    *)
  2. certificate_chain : string option;
    (*

    The base64 PEM-encoded certificate chain. This does not include the certificate that you are exporting.

    *)
  3. certificate : string option;
    (*

    The base64 PEM-encoded certificate.

    *)
}
type nonrec export_certificate_request = {
  1. passphrase : bytes;
    (*

    Passphrase to associate with the encrypted exported private key.

    When creating your passphrase, you can use any ASCII character except #, $, or %.

    If you want to later decrypt the private key, you must have the passphrase. You can use the following OpenSSL command to decrypt a private key. After entering the command, you are prompted for the passphrase.

    openssl rsa -in encrypted_key.pem -out decrypted_key.pem

    *)
  2. certificate_arn : string;
    (*

    An Amazon Resource Name (ARN) of the issued certificate. This must be of the form:

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

    *)
}
type nonrec certificate_detail = {
  1. options : certificate_options option;
    (*

    Value that specifies whether to add the certificate to a transparency log. Certificate transparency makes it possible to detect SSL certificates that have been mistakenly or maliciously issued. A browser might respond to certificate that has not been logged by showing an error message. The logs are cryptographically secure.

    *)
  2. renewal_eligibility : renewal_eligibility option;
    (*

    Specifies whether the certificate is eligible for renewal. At this time, only exported private certificates can be renewed with the RenewCertificate command.

    *)
  3. certificate_authority_arn : string option;
    (*

    The Amazon Resource Name (ARN) of the private certificate authority (CA) that issued the certificate. This has the following format:

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

    *)
  4. extended_key_usages : extended_key_usage list option;
    (*

    Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).

    *)
  5. key_usages : key_usage list option;
    (*

    A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.

    *)
  6. renewal_summary : renewal_summary option;
    (*

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

    *)
  7. type_ : certificate_type option;
    (*

    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 Certificate Manager User Guide.

    *)
  8. failure_reason : failure_reason option;
    (*

    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 Certificate Manager User Guide.

    *)
  9. in_use_by : string list option;
    (*

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

    *)
  10. signature_algorithm : string option;
    (*

    The algorithm that was used to sign the certificate.

    *)
  11. key_algorithm : key_algorithm option;
    (*

    The algorithm that was used to generate the public-private key pair.

    *)
  12. not_after : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

    The time after which the certificate is not valid.

    *)
  13. not_before : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

    The time before which the certificate is not valid.

    *)
  14. revocation_reason : revocation_reason option;
    (*

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

    *)
  15. revoked_at : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

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

    *)
  16. status : certificate_status option;
    (*

    The status of the certificate.

    A certificate enters status PENDING_VALIDATION upon being requested, unless it fails for any of the reasons given in the troubleshooting topic Certificate request fails. ACM makes repeated attempts to validate a certificate for 72 hours and then times out. If a certificate shows status FAILED or VALIDATION_TIMED_OUT, delete the request, correct the issue with DNS validation or Email validation, and try again. If validation succeeds, the certificate enters status ISSUED.

    *)
  17. imported_at : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

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

    *)
  18. issued_at : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

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

    *)
  19. created_at : Smaws_Lib.CoreTypes.Timestamp.t option;
    (*

    The time at which the certificate was requested.

    *)
  20. issuer : string option;
    (*

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

    *)
  21. subject : string option;
    (*

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

    *)
  22. serial : string option;
    (*

    The serial number of the certificate.

    *)
  23. domain_validation_options : domain_validation list option;
    (*

    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.

    *)
  24. subject_alternative_names : string list option;
    (*

    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.

    *)
  25. domain_name : string option;
    (*

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

    *)
  26. certificate_arn : string option;
    (*

    The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

    *)
}

Contains metadata about an ACM certificate. This structure is returned in the response to a DescribeCertificate request.

type nonrec describe_certificate_response = {
  1. certificate : certificate_detail option;
    (*

    Metadata about an ACM certificate.

    *)
}
type nonrec describe_certificate_request = {
  1. certificate_arn : 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).

    *)
}
type nonrec delete_certificate_request = {
  1. certificate_arn : 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).

    *)
}
type nonrec add_tags_to_certificate_request = {
  1. tags : tag list;
    (*

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

    *)
  2. certificate_arn : 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).

    *)
}

Builders

val make_certificate_options : ?certificate_transparency_logging_preference: certificate_transparency_logging_preference -> unit -> certificate_options
val make_update_certificate_options_request : options:certificate_options -> certificate_arn:string -> unit -> update_certificate_options_request
val make_tag : ?value:string -> key:string -> unit -> tag
val make_resource_record : value:string -> type_:record_type -> name:string -> unit -> resource_record
val make_resend_validation_email_request : validation_domain:string -> domain:string -> certificate_arn:string -> unit -> resend_validation_email_request
val make_request_certificate_response : ?certificate_arn:string -> unit -> request_certificate_response
val make_domain_validation_option : validation_domain:string -> domain_name:string -> unit -> domain_validation_option
val make_request_certificate_request : ?key_algorithm:key_algorithm -> ?tags:tag list -> ?certificate_authority_arn:string -> ?options:certificate_options -> ?domain_validation_options:domain_validation_option list -> ?idempotency_token:string -> ?subject_alternative_names:string list -> ?validation_method:validation_method -> domain_name:string -> unit -> request_certificate_request
val make_domain_validation : ?validation_method:validation_method -> ?resource_record:resource_record -> ?validation_status:domain_status -> ?validation_domain:string -> ?validation_emails:string list -> domain_name:string -> unit -> domain_validation
val make_renewal_summary : ?renewal_status_reason:failure_reason -> updated_at:Smaws_Lib.CoreTypes.Timestamp.t -> domain_validation_options:domain_validation list -> renewal_status:renewal_status -> unit -> renewal_summary
val make_renew_certificate_request : certificate_arn:string -> unit -> renew_certificate_request
val make_remove_tags_from_certificate_request : tags:tag list -> certificate_arn:string -> unit -> remove_tags_from_certificate_request
val make_expiry_events_configuration : ?days_before_expiry:int -> unit -> expiry_events_configuration
val make_put_account_configuration_request : ?expiry_events:expiry_events_configuration -> idempotency_token:string -> unit -> put_account_configuration_request
val make_list_tags_for_certificate_response : ?tags:tag list -> unit -> list_tags_for_certificate_response
val make_list_tags_for_certificate_request : certificate_arn:string -> unit -> list_tags_for_certificate_request
val make_certificate_summary : ?revoked_at:Smaws_Lib.CoreTypes.Timestamp.t -> ?imported_at:Smaws_Lib.CoreTypes.Timestamp.t -> ?issued_at:Smaws_Lib.CoreTypes.Timestamp.t -> ?created_at:Smaws_Lib.CoreTypes.Timestamp.t -> ?not_after:Smaws_Lib.CoreTypes.Timestamp.t -> ?not_before:Smaws_Lib.CoreTypes.Timestamp.t -> ?renewal_eligibility:renewal_eligibility -> ?exported:bool -> ?in_use:bool -> ?extended_key_usages:extended_key_usage_name list -> ?key_usages:key_usage_name list -> ?key_algorithm:key_algorithm -> ?type_:certificate_type -> ?status:certificate_status -> ?has_additional_subject_alternative_names:bool -> ?subject_alternative_name_summaries:string list -> ?domain_name:string -> ?certificate_arn:string -> unit -> certificate_summary
val make_list_certificates_response : ?certificate_summary_list:certificate_summary list -> ?next_token:string -> unit -> list_certificates_response
val make_filters : ?key_types:key_algorithm list -> ?key_usage:key_usage_name list -> ?extended_key_usage:extended_key_usage_name list -> unit -> filters
val make_list_certificates_request : ?sort_order:sort_order -> ?sort_by:sort_by -> ?max_items:int -> ?next_token:string -> ?includes:filters -> ?certificate_statuses:certificate_status list -> unit -> list_certificates_request
val make_key_usage : ?name:key_usage_name -> unit -> key_usage
val make_import_certificate_response : ?certificate_arn:string -> unit -> import_certificate_response
val make_import_certificate_request : ?tags:tag list -> ?certificate_chain:bytes -> ?certificate_arn:string -> private_key:bytes -> certificate:bytes -> unit -> import_certificate_request
val make_get_certificate_response : ?certificate_chain:string -> ?certificate:string -> unit -> get_certificate_response
val make_get_certificate_request : certificate_arn:string -> unit -> get_certificate_request
val make_get_account_configuration_response : ?expiry_events:expiry_events_configuration -> unit -> get_account_configuration_response
val make_extended_key_usage : ?oi_d:string -> ?name:extended_key_usage_name -> unit -> extended_key_usage
val make_export_certificate_response : ?private_key:string -> ?certificate_chain:string -> ?certificate:string -> unit -> export_certificate_response
val make_export_certificate_request : passphrase:bytes -> certificate_arn:string -> unit -> export_certificate_request
val make_certificate_detail : ?options:certificate_options -> ?renewal_eligibility:renewal_eligibility -> ?certificate_authority_arn:string -> ?extended_key_usages:extended_key_usage list -> ?key_usages:key_usage list -> ?renewal_summary:renewal_summary -> ?type_:certificate_type -> ?failure_reason:failure_reason -> ?in_use_by:string list -> ?signature_algorithm:string -> ?key_algorithm:key_algorithm -> ?not_after:Smaws_Lib.CoreTypes.Timestamp.t -> ?not_before:Smaws_Lib.CoreTypes.Timestamp.t -> ?revocation_reason:revocation_reason -> ?revoked_at:Smaws_Lib.CoreTypes.Timestamp.t -> ?status:certificate_status -> ?imported_at:Smaws_Lib.CoreTypes.Timestamp.t -> ?issued_at:Smaws_Lib.CoreTypes.Timestamp.t -> ?created_at:Smaws_Lib.CoreTypes.Timestamp.t -> ?issuer:string -> ?subject:string -> ?serial:string -> ?domain_validation_options:domain_validation list -> ?subject_alternative_names:string list -> ?domain_name:string -> ?certificate_arn:string -> unit -> certificate_detail
val make_describe_certificate_response : ?certificate:certificate_detail -> unit -> describe_certificate_response
val make_describe_certificate_request : certificate_arn:string -> unit -> describe_certificate_request
val make_delete_certificate_request : certificate_arn:string -> unit -> delete_certificate_request
val make_add_tags_to_certificate_request : tags:tag list -> certificate_arn:string -> unit -> add_tags_to_certificate_request

Operations

module AddTagsToCertificate : sig ... end

Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify and organize your Amazon Web Services 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.

module DeleteCertificate : sig ... end

Deletes a certificate and its associated private key. If this action succeeds, the certificate no longer appears in the list 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 Amazon Web Services services integrated with ACM.

module DescribeCertificate : sig ... end

Returns detailed metadata about the specified ACM certificate.

module ExportCertificate : sig ... end

Exports a private certificate issued by a private certificate authority (CA) for use anywhere. The exported file contains the certificate, the certificate chain, and the encrypted private 2048-bit RSA key associated with the public key that is embedded in the certificate. For security, you must assign a passphrase for the private key when exporting it.

module GetAccountConfiguration : sig ... end

Returns the account configuration options associated with an Amazon Web Services account.

module GetCertificate : sig ... end

Retrieves an Amazon-issued certificate and its certificate chain. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs. All of the certificates are base64 encoded. You can use OpenSSL to decode the certificates and inspect individual fields.

module ImportCertificate : sig ... end

Imports a certificate into Certificate Manager (ACM) to use with services that are integrated with ACM. Note that integrated services allow only certificate types and keys they support to be associated with their resources. Further, their support differs depending on whether the certificate is imported into IAM or into ACM. For more information, see the documentation for each service. For more information about importing certificates into ACM, see Importing Certificates in the Certificate Manager User Guide.

module ListCertificates : sig ... end

Retrieves a list of certificate ARNs and domain names. You can request that only certificates that match a specific status be listed. You can also filter by specific attributes of the certificate. Default filtering returns only RSA_2048 certificates. For more information, see Filters.

module ListTagsForCertificate : sig ... end

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.

module PutAccountConfiguration : sig ... end

Adds or modifies account-level configurations in ACM.

module RemoveTagsFromCertificate : sig ... end

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.

module RenewCertificate : sig ... end

Renews an eligible ACM certificate. At this time, only exported private certificates can be renewed with this operation. In order to renew your Amazon Web Services Private CA certificates with ACM, you must first grant the ACM service principal permission to do so. For more information, see Testing Managed Renewal in the ACM User Guide.

module RequestCertificate : sig ... end

Requests an ACM certificate for use with other Amazon Web Services services. To request an ACM certificate, you must specify a fully qualified domain name (FQDN) in the DomainName parameter. You can also specify additional FQDNs in the SubjectAlternativeNames parameter.

module ResendValidationEmail : sig ... end

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.

module UpdateCertificateOptions : sig ... end

Updates a certificate. Currently, you can use this function to specify whether to opt in to or out of recording your certificate in a certificate transparency log. For more information, see Opting Out of Certificate Transparency Logging.