AWS Certificate Manager

2026/11/29 - AWS Certificate Manager - 15 new api methods

Changes  AWS Certificate Manager (ACM) now offers ACM plans, Essentials and Pro. With Certificate inventory for organizations and Certificate actions for organizations, you can view and manage certificates across your AWS organization.

ListInventoryFindings (new) Link ¶

Lists the open findings for one certificate. Returns one page of findings and the total number of findings.

A finding says that a certificate series has a problem you can fix, and how severe it is. A series is the set of certificates that one AWS Certificate Manager (ACM) certificate holds across renewals and reimports. A certificate's findings are the open findings of every series in which it is a current certificate. A rule that passes or does not apply produces no finding, so a certificate with no problems returns an empty list.

Findings are sorted by severity, highest first, and then by RuleId in alphabetical order. Ties are broken in a fixed order that is unique to each finding, so paging returns every finding at least once. A finding can change while you page, for example when its severity rises. Then it is returned again, with its new values, at the top of a later page. Its FindingId does not change, so you can replace the copy you already have.

To read the next page, repeat the request with the NextToken from the previous response. Keep the same CertificateIdentifier and Severity. A NextToken from a request with a different CertificateIdentifier or Severity returns ValidationException.

Every response also reports the certificate's HighestFindingSeverity. It is NOT_EVALUATED until the certificate's findings have been evaluated.

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.

The operation returns ResourceNotFoundException in two cases, each with its own message:

  • The inventory is not configured: no PutInventoryConfiguration call has run.

  • The inventory has no certificate with the identifier.

Do not match on the message to tell the cases apart. GetInventoryConfiguration says whether the inventory is configured.

Before the first PutInventoryConfiguration call, only the management account can call it; a delegated administrator receives AccessDeniedException.

See also: AWS API Documentation

Request Syntax

client.list_inventory_findings(
    CertificateIdentifier='string',
    Severity='CRITICAL'|'HIGH'|'MEDIUM'|'LOW'|'INFORMATIONAL',
    MaxResults=123,
    NextToken='string'
)
type CertificateIdentifier:

string

param CertificateIdentifier:

[REQUIRED]

The identifier of the certificate whose findings to list, as SearchInventory returns it.

type Severity:

string

param Severity:

Return only findings of this severity. Omit it to return findings of every severity.

type MaxResults:

integer

param MaxResults:

The maximum number of findings to return, 1 to 100. Defaults to 25.

type NextToken:

string

param NextToken:

The NextToken from the previous response, to read the next page.

rtype:

dict

returns:

Response Syntax

{
    'Findings': [
        {
            'FindingId': 'string',
            'CertificateIdentifier': 'string',
            'RuleId': 'NO_VALID_CERTIFICATE'|'ACM_RENEWAL_OVERDUE'|'EXPIRING_SOON'|'NO_USAGE_EVIDENCE'|'EXPIRED_CERTIFICATE_IN_USE',
            'Severity': 'CRITICAL'|'HIGH'|'MEDIUM'|'LOW'|'INFORMATIONAL',
            'Scope': {
                'Series': {
                    'CertificateArn': 'string',
                    'AccountId': 'string',
                    'Region': 'string'
                }
            },
            'Reason': 'USAGE_NOT_OBSERVABLE'|'EXPIRED_NOT_IN_USE'|'NOT_IN_USE',
            'Expected': 'string',
            'Actual': 'string',
            'Remediation': 'string',
            'EvaluatedAt': datetime(2015, 1, 1)
        },
    ],
    'HighestFindingSeverity': 'CRITICAL'|'HIGH'|'MEDIUM'|'LOW'|'INFORMATIONAL'|'HEALTHY'|'NOT_APPLICABLE'|'NOT_EVALUATED',
    'NextToken': 'string',
    'TotalCount': 123,
    'TotalCountRelation': 'EXACT'|'AT_LEAST'
}

Response Structure

  • (dict) --

    • Findings (list) --

      The findings on this page. They are sorted by severity, highest first, then by RuleId in alphabetical order, then in an order unique to each finding. A later page can start with findings that changed since the first page was returned. A changed finding that sorts before the position the NextToken records is returned again once, with its new values.

      • (dict) --

        One open finding: a problem a rule found in what it evaluated. Only open findings are returned, so a finding has no status.

        • FindingId (string) --

          Identifies the finding. It stays the same for the same rule and the same evaluated subject, across evaluations and pages. Use it to recognize a finding that is returned again. It is opaque: do not parse it or build one.

        • CertificateIdentifier (string) --

          The identifier of the certificate whose findings were requested.

        • RuleId (string) --

          The rule that produced the finding.

        • Severity (string) --

          How severe the finding is.

        • Scope (dict) --

          What the rule evaluated.

          • Series (dict) --

            The ACM certificate ARN, account, and Region of the series the rule evaluated. A series is the set of certificates that one ACM certificate holds across renewals and reimports.

            • CertificateArn (string) --

              The ARN of the ACM certificate.

            • AccountId (string) --

              The account that holds the ACM certificate.

            • Region (string) --

              The Region of the ACM certificate.

        • Reason (string) --

          Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause.

        • Expected (string) --

          What the rule requires, up to 1,024 characters. Absent when the rule does not describe it.

        • Actual (string) --

          What the rule found, up to 1,024 characters. Absent when the rule does not describe it.

        • Remediation (string) --

          How to resolve the finding, up to 1,024 characters. Absent when the rule does not describe it.

        • EvaluatedAt (datetime) --

          When the finding was opened or its content last changed, to the second. A change in severity counts as a change in content. Evaluating an unchanged finding again does not change this time.

    • HighestFindingSeverity (string) --

      The certificate's health, as SearchInventory reports it. It is the highest severity among the certificate's open findings, HEALTHY, or NOT_APPLICABLE. It is NOT_EVALUATED when the certificate's findings have not been evaluated yet.

    • NextToken (string) --

      Pass this value as NextToken to read the next page. Absent on the last page. The token is opaque; do not parse or build one. A later page also returns any finding that changed after the first page was returned.

    • TotalCount (integer) --

      How many findings match in total, not only on this page. Counted when each page is read, so it can change between pages if the inventory changes.

    • TotalCountRelation (string) --

      Whether TotalCount is exact or a lower bound.

ListInventoryUsages (new) Link ¶

Lists the places where one certificate was observed in use, such as load balancers and Amazon CloudFront distributions. Returns one page of usages and the total number of usages.

Usages are sorted by target, in ascending order. To read the next page, repeat the request with the NextToken from the previous response and the same CertificateIdentifier. A NextToken from a request for a different certificate returns ValidationException.

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.

The operation returns ResourceNotFoundException before the first PutInventoryConfiguration call. Until then, only the management account can call it; a delegated administrator receives AccessDeniedException. It also returns ResourceNotFoundException when the inventory has no certificate with the identifier.

See also: AWS API Documentation

Request Syntax

client.list_inventory_usages(
    CertificateIdentifier='string',
    MaxResults=123,
    NextToken='string'
)
type CertificateIdentifier:

string

param CertificateIdentifier:

[REQUIRED]

The identifier of the certificate whose usages to list, as SearchInventory returns it.

type MaxResults:

integer

param MaxResults:

The maximum number of usages to return, 1 to 100. Defaults to 25.

type NextToken:

string

param NextToken:

The NextToken from the previous response, to read the next page.

rtype:

dict

returns:

Response Syntax

{
    'Usages': [
        {
            'CertificateIdentifier': 'string',
            'Target': {
                'Arn': 'string',
                'ResourceIdentifier': {
                    'ResourceType': 'HOST'|'EKS_POD',
                    'Value': 'string'
                }
            },
            'LastObservedAt': datetime(2015, 1, 1),
            'AccountId': 'string',
            'Region': 'string',
            'AgentReported': {
                'Discovery': {
                    'Port': 123,
                    'ServerName': 'string'
                },
                'Automation': {
                    'CertificateArn': 'string'
                }
            }
        },
    ],
    'NextToken': 'string',
    'TotalCount': 123,
    'TotalCountRelation': 'EXACT'|'AT_LEAST'
}

Response Structure

  • (dict) --

    • Usages (list) --

      The usages on this page, sorted by target in ascending order.

      • (dict) --

        One place where a certificate was observed in use. This is a record of what was observed, not an AWS resource.

        • CertificateIdentifier (string) --

          The identifier of the certificate in use.

        • Target (dict) --

          Where the certificate is used.

          • Arn (string) --

            The ARN of the resource the certificate is attached to, such as a load balancer.

          • ResourceIdentifier (dict) --

            The type and identifier of a target that has no ARN.

            • ResourceType (string) --

              The type of the target.

            • Value (string) --

              The target's identifier, such as a host name.

        • LastObservedAt (datetime) --

          When the certificate was last observed at the target, to the second.

        • AccountId (string) --

          The account that holds the target. Absent when it is not known.

        • Region (string) --

          The Region of the target. Absent for a global resource, such as an Amazon CloudFront distribution, and when it is not known.

        • AgentReported (dict) --

          Detail about a usage that a provider reported. Absent for a usage that AWS Certificate Manager (ACM) reports.

          • Discovery (dict) --

            A usage the provider observed while it scanned a host for served certificates.

            • Port (integer) --

              The TCP or UDP port the certificate was observed on.

            • ServerName (string) --

              The Server Name Indication (SNI) server name the certificate was served for, when the provider reported one.

          • Automation (dict) --

            A usage the provider reported while it renewed one configured certificate.

            • CertificateArn (string) --

              The ACM certificate ARN the provider keeps renewed.

    • NextToken (string) --

      Pass this value as NextToken to read the next page. Absent on the last page.

    • TotalCount (integer) --

      How many usages the certificate has in total, not only on this page. Counted when each page is read, so it can change between pages if the inventory changes.

    • TotalCountRelation (string) --

      Whether TotalCount is exact or a lower bound.

DeleteMemberCertificate (new) Link ¶

Deletes an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization. ACM applies the rules of its DeleteCertificate operation, including when it cannot delete a certificate. For details, see DeleteCertificate in the AWS Certificate Manager API Reference.

The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see RenewMemberCertificate.

See also: AWS API Documentation

Request Syntax

client.delete_member_certificate(
    CertificateArn='string'
)
type CertificateArn:

string

param CertificateArn:

[REQUIRED]

The ARN of the certificate to delete.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

ListInventoryRelatedResources (new) Link ¶

Lists the resources that one certificate maps to: AWS Certificate Manager certificates, AWS Private Certificate Authority (AWS Private CA) certificates, and AWS Private CA certificate authorities. Returns one page of related resources and the total number of related resources.

Related resources are sorted by ResourceArn, in ascending order. To read the next page, repeat the request with the NextToken from the previous response and the same CertificateIdentifier. A NextToken from a request for a different certificate returns ValidationException.

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.

The operation returns ResourceNotFoundException before the first PutInventoryConfiguration call. Until then, only the management account can call it; a delegated administrator receives AccessDeniedException. It also returns ResourceNotFoundException when the inventory has no certificate with the identifier.

See also: AWS API Documentation

Request Syntax

client.list_inventory_related_resources(
    CertificateIdentifier='string',
    MaxResults=123,
    NextToken='string'
)
type CertificateIdentifier:

string

param CertificateIdentifier:

[REQUIRED]

The identifier of the certificate whose related resources to list, as SearchInventory returns it.

type MaxResults:

integer

param MaxResults:

The maximum number of related resources to return, 1 to 100. Defaults to 25.

type NextToken:

string

param NextToken:

The NextToken from the previous response, to read the next page.

rtype:

dict

returns:

Response Syntax

{
    'RelatedResources': [
        {
            'ResourceType': 'ACM_CERTIFICATE'|'PCA_CERTIFICATE'|'PCA_CERTIFICATE_AUTHORITY',
            'ResourceArn': 'string',
            'IssuanceType': 'AMAZON_ISSUED'|'PRIVATE_CA_ISSUED'|'IMPORTED'|'EXTERNAL'|'PRIVATE_CA_DIRECT',
            'AssociationStatus': 'CURRENT'|'REPLACED',
            'Metadata': {
                'AcmCertificate': {
                    'UpdatedAt': datetime(2015, 1, 1),
                    'DomainName': 'string',
                    'Serial': 'string',
                    'NotAfter': datetime(2015, 1, 1),
                    'Status': 'PENDING_VALIDATION'|'ISSUED'|'INACTIVE'|'EXPIRED'|'VALIDATION_TIMED_OUT'|'REVOKED'|'FAILED',
                    'Type': 'IMPORTED'|'AMAZON_ISSUED'|'PRIVATE',
                    'InUseByCount': 123,
                    'RenewalEligibility': 'ELIGIBLE'|'INELIGIBLE',
                    'RenewalSummary': {
                        'RenewalStatus': 'PENDING_AUTO_RENEWAL'|'PENDING_VALIDATION'|'SUCCESS'|'FAILED',
                        'RenewalStatusReason': 'NO_AVAILABLE_CONTACTS'|'ADDITIONAL_VERIFICATION_REQUIRED'|'DOMAIN_NOT_ALLOWED'|'INVALID_PUBLIC_DOMAIN'|'DOMAIN_VALIDATION_DENIED'|'CAA_ERROR'|'PCA_LIMIT_EXCEEDED'|'PCA_INVALID_ARN'|'PCA_INVALID_STATE'|'PCA_REQUEST_FAILED'|'PCA_NAME_CONSTRAINTS_VALIDATION'|'PCA_RESOURCE_NOT_FOUND'|'PCA_INVALID_ARGS'|'PCA_INVALID_DURATION'|'PCA_ACCESS_DENIED'|'SLR_NOT_FOUND'|'OTHER',
                        'UpdatedAt': datetime(2015, 1, 1)
                    },
                    'Options': {
                        'Export': 'ENABLED'|'DISABLED',
                        'ValidationMethod': 'EMAIL'|'DNS'|'HTTP'
                    },
                    'UpdateSummary': {
                        'Status': 'PENDING_DOMAIN_VALIDATION'|'SUCCESS'|'FAILED',
                        'Type': 'DOMAIN_VALIDATION_METHOD',
                        'RequestedAt': datetime(2015, 1, 1),
                        'UpdatedAt': datetime(2015, 1, 1)
                    },
                    'CertificateKeyPairOrigin': 'AWS_MANAGED'|'ACME'|'CUSTOMER_PROVIDED',
                    'ManagedBy': 'CLOUDFRONT',
                    'CreatedAt': datetime(2015, 1, 1),
                    'IssuedAt': datetime(2015, 1, 1),
                    'ImportedAt': datetime(2015, 1, 1),
                    'RevokedAt': datetime(2015, 1, 1),
                    'RevocationReason': 'UNSPECIFIED'|'KEY_COMPROMISE'|'CA_COMPROMISE'|'AFFILIATION_CHANGED'|'SUPERCEDED'|'SUPERSEDED'|'CESSATION_OF_OPERATION'|'CERTIFICATE_HOLD'|'REMOVE_FROM_CRL'|'PRIVILEGE_WITHDRAWN'|'A_A_COMPROMISE',
                    'CertificateAuthorityArn': 'string',
                    'AcmeEndpointArn': 'string',
                    'AcmeAccountId': 'string'
                },
                'PcaCertificateAuthority': {
                    'UpdatedAt': datetime(2015, 1, 1),
                    'Status': 'CREATING'|'PENDING_CERTIFICATE'|'ACTIVE'|'DELETED'|'DISABLED'|'EXPIRED'|'FAILED',
                    'Type': 'ROOT'|'SUBORDINATE',
                    'UsageMode': 'GENERAL_PURPOSE'|'SHORT_LIVED_CERTIFICATE',
                    'KeyStorageSecurityStandard': 'FIPS_140_2_LEVEL_2_OR_HIGHER'|'FIPS_140_2_LEVEL_3_OR_HIGHER'|'CCPC_LEVEL_1_OR_HIGHER',
                    'Serial': 'string',
                    'NotBefore': datetime(2015, 1, 1),
                    'NotAfter': datetime(2015, 1, 1),
                    'CreatedAt': datetime(2015, 1, 1),
                    'LastStateChangeAt': datetime(2015, 1, 1),
                    'RestorableUntil': datetime(2015, 1, 1)
                }
            }
        },
    ],
    'NextToken': 'string',
    'TotalCount': 123,
    'TotalCountRelation': 'EXACT'|'AT_LEAST'
}

Response Structure

  • (dict) --

    • RelatedResources (list) --

      The related resources on this page, sorted by ResourceArn in ascending order.

      • (dict) --

        An AWS Certificate Manager or AWS Private Certificate Authority (AWS Private CA) resource that a certificate maps to.

        • ResourceType (string) --

          The type of the resource.

        • ResourceArn (string) --

          The resource's ARN.

        • IssuanceType (string) --

          How AWS Certificate Manager holds the certificate. Present only for ACM_CERTIFICATE.

        • AssociationStatus (string) --

          Whether the ACM certificate still holds this certificate. Present only for ACM_CERTIFICATE.

        • Metadata (dict) --

          What AWS Certificate Manager (ACM) or AWS Private Certificate Authority (AWS Private CA) reported for the resource named by ResourceArn, when the inventory last read it. The metadata's UpdatedAt says when.

          It describes that resource, not necessarily this certificate. After a renewal or reimport (AssociationStatus REPLACED), an ACM certificate's metadata describes the certificate it holds now.

          It is a stored copy, not a live read, and can be as old as the inventory's last read of the resource. Before you act on it, read ACM or AWS Private CA in the owning account. Absent when the inventory holds no read of the resource. Always absent for PCA_CERTIFICATE.

          • AcmCertificate (dict) --

            Metadata of an ACM_CERTIFICATE, from ACM DescribeCertificate.

            • UpdatedAt (datetime) --

              When the inventory last read this from ACM, in UTC. This is the inventory's time, not a time ACM reports. The UpdatedAt members of RenewalSummary and UpdateSummary are times ACM reports.

            • DomainName (string) --

              ACM DomainName: the certificate's primary domain name.

            • Serial (string) --

              ACM Serial: the serial number of the certificate the ACM certificate holds.

            • NotAfter (datetime) --

              ACM NotAfter: the end of the validity period of the certificate the ACM certificate holds.

            • Status (string) --

              ACM Status: where the certificate is in its lifecycle. Some values might never appear here, because the inventory records only the certificates it tracks.

            • Type (string) --

              ACM Type: how ACM holds the certificate.

            • InUseByCount (integer) --

              The number of AWS resources in the InUseBy list in ACM for this certificate, when the inventory last read it (see UpdatedAt). For the resources the inventory observed, use ListInventoryUsages. The two can differ.

            • RenewalEligibility (string) --

              ACM RenewalEligibility: whether ACM can renew the certificate.

            • RenewalSummary (dict) --

              ACM RenewalSummary, without its domain validation details. Present only when ACM reports a renewal.

              • RenewalStatus (string) --

                ACM RenewalStatus: where the renewal is.

              • RenewalStatusReason (string) --

                ACM RenewalStatusReason: why the renewal failed. Present only when ACM reports one.

              • UpdatedAt (datetime) --

                ACM UpdatedAt: when the renewal status last changed, as ACM reports it. This is the time ACM reports, not when the inventory read it.

            • Options (dict) --

              ACM Options: the export and validation options.

              • Export (string) --

                ACM Export: whether the certificate can be exported.

              • ValidationMethod (string) --

                ACM ValidationMethod: how domain ownership is validated.

            • UpdateSummary (dict) --

              ACM UpdateSummary, without its domain validation details. It is the last requested change to the certificate, such as a new validation method. Present only when ACM reports one.

              • Status (string) --

                ACM Status: where the update is.

              • Type (string) --

                ACM Type: what the update changes.

              • RequestedAt (datetime) --

                ACM RequestedAt: when the update was requested.

              • UpdatedAt (datetime) --

                ACM UpdatedAt: when the update's status last changed, as ACM reports it. This is the time ACM reports, not when the inventory read it.

            • CertificateKeyPairOrigin (string) --

              ACM CertificateKeyPairOrigin: where the certificate's key pair came from.

            • ManagedBy (string) --

              ACM ManagedBy: the service that manages the certificate. Absent when no service manages it.

            • CreatedAt (datetime) --

              ACM CreatedAt: when the certificate was requested from ACM. Absent when ACM did not return it.

            • IssuedAt (datetime) --

              ACM IssuedAt: when ACM issued the certificate. Present only when Type is AMAZON_ISSUED.

            • ImportedAt (datetime) --

              ACM ImportedAt: when the certificate was imported. Present only when Type is IMPORTED.

            • RevokedAt (datetime) --

              ACM RevokedAt: when the certificate was revoked. Present only when Status is REVOKED.

            • RevocationReason (string) --

              ACM RevocationReason. Present only when Status is REVOKED.

            • CertificateAuthorityArn (string) --

              ACM CertificateAuthorityArn: the AWS Private Certificate Authority (AWS Private CA) certificate authority that issued the certificate. Present only when Type is PRIVATE.

            • AcmeEndpointArn (string) --

              The ACME endpoint ARN the certificate was issued through, when ACM issued it through ACME. Absent otherwise.

            • AcmeAccountId (string) --

              The ACME account that requested the certificate, when ACM issued it through ACME. Absent otherwise.

          • PcaCertificateAuthority (dict) --

            Metadata of a PCA_CERTIFICATE_AUTHORITY, from AWS Private Certificate Authority (AWS Private CA) DescribeCertificateAuthority.

            • UpdatedAt (datetime) --

              When the inventory last read this from AWS Private CA, in UTC. This is the inventory's time, not a time AWS Private CA reports.

            • Status (string) --

              AWS Private CA Status: where the certificate authority is in its lifecycle. Some values might never appear here, because the inventory records only the certificate authorities it tracks.

            • Type (string) --

              AWS Private CA Type: root or subordinate.

            • UsageMode (string) --

              AWS Private CA UsageMode: what certificates the certificate authority issues.

            • KeyStorageSecurityStandard (string) --

              AWS Private CA KeyStorageSecurityStandard: how the certificate authority's private key is stored.

            • Serial (string) --

              AWS Private CA Serial: the serial number of the certificate authority's certificate, as AWS Private CA reports it.

            • NotBefore (datetime) --

              AWS Private CA NotBefore: the start of the validity period of the certificate authority's certificate.

            • NotAfter (datetime) --

              AWS Private CA NotAfter: the end of the validity period of the certificate authority's certificate.

            • CreatedAt (datetime) --

              AWS Private CA CreatedAt: when the certificate authority was created.

            • LastStateChangeAt (datetime) --

              AWS Private CA LastStateChangeAt: when the certificate authority's Status last changed.

            • RestorableUntil (datetime) --

              AWS Private CA RestorableUntil: until when a deleted certificate authority can be restored. Present only when Status is DELETED.

    • NextToken (string) --

      Pass this value as NextToken to read the next page. Absent on the last page.

    • TotalCount (integer) --

      How many related resources the certificate has in total, not only on this page. Counted when each page is read, so it can change between pages if the inventory changes.

    • TotalCountRelation (string) --

      Whether TotalCount is exact or a lower bound.

