EMRContainersClient
Index > EMRContainers > EMRContainersClient
Auto-generated documentation for EMRContainers type annotations stubs module types-aiobotocore-emr-containers.
EMRContainersClient
Type annotations and code completion for session.client("emr-containers")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_emr_containers.client import EMRContainersClient
session = Session()
async with session.client("emr-containers") as client:
client: EMRContainersClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("emr-containers").exceptions
structure.
async with session.client("emr-containers") as client:
try:
do_something(client)
except (
client.ClientError,
client.InternalServerException,
client.ResourceNotFoundException,
client.ValidationException,
) as e:
print(e)
from types_aiobotocore_emr_containers.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("emr-containers").can_paginate
method.
boto3 documentation
cancel_job_run
Cancels a job run.
Type annotations and code completion for session.client("emr-containers").cancel_job_run
method.
boto3 documentation
await def cancel_job_run(
self,
*,
id: str,
virtualClusterId: str,
) -> CancelJobRunResponseTypeDef: # (1)
...
kwargs: CancelJobRunRequestRequestTypeDef = { # (1)
"id": ...,
"virtualClusterId": ...,
}
parent.cancel_job_run(**kwargs)
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("emr-containers").close
method.
boto3 documentation
create_managed_endpoint
Creates a managed endpoint.
Type annotations and code completion for session.client("emr-containers").create_managed_endpoint
method.
boto3 documentation
await def create_managed_endpoint(
self,
*,
name: str,
virtualClusterId: str,
type: str,
releaseLabel: str,
executionRoleArn: str,
clientToken: str,
certificateArn: str = ...,
configurationOverrides: ConfigurationOverridesTypeDef = ..., # (1)
tags: Mapping[str, str] = ...,
) -> CreateManagedEndpointResponseTypeDef: # (2)
...
kwargs: CreateManagedEndpointRequestRequestTypeDef = { # (1)
"name": ...,
"virtualClusterId": ...,
"type": ...,
"releaseLabel": ...,
"executionRoleArn": ...,
"clientToken": ...,
}
parent.create_managed_endpoint(**kwargs)
create_virtual_cluster
Creates a virtual cluster.
Type annotations and code completion for session.client("emr-containers").create_virtual_cluster
method.
boto3 documentation
await def create_virtual_cluster(
self,
*,
name: str,
containerProvider: ContainerProviderTypeDef, # (1)
clientToken: str,
tags: Mapping[str, str] = ...,
) -> CreateVirtualClusterResponseTypeDef: # (2)
...
kwargs: CreateVirtualClusterRequestRequestTypeDef = { # (1)
"name": ...,
"containerProvider": ...,
"clientToken": ...,
}
parent.create_virtual_cluster(**kwargs)
delete_managed_endpoint
Deletes a managed endpoint.
Type annotations and code completion for session.client("emr-containers").delete_managed_endpoint
method.
boto3 documentation
await def delete_managed_endpoint(
self,
*,
id: str,
virtualClusterId: str,
) -> DeleteManagedEndpointResponseTypeDef: # (1)
...
kwargs: DeleteManagedEndpointRequestRequestTypeDef = { # (1)
"id": ...,
"virtualClusterId": ...,
}
parent.delete_managed_endpoint(**kwargs)
delete_virtual_cluster
Deletes a virtual cluster.
Type annotations and code completion for session.client("emr-containers").delete_virtual_cluster
method.
boto3 documentation
await def delete_virtual_cluster(
self,
*,
id: str,
) -> DeleteVirtualClusterResponseTypeDef: # (1)
...
kwargs: DeleteVirtualClusterRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.delete_virtual_cluster(**kwargs)
describe_job_run
Displays detailed information about a job run.
Type annotations and code completion for session.client("emr-containers").describe_job_run
method.
boto3 documentation
await def describe_job_run(
self,
*,
id: str,
virtualClusterId: str,
) -> DescribeJobRunResponseTypeDef: # (1)
...
kwargs: DescribeJobRunRequestRequestTypeDef = { # (1)
"id": ...,
"virtualClusterId": ...,
}
parent.describe_job_run(**kwargs)
describe_managed_endpoint
Displays detailed information about a managed endpoint.
Type annotations and code completion for session.client("emr-containers").describe_managed_endpoint
method.
boto3 documentation
await def describe_managed_endpoint(
self,
*,
id: str,
virtualClusterId: str,
) -> DescribeManagedEndpointResponseTypeDef: # (1)
...
kwargs: DescribeManagedEndpointRequestRequestTypeDef = { # (1)
"id": ...,
"virtualClusterId": ...,
}
parent.describe_managed_endpoint(**kwargs)
describe_virtual_cluster
Displays detailed information about a specified virtual cluster.
Type annotations and code completion for session.client("emr-containers").describe_virtual_cluster
method.
boto3 documentation
await def describe_virtual_cluster(
self,
*,
id: str,
) -> DescribeVirtualClusterResponseTypeDef: # (1)
...
kwargs: DescribeVirtualClusterRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.describe_virtual_cluster(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("emr-containers").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
list_job_runs
Lists job runs based on a set of parameters.
Type annotations and code completion for session.client("emr-containers").list_job_runs
method.
boto3 documentation
await def list_job_runs(
self,
*,
virtualClusterId: str,
createdBefore: Union[datetime, str] = ...,
createdAfter: Union[datetime, str] = ...,
name: str = ...,
states: Sequence[JobRunStateType] = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
) -> ListJobRunsResponseTypeDef: # (2)
...
kwargs: ListJobRunsRequestRequestTypeDef = { # (1)
"virtualClusterId": ...,
}
parent.list_job_runs(**kwargs)
list_managed_endpoints
Lists managed endpoints based on a set of parameters.
Type annotations and code completion for session.client("emr-containers").list_managed_endpoints
method.
boto3 documentation
await def list_managed_endpoints(
self,
*,
virtualClusterId: str,
createdBefore: Union[datetime, str] = ...,
createdAfter: Union[datetime, str] = ...,
types: Sequence[str] = ...,
states: Sequence[EndpointStateType] = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
) -> ListManagedEndpointsResponseTypeDef: # (2)
...
kwargs: ListManagedEndpointsRequestRequestTypeDef = { # (1)
"virtualClusterId": ...,
}
parent.list_managed_endpoints(**kwargs)
list_tags_for_resource
Lists the tags assigned to the resources.
Type annotations and code completion for session.client("emr-containers").list_tags_for_resource
method.
boto3 documentation
await def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
list_virtual_clusters
Lists information about the specified virtual cluster.
Type annotations and code completion for session.client("emr-containers").list_virtual_clusters
method.
boto3 documentation
await def list_virtual_clusters(
self,
*,
containerProviderId: str = ...,
containerProviderType: ContainerProviderTypeType = ..., # (1)
createdAfter: Union[datetime, str] = ...,
createdBefore: Union[datetime, str] = ...,
states: Sequence[VirtualClusterStateType] = ..., # (2)
maxResults: int = ...,
nextToken: str = ...,
) -> ListVirtualClustersResponseTypeDef: # (3)
...
kwargs: ListVirtualClustersRequestRequestTypeDef = { # (1)
"containerProviderId": ...,
}
parent.list_virtual_clusters(**kwargs)
start_job_run
Starts a job run.
Type annotations and code completion for session.client("emr-containers").start_job_run
method.
boto3 documentation
await def start_job_run(
self,
*,
virtualClusterId: str,
clientToken: str,
executionRoleArn: str,
releaseLabel: str,
jobDriver: JobDriverTypeDef, # (1)
name: str = ...,
configurationOverrides: ConfigurationOverridesTypeDef = ..., # (2)
tags: Mapping[str, str] = ...,
) -> StartJobRunResponseTypeDef: # (3)
...
kwargs: StartJobRunRequestRequestTypeDef = { # (1)
"virtualClusterId": ...,
"clientToken": ...,
"executionRoleArn": ...,
"releaseLabel": ...,
"jobDriver": ...,
}
parent.start_job_run(**kwargs)
tag_resource
Assigns tags to resources.
Type annotations and code completion for session.client("emr-containers").tag_resource
method.
boto3 documentation
await def tag_resource(
self,
*,
resourceArn: str,
tags: Mapping[str, str],
) -> Dict[str, Any]:
...
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource
Removes tags from resources.
Type annotations and code completion for session.client("emr-containers").untag_resource
method.
boto3 documentation
await def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
__aenter__
Type annotations and code completion for session.client("emr-containers").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("emr-containers").__aexit__
method.
boto3 documentation
get_paginator
Type annotations and code completion for session.client("emr-containers").get_paginator
method with overloads.
client.get_paginator("list_job_runs")
-> ListJobRunsPaginatorclient.get_paginator("list_managed_endpoints")
-> ListManagedEndpointsPaginatorclient.get_paginator("list_virtual_clusters")
-> ListVirtualClustersPaginator