Skip to content

ACMClient#

Index > ACM > ACMClient

Auto-generated documentation for ACM type annotations stubs module types-aiobotocore-acm.

ACMClient#

Type annotations and code completion for session.create_client("acm") boto3 documentation

ACMClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_acm.client import ACMClient

session = get_session()
async with session.create_client("acm") as client:
    client: ACMClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("acm").exceptions structure.

ACMClient.exceptions usage example

async with session.create_client("acm") as client:
    try:
        do_something(client)
    except (
            client.AccessDeniedException,
        client.ClientError,
        client.ConflictException,
        client.InvalidArgsException,
        client.InvalidArnException,
        client.InvalidDomainValidationOptionsException,
        client.InvalidParameterException,
        client.InvalidStateException,
        client.InvalidTagException,
        client.LimitExceededException,
        client.RequestInProgressException,
        client.ResourceInUseException,
        client.ResourceNotFoundException,
        client.TagPolicyException,
        client.ThrottlingException,
        client.TooManyTagsException,
        client.ValidationException,
    ) as e:
        print(e)
ACMClient usage type checking example

from types_aiobotocore_acm.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods#

add_tags_to_certificate#

Adds one or more tags to an ACM certificate.

Type annotations and code completion for session.create_client("acm").add_tags_to_certificate method. boto3 documentation

# add_tags_to_certificate method definition

await def add_tags_to_certificate(
    self,
    *,
    CertificateArn: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See EmptyResponseMetadataTypeDef
# add_tags_to_certificate method usage example with argument unpacking

kwargs: AddTagsToCertificateRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
    "Tags": ...,
}

parent.add_tags_to_certificate(**kwargs)
  1. See AddTagsToCertificateRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("acm").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for session.create_client("acm").close method. boto3 documentation

# close method definition

await def close(
    self,
) -> None:
    ...

delete_certificate#

Deletes a certificate and its associated private key.

Type annotations and code completion for session.create_client("acm").delete_certificate method. boto3 documentation

# delete_certificate method definition

await def delete_certificate(
    self,
    *,
    CertificateArn: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_certificate method usage example with argument unpacking

kwargs: DeleteCertificateRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
}

parent.delete_certificate(**kwargs)
  1. See DeleteCertificateRequestRequestTypeDef

describe_certificate#

Returns detailed metadata about the specified ACM certificate.

Type annotations and code completion for session.create_client("acm").describe_certificate method. boto3 documentation

# describe_certificate method definition

await def describe_certificate(
    self,
    *,
    CertificateArn: str,
) -> DescribeCertificateResponseTypeDef:  # (1)
    ...
  1. See DescribeCertificateResponseTypeDef
# describe_certificate method usage example with argument unpacking

kwargs: DescribeCertificateRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
}

parent.describe_certificate(**kwargs)
  1. See DescribeCertificateRequestRequestTypeDef

export_certificate#

Exports a private certificate issued by a private certificate authority (CA) for use anywhere.

Type annotations and code completion for session.create_client("acm").export_certificate method. boto3 documentation

# export_certificate method definition

await def export_certificate(
    self,
    *,
    CertificateArn: str,
    Passphrase: Union[str, bytes, IO[Any], StreamingBody],
) -> ExportCertificateResponseTypeDef:  # (1)
    ...
  1. See ExportCertificateResponseTypeDef
# export_certificate method usage example with argument unpacking

kwargs: ExportCertificateRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
    "Passphrase": ...,
}

parent.export_certificate(**kwargs)
  1. See ExportCertificateRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.create_client("acm").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_account_configuration#

Returns the account configuration options associated with an Amazon Web Services account.

Type annotations and code completion for session.create_client("acm").get_account_configuration method. boto3 documentation

# get_account_configuration method definition

await def get_account_configuration(
    self,
) -> GetAccountConfigurationResponseTypeDef:  # (1)
    ...
  1. See GetAccountConfigurationResponseTypeDef

