PutInventoryConfiguration - AWS Certificate Manager
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

PutInventoryConfiguration

Sets the organization's configuration for certificate inventory for organizations in AWS Certificate Manager (ACM), and returns it. The first call with Status ENABLED creates the configuration. The Region of that call becomes the home Region, and later calls must be made there. Choose a Region that is enabled by default. An opt-in Region can't be the home Region, and you can't change the home Region later. Setup continues in the organization's accounts after the call returns. To follow it, read ProvisioningStatus with GetInventoryConfiguration.

You must call this operation from the organization's management account or its delegated administrator account in AWS Organizations. Only the management account can make the first call, or start, change, or end the organization's ACM plan. Otherwise, the operation returns AccessDeniedException.

Omit DataRetentionDays, LifecycleManagement, or ExpiryNotification to keep the stored value. If no retention value is stored, such as on the first call, retention is set to 90 days. For more information, see Data retention.

InventoryTier sets the organization's ACM plan. Omit it to keep the current plan. The response does not include the plan. Read it with GetInventoryConfiguration. For when a plan change takes effect, see How plans work.

The operation returns ConflictException for these calls:

  • A first call with Status DISABLED.

  • A call from a Region other than the home Region. The error message names the home Region.

  • A call while a previous change is still being set up, unless it repeats the stored configuration.

  • A call that names the plan that is ending, or the current plan while a move to a lower plan is scheduled.

Request Syntax

{ "AccountScope": { "AccountIds": [ "string" ], "Mode": "string", "OrganizationalUnitIds": [ "string" ] }, "DataRetentionDays": number, "ExpiryNotification": { "Channel": "string", "Enabled": boolean, "Frequency": "string", "LeadTimeDays": number, "TopicArn": "string" }, "InventoryTier": "string", "LifecycleManagement": { "Status": "string" }, "RegionalScope": { "Mode": "string", "Regions": [ "string" ] }, "Status": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

Note

In the following list, the required parameters are described first.

AccountScope

The accounts to collect from.

Type: AccountScope object

Required: Yes

RegionalScope

The Regions to collect from.

Type: RegionalScope object

Required: Yes

Status

ENABLED turns collection on. DISABLED turns collection off and keeps the configuration. A first call can't use DISABLED.

If the organization has an ACM plan, DISABLED ends the plan and turns off certificate actions for organizations at once, but collection continues until the plan ends at the end of the billing period. For more information, see Turn off certificate inventory.

Type: String

Valid Values: ENABLED | DISABLED

Required: Yes

DataRetentionDays

How many days inventory data is kept, 90 to 365. Omit it to keep the stored value. If no value is stored, retention is set to 90 days. For more information, see Data retention.

Type: Integer

Valid Range: Minimum value of 90. Maximum value of 365.

Required: No

ExpiryNotification

Certificate expiry notifications. Omit it to keep the stored setting. Set Enabled to false to turn notifications off. Members you leave out of ExpiryNotification take their defaults.

Type: InventoryExpiryNotification object

Required: No

InventoryTier

The organization's ACM plan, which this API calls the inventory tier. Omit it to keep the current plan. While the organization has no plan, a call with Status ENABLED must name one. With Status DISABLED, it is ignored. Only the management account can start, change, or end the plan. For more information, see ACM plans.

Type: String

Valid Values: ESSENTIALS | PRO

Required: No

LifecycleManagement

Turns certificate actions for organizations on or off. Omit it to keep the stored value.

Type: LifecycleManagement object

Required: No

Response Syntax

{ "Configuration": { "AccountScope": { "AccountIds": [ "string" ], "Mode": "string", "OrganizationalUnitIds": [ "string" ] }, "DataRetentionDays": number, "ExpiryNotification": { "Channel": "string", "Enabled": boolean, "Frequency": "string", "LeadTimeDays": number, "TopicArn": "string" }, "HomeRegion": "string", "InventoryTierConfiguration": { "ScheduledChange": { "EffectiveAt": number, "Tier": "string" }, "Status": "string", "Tier": "string" }, "LastDeliveryStatus": { "Message": "string", "Status": "string", "UpdatedAt": number }, "LifecycleManagement": { "ProvisioningStatus": "string", "ProvisioningStatusReason": { "Code": "string", "Message": "string" }, "Status": "string" }, "ProvisioningStatus": "string", "ProvisioningStatusReason": { "Code": "string", "Message": "string" }, "RegionalScope": { "Mode": "string", "Regions": [ "string" ] }, "Status": "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Configuration

The configuration as stored.

Type: InventoryConfiguration object

Errors

For information about the errors that are common to all actions, see Common Error Types.

AccessDeniedException

You do not have access required to perform this action.

HTTP Status Code: 400

ConflictException

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.

HTTP Status Code: 400

InternalServerException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500

ThrottlingException

The request was denied because it exceeded a quota.

throttlingReasons

One or more reasons why the request was throttled.

HTTP Status Code: 400

ValidationException

The supplied input failed to satisfy constraints of an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: