Skip to content

get_inventory_configuration async

get_inventory_configuration(
    *, config_overrides: Optional[AsyncACMClientConfig] = None
) -> GetInventoryConfigurationOutput

Returns the organization's configuration for Certificate inventory for organizations. The certificate inventory is the set of certificates observed in the organization's accounts. The configuration says which Regions and accounts are collected, how long data is kept, and whether collection is on. It also shows how far setup has progressed, the organization's AWS Certificate Manager (ACM) plan (Essentials or Pro), and whether Certificate actions for organizations are on. Certificate actions are the operations that act on certificates and certificate authorities in the organization's member accounts. The caller must be the organization's management account or its delegated administrator. If the caller's account is not in an organization, or the caller is neither of these accounts, the operation returns AccessDeniedException. The message names the unmet condition. Before the first PutInventoryConfiguration call, the operation returns ResourceNotFoundException.

Raises:

Examples:

Get the inventory configuration Collection is on for every Region and for every account except one. Data is kept for 180 days. Expiry notifications go weekly to an Amazon SNS topic, starting 30 days before a certificate expires. The latest notification was delivered.

>>> await client.get_inventory_configuration()
Get the configuration while the ACM plan is scheduled to end
The organization is on the Pro plan, and the plan is scheduled to end on December 1, 2026. The plan stays in effect until then. After that, the configuration has no InventoryTierConfiguration.
>>> await client.get_inventory_configuration()
Get the configuration while a new ACM plan is being applied
PutInventoryConfiguration requested the Pro plan a few seconds ago. The plan is PENDING until it takes effect, usually within seconds.
>>> await client.get_inventory_configuration()
Get the configuration before inventory is set up
The organization has never called PutInventoryConfiguration.
>>> await client.get_inventory_configuration()
Source code in docs_src/capo_acm/_services/async_acm.py
async def get_inventory_configuration(
    self, *, config_overrides: Optional[AsyncACMClientConfig] = None
) -> "capo_acm.types.get_inventory_configuration_output.GetInventoryConfigurationOutput":
    """Returns the organization's configuration for Certificate inventory for organizations. The certificate inventory is the set of certificates observed in the organization's accounts. The configuration says which Regions and accounts are collected, how long data is kept, and whether collection is on. It also shows how far setup has progressed, the organization's AWS Certificate Manager (ACM) plan (Essentials or Pro), and whether Certificate actions for organizations are on. Certificate actions are the operations that act on certificates and certificate authorities in the organization's member accounts. The caller must be the organization's management account or its delegated administrator. If the caller's account is not in an organization, or the caller is neither of these accounts, the operation returns AccessDeniedException. The message names the unmet condition. Before the first PutInventoryConfiguration call, the operation returns ResourceNotFoundException.

    Raises:
        capo_acm.errors.access_denied_exception.AccessDeniedException: <p>You do not have access required to perform this action.</p>
        capo_acm.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure.</p>
        capo_acm.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified certificate cannot be found in the caller's account or the caller's account cannot be found.</p>
        capo_acm.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded a quota.</p>
        capo_acm.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Get the inventory configuration
        Collection is on for every Region and for every account except one. Data is kept for 180 days. Expiry notifications go weekly to an Amazon SNS topic, starting 30 days before a certificate expires. The latest notification was delivered.

        >>> await client.get_inventory_configuration()
        Get the configuration while the ACM plan is scheduled to end
        The organization is on the Pro plan, and the plan is scheduled to end on December 1, 2026. The plan stays in effect until then. After that, the configuration has no InventoryTierConfiguration.

        >>> await client.get_inventory_configuration()
        Get the configuration while a new ACM plan is being applied
        PutInventoryConfiguration requested the Pro plan a few seconds ago. The plan is PENDING until it takes effect, usually within seconds.

        >>> await client.get_inventory_configuration()
        Get the configuration before inventory is set up
        The organization has never called PutInventoryConfiguration.

        >>> await client.get_inventory_configuration()
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_acm.types.get_inventory_configuration_input.GetInventoryConfigurationInput]",
    ) -> AsyncOperationResponse[
        "capo_acm.types.get_inventory_configuration_output.GetInventoryConfigurationOutput"
    ]:
        import capo_acm._operations.certificate_manager.get_inventory_configuration

        (
            output,
            http_response,
        ) = await capo_acm._operations.certificate_manager.get_inventory_configuration.async_get_inventory_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetInventoryConfiguration")
    )
    input_: capo_acm.types.get_inventory_configuration_input.GetInventoryConfigurationInput = {}

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output