GetInventoryConfiguration (new) Link ¶

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.

See also: AWS API Documentation

Request Syntax

client.get_inventory_configuration()
rtype:

dict

returns:

Response Syntax

{
    'Configuration': {
        'RegionalScope': {
            'Mode': 'ALL_REGIONS'|'INCLUDE'|'EXCLUDE',
            'Regions': [
                'string',
            ]
        },
        'AccountScope': {
            'Mode': 'ALL_ACCOUNTS'|'INCLUDE'|'EXCLUDE',
            'OrganizationalUnitIds': [
                'string',
            ],
            'AccountIds': [
                'string',
            ]
        },
        'DataRetentionDays': 123,
        'Status': 'ENABLED'|'DISABLED',
        'ProvisioningStatus': 'ENABLING'|'ENABLED'|'DISABLING'|'DISABLED'|'FAILED',
        'ProvisioningStatusReason': {
            'Code': 'TRUSTED_ACCESS_DISABLED'|'INTERNAL_FAILURE',
            'Message': 'string'
        },
        'HomeRegion': 'string',
        'LifecycleManagement': {
            'Status': 'ENABLED'|'DISABLED',
            'ProvisioningStatus': 'ENABLING'|'ENABLED'|'DISABLING'|'DISABLED'|'FAILED',
            'ProvisioningStatusReason': {
                'Code': 'TRUSTED_ACCESS_DISABLED'|'INTERNAL_FAILURE',
                'Message': 'string'
            }
        },
        'ExpiryNotification': {
            'Enabled': True|False,
            'Channel': 'SNS',
            'TopicArn': 'string',
            'LeadTimeDays': 123,
            'Frequency': 'ONCE'|'DAILY'|'WEEKLY'
        },
        'LastDeliveryStatus': {
            'Status': 'PENDING_VERIFICATION'|'VERIFIED'|'VERIFICATION_FAILED'|'DELIVERED'|'DELIVERY_FAILED',
            'UpdatedAt': datetime(2015, 1, 1),
            'Message': 'string'
        },
        'InventoryTierConfiguration': {
            'Tier': 'ESSENTIALS'|'PRO',
            'Status': 'PENDING'|'ACTIVE',
            'ScheduledChange': {
                'Tier': 'ESSENTIALS'|'PRO',
                'EffectiveAt': datetime(2015, 1, 1)
            }
        }
    }
}

Response Structure

  • (dict) --

    • Configuration (dict) --

      The organization's inventory configuration.

      • RegionalScope (dict) --

        The Regions collected from.

        • Mode (string) --

          How the Regions list is applied.

        • Regions (list) --

          The Regions to include or exclude. Required when Mode is INCLUDE or EXCLUDE, and not allowed when Mode is ALL_REGIONS.

          • (string) --

            An AWS Region code, such as us-west-2.

      • AccountScope (dict) --

        The accounts collected from.

        • Mode (string) --

          How AccountIds and OrganizationalUnitIds are applied.

        • OrganizationalUnitIds (list) --

          The organizational units to include or exclude.

          • (string) --

            An organizational unit ID, such as ou-ab12-cd34ef56.

        • AccountIds (list) --

          The accounts to include or exclude.

          • (string) --

            A 12-digit AWS account ID, such as 111122223333.

      • DataRetentionDays (integer) --

        How many days inventory data is kept.

      • Status (string) --

        Whether collection is on. After a DISABLED request while the organization has an ACM plan, Status stays ENABLED until the plan ends at the end of the billing period.

      • ProvisioningStatus (string) --

        How far setup of the current configuration has progressed in the organization's accounts.

      • ProvisioningStatusReason (dict) --

        Why setup failed. Present only when ProvisioningStatus is FAILED.

        • Code (string) --

          The cause, as a code.

        • Message (string) --

          The cause and what to do about it, for a person to read.

      • HomeRegion (string) --

        The home Region: the Region where the configuration is managed. It is the Region of the first PutInventoryConfiguration call.

      • LifecycleManagement (dict) --

        The state of Certificate actions for organizations. Certificate actions are the operations that act on certificates and certificate authorities in the organization's member accounts, such as RenewMemberCertificate. Status is DISABLED until certificate actions are first turned on.

        • Status (string) --

          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, such as RenewMemberCertificate. DISABLED until they are first turned on.

        • ProvisioningStatus (string) --

          How far setup of Certificate actions for organizations has progressed in the organization's member accounts.

        • ProvisioningStatusReason (dict) --

          Why setup failed. Present only when ProvisioningStatus is FAILED.

          • Code (string) --

            The cause, as a code.

          • Message (string) --

            The cause and what to do about it, for a person to read.

      • ExpiryNotification (dict) --

        Certificate expiry notifications as stored. Until they are configured, Enabled is false, LeadTimeDays is 7, and Frequency is ONCE.

        • Enabled (boolean) --

          Whether notifications are sent. Defaults to false. When true, Channel and TopicArn are required.

        • Channel (string) --

          Where notifications are delivered. Set together with TopicArn.

        • TopicArn (string) --

          The Amazon SNS topic to publish to. Set together with Channel.

        • LeadTimeDays (integer) --

          Days before NotAfter that notifications start: 7, 30, 60, or 90. Defaults to 7.

        • Frequency (string) --

          How often a notification is sent for a certificate within LeadTimeDays. Defaults to ONCE.

      • LastDeliveryStatus (dict) --

        The latest verification or delivery outcome for ExpiryNotification. Absent while inventory Status is DISABLED or notifications are off.

        • Status (string) --

          The latest outcome.

        • UpdatedAt (datetime) --

          When Status last changed. Can be absent while PENDING_VERIFICATION.

        • Message (string) --

          Why verification or delivery failed. Present only for VERIFICATION_FAILED and DELIVERY_FAILED.

      • InventoryTierConfiguration (dict) --

        The organization's ACM plan. Present while the organization has a plan or one is being applied, and while a scheduled change is pending. Absent when the organization has no plan. Only GetInventoryConfiguration returns it. PutInventoryConfiguration never does.

        • Tier (string) --

          The plan in effect, or, while Status is PENDING, the plan being applied.

        • Status (string) --

          PENDING while a requested plan is not yet in effect, usually for a few seconds after PutInventoryConfiguration. ACTIVE after the plan takes effect. A scheduled downgrade or end of the plan shows as ACTIVE with a ScheduledChange.

        • ScheduledChange (dict) --

          A change that is scheduled but not yet in effect: a move to a lower plan, or the end of the plan. Absent when no change is scheduled.

          • Tier (string) --

            The lower plan that takes effect. Absent when the plan ends with no plan to follow.

          • EffectiveAt (datetime) --

            When the change takes effect.

GetInventoryInsights (new) Link ¶

Returns certificate counts from Certificate inventory for organizations, broken down by the requested aggregates. The certificate inventory is the set of certificates observed in the organization's accounts. An aggregate groups the count by one property, such as Region or key algorithm. Every aggregate except EXPIRY_WINDOW is ranked: it lists groups largest first and omits empty groups.

The counts are precomputed, so the response and each aggregate result carry their own UpdatedAt, which can be earlier than the request. For a count under any other filter, use SearchInventory, whose TotalCount is computed at query time.

