AWS Certificate Manager

2021/03/03 - AWS Certificate Manager - 2 new api methods

Changes  Adds 2 new APIs to add and retrieve account configuration in AWS Certificate Manager.

PutAccountConfiguration (new) Link ¶

Adds or modifies account-level configurations in ACM.

The supported configuration option is DaysBeforeExpiry . This 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.

See also: AWS API Documentation

Request Syntax

client.put_account_configuration(
    ExpiryEvents={
        'DaysBeforeExpiry': 123
    },
    IdempotencyToken='string'
)
type ExpiryEvents

dict

param ExpiryEvents

Specifies expiration events associated with an account.

  • DaysBeforeExpiry (integer) --

    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.

type IdempotencyToken

string

param IdempotencyToken

[REQUIRED]

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.

returns

None

GetAccountConfiguration (new) Link ¶

Returns the account configuration options associated with an AWS account.

See also: AWS API Documentation

Request Syntax

client.get_account_configuration()
rtype

dict

returns

Response Syntax

{
    'ExpiryEvents': {
        'DaysBeforeExpiry': 123
    }
}

Response Structure

  • (dict) --

    • ExpiryEvents (dict) --

      Expiration events configuration options associated with the AWS account.

      • DaysBeforeExpiry (integer) --

        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.