get_certificate#

Retrieves an Amazon-issued certificate and its certificate chain.

Type annotations and code completion for session.create_client("acm").get_certificate method. boto3 documentation

# get_certificate method definition

await def get_certificate(
    self,
    *,
    CertificateArn: str,
) -> GetCertificateResponseTypeDef:  # (1)
    ...
  1. See GetCertificateResponseTypeDef
# get_certificate method usage example with argument unpacking

kwargs: GetCertificateRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
}

parent.get_certificate(**kwargs)
  1. See GetCertificateRequestRequestTypeDef

import_certificate#

Imports a certificate into Certificate Manager (ACM) to use with services that are integrated with ACM.

Type annotations and code completion for session.create_client("acm").import_certificate method. boto3 documentation

# import_certificate method definition

await def import_certificate(
    self,
    *,
    Certificate: Union[str, bytes, IO[Any], StreamingBody],
    PrivateKey: Union[str, bytes, IO[Any], StreamingBody],
    CertificateArn: str = ...,
    CertificateChain: Union[str, bytes, IO[Any], StreamingBody] = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (1)
) -> ImportCertificateResponseTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See ImportCertificateResponseTypeDef
# import_certificate method usage example with argument unpacking

kwargs: ImportCertificateRequestRequestTypeDef = {  # (1)
    "Certificate": ...,
    "PrivateKey": ...,
}

parent.import_certificate(**kwargs)
  1. See ImportCertificateRequestRequestTypeDef

list_certificates#

Retrieves a list of certificate ARNs and domain names.

Type annotations and code completion for session.create_client("acm").list_certificates method. boto3 documentation

# list_certificates method definition

await def list_certificates(
    self,
    *,
    CertificateStatuses: Sequence[CertificateStatusType] = ...,  # (1)
    Includes: FiltersTypeDef = ...,  # (2)
    NextToken: str = ...,
    MaxItems: int = ...,
    SortBy: SortByType = ...,  # (3)
    SortOrder: SortOrderType = ...,  # (4)
) -> ListCertificatesResponseTypeDef:  # (5)
    ...
  1. See CertificateStatusType
  2. See FiltersTypeDef
  3. See SortByType
  4. See SortOrderType
  5. See ListCertificatesResponseTypeDef
# list_certificates method usage example with argument unpacking

kwargs: ListCertificatesRequestRequestTypeDef = {  # (1)
    "CertificateStatuses": ...,
}

parent.list_certificates(**kwargs)
  1. See ListCertificatesRequestRequestTypeDef

list_tags_for_certificate#

Lists the tags that have been applied to the ACM certificate.

Type annotations and code completion for session.create_client("acm").list_tags_for_certificate method. boto3 documentation

# list_tags_for_certificate method definition

await def list_tags_for_certificate(
    self,
    *,
    CertificateArn: str,
) -> ListTagsForCertificateResponseTypeDef:  # (1)
    ...
  1. See ListTagsForCertificateResponseTypeDef
# list_tags_for_certificate method usage example with argument unpacking

kwargs: ListTagsForCertificateRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
}

parent.list_tags_for_certificate(**kwargs)
  1. See ListTagsForCertificateRequestRequestTypeDef

put_account_configuration#

Adds or modifies account-level configurations in ACM.

Type annotations and code completion for session.create_client("acm").put_account_configuration method. boto3 documentation

# put_account_configuration method definition