Each aggregate is computed on its own, so one aggregate can be FAILED while the others are COMPLETE. Before the first PutInventoryConfiguration call, and while ProvisioningStatus is ENABLING, the counts might not be computed yet. Until they are, CertificateCount is 0 and UpdatedAt is absent. Ranked aggregates are COMPLETE with an empty Groups list. EXPIRY_WINDOW is FAILED until the first daily EXPIRY_WINDOW computation has run. While Status is DISABLED, retained data is served until retention removes it.

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. GetInventoryInsights does not return ResourceNotFoundException. Before the first PutInventoryConfiguration call, only the management account can call it; a delegated administrator receives AccessDeniedException.

A repeated aggregate returns ValidationException. An entry that selects no aggregate, or more than one, also returns ValidationException.

See also: AWS API Documentation

Request Syntax

client.get_inventory_insights(
    RequestedAggregates=[
        {
            'ExpiryWindow': {}
            ,
            'IssuanceType': {}
            ,
            'Region': {}
            ,
            'InUse': {}
            ,
            'KeyAlgorithm': {}
            ,
            'HighestFindingSeverity': {
                'GroupBy': 'CERTIFICATE_TYPE'
            }
        },
    ]
)
type RequestedAggregates:

list

param RequestedAggregates:

[REQUIRED]

The aggregates to return, 0 to 25 entries. CertificateCount is always returned and needs no entry, so an empty list returns CertificateCount with an empty Aggregates list. Each aggregate can appear at most once. A repeated aggregate, or an aggregate the service does not support, returns ValidationException.

  • (dict) --

    Selects one aggregate and carries its options. Only HighestFindingSeverity takes options. Each member returns the InventoryAggregateResult with the matching Aggregate:

    • ExpiryWindow: EXPIRY_WINDOW

    • IssuanceType: ISSUANCE_TYPE

    • Region: REGION

    • InUse: IN_USE

    • KeyAlgorithm: KEY_ALGORITHM

    • HighestFindingSeverity: HIGHEST_FINDING_SEVERITY

    • ExpiryWindow (dict) --

      Requests expiry-window groups.

    • IssuanceType (dict) --

      Requests issuance-type groups.

    • Region (dict) --

      Requests Region groups.

    • InUse (dict) --

      Requests usage-presence groups.

    • KeyAlgorithm (dict) --

      Requests key-algorithm groups.

    • HighestFindingSeverity (dict) --

      Requests groups by the highest severity among each certificate's open findings. Certificates whose findings have not been evaluated are counted in a NOT_EVALUATED group, so the groups sum to CertificateCount.

      • GroupBy (string) --

        Adds a second breakdown to the result. CERTIFICATE_TYPE returns the severity groups of each certificate type, in CertificateTypeGroups. These come from the same precomputed counts as Groups. The result is FAILED until the organization's per-type counts have first been computed. If you omit it, the result has only the severity groups.

rtype:

dict

returns:

Response Syntax

