SupplyChainClient#
Index > SupplyChain > SupplyChainClient
Auto-generated documentation for SupplyChain type annotations stubs module types-aiobotocore-supplychain.
SupplyChainClient#
Type annotations and code completion for session.client("supplychain")
boto3 documentation
# SupplyChainClient usage example
from aioboto3.session import Session
from types_aiobotocore_supplychain.client import SupplyChainClient
session = Session()
async with session.client("supplychain") as client:
client: SupplyChainClient
Exceptions#
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("supplychain").exceptions
structure.
# SupplyChainClient.exceptions usage example
async with session.client("supplychain") as client:
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# SupplyChainClient.exceptions type checking example
from types_aiobotocore_supplychain.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for session.client("supplychain").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.client("supplychain").close
method.
boto3 documentation
# close method definition
await def close(
self,
) -> None:
...
create_bill_of_materials_import_job#
CreateBillOfMaterialsImportJob creates an import job for the Product Bill Of Materials (BOM) entity.
Type annotations and code completion for session.client("supplychain").create_bill_of_materials_import_job
method.
boto3 documentation
# create_bill_of_materials_import_job method definition
await def create_bill_of_materials_import_job(
self,
*,
instanceId: str,
s3uri: str,
clientToken: str = ...,
) -> CreateBillOfMaterialsImportJobResponseTypeDef: # (1)
...
# create_bill_of_materials_import_job method usage example with argument unpacking
kwargs: CreateBillOfMaterialsImportJobRequestRequestTypeDef = { # (1)
"instanceId": ...,
"s3uri": ...,
}
parent.create_bill_of_materials_import_job(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("supplychain").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_bill_of_materials_import_job#
Get status and details of a BillOfMaterialsImportJob.
Type annotations and code completion for session.client("supplychain").get_bill_of_materials_import_job
method.
boto3 documentation
# get_bill_of_materials_import_job method definition
await def get_bill_of_materials_import_job(
self,
*,
instanceId: str,
jobId: str,
) -> GetBillOfMaterialsImportJobResponseTypeDef: # (1)
...
# get_bill_of_materials_import_job method usage example with argument unpacking
kwargs: GetBillOfMaterialsImportJobRequestRequestTypeDef = { # (1)
"instanceId": ...,
"jobId": ...,
}
parent.get_bill_of_materials_import_job(**kwargs)
__aenter__#
Type annotations and code completion for session.client("supplychain").__aenter__
method.
boto3 documentation
# __aenter__ method definition
await def __aenter__(
self,
) -> SupplyChainClient:
...
__aexit__#
Type annotations and code completion for session.client("supplychain").__aexit__
method.
boto3 documentation
# __aexit__ method definition
await def __aexit__(
self,
exc_type: Any,
exc_val: Any,
exc_tb: Any,
) -> Any:
...