Skip to main content

Python SDK for ACM.

Project description

Getting Started

Installation

pip install aws-sdk-acm

Usage

from aws_sdk_acm import AsyncACMClient


async def main():
    async with AsyncACMClient() as s3:
        # Example: call the add_tags_to_certificate operation
        response = await s3.add_tags_to_certificate()
        print(response)

Pagination

Some operations in this SDK support pagination. If the operation supports pagination it will have an iter_ prefixed method that returns an async iterator.

from aws_sdk_acm import AsyncACMClient


async def main():
    async with AsyncACMClient() as s3:
        # Example: paginate over list_certificates
        async for item in s3.iter_list_certificates():
            print(item)

Error Handling

The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.

from aws_sdk_acm import AsyncACMClient
from aws_sdk_acm.error import InvalidArnException


async def main():
    async with AsyncACMClient() as s3:
        try:
            await s3.add_tags_to_certificate()
        except InvalidArnException as e:
            print(f"Error: {e}")
            print(e.data)  # additional error data

Retrying

The SDK retries failed operations automatically. Retry behaviour follows the Smithy specification: errors are retried based on their is_retryable and is_throttling_error attributes. Throttling errors use a longer base delay. Network-level failures (connection errors and timeouts) are also retried. Non-retryable errors, such as client errors without the @retryable trait, are raised immediately without further attempts.

The number of attempts defaults to 3 and can be changed at the client level via retry_max_attempts, or per call via config_overrides.

from aws_sdk_acm import AsyncACMClient


async def main():
    async with AsyncACMClient() as s3:
        # Default: 3 attempts for every operation
        response = await s3.add_tags_to_certificate()

        # Override per operation
        response = await s3.add_tags_to_certificate(config_overrides={"retry_max_attempts": 5})

        # Disable retries for this call
        response = await s3.add_tags_to_certificate(config_overrides={"retry_max_attempts": 1})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_sdk_acm-0.1.1.tar.gz (91.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_sdk_acm-0.1.1-py3-none-any.whl (180.5 kB view details)

Uploaded Python 3

File details

Details for the file aws_sdk_acm-0.1.1.tar.gz.

File metadata

  • Download URL: aws_sdk_acm-0.1.1.tar.gz
  • Upload date:
  • Size: 91.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aws_sdk_acm-0.1.1.tar.gz
Algorithm Hash digest
SHA256 47ac16dde3a1a29e710fbefbf73540d911458ee196810097aac1bb664f9c1661
MD5 fcdb1226489afdca8fa55d54e23ceffe
BLAKE2b-256 8cbe892287e056982a7597a58f99c5f5f58fde1f30c3076cb836ed100597e787

See more details on using hashes here.

Provenance

The following attestation bundles were made for aws_sdk_acm-0.1.1.tar.gz:

Publisher: auto-publish.yml on kap-sh/aws-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aws_sdk_acm-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aws_sdk_acm-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 180.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aws_sdk_acm-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b70e2e4170cd7749da719dbd9c0ea054504dff8d016ec682d62968b10b58e0c
MD5 910a7899863f878a9af06b026cff9522
BLAKE2b-256 6897a608047b991b29034e233a3ae4be6d64df8a4970aee47b9c59921c03b292

See more details on using hashes here.

Provenance

The following attestation bundles were made for aws_sdk_acm-0.1.1-py3-none-any.whl:

Publisher: auto-publish.yml on kap-sh/aws-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page