{
    'CertificateCount': 123,
    'UpdatedAt': datetime(2015, 1, 1),
    'Aggregates': [
        {
            'Aggregate': 'EXPIRY_WINDOW'|'ISSUANCE_TYPE'|'REGION'|'IN_USE'|'KEY_ALGORITHM'|'HIGHEST_FINDING_SEVERITY',
            'Status': 'COMPLETE'|'FAILED',
            'UpdatedAt': datetime(2015, 1, 1),
            'Groups': [
                {
                    'Value': 'string',
                    'Count': 123,
                    'MinDays': 123,
                    'MaxDays': 123
                },
            ],
            'OtherCount': 123,
            'CertificateTypeGroups': [
                {
                    'CertificateType': 'PUBLIC_TLS'|'PRIVATE_TLS'|'ACME'|'IMPORTED'|'OTHER',
                    'CertificateCount': 123,
                    'Groups': [
                        {
                            'Value': 'string',
                            'Count': 123,
                            'MinDays': 123,
                            'MaxDays': 123
                        },
                    ]
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    • CertificateCount (integer) --

      The number of certificates in the organization's inventory.

    • UpdatedAt (datetime) --

      When CertificateCount was last recomputed, in UTC. Absent when the organization's counts have not been computed yet.

    • Aggregates (list) --

      One result for each requested aggregate, in request order.

      • (dict) --

        One requested aggregate and its groups.

        EXPIRY_WINDOW always returns its six fixed groups, including groups with a count of 0. They are ordered from expired to 91 or more days.

        ISSUANCE_TYPE, REGION, IN_USE, KEY_ALGORITHM, and HIGHEST_FINDING_SEVERITY are ranked aggregates. A ranked aggregate omits groups with a count of 0. It orders groups by Count, descending, and then by Value, ascending. It returns at most 100 groups, and OtherCount carries the remainder.

        • Aggregate (string) --

          The aggregate this result reports.

        • Status (string) --

          COMPLETE results include Groups; FAILED results omit them.

        • UpdatedAt (datetime) --

          When this aggregate's counts were last recomputed, in UTC. EXPIRY_WINDOW measures days remaining from this time. Absent when Status is FAILED, or when the organization's counts have not been computed yet.

        • Groups (list) --

          Present only when Status is COMPLETE. Can be empty for a ranked aggregate.

          • (dict) --

            A group in an aggregate result. For EXPIRY_WINDOW, Value is absent, and MinDays and MaxDays bound the window. The expired group has MaxDays -1 and no MinDays. The 91 or more group has MinDays 91 and no MaxDays. For ranked aggregates, MinDays and MaxDays are absent.

            • Value (string) --

              The group key for a ranked aggregate:

              • ISSUANCE_TYPE: the IssuanceType value.

              • REGION: the Region code.

              • IN_USE: "true" or "false".

              • KEY_ALGORITHM: the InventoryKeyAlgorithm value.

              • HIGHEST_FINDING_SEVERITY: the CertificateHealthSeverity value.

              Absent for EXPIRY_WINDOW. Clients must accept values they do not know. 1 to 256 characters.

            • Count (integer) --

              The number of certificates in the group.

            • MinDays (integer) --

              Inclusive lower bound, in whole days remaining. Absent on the expired EXPIRY_WINDOW group, which has MaxDays -1.

            • MaxDays (integer) --

              Inclusive upper bound, in whole days remaining. On the expired EXPIRY_WINDOW group, it is -1. This means the certificate had already expired: its NotAfter is before the result's UpdatedAt. That group has no MinDays. -1 is the only negative value. Absent on the 91 or more group.

        • OtherCount (integer) --

          The total count of certificates in ranked groups beyond the 100 returned. Absent when every group was returned.

        • CertificateTypeGroups (list) --

          The severity groups of each certificate type. Present only on a COMPLETE HIGHEST_FINDING_SEVERITY result requested with GroupBy CERTIFICATE_TYPE. Groups still holds the severity groups of all certificate types. A certificate type with no certificates is omitted. The rest are ordered alphabetically by CertificateType value.

          • (dict) --

            The HIGHEST_FINDING_SEVERITY groups of one certificate type. They are ranked like the aggregate's own groups. Groups with a count of 0 are omitted, and the rest are ordered by Count, descending, and then by Value, ascending. The NOT_EVALUATED group counts this type's certificates whose findings have not been evaluated yet. This is CertificateCount minus the type's evaluated groups, so the groups sum to CertificateCount.

            • CertificateType (string) --

              The certificate type these groups count.

            • CertificateCount (integer) --

              The number of certificates of this type in the organization's inventory, evaluated or not. It comes from the same precomputed counts as GetInventoryInsightsOutput.CertificateCount.

            • Groups (list) --

              The severity groups of this certificate type, with the CertificateHealthSeverity value as each group's Value.

              • (dict) --

                A group in an aggregate result. For EXPIRY_WINDOW, Value is absent, and MinDays and MaxDays bound the window. The expired group has MaxDays -1 and no MinDays. The 91 or more group has MinDays 91 and no MaxDays. For ranked aggregates, MinDays and MaxDays are absent.

                • Value (string) --

                  The group key for a ranked aggregate:

                  • ISSUANCE_TYPE: the IssuanceType value.

                  • REGION: the Region code.

                  • IN_USE: "true" or "false".

                  • KEY_ALGORITHM: the InventoryKeyAlgorithm value.

                  • HIGHEST_FINDING_SEVERITY: the CertificateHealthSeverity value.

                  Absent for EXPIRY_WINDOW. Clients must accept values they do not know. 1 to 256 characters.

                • Count (integer) --

                  The number of certificates in the group.

                • MinDays (integer) --

                  Inclusive lower bound, in whole days remaining. Absent on the expired EXPIRY_WINDOW group, which has MaxDays -1.

                • MaxDays (integer) --

                  Inclusive upper bound, in whole days remaining. On the expired EXPIRY_WINDOW group, it is -1. This means the certificate had already expired: its NotAfter is before the result's UpdatedAt. That group has no MinDays. -1 is the only negative value. Absent on the 91 or more group.

UpdateMemberCertificateOptions (new) Link ¶

Updates the options of an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization. ACM applies the rules of its UpdateCertificateOptions operation, including which options can change after a certificate is created. For details, see UpdateCertificateOptions in the AWS Certificate Manager API Reference.

An option you omit is not sent to ACM, so it is unchanged. A request that sets neither Export nor ValidationMethod returns ValidationException.

The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see RenewMemberCertificate.

See also: AWS API Documentation

Request Syntax

client.update_member_certificate_options(
    CertificateArn='string',
    Options={
        'Export': 'ENABLED'|'DISABLED',
        'ValidationMethod': 'EMAIL'|'DNS'|'HTTP'
    }
)
type CertificateArn:

string

param CertificateArn:

[REQUIRED]

The ARN of the certificate to update.

type Options:

dict

param Options:

[REQUIRED]

The options to set. Set at least one. An option you omit is not sent to ACM, so it is unchanged.

  • Export (string) --

    Whether the certificate can be exported. ACM decides whether this value can change. For details, see CertificateOptions in the AWS Certificate Manager API Reference.

  • ValidationMethod (string) --

    How ACM validates that the certificate's owner controls its domains.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UpdateMemberCertificateAuthority (new) Link ¶

Updates the status or the revocation configuration of a private certificate authority (CA) in a member account of the caller's organization. AWS Private Certificate Authority (AWS Private CA) applies the rules of its UpdateCertificateAuthority operation, including which status changes and revocation settings it accepts. For details, see UpdateCertificateAuthority in the AWS Private CA API Reference.

A parameter you omit is not sent to AWS Private CA, so that setting is unchanged. AWS Private CA writes CRLs to the Amazon S3 bucket named by S3BucketName in its own CrlConfiguration, which you set with AWS Private CA in the member account.

The caller must be the organization's management account or its delegated administrator. The operation acts in the member account and Region that the certificate authority ARN names. It returns AccessDeniedException in these cases, and, except where noted, the message names the unmet condition:

  • The caller's account is not in an organization, or the organization is not active in AWS Certificate Manager.

  • The caller is neither the management account nor the delegated administrator.

  • The certificate authority is in the caller's own account. Call the AWS Private CA operation in that account instead.

  • The organization has no certificate inventory configuration.

  • Certificate actions for organizations are turned off. Certificate actions are the operations that act on certificates and certificate authorities in member accounts. Turn them on with LifecycleManagement in PutInventoryConfiguration.

  • The certificate authority's Region is outside the RegionalScope of the configuration.

  • The certificate authority's account is not an active member of the organization, or is outside the AccountScope of the configuration.

  • The Regions enabled for the certificate authority's account are not recorded yet.

  • AWS Certificate Manager is not authorized to act in the certificate authority's account, because the account is not in the organization or access setup there has not finished.

If member operations are not available in the Region you call, the operation returns AccessDeniedException with the message Unauthorized, before any of the checks above. An ARN that is malformed, does not name an AWS Private CA certificate authority, is in another partition, or names an unknown Region also returns AccessDeniedException with the message Unauthorized. A call outside the organization's home Region returns ResourceNotFoundException, and the message names the home Region. A certificate authority ARN whose Region is not enabled for its account, or where AWS Private CA is not available, returns ValidationException. A certificate authority ARN that is too long for the operation to act on, even within the length limit of CertificateAuthorityArn, also returns ValidationException.

Errors that AWS Private CA returns in the member account are returned as these errors:

  • ResourceNotFoundException: AWS Private CA did not find the certificate authority.

  • ConflictException: AWS Private CA reports a conflict, such as a certificate authority state that does not allow the change.

  • ValidationException: AWS Private CA rejects the request, or reports that a quota is reached.

  • ThrottlingException: AWS Private CA throttles the call.

Any other error returns InternalServerException.

See also: AWS API Documentation

Request Syntax

client.update_member_certificate_authority(
    CertificateAuthorityArn='string',
    Status='CREATING'|'PENDING_CERTIFICATE'|'ACTIVE'|'DELETED'|'DISABLED'|'EXPIRED'|'FAILED',
    RevocationConfiguration={
        'CrlConfiguration': {
            'Enabled': True|False,
            'ExpirationInDays': 123,
            'CustomCname': 'string',
            'S3ObjectAcl': 'PUBLIC_READ'|'BUCKET_OWNER_FULL_CONTROL',
            'CrlDistributionPointExtensionConfiguration': {
                'OmitExtension': True|False
            },
            'CrlType': 'COMPLETE'|'PARTITIONED',
            'CustomPath': 'string'
        },
        'OcspConfiguration': {
            'Enabled': True|False,
            'OcspCustomCname': 'string'
        }
    }
)
type CertificateAuthorityArn:

string

param CertificateAuthorityArn:

[REQUIRED]

The ARN of the certificate authority to update.

type Status:

string

param Status:

The status to set. If you omit it, the status is unchanged. AWS Private Certificate Authority (AWS Private CA) decides which values it accepts; see UpdateCertificateAuthority in the AWS Private CA API Reference.

type RevocationConfiguration:

dict

param RevocationConfiguration:

The revocation configuration to set. If you omit it, the configuration is unchanged.

  • CrlConfiguration (dict) --

    The certificate revocation list (CRL) the certificate authority maintains, if any.

    • Enabled (boolean) -- [REQUIRED]

      Whether the certificate authority publishes a CRL.

    • ExpirationInDays (integer) --

      How many days a published CRL is valid, 1 to 5,000.

    • CustomCname (string) --

      A DNS name that certificates name as the CRL distribution point in place of the Amazon S3 bucket's name.

    • S3ObjectAcl (string) --

      Who can read the CRL object in the Amazon S3 bucket.

    • CrlDistributionPointExtensionConfiguration (dict) --

      Whether certificates the certificate authority issues name the CRL distribution point.

      • OmitExtension (boolean) -- [REQUIRED]

        When true, certificates the certificate authority issues leave out the CRL distribution point extension.

    • CrlType (string) --

      Whether the certificate authority publishes one complete CRL or partitioned CRLs.

    • CustomPath (string) --

      The path of the CRL in the Amazon S3 bucket.

  • OcspConfiguration (dict) --

    The Online Certificate Status Protocol (OCSP) support the certificate authority provides, if any.

    • Enabled (boolean) -- [REQUIRED]

      Whether the certificate authority answers OCSP requests.

    • OcspCustomCname (string) --

      A DNS name that certificates name as the OCSP responder in place of the AWS Private CA endpoint.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

SearchInventory (new) Link ¶

Searches Certificate inventory for organizations and returns one page of certificates, with the number that match. The certificate inventory is the set of certificates observed in the organization's accounts.

Filter combines typed predicates with And, Or, and Not. Omit it to search every certificate. These limits apply:

  • An And or Or list holds 1 to 15 statements.

  • Statements nest at most 3 levels deep. Filter itself is level 1, and each statement inside an And, Or, or Not is one level deeper. For example, an And of Not statements that each hold a predicate is 3 levels deep.

  • A filter holds at most 20 predicates in total.

Results are sorted by NotAfter, latest first, unless SortBy and SortOrder say otherwise. To read the next page, repeat the request with the NextToken from the previous response. Keep the same Filter, SortBy, and SortOrder. A NextToken from a search with a different Filter, SortBy, or SortOrder returns ValidationException.

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. Until then, only the management account can call it; a delegated administrator receives AccessDeniedException.

See also: AWS API Documentation

Request Syntax

client.search_inventory(
    Filter={
        'And': [
            {'... recursive ...'},
        ],
        'Or': [
            {'... recursive ...'},
        ],
        'Not': {'... recursive ...'},
        'Filter': {
            'Identifier': 'string',
            'MaterialType': 'X509_CERTIFICATE',
            'AccountId': 'string',
            'Region': 'string',
            'IssuanceType': 'AMAZON_ISSUED'|'PRIVATE_CA_ISSUED'|'IMPORTED'|'EXTERNAL'|'PRIVATE_CA_DIRECT',
            'KeyAlgorithm': 'RSA_1024'|'RSA_2048'|'RSA_3072'|'RSA_4096'|'EC_prime256v1'|'EC_secp384r1'|'EC_secp521r1'|'ED25519'|'ED448'|'OTHER',
            'UsageStatus': 'IN_USE'|'NOT_IN_USE',
            'Issuer': 'string',
            'Domain': {
                'Value': 'string',
                'Match': 'EQUALS'|'IN_DOMAIN'|'CONTAINS'
            },
            'NotAfter': {
                'After': datetime(2015, 1, 1),
                'Before': datetime(2015, 1, 1)
            },
            'RelatedResourceType': 'ACM_CERTIFICATE'|'PCA_CERTIFICATE'|'PCA_CERTIFICATE_AUTHORITY',
            'HighestFindingSeverity': 'CRITICAL'|'HIGH'|'MEDIUM'|'LOW'|'INFORMATIONAL'|'HEALTHY'|'NOT_APPLICABLE'|'NOT_EVALUATED',
            'AcmCertificateArn': {
                'Value': 'string',
                'Match': 'CURRENT'|'ANY'
            },
            'PcaCertificateArn': 'string',
            'PcaCertificateAuthorityArn': {
                'Value': 'string',
                'Relationship': 'ISSUED_BY'|'CA_CERTIFICATE'
            },
            'IssuerWords': 'string',
            'SignatureAlgorithm': 'string'
        }
    },
    SortBy='NOT_AFTER'|'NOT_BEFORE'|'USAGE_COUNT'|'SUBJECT'|'HIGHEST_FINDING_SEVERITY',
    SortOrder='ASCENDING'|'DESCENDING',
    MaxResults=123,
    NextToken='string'
)
type Filter:

dict

param Filter:

Which certificates to return. Omit it to return every certificate.

  • And (list) --

    Matches certificates that match every statement.

    • (dict) --

      A filter: one predicate, or And, Or, or Not over other statements. Set exactly one member. An And or Or list holds 1 to 15 statements. Statements nest at most 3 levels deep, and a filter holds at most 20 predicates in total. The request's Filter is level 1. Each statement inside an And, Or, or Not is one level deeper. For example, an And of Not statements that each hold a predicate is 3 levels deep.

  • Or (list) --

    Matches certificates that match at least one statement.

    • (dict) --

      A filter: one predicate, or And, Or, or Not over other statements. Set exactly one member. An And or Or list holds 1 to 15 statements. Statements nest at most 3 levels deep, and a filter holds at most 20 predicates in total. The request's Filter is level 1. Each statement inside an And, Or, or Not is one level deeper. For example, an And of Not statements that each hold a predicate is 3 levels deep.

  • Not (dict) --

    Matches certificates that do not match the statement.

  • Filter (dict) --

    Matches certificates that match the predicate.

    • Identifier (string) --

      Matches one certificate by its identifier. Used alone, it looks up a single certificate.

    • MaterialType (string) --

      Matches the certificate's material type.

    • AccountId (string) --

      Matches certificates with a related resource in this account. An account outside the organization matches nothing. When you combine it with Region, the account and the Region can come from different related resources.

    • Region (string) --

      Matches certificates with a related resource in this Region. When you combine it with AccountId, the account and the Region can come from different related resources.

    • IssuanceType (string) --

      Matches the certificate's X509Details.IssuanceType, not the issuance type of a related resource.

    • KeyAlgorithm (string) --

      Matches the certificate's key algorithm.

    • UsageStatus (string) --

      IN_USE matches certificates observed in use; NOT_IN_USE matches certificates with no observed usages.

    • Issuer (string) --

      Matches the certificate's X509Details.Issuer distinguished name exactly, including case. It does not match a certificate authority ARN. To match part of the name, use IssuerWords.

    • Domain (dict) --

      Matches the certificate's DNS subject alternative names and subject common name, without regard to case.

      • Value (string) -- [REQUIRED]

        The domain name, 1 to 253 characters. For CONTAINS, part of a name, 3 to 253 characters: letters, digits, hyphens, and dots, optionally after a leading *..

      • Match (string) -- [REQUIRED]

        How to match the domain name.

    • NotAfter (dict) --

      Matches certificates whose NotAfter falls in the range.

      • After (datetime) --

        The start of the range, included.

      • Before (datetime) --

        The end of the range, excluded. Must be later than After.

    • RelatedResourceType (string) --

      Matches certificates with a related resource of this type. Usage targets, such as load balancers, are not related resources.

    • HighestFindingSeverity (string) --

      Matches the certificate's HighestFindingSeverity. NOT_EVALUATED matches exactly the certificates whose findings have not been evaluated yet.

    • AcmCertificateArn (dict) --

      Matches certificates by the ARN of a related ACM certificate. It can match the certificate the ACM certificate holds now, or every certificate it has held. The ARN is compared exactly, case included, as ACM reports it.

      • Value (string) -- [REQUIRED]

        The ARN of the ACM certificate.

      • Match (string) -- [REQUIRED]

        Which of the ACM certificate's certificates to match.

    • PcaCertificateArn (string) --

      Matches the certificate that AWS Private Certificate Authority (AWS Private CA) issued with this certificate ARN. The ARN is compared exactly, case included, as AWS Private CA reports it.

    • PcaCertificateAuthorityArn (dict) --

      Matches certificates by the ARN of a related AWS Private CA certificate authority. It can match the certificates the certificate authority issued, or its own certificate. The ARN is compared exactly, case included, as AWS Private CA reports it.

      • Value (string) -- [REQUIRED]

        The ARN of the AWS Private CA certificate authority.

      • Relationship (string) -- [REQUIRED]

        How a matching certificate relates to the certificate authority.

    • IssuerWords (string) --

      Matches certificates whose X509Details.Issuer distinguished name contains every word of the value. Words can be in any order, and case does not matter.

      Words are split the same way the inventory splits the issuer name: at spaces and at punctuation, such as commas, equals signs, and hyphens. Letters joined by a period, a colon, or an apostrophe stay one word, such as example.com, x:y, or l'exemple. Each Chinese, Japanese, or Korean (CJK) ideograph is a separate word.

      Each word must match a whole word of the name. For example, amazon rsa and O=Amazon both match CN=Amazon RSA 2048 M03,O=Amazon,C=US, but amaz does not.

      The value must hold at least one letter or digit, and at most 64 words. The IssuerWords values of one filter can hold at most 512 words in total. Some characters, such as emoji, symbols, and ideographs, each count as one word toward these limits. IssuerWords does not match a certificate authority ARN.

    • SignatureAlgorithm (string) --

      Matches the certificate's X509Details.SignatureAlgorithm, such as SHA256WITHRSA. The value is a free string, not a closed list. It is compared in uppercase as a whole value, so sha256WithRSA matches SHA256WITHRSA, but SHA256 matches nothing. Leading and trailing whitespace is ignored. A certificate with no recorded signature algorithm matches no value.

type SortBy:

string

param SortBy:

The field to sort by. Defaults to NOT_AFTER.

type SortOrder:

string

param SortOrder:

The sort direction. Defaults to DESCENDING.

type MaxResults:

integer

param MaxResults:

The maximum number of certificates to return, 1 to 100. Defaults to 25.

type NextToken:

string

param NextToken:

The NextToken from the previous response, to read the next page.

rtype:

dict

returns:

Response Syntax

{
    'Certificates': [
        {
            'Identifier': 'string',
            'MaterialType': 'X509_CERTIFICATE',
            'Validity': {
                'NotBefore': datetime(2015, 1, 1),
                'NotAfter': datetime(2015, 1, 1)
            },
            'Identity': {
                'Subject': 'string',
                'Identifiers': [
                    'string',
                ],
                'HasAdditionalIdentifiers': True|False
            },
            'UsageCount': 123,
            'FindingCounts': {
                'Critical': 123,
                'High': 123,
                'Medium': 123,
                'Low': 123,
                'Informational': 123
            },
            'X509Details': {
                'Issuer': 'string',
                'SerialNumber': 'string',
                'NotBefore': datetime(2015, 1, 1),
                'NotAfter': datetime(2015, 1, 1),
                'SubjectAlternativeNames': [
                    'string',
                ],
                'KeyAlgorithm': 'RSA_1024'|'RSA_2048'|'RSA_3072'|'RSA_4096'|'EC_prime256v1'|'EC_secp384r1'|'EC_secp521r1'|'ED25519'|'ED448'|'OTHER',
                'IssuanceType': 'AMAZON_ISSUED'|'PRIVATE_CA_ISSUED'|'IMPORTED'|'EXTERNAL'|'PRIVATE_CA_DIRECT',
                'SignatureAlgorithm': 'string',
                'KeySizeBits': 123
            },
            'HighestFindingSeverity': 'CRITICAL'|'HIGH'|'MEDIUM'|'LOW'|'INFORMATIONAL'|'HEALTHY'|'NOT_APPLICABLE'|'NOT_EVALUATED',
            'RelatedResourceCount': 123
        },
    ],
    'NextToken': 'string',
    'TotalCount': 123,
    'TotalCountRelation': 'EXACT'|'AT_LEAST'
}

Response Structure

  • (dict) --

    • Certificates (list) --

      The certificates on this page, in the requested order.

      • (dict) --

        One certificate observed in the organization's accounts. This is a record of what was observed, not an AWS resource.

        • Identifier (string) --

          The certificate's identifier in the inventory.

        • MaterialType (string) --

          The kind of certificate.

        • Validity (dict) --

          When the certificate is valid.

          • NotBefore (datetime) --

            The start of the validity period.

          • NotAfter (datetime) --

            The end of the validity period.

        • Identity (dict) --

          Who or what the certificate identifies.

          • Subject (string) --

            The subject distinguished name. Absent for a certificate without a subject.

          • Identifiers (list) --

            The names the certificate identifies, such as its DNS subject alternative names. Holds at most the first 100 names. HasAdditionalIdentifiers says whether there are more. For every name, see SubjectAlternativeNames in the certificate's X509Details.

            • (string) --

          • HasAdditionalIdentifiers (boolean) --

            Whether the certificate has more identifiers than are returned in Identifiers. If true, only the first 100 are returned. If false, Identifiers holds them all.

        • UsageCount (integer) --

          How many places the certificate was observed in use, counted when the certificate was last collected. It can lag the TotalCount of ListInventoryUsages. It can also differ from InUseByCount in a related ACM certificate's metadata. InUseByCount is the length of the InUseBy list in ACM when the inventory last read it, not what the inventory observed.

        • FindingCounts (dict) --

          Counts of open findings by severity. Absent until findings have been evaluated for this certificate.

          • Critical (integer) --

            Open findings of critical severity.

          • High (integer) --

            Open findings of high severity.

          • Medium (integer) --

            Open findings of medium severity.

          • Low (integer) --

            Open findings of low severity.

          • Informational (integer) --

            Open findings of informational severity.

        • X509Details (dict) --

          Details of an X.509 certificate. Present when MaterialType is X509_CERTIFICATE.

          • Issuer (string) --

            The issuer distinguished name, exactly as in the certificate.

          • SerialNumber (string) --

            The serial number. Its format is not guaranteed: compare it, but do not parse it. Its format can differ from the format ACM or AWS Private CA reports for the same certificate.

          • NotBefore (datetime) --

            The start of the validity period.

          • NotAfter (datetime) --

            The end of the validity period.

          • SubjectAlternativeNames (list) --

            The subject alternative names.

            • (string) --

          • KeyAlgorithm (string) --

            The algorithm of the certificate's public key.

          • IssuanceType (string) --

            How the certificate was issued or brought into AWS.

          • SignatureAlgorithm (string) --

            The algorithm the issuer used to sign the certificate, as read from the certificate, such as SHA256WITHRSA or SHA384WITHECDSA. The values are not a closed list. Certificates from any issuer can use any signature algorithm, and new algorithms are added over time. Absent when the algorithm was not recorded.

          • KeySizeBits (integer) --

            The size of the public key in bits.

        • HighestFindingSeverity (string) --

          The certificate's health. CRITICAL to INFORMATIONAL is the highest severity among the open findings of the series in which the certificate is a current certificate. HEALTHY means rules apply and none has an open finding. NOT_APPLICABLE means no rule applies to the certificate. NOT_EVALUATED means its findings have not been evaluated yet. SearchInventory returns it for every certificate.

        • RelatedResourceCount (integer) --

          How many related resources the certificate has. These are the ACM certificates, AWS Private Certificate Authority (AWS Private CA) certificates, and AWS Private CA certificate authorities that ListInventoryRelatedResources lists for it. It is a whole number, 0 or more, with no upper bound. 0 means the certificate has none. It is counted each time the inventory updates the certificate, so it can lag the TotalCount of ListInventoryRelatedResources until the next update. Absent when it has not been counted for this certificate.

    • NextToken (string) --

      Pass this value as NextToken to read the next page. Absent on the last page.

    • TotalCount (integer) --

      How many certificates match the filter in total, not only on this page. Counted when each page is read, so it can change between pages if the inventory changes.

    • TotalCountRelation (string) --

      Whether TotalCount is exact or a lower bound.

DeleteMemberCertificateAuthority (new) Link ¶

Deletes a private certificate authority (CA) in a member account of the caller's organization. AWS Private Certificate Authority (AWS Private CA) applies the rules of its DeleteCertificateAuthority operation, including which CA states can be deleted and how long a deleted CA can be restored. For details, see DeleteCertificateAuthority in the AWS Private CA API Reference.

The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see UpdateMemberCertificateAuthority.

See also: AWS API Documentation

Request Syntax

client.delete_member_certificate_authority(
    CertificateAuthorityArn='string',
    PermanentDeletionTimeInDays=123
)
type CertificateAuthorityArn:

string

param CertificateAuthorityArn:

[REQUIRED]

The ARN of the certificate authority to delete.

type PermanentDeletionTimeInDays:

integer

param PermanentDeletionTimeInDays:

How many days the deleted certificate authority can be restored, 7 to 30. If you omit it, AWS Private Certificate Authority (AWS Private CA) applies its default; see DeleteCertificateAuthority in the AWS Private CA API Reference.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

RestoreMemberCertificateAuthority (new) Link ¶

Restores a deleted private certificate authority (CA) in a member account of the caller's organization. AWS Private Certificate Authority (AWS Private CA) applies the rules of its RestoreCertificateAuthority operation, including which CAs can be restored and until when. For details, see RestoreCertificateAuthority in the AWS Private CA API Reference.

The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see UpdateMemberCertificateAuthority.

See also: AWS API Documentation

Request Syntax

client.restore_member_certificate_authority(
    CertificateAuthorityArn='string'
)
type CertificateAuthorityArn:

string

param CertificateAuthorityArn:

[REQUIRED]

The ARN of the certificate authority to restore.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

PutInventoryConfiguration (new) Link ¶

Sets the organization's configuration for Certificate inventory for organizations, and returns it. The certificate inventory is the set of certificates observed in the organization's accounts.

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. Setup in the organization's accounts continues after the call returns. To follow it, read ProvisioningStatus with GetInventoryConfiguration.

The caller must be the organization's management account or its delegated administrator in AWS Organizations. Otherwise, the operation returns AccessDeniedException. The first call starts the organization's AWS Certificate Manager (ACM) plan (Essentials or Pro), so only the management account can make it. A delegated administrator can make later calls as soon as it is registered.

The call does not require that AWS Organizations trusted access is on, that all features are enabled in the organization, or that a delegated administrator is registered. Setup requires them. If a requirement is not met, GetInventoryConfiguration shows ProvisioningStatus FAILED, with a reason code and a message.

The operation returns ConflictException for these calls:

  • A first call with Status DISABLED.

  • A call from a Region other than the home Region.

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

DataRetentionDays is not kept when you omit it. A call without it sets retention to 90 days, even if a different value is stored.

LifecycleManagement turns Certificate actions for organizations on or off. Certificate actions are the operations that act on certificates and certificate authorities in the organization's member accounts. Omit LifecycleManagement to keep the stored value. The first call can turn certificate actions on, and no registered delegated administrator is needed. Status DISABLED also turns certificate actions off. Turning them on while Status is DISABLED returns ValidationException. To follow setup in the member accounts, read LifecycleManagement.ProvisioningStatus with GetInventoryConfiguration.

ExpiryNotification sets certificate expiry notifications. Omit it to keep the stored setting, or set Enabled to false to turn notifications off. With Enabled true, Channel and TopicArn are required. The topic must be a standard (non-FIFO) Amazon SNS topic in the management account and the home Region. It must also be in the partition of the endpoint you call. Otherwise, the operation returns ValidationException. Each save with Enabled true verifies the topic again after the call returns. To follow it, read LastDeliveryStatus with GetInventoryConfiguration.

A call that repeats the stored configuration returns it, even while a previous change is still being set up. To retry a failed setup, repeat the call with Status ENABLED after ProvisioningStatus is FAILED. With ExpiryNotification Enabled true, a repeated call also verifies the topic again.

InventoryTier names the organization's ACM plan: Essentials or Pro. It is optional. Omit it to keep the current plan. While the organization has no plan, such as on the first call, a call with Status ENABLED must name one. Otherwise, it returns ValidationException. With Status ENABLED, the named plan is the plan to subscribe to. The first plan and a higher plan take effect immediately. A lower plan takes effect at the end of the billing period.

With Status DISABLED, InventoryTier is ignored. Certificate actions turn off immediately. The plan ends at the end of the billing period, and collection stays on until then. Repeating the DISABLED call before then does not change the plan again. If the organization has no plan, a DISABLED call turns collection off immediately.

Until the plan ends, a Status ENABLED call that omits InventoryTier leaves the end in place. To read the scheduled end, use InventoryTierConfiguration.ScheduledChange in GetInventoryConfiguration. A call that names the ending plan returns ConflictException. A call that names the other plan replaces the scheduled end with that plan. A scheduled downgrade cannot be taken back either. While one is scheduled, a call that names the plan in effect returns ConflictException.

Only the management account can start, change, or end the plan. A delegated administrator call that would do so returns AccessDeniedException. A delegated administrator call succeeds when it omits InventoryTier or names the plan last requested. While the plan is scheduled to end, there is no requested plan, so a delegated administrator call that names any plan returns AccessDeniedException. The response does not include the plan. Read InventoryTierConfiguration with GetInventoryConfiguration, which can take a few seconds to show a change.

See also: AWS API Documentation

Request Syntax

client.put_inventory_configuration(
    RegionalScope={
        'Mode': 'ALL_REGIONS'|'INCLUDE'|'EXCLUDE',
        'Regions': [
            'string',
        ]
    },
    AccountScope={
        'Mode': 'ALL_ACCOUNTS'|'INCLUDE'|'EXCLUDE',
        'OrganizationalUnitIds': [
            'string',
        ],
        'AccountIds': [
            'string',
        ]
    },
    DataRetentionDays=123,
    Status='ENABLED'|'DISABLED',
    LifecycleManagement={
        'Status': 'ENABLED'|'DISABLED'
    },
    ExpiryNotification={
        'Enabled': True|False,
        'Channel': 'SNS',
        'TopicArn': 'string',
        'LeadTimeDays': 123,
        'Frequency': 'ONCE'|'DAILY'|'WEEKLY'
    },
    InventoryTier='ESSENTIALS'|'PRO'
)
type RegionalScope:

dict

param RegionalScope:

[REQUIRED]

The Regions to collect from.

  • Mode (string) -- [REQUIRED]

    How the Regions list is applied.

  • Regions (list) --

    The Regions to include or exclude. Required when Mode is INCLUDE or EXCLUDE, and not allowed when Mode is ALL_REGIONS.

    • (string) --

      An AWS Region code, such as us-west-2.

type AccountScope:

dict

param AccountScope:

[REQUIRED]

The accounts to collect from.

  • Mode (string) -- [REQUIRED]

    How AccountIds and OrganizationalUnitIds are applied.

  • OrganizationalUnitIds (list) --

    The organizational units to include or exclude.

    • (string) --

      An organizational unit ID, such as ou-ab12-cd34ef56.

  • AccountIds (list) --

    The accounts to include or exclude.

    • (string) --

      A 12-digit AWS account ID, such as 111122223333.

type DataRetentionDays:

integer

param DataRetentionDays:

How many days inventory data is kept, 90 to 365. When omitted, retention is set to 90 days, even if a different value is stored.

type Status:

string

param Status:

[REQUIRED]

ENABLED turns collection on. DISABLED turns collection off and keeps an existing configuration.

If the organization has an ACM plan, DISABLED instead ends the plan at the end of the billing period. Collection stays on until then, and the configuration's Status stays ENABLED. To see when the plan ends, read InventoryTierConfiguration.ScheduledChange with GetInventoryConfiguration. Certificate actions for organizations still turn off immediately. Without a plan, DISABLED turns collection off immediately.

DISABLED cannot create the organization's first configuration.

type LifecycleManagement:

dict

param LifecycleManagement:

Turns Certificate actions for organizations on or off. Certificate actions are the operations that act on certificates and certificate authorities in the organization's member accounts, such as RenewMemberCertificate. Omit it to keep the stored value.

  • Status (string) -- [REQUIRED]

    ENABLED turns Certificate actions for organizations on. DISABLED turns them off.

type ExpiryNotification:

dict

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

  • Enabled (boolean) --

    Whether notifications are sent. Defaults to false. When true, Channel and TopicArn are required.

  • Channel (string) --

    Where notifications are delivered. Set together with TopicArn.

  • TopicArn (string) --

    The Amazon SNS topic to publish to. Set together with Channel.

  • LeadTimeDays (integer) --

    Days before NotAfter that notifications start: 7, 30, 60, or 90. Defaults to 7.

  • Frequency (string) --

    How often a notification is sent for a certificate within LeadTimeDays. Defaults to ONCE.

type InventoryTier:

string

param InventoryTier:

The organization's ACM plan: Essentials or Pro. This API calls the ACM plan the inventory tier. Omit it to keep the current plan. With Status ENABLED, this is the plan to subscribe to. While the organization has no plan, such as on the first call, a call with Status ENABLED must name one. Otherwise, it returns ValidationException. With Status DISABLED, it is ignored, and the plan ends at the end of the billing period.

Only the organization's management account can start, change, or end the plan. A delegated administrator call that would do so returns AccessDeniedException, even when its IAM policy allows the action. PutInventoryConfiguration never returns the plan.

A template or script that always sends the same plan undoes a plan set another way. For example, it changes an upgrade made in the console back to the plan it sends. To leave the plan as it is, omit InventoryTier.

rtype:

dict

returns:

Response Syntax

{
    'Configuration': {
        'RegionalScope': {
            'Mode': 'ALL_REGIONS'|'INCLUDE'|'EXCLUDE',
            'Regions': [
                'string',
            ]
        },
        'AccountScope': {
            'Mode': 'ALL_ACCOUNTS'|'INCLUDE'|'EXCLUDE',
            'OrganizationalUnitIds': [
                'string',
            ],
            'AccountIds': [
                'string',
            ]
        },
        'DataRetentionDays': 123,
        'Status': 'ENABLED'|'DISABLED',
        'ProvisioningStatus': 'ENABLING'|'ENABLED'|'DISABLING'|'DISABLED'|'FAILED',
        'ProvisioningStatusReason': {
            'Code': 'TRUSTED_ACCESS_DISABLED'|'INTERNAL_FAILURE',
            'Message': 'string'
        },
        'HomeRegion': 'string',
        'LifecycleManagement': {
            'Status': 'ENABLED'|'DISABLED',
            'ProvisioningStatus': 'ENABLING'|'ENABLED'|'DISABLING'|'DISABLED'|'FAILED',
            'ProvisioningStatusReason': {
                'Code': 'TRUSTED_ACCESS_DISABLED'|'INTERNAL_FAILURE',
                'Message': 'string'
            }
        },
        'ExpiryNotification': {
            'Enabled': True|False,
            'Channel': 'SNS',
            'TopicArn': 'string',
            'LeadTimeDays': 123,
            'Frequency': 'ONCE'|'DAILY'|'WEEKLY'
        },
        'LastDeliveryStatus': {
            'Status': 'PENDING_VERIFICATION'|'VERIFIED'|'VERIFICATION_FAILED'|'DELIVERED'|'DELIVERY_FAILED',
            'UpdatedAt': datetime(2015, 1, 1),
            'Message': 'string'
        },
        'InventoryTierConfiguration': {
            'Tier': 'ESSENTIALS'|'PRO',
            'Status': 'PENDING'|'ACTIVE',
            'ScheduledChange': {
                'Tier': 'ESSENTIALS'|'PRO',
                'EffectiveAt': datetime(2015, 1, 1)
            }
        }
    }
}

Response Structure

  • (dict) --

    • Configuration (dict) --

      The configuration as stored.

      • RegionalScope (dict) --

        The Regions collected from.

        • Mode (string) --

          How the Regions list is applied.

        • Regions (list) --

          The Regions to include or exclude. Required when Mode is INCLUDE or EXCLUDE, and not allowed when Mode is ALL_REGIONS.

          • (string) --

            An AWS Region code, such as us-west-2.

      • AccountScope (dict) --

        The accounts collected from.

        • Mode (string) --

          How AccountIds and OrganizationalUnitIds are applied.

        • OrganizationalUnitIds (list) --

          The organizational units to include or exclude.

          • (string) --

            An organizational unit ID, such as ou-ab12-cd34ef56.

        • AccountIds (list) --

          The accounts to include or exclude.

          • (string) --

            A 12-digit AWS account ID, such as 111122223333.

      • DataRetentionDays (integer) --

        How many days inventory data is kept.

      • Status (string) --

        Whether collection is on. After a DISABLED request while the organization has an ACM plan, Status stays ENABLED until the plan ends at the end of the billing period.

      • ProvisioningStatus (string) --

        How far setup of the current configuration has progressed in the organization's accounts.

      • ProvisioningStatusReason (dict) --

        Why setup failed. Present only when ProvisioningStatus is FAILED.

        • Code (string) --

          The cause, as a code.

        • Message (string) --

          The cause and what to do about it, for a person to read.

      • HomeRegion (string) --

        The home Region: the Region where the configuration is managed. It is the Region of the first PutInventoryConfiguration call.

      • LifecycleManagement (dict) --

        The state of Certificate actions for organizations. Certificate actions are the operations that act on certificates and certificate authorities in the organization's member accounts, such as RenewMemberCertificate. Status is DISABLED until certificate actions are first turned on.

        • Status (string) --

          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, such as RenewMemberCertificate. DISABLED until they are first turned on.

        • ProvisioningStatus (string) --

          How far setup of Certificate actions for organizations has progressed in the organization's member accounts.

        • ProvisioningStatusReason (dict) --

          Why setup failed. Present only when ProvisioningStatus is FAILED.

          • Code (string) --

            The cause, as a code.

          • Message (string) --

            The cause and what to do about it, for a person to read.

      • ExpiryNotification (dict) --

        Certificate expiry notifications as stored. Until they are configured, Enabled is false, LeadTimeDays is 7, and Frequency is ONCE.

        • Enabled (boolean) --

          Whether notifications are sent. Defaults to false. When true, Channel and TopicArn are required.

        • Channel (string) --

          Where notifications are delivered. Set together with TopicArn.

        • TopicArn (string) --

          The Amazon SNS topic to publish to. Set together with Channel.

        • LeadTimeDays (integer) --

          Days before NotAfter that notifications start: 7, 30, 60, or 90. Defaults to 7.

        • Frequency (string) --

          How often a notification is sent for a certificate within LeadTimeDays. Defaults to ONCE.

      • LastDeliveryStatus (dict) --

        The latest verification or delivery outcome for ExpiryNotification. Absent while inventory Status is DISABLED or notifications are off.

        • Status (string) --

          The latest outcome.

        • UpdatedAt (datetime) --

          When Status last changed. Can be absent while PENDING_VERIFICATION.

        • Message (string) --

          Why verification or delivery failed. Present only for VERIFICATION_FAILED and DELIVERY_FAILED.

      • InventoryTierConfiguration (dict) --

        The organization's ACM plan. Present while the organization has a plan or one is being applied, and while a scheduled change is pending. Absent when the organization has no plan. Only GetInventoryConfiguration returns it. PutInventoryConfiguration never does.

        • Tier (string) --

          The plan in effect, or, while Status is PENDING, the plan being applied.

        • Status (string) --

          PENDING while a requested plan is not yet in effect, usually for a few seconds after PutInventoryConfiguration. ACTIVE after the plan takes effect. A scheduled downgrade or end of the plan shows as ACTIVE with a ScheduledChange.

        • ScheduledChange (dict) --

          A change that is scheduled but not yet in effect: a move to a lower plan, or the end of the plan. Absent when no change is scheduled.

          • Tier (string) --

            The lower plan that takes effect. Absent when the plan ends with no plan to follow.

          • EffectiveAt (datetime) --

            When the change takes effect.

RevokeMemberIssuedCertificate (new) Link ¶

Revokes a certificate that a private certificate authority (CA) in a member account of the caller's organization issued. AWS Private Certificate Authority (AWS Private CA) applies the rules of its RevokeCertificate operation, including which certificates it can revoke. For details, see RevokeCertificate in the AWS Private CA API Reference.

The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see UpdateMemberCertificateAuthority.

See also: AWS API Documentation

Request Syntax

client.revoke_member_issued_certificate(
    CertificateAuthorityArn='string',
    CertificateSerial='string',
    RevocationReason='UNSPECIFIED'|'KEY_COMPROMISE'|'CERTIFICATE_AUTHORITY_COMPROMISE'|'AFFILIATION_CHANGED'|'SUPERSEDED'|'CESSATION_OF_OPERATION'|'PRIVILEGE_WITHDRAWN'|'A_A_COMPROMISE'
)
type CertificateAuthorityArn:

string

param CertificateAuthorityArn:

[REQUIRED]

The ARN of the certificate authority that issued the certificate.

type CertificateSerial:

string

param CertificateSerial:

[REQUIRED]

The serial number of the certificate to revoke.

type RevocationReason:

string

param RevocationReason:

[REQUIRED]

Why the certificate is revoked.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

RevokeMemberCertificate (new) Link ¶

Revokes an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization, and returns the ARN of the revoked certificate. ACM applies the rules of its RevokeCertificate operation, including which certificates it can revoke. For details, see RevokeCertificate in the AWS Certificate Manager API Reference.

The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see RenewMemberCertificate.

See also: AWS API Documentation

Request Syntax

client.revoke_member_certificate(
    CertificateArn='string',
    RevocationReason='UNSPECIFIED'|'KEY_COMPROMISE'|'CA_COMPROMISE'|'AFFILIATION_CHANGED'|'SUPERCEDED'|'SUPERSEDED'|'CESSATION_OF_OPERATION'|'CERTIFICATE_HOLD'|'REMOVE_FROM_CRL'|'PRIVILEGE_WITHDRAWN'|'A_A_COMPROMISE'
)
type CertificateArn:

string

param CertificateArn:

[REQUIRED]

The ARN of the certificate to revoke.

type RevocationReason:

string

param RevocationReason:

[REQUIRED]

Why the certificate is revoked.

rtype:

dict

returns:

Response Syntax

{
    'CertificateArn': 'string'
}

Response Structure

  • (dict) --

    • CertificateArn (string) --

      The ARN of the revoked certificate, as ACM returns it.

RenewMemberCertificate (new) Link ¶

Renews an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization. ACM applies the rules of its RenewCertificate operation, including which certificates it can renew. For details, see RenewCertificate in the AWS Certificate Manager API Reference.

The caller must be the organization's management account or its delegated administrator. The operation acts in the member account and Region that the certificate ARN names. It returns AccessDeniedException in these cases, and, except where noted, the message names the unmet condition:

  • The caller's account is not in an organization, or the organization is not active in AWS Certificate Manager.

  • The caller is neither the management account nor the delegated administrator.

  • The certificate is in the caller's own account. Call the ACM operation in that account instead.

  • The organization has no certificate inventory configuration.

  • Certificate actions for organizations are turned off. Certificate actions are the operations that act on certificates and certificate authorities in member accounts. Turn them on with LifecycleManagement in PutInventoryConfiguration.

  • The certificate's Region is outside the RegionalScope of the configuration.

  • The certificate's account is not an active member of the organization, or is outside the AccountScope of the configuration.

  • The Regions enabled for the certificate's account are not recorded yet.

  • AWS Certificate Manager is not authorized to act in the certificate's account, because the account is not in the organization or access setup there has not finished.

If member operations are not available in the Region you call, the operation returns AccessDeniedException with the message Unauthorized, before any of the checks above. An ARN that is malformed, does not name an ACM certificate, is in another partition, or names an unknown Region also returns AccessDeniedException with the message Unauthorized. A call outside the organization's home Region returns ResourceNotFoundException, and the message names the home Region. A certificate ARN whose Region is not enabled for its account, or where ACM is not available, returns ValidationException. A certificate ARN that is too long for the operation to act on, even within the length limit of CertificateArn, also returns ValidationException.

Errors that ACM returns in the member account are returned as these errors:

  • ResourceNotFoundException: ACM did not find the certificate.

  • ConflictException: ACM reports a conflict, such as a certificate state that does not allow the change.

  • ValidationException: ACM rejects the request, or reports that a quota is reached.

  • ThrottlingException: ACM throttles the call.

Any other error returns InternalServerException.

See also: AWS API Documentation

Request Syntax

client.renew_member_certificate(
    CertificateArn='string'
)
type CertificateArn:

string

param CertificateArn:

[REQUIRED]

The ARN of the certificate to renew.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --