DataExchangeClient
Index > DataExchange > DataExchangeClient
Auto-generated documentation for DataExchange type annotations stubs module mypy-boto3-dataexchange.
DataExchangeClient
Type annotations and code completion for boto3.client("dataexchange")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_dataexchange.client import DataExchangeClient
def get_dataexchange_client() -> DataExchangeClient:
return Session().client("dataexchange")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("dataexchange").exceptions
structure.
client = boto3.client("dataexchange")
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.ConflictException,
client.InternalServerException,
client.ResourceNotFoundException,
client.ServiceLimitExceededException,
client.ThrottlingException,
client.ValidationException,
) as e:
print(e)
from mypy_boto3_dataexchange.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("dataexchange").can_paginate
method.
boto3 documentation
cancel_job
This operation cancels a job.
Type annotations and code completion for boto3.client("dataexchange").cancel_job
method.
boto3 documentation
kwargs: CancelJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.cancel_job(**kwargs)
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("dataexchange").close
method.
boto3 documentation
create_data_set
This operation creates a data set.
Type annotations and code completion for boto3.client("dataexchange").create_data_set
method.
boto3 documentation
def create_data_set(
self,
*,
AssetType: AssetTypeType, # (1)
Description: str,
Name: str,
Tags: Mapping[str, str] = ...,
) -> CreateDataSetResponseTypeDef: # (2)
...
kwargs: CreateDataSetRequestRequestTypeDef = { # (1)
"AssetType": ...,
"Description": ...,
"Name": ...,
}
parent.create_data_set(**kwargs)
create_event_action
This operation creates an event action.
Type annotations and code completion for boto3.client("dataexchange").create_event_action
method.
boto3 documentation
def create_event_action(
self,
*,
Action: ActionTypeDef, # (1)
Event: EventTypeDef, # (2)
) -> CreateEventActionResponseTypeDef: # (3)
...
kwargs: CreateEventActionRequestRequestTypeDef = { # (1)
"Action": ...,
"Event": ...,
}
parent.create_event_action(**kwargs)
create_job
This operation creates a job.
Type annotations and code completion for boto3.client("dataexchange").create_job
method.
boto3 documentation
def create_job(
self,
*,
Details: RequestDetailsTypeDef, # (1)
Type: TypeType, # (2)
) -> CreateJobResponseTypeDef: # (3)
...
- See RequestDetailsTypeDef
- See TypeType
- See CreateJobResponseTypeDef
kwargs: CreateJobRequestRequestTypeDef = { # (1)
"Details": ...,
"Type": ...,
}
parent.create_job(**kwargs)
create_revision
This operation creates a revision for a data set.
Type annotations and code completion for boto3.client("dataexchange").create_revision
method.
boto3 documentation
def create_revision(
self,
*,
DataSetId: str,
Comment: str = ...,
Tags: Mapping[str, str] = ...,
) -> CreateRevisionResponseTypeDef: # (1)
...
kwargs: CreateRevisionRequestRequestTypeDef = { # (1)
"DataSetId": ...,
}
parent.create_revision(**kwargs)
delete_asset
This operation deletes an asset.
Type annotations and code completion for boto3.client("dataexchange").delete_asset
method.
boto3 documentation
def delete_asset(
self,
*,
AssetId: str,
DataSetId: str,
RevisionId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteAssetRequestRequestTypeDef = { # (1)
"AssetId": ...,
"DataSetId": ...,
"RevisionId": ...,
}
parent.delete_asset(**kwargs)
delete_data_set
This operation deletes a data set.
Type annotations and code completion for boto3.client("dataexchange").delete_data_set
method.
boto3 documentation
def delete_data_set(
self,
*,
DataSetId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteDataSetRequestRequestTypeDef = { # (1)
"DataSetId": ...,
}
parent.delete_data_set(**kwargs)
delete_event_action
This operation deletes the event action.
Type annotations and code completion for boto3.client("dataexchange").delete_event_action
method.
boto3 documentation
def delete_event_action(
self,
*,
EventActionId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteEventActionRequestRequestTypeDef = { # (1)
"EventActionId": ...,
}
parent.delete_event_action(**kwargs)
delete_revision
This operation deletes a revision.
Type annotations and code completion for boto3.client("dataexchange").delete_revision
method.
boto3 documentation
def delete_revision(
self,
*,
DataSetId: str,
RevisionId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteRevisionRequestRequestTypeDef = { # (1)
"DataSetId": ...,
"RevisionId": ...,
}
parent.delete_revision(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("dataexchange").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_asset
This operation returns information about an asset.
Type annotations and code completion for boto3.client("dataexchange").get_asset
method.
boto3 documentation
def get_asset(
self,
*,
AssetId: str,
DataSetId: str,
RevisionId: str,
) -> GetAssetResponseTypeDef: # (1)
...
kwargs: GetAssetRequestRequestTypeDef = { # (1)
"AssetId": ...,
"DataSetId": ...,
"RevisionId": ...,
}
parent.get_asset(**kwargs)
get_data_set
This operation returns information about a data set.
Type annotations and code completion for boto3.client("dataexchange").get_data_set
method.
boto3 documentation
def get_data_set(
self,
*,
DataSetId: str,
) -> GetDataSetResponseTypeDef: # (1)
...
kwargs: GetDataSetRequestRequestTypeDef = { # (1)
"DataSetId": ...,
}
parent.get_data_set(**kwargs)
get_event_action
This operation retrieves information about an event action.
Type annotations and code completion for boto3.client("dataexchange").get_event_action
method.
boto3 documentation
def get_event_action(
self,
*,
EventActionId: str,
) -> GetEventActionResponseTypeDef: # (1)
...
kwargs: GetEventActionRequestRequestTypeDef = { # (1)
"EventActionId": ...,
}
parent.get_event_action(**kwargs)
get_job
This operation returns information about a job.
Type annotations and code completion for boto3.client("dataexchange").get_job
method.
boto3 documentation
kwargs: GetJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.get_job(**kwargs)
get_revision
This operation returns information about a revision.
Type annotations and code completion for boto3.client("dataexchange").get_revision
method.
boto3 documentation
def get_revision(
self,
*,
DataSetId: str,
RevisionId: str,
) -> GetRevisionResponseTypeDef: # (1)
...
kwargs: GetRevisionRequestRequestTypeDef = { # (1)
"DataSetId": ...,
"RevisionId": ...,
}
parent.get_revision(**kwargs)
list_data_set_revisions
This operation lists a data set's revisions sorted by CreatedAt in descending order.
Type annotations and code completion for boto3.client("dataexchange").list_data_set_revisions
method.
boto3 documentation
def list_data_set_revisions(
self,
*,
DataSetId: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListDataSetRevisionsResponseTypeDef: # (1)
...
kwargs: ListDataSetRevisionsRequestRequestTypeDef = { # (1)
"DataSetId": ...,
}
parent.list_data_set_revisions(**kwargs)
list_data_sets
This operation lists your data sets.
Type annotations and code completion for boto3.client("dataexchange").list_data_sets
method.
boto3 documentation
def list_data_sets(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
Origin: str = ...,
) -> ListDataSetsResponseTypeDef: # (1)
...
kwargs: ListDataSetsRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_data_sets(**kwargs)
list_event_actions
This operation lists your event actions.
Type annotations and code completion for boto3.client("dataexchange").list_event_actions
method.
boto3 documentation
def list_event_actions(
self,
*,
EventSourceId: str = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListEventActionsResponseTypeDef: # (1)
...
kwargs: ListEventActionsRequestRequestTypeDef = { # (1)
"EventSourceId": ...,
}
parent.list_event_actions(**kwargs)
list_jobs
This operation lists your jobs sorted by CreatedAt in descending order.
Type annotations and code completion for boto3.client("dataexchange").list_jobs
method.
boto3 documentation
def list_jobs(
self,
*,
DataSetId: str = ...,
MaxResults: int = ...,
NextToken: str = ...,
RevisionId: str = ...,
) -> ListJobsResponseTypeDef: # (1)
...
kwargs: ListJobsRequestRequestTypeDef = { # (1)
"DataSetId": ...,
}
parent.list_jobs(**kwargs)
list_revision_assets
This operation lists a revision's assets sorted alphabetically in descending order.
Type annotations and code completion for boto3.client("dataexchange").list_revision_assets
method.
boto3 documentation
def list_revision_assets(
self,
*,
DataSetId: str,
RevisionId: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListRevisionAssetsResponseTypeDef: # (1)
...
kwargs: ListRevisionAssetsRequestRequestTypeDef = { # (1)
"DataSetId": ...,
"RevisionId": ...,
}
parent.list_revision_assets(**kwargs)
list_tags_for_resource
This operation lists the tags on the resource.
Type annotations and code completion for boto3.client("dataexchange").list_tags_for_resource
method.
boto3 documentation
def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
revoke_revision
This operation revokes subscribers' access to a revision.
Type annotations and code completion for boto3.client("dataexchange").revoke_revision
method.
boto3 documentation
def revoke_revision(
self,
*,
DataSetId: str,
RevisionId: str,
RevocationComment: str,
) -> RevokeRevisionResponseTypeDef: # (1)
...
kwargs: RevokeRevisionRequestRequestTypeDef = { # (1)
"DataSetId": ...,
"RevisionId": ...,
"RevocationComment": ...,
}
parent.revoke_revision(**kwargs)
send_api_asset
This operation invokes an API Gateway API asset.
Type annotations and code completion for boto3.client("dataexchange").send_api_asset
method.
boto3 documentation
def send_api_asset(
self,
*,
AssetId: str,
DataSetId: str,
RevisionId: str,
Body: str = ...,
QueryStringParameters: Mapping[str, str] = ...,
RequestHeaders: Mapping[str, str] = ...,
Method: str = ...,
Path: str = ...,
) -> SendApiAssetResponseTypeDef: # (1)
...
kwargs: SendApiAssetRequestRequestTypeDef = { # (1)
"AssetId": ...,
"DataSetId": ...,
"RevisionId": ...,
}
parent.send_api_asset(**kwargs)
start_job
This operation starts a job.
Type annotations and code completion for boto3.client("dataexchange").start_job
method.
boto3 documentation
kwargs: StartJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.start_job(**kwargs)
tag_resource
This operation tags a resource.
Type annotations and code completion for boto3.client("dataexchange").tag_resource
method.
boto3 documentation
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Mapping[str, str],
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource
This operation removes one or more tags from a resource.
Type annotations and code completion for boto3.client("dataexchange").untag_resource
method.
boto3 documentation
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_asset
This operation updates an asset.
Type annotations and code completion for boto3.client("dataexchange").update_asset
method.
boto3 documentation
def update_asset(
self,
*,
AssetId: str,
DataSetId: str,
Name: str,
RevisionId: str,
) -> UpdateAssetResponseTypeDef: # (1)
...
kwargs: UpdateAssetRequestRequestTypeDef = { # (1)
"AssetId": ...,
"DataSetId": ...,
"Name": ...,
"RevisionId": ...,
}
parent.update_asset(**kwargs)
update_data_set
This operation updates a data set.
Type annotations and code completion for boto3.client("dataexchange").update_data_set
method.
boto3 documentation
def update_data_set(
self,
*,
DataSetId: str,
Description: str = ...,
Name: str = ...,
) -> UpdateDataSetResponseTypeDef: # (1)
...
kwargs: UpdateDataSetRequestRequestTypeDef = { # (1)
"DataSetId": ...,
}
parent.update_data_set(**kwargs)
update_event_action
This operation updates the event action.
Type annotations and code completion for boto3.client("dataexchange").update_event_action
method.
boto3 documentation
def update_event_action(
self,
*,
EventActionId: str,
Action: ActionTypeDef = ..., # (1)
) -> UpdateEventActionResponseTypeDef: # (2)
...
kwargs: UpdateEventActionRequestRequestTypeDef = { # (1)
"EventActionId": ...,
}
parent.update_event_action(**kwargs)
update_revision
This operation updates a revision.
Type annotations and code completion for boto3.client("dataexchange").update_revision
method.
boto3 documentation
def update_revision(
self,
*,
DataSetId: str,
RevisionId: str,
Comment: str = ...,
Finalized: bool = ...,
) -> UpdateRevisionResponseTypeDef: # (1)
...
kwargs: UpdateRevisionRequestRequestTypeDef = { # (1)
"DataSetId": ...,
"RevisionId": ...,
}
parent.update_revision(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("dataexchange").get_paginator
method with overloads.
client.get_paginator("list_data_set_revisions")
-> ListDataSetRevisionsPaginatorclient.get_paginator("list_data_sets")
-> ListDataSetsPaginatorclient.get_paginator("list_event_actions")
-> ListEventActionsPaginatorclient.get_paginator("list_jobs")
-> ListJobsPaginatorclient.get_paginator("list_revision_assets")
-> ListRevisionAssetsPaginator