EMRContainersClient#
Index > EMRContainers > EMRContainersClient
Auto-generated documentation for EMRContainers type annotations stubs module mypy-boto3-emr-containers.
EMRContainersClient#
Type annotations and code completion for boto3.client("emr-containers")
.
boto3 documentation
# EMRContainersClient usage example
from boto3.session import Session
from mypy_boto3_emr_containers.client import EMRContainersClient
def get_emr-containers_client() -> EMRContainersClient:
return Session().client("emr-containers")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("emr-containers").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("emr-containers")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.InternalServerException,
client.exceptions.RequestThrottledException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_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 boto3.client("emr-containers").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
cancel_job_run#
Cancels a job run.
Type annotations and code completion for boto3.client("emr-containers").cancel_job_run
method.
boto3 documentation
# cancel_job_run method definition
def cancel_job_run(
self,
*,
id: str,
virtualClusterId: str,
) -> CancelJobRunResponseTypeDef: # (1)
...
# cancel_job_run method usage example with argument unpacking
kwargs: CancelJobRunRequestRequestTypeDef = { # (1)
"id": ...,
"virtualClusterId": ...,
}
parent.cancel_job_run(**kwargs)
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("emr-containers").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_job_template#
Creates a job template.
Type annotations and code completion for boto3.client("emr-containers").create_job_template
method.
boto3 documentation
# create_job_template method definition
def create_job_template(
self,
*,
name: str,
clientToken: str,
jobTemplateData: JobTemplateDataTypeDef, # (1)
tags: Mapping[str, str] = ...,
kmsKeyArn: str = ...,
) -> CreateJobTemplateResponseTypeDef: # (2)
...
# create_job_template method usage example with argument unpacking
kwargs: CreateJobTemplateRequestRequestTypeDef = { # (1)
"name": ...,
"clientToken": ...,
"jobTemplateData": ...,
}
parent.create_job_template(**kwargs)
create_managed_endpoint#
Creates a managed endpoint.
Type annotations and code completion for boto3.client("emr-containers").create_managed_endpoint
method.
boto3 documentation
# create_managed_endpoint method definition
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)
...
# create_managed_endpoint method usage example with argument unpacking
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 boto3.client("emr-containers").create_virtual_cluster
method.
boto3 documentation
# create_virtual_cluster method definition
def create_virtual_cluster(
self,
*,
name: str,
containerProvider: ContainerProviderTypeDef, # (1)
clientToken: str,
tags: Mapping[str, str] = ...,
) -> CreateVirtualClusterResponseTypeDef: # (2)
...
# create_virtual_cluster method usage example with argument unpacking
kwargs: CreateVirtualClusterRequestRequestTypeDef = { # (1)
"name": ...,
"containerProvider": ...,
"clientToken": ...,
}
parent.create_virtual_cluster(**kwargs)
delete_job_template#
Deletes a job template.
Type annotations and code completion for boto3.client("emr-containers").delete_job_template
method.
boto3 documentation
# delete_job_template method definition
def delete_job_template(
self,
*,
id: str,
) -> DeleteJobTemplateResponseTypeDef: # (1)
...
# delete_job_template method usage example with argument unpacking
kwargs: DeleteJobTemplateRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.delete_job_template(**kwargs)
delete_managed_endpoint#
Deletes a managed endpoint.
Type annotations and code completion for boto3.client("emr-containers").delete_managed_endpoint
method.
boto3 documentation
# delete_managed_endpoint method definition
def delete_managed_endpoint(
self,
*,
id: str,
virtualClusterId: str,
) -> DeleteManagedEndpointResponseTypeDef: # (1)
...
# delete_managed_endpoint method usage example with argument unpacking
kwargs: DeleteManagedEndpointRequestRequestTypeDef = { # (1)
"id": ...,
"virtualClusterId": ...,
}
parent.delete_managed_endpoint(**kwargs)
delete_virtual_cluster#
Deletes a virtual cluster.
Type annotations and code completion for boto3.client("emr-containers").delete_virtual_cluster
method.
boto3 documentation
# delete_virtual_cluster method definition
def delete_virtual_cluster(
self,
*,
id: str,
) -> DeleteVirtualClusterResponseTypeDef: # (1)
...
# delete_virtual_cluster method usage example with argument unpacking
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 boto3.client("emr-containers").describe_job_run
method.
boto3 documentation
# describe_job_run method definition
def describe_job_run(
self,
*,
id: str,
virtualClusterId: str,
) -> DescribeJobRunResponseTypeDef: # (1)
...
# describe_job_run method usage example with argument unpacking
kwargs: DescribeJobRunRequestRequestTypeDef = { # (1)
"id": ...,
"virtualClusterId": ...,
}
parent.describe_job_run(**kwargs)
describe_job_template#
Displays detailed information about a specified job template.
Type annotations and code completion for boto3.client("emr-containers").describe_job_template
method.
boto3 documentation
# describe_job_template method definition
def describe_job_template(
self,
*,
id: str,
) -> DescribeJobTemplateResponseTypeDef: # (1)
...
# describe_job_template method usage example with argument unpacking
kwargs: DescribeJobTemplateRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.describe_job_template(**kwargs)
describe_managed_endpoint#
Displays detailed information about a managed endpoint.
Type annotations and code completion for boto3.client("emr-containers").describe_managed_endpoint
method.
boto3 documentation
# describe_managed_endpoint method definition
def describe_managed_endpoint(
self,
*,
id: str,
virtualClusterId: str,
) -> DescribeManagedEndpointResponseTypeDef: # (1)
...
# describe_managed_endpoint method usage example with argument unpacking
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 boto3.client("emr-containers").describe_virtual_cluster
method.
boto3 documentation
# describe_virtual_cluster method definition
def describe_virtual_cluster(
self,
*,
id: str,
) -> DescribeVirtualClusterResponseTypeDef: # (1)
...
# describe_virtual_cluster method usage example with argument unpacking
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 boto3.client("emr-containers").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_managed_endpoint_session_credentials#
Generate a session token to connect to a managed endpoint.
Type annotations and code completion for boto3.client("emr-containers").get_managed_endpoint_session_credentials
method.
boto3 documentation
# get_managed_endpoint_session_credentials method definition
def get_managed_endpoint_session_credentials(
self,
*,
endpointIdentifier: str,
virtualClusterIdentifier: str,
executionRoleArn: str,
credentialType: str,
durationInSeconds: int = ...,
logContext: str = ...,
clientToken: str = ...,
) -> GetManagedEndpointSessionCredentialsResponseTypeDef: # (1)
...
# get_managed_endpoint_session_credentials method usage example with argument unpacking
kwargs: GetManagedEndpointSessionCredentialsRequestRequestTypeDef = { # (1)
"endpointIdentifier": ...,
"virtualClusterIdentifier": ...,
"executionRoleArn": ...,
"credentialType": ...,
}
parent.get_managed_endpoint_session_credentials(**kwargs)
list_job_runs#
Lists job runs based on a set of parameters.
Type annotations and code completion for boto3.client("emr-containers").list_job_runs
method.
boto3 documentation
# list_job_runs method definition
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)
...
# list_job_runs method usage example with argument unpacking
kwargs: ListJobRunsRequestRequestTypeDef = { # (1)
"virtualClusterId": ...,
}
parent.list_job_runs(**kwargs)
list_job_templates#
Lists job templates based on a set of parameters.
Type annotations and code completion for boto3.client("emr-containers").list_job_templates
method.
boto3 documentation
# list_job_templates method definition
def list_job_templates(
self,
*,
createdAfter: Union[datetime, str] = ...,
createdBefore: Union[datetime, str] = ...,
maxResults: int = ...,
nextToken: str = ...,
) -> ListJobTemplatesResponseTypeDef: # (1)
...
# list_job_templates method usage example with argument unpacking
kwargs: ListJobTemplatesRequestRequestTypeDef = { # (1)
"createdAfter": ...,
}
parent.list_job_templates(**kwargs)
list_managed_endpoints#
Lists managed endpoints based on a set of parameters.
Type annotations and code completion for boto3.client("emr-containers").list_managed_endpoints
method.