B2BIClient#
Auto-generated documentation for B2BI type annotations stubs module mypy-boto3-b2bi.
B2BIClient#
Type annotations and code completion for boto3.client("b2bi")
.
boto3 documentation
# B2BIClient usage example
from boto3.session import Session
from mypy_boto3_b2bi.client import B2BIClient
def get_b2bi_client() -> B2BIClient:
return Session().client("b2bi")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("b2bi").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("b2bi")
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)
# Exceptions.exceptions type checking example
from mypy_boto3_b2bi.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 boto3.client("b2bi").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 boto3.client("b2bi").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_capability#
Instantiates a capability based on the specified parameters.
Type annotations and code completion for boto3.client("b2bi").create_capability
method.
boto3 documentation
# create_capability method definition
def create_capability(
self,
*,
name: str,
type: CapabilityTypeType, # (1)
configuration: CapabilityConfigurationTypeDef, # (2)
instructionsDocuments: Sequence[S3LocationTypeDef] = ..., # (3)
clientToken: str = ...,
tags: Sequence[TagTypeDef] = ..., # (4)
) -> CreateCapabilityResponseTypeDef: # (5)
...
- See CapabilityTypeType
- See CapabilityConfigurationTypeDef
- See S3LocationTypeDef
- See TagTypeDef
- See CreateCapabilityResponseTypeDef
# create_capability method usage example with argument unpacking
kwargs: CreateCapabilityRequestRequestTypeDef = { # (1)
"name": ...,
"type": ...,
"configuration": ...,
}
parent.create_capability(**kwargs)
create_partnership#
Creates a partnership between a customer and a trading partner, based on the supplied parameters.
Type annotations and code completion for boto3.client("b2bi").create_partnership
method.
boto3 documentation
# create_partnership method definition
def create_partnership(
self,
*,
profileId: str,
name: str,
email: str,
capabilities: Sequence[str],
phone: str = ...,
clientToken: str = ...,
tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreatePartnershipResponseTypeDef: # (2)
...
# create_partnership method usage example with argument unpacking
kwargs: CreatePartnershipRequestRequestTypeDef = { # (1)
"profileId": ...,
"name": ...,
"email": ...,
"capabilities": ...,
}
parent.create_partnership(**kwargs)
create_profile#
Creates a customer profile.
Type annotations and code completion for boto3.client("b2bi").create_profile
method.
boto3 documentation
# create_profile method definition
def create_profile(
self,
*,
name: str,
phone: str,
businessName: str,
logging: LoggingType, # (1)
email: str = ...,
clientToken: str = ...,
tags: Sequence[TagTypeDef] = ..., # (2)
) -> CreateProfileResponseTypeDef: # (3)
...
- See LoggingType
- See TagTypeDef
- See CreateProfileResponseTypeDef
# create_profile method usage example with argument unpacking
kwargs: CreateProfileRequestRequestTypeDef = { # (1)
"name": ...,
"phone": ...,
"businessName": ...,
"logging": ...,
}
parent.create_profile(**kwargs)
create_transformer#
Creates a transformer.
Type annotations and code completion for boto3.client("b2bi").create_transformer
method.
boto3 documentation
# create_transformer method definition
def create_transformer(
self,
*,
name: str,
fileFormat: FileFormatType, # (1)
mappingTemplate: str,
ediType: EdiTypeTypeDef, # (2)
sampleDocument: str = ...,
clientToken: str = ...,
tags: Sequence[TagTypeDef] = ..., # (3)
) -> CreateTransformerResponseTypeDef: # (4)
...
- See FileFormatType
- See EdiTypeTypeDef
- See TagTypeDef
- See CreateTransformerResponseTypeDef
# create_transformer method usage example with argument unpacking
kwargs: CreateTransformerRequestRequestTypeDef = { # (1)
"name": ...,
"fileFormat": ...,
"mappingTemplate": ...,
"ediType": ...,
}
parent.create_transformer(**kwargs)
delete_capability#
Deletes the specified capability.
Type annotations and code completion for boto3.client("b2bi").delete_capability
method.
boto3 documentation
# delete_capability method definition
def delete_capability(
self,
*,
capabilityId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_capability method usage example with argument unpacking
kwargs: DeleteCapabilityRequestRequestTypeDef = { # (1)
"capabilityId": ...,
}
parent.delete_capability(**kwargs)
delete_partnership#
Deletes the specified partnership.
Type annotations and code completion for boto3.client("b2bi").delete_partnership
method.