await def put_account_configuration(
    self,
    *,
    IdempotencyToken: str,
    ExpiryEvents: ExpiryEventsConfigurationTypeDef = ...,  # (1)
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See ExpiryEventsConfigurationTypeDef
  2. See EmptyResponseMetadataTypeDef
# put_account_configuration method usage example with argument unpacking

kwargs: PutAccountConfigurationRequestRequestTypeDef = {  # (1)
    "IdempotencyToken": ...,
}

parent.put_account_configuration(**kwargs)
  1. See PutAccountConfigurationRequestRequestTypeDef

remove_tags_from_certificate#

Remove one or more tags from an ACM certificate.

Type annotations and code completion for session.create_client("acm").remove_tags_from_certificate method. boto3 documentation

# remove_tags_from_certificate method definition

await def remove_tags_from_certificate(
    self,
    *,
    CertificateArn: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See EmptyResponseMetadataTypeDef
# remove_tags_from_certificate method usage example with argument unpacking

kwargs: RemoveTagsFromCertificateRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
    "Tags": ...,
}

parent.remove_tags_from_certificate(**kwargs)
  1. See RemoveTagsFromCertificateRequestRequestTypeDef

renew_certificate#

Renews an eligible ACM certificate.

Type annotations and code completion for session.create_client("acm").renew_certificate method. boto3 documentation

# renew_certificate method definition

await def renew_certificate(
    self,
    *,
    CertificateArn: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# renew_certificate method usage example with argument unpacking

kwargs: RenewCertificateRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
}

parent.renew_certificate(**kwargs)
  1. See RenewCertificateRequestRequestTypeDef

request_certificate#

Requests an ACM certificate for use with other Amazon Web Services services.

Type annotations and code completion for session.create_client("acm").request_certificate method. boto3 documentation

# request_certificate method definition

await def request_certificate(
    self,
    *,
    DomainName: str,
    ValidationMethod: ValidationMethodType = ...,  # (1)
    SubjectAlternativeNames: Sequence[str] = ...,
    IdempotencyToken: str = ...,
    DomainValidationOptions: Sequence[DomainValidationOptionTypeDef] = ...,  # (2)
    Options: CertificateOptionsTypeDef = ...,  # (3)
    CertificateAuthorityArn: str = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (4)
    KeyAlgorithm: KeyAlgorithmType = ...,  # (5)
) -> RequestCertificateResponseTypeDef:  # (6)
    ...
  1. See ValidationMethodType
  2. See DomainValidationOptionTypeDef
  3. See CertificateOptionsTypeDef
  4. See TagTypeDef
  5. See KeyAlgorithmType
  6. See RequestCertificateResponseTypeDef
# request_certificate method usage example with argument unpacking

kwargs: RequestCertificateRequestRequestTypeDef = {  # (1)
    "DomainName": ...,
}

parent.request_certificate(**kwargs)
  1. See RequestCertificateRequestRequestTypeDef

resend_validation_email#

Resends the email that requests domain ownership validation.

Type annotations and code completion for session.create_client("acm").resend_validation_email method. boto3 documentation

# resend_validation_email method definition

await def resend_validation_email(
    self,
    *,
    CertificateArn: str,
    Domain: str,
    ValidationDomain: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# resend_validation_email method usage example with argument unpacking

kwargs: ResendValidationEmailRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
    "Domain": ...,
    "ValidationDomain": ...,
}

parent.resend_validation_email(**kwargs)
  1. See ResendValidationEmailRequestRequestTypeDef

update_certificate_options#

Updates a certificate.

Type annotations and code completion for session.create_client("acm").update_certificate_options method. boto3 documentation

# update_certificate_options method definition

await def update_certificate_options(
    self,
    *,
    CertificateArn: str,
    Options: CertificateOptionsTypeDef,  # (1)
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See CertificateOptionsTypeDef
  2. See EmptyResponseMetadataTypeDef
# update_certificate_options method usage example with argument unpacking

kwargs: UpdateCertificateOptionsRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
    "Options": ...,
}

parent.update_certificate_options(**kwargs)
  1. See UpdateCertificateOptionsRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("acm").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> ACMClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("acm").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator#

Type annotations and code completion for session.create_client("acm").get_paginator method with overloads.

get_waiter#

Type annotations and code completion for session.create_client("acm").get_waiter method with overloads.