Skip to content

Examples#

Index > SignerDataPlane > Examples

Auto-generated documentation for SignerDataPlane type annotations stubs module types-boto3-signer-data.

Client#

Implicit type annotations#

Can be used with types-boto3[signer-data] package installed.

Write your SignerDataPlane code as usual, type checking and code completion should work out of the box.

Client method usage example#

# SignerDataPlaneClient usage example

from boto3.session import Session


session = Session()

client = session.client("signer-data")  # (1)
result = client.get_revocation_status()  # (2)
  1. client: SignerDataPlaneClient
  2. result: GetRevocationStatusResponseTypeDef

Explicit type annotations#

With types-boto3-lite[signer-data] or a standalone types_boto3_signer_data package, you have to explicitly specify client: SignerDataPlaneClient type annotation.

All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.

Client method usage example#

# SignerDataPlaneClient usage example with type annotations

from boto3.session import Session

from types_boto3_signer_data.client import SignerDataPlaneClient
from types_boto3_signer_data.type_defs import GetRevocationStatusResponseTypeDef
from types_boto3_signer_data.type_defs import GetRevocationStatusRequestTypeDef


session = Session()

client: SignerDataPlaneClient = session.client("signer-data")

kwargs: GetRevocationStatusRequestTypeDef = {...}
result: GetRevocationStatusResponseTypeDef = client.get_revocation_status(**kwargs)