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.
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' )
dict
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.
string
[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.
None
Returns the account configuration options associated with an AWS account.
See also: AWS API Documentation
Request Syntax
client.get_account_configuration()
dict
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.