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.EKSRequestThrottledException,
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_security_configuration#
Creates a security configuration.
Type annotations and code completion for boto3.client("emr-containers").create_security_configuration
method.
boto3 documentation
# create_security_configuration method definition
def create_security_configuration(
self,
*,
clientToken: str,
name: str,
securityConfigurationData: SecurityConfigurationDataTypeDef, # (1)
tags: Mapping[str, str] = ...,
) -> CreateSecurityConfigurationResponseTypeDef: # (2)
...
# create_security_configuration method usage example with argument unpacking
kwargs: CreateSecurityConfigurationRequestRequestTypeDef = { # (1)
"clientToken": ...,
"name": ...,
"securityConfigurationData": ...,
}
parent.create_security_configuration(**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] = ...,
securityConfigurationId: 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_security_configuration#
Displays detailed information about a specified security configuration.
Type annotations and code completion for boto3.client("emr-containers").describe_security_configuration
method.
boto3 documentation
# describe_security_configuration method definition
def describe_security_configuration(
self,
*,
id: str,
) -> DescribeSecurityConfigurationResponseTypeDef: # (1)
...
# describe_security_configuration method usage example with argument unpacking
kwargs: DescribeSecurityConfigurationRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.describe_security_configuration(**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: TimestampTypeDef = ...,
createdAfter: TimestampTypeDef = ...,
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: TimestampTypeDef = ...,
createdBefore: TimestampTypeDef = ...,
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.
boto3 documentation
# list_managed_endpoints method definition
def list_managed_endpoints(
self,
*,
virtualClusterId: str,
createdBefore: TimestampTypeDef = ...,
createdAfter: TimestampTypeDef = ...,
types: Sequence[str] = ...,
states: Sequence[EndpointStateType] = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
) -> ListManagedEndpointsResponseTypeDef: # (2)
...
# list_managed_endpoints method usage example with argument unpacking
kwargs: ListManagedEndpointsRequestRequestTypeDef = { # (1)
"virtualClusterId": ...,
}
parent.list_managed_endpoints(**kwargs)
list_security_configurations#
Lists security configurations based on a set of parameters.
Type annotations and code completion for boto3.client("emr-containers").list_security_configurations
method.
boto3 documentation
# list_security_configurations method definition
def list_security_configurations(
self,
*,
createdAfter: TimestampTypeDef = ...,
createdBefore: TimestampTypeDef = ...,
maxResults: int = ...,
nextToken: str = ...,
) -> ListSecurityConfigurationsResponseTypeDef: # (1)
...
# list_security_configurations method usage example with argument unpacking
kwargs: ListSecurityConfigurationsRequestRequestTypeDef = { # (1)
"createdAfter": ...,
}
parent.list_security_configurations(**kwargs)
list_tags_for_resource#
Lists the tags assigned to the resources.
Type annotations and code completion for boto3.client("emr-containers").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
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 boto3.client("emr-containers").list_virtual_clusters
method.
boto3 documentation
# list_virtual_clusters method definition
def list_virtual_clusters(
self,
*,
containerProviderId: str = ...,
containerProviderType: ContainerProviderTypeType = ..., # (1)
createdAfter: TimestampTypeDef = ...,
createdBefore: TimestampTypeDef = ...,
states: Sequence[VirtualClusterStateType] = ..., # (2)
maxResults: int = ...,
nextToken: str = ...,
eksAccessEntryIntegrated: bool = ...,
) -> ListVirtualClustersResponseTypeDef: # (3)
...
# list_virtual_clusters method usage example with argument unpacking
kwargs: ListVirtualClustersRequestRequestTypeDef = { # (1)
"containerProviderId": ...,
}
parent.list_virtual_clusters(**kwargs)
start_job_run#
Starts a job run.
Type annotations and code completion for boto3.client("emr-containers").start_job_run
method.
boto3 documentation
# start_job_run method definition
def start_job_run(
self,
*,
virtualClusterId: str,
clientToken: str,
name: str = ...,
executionRoleArn: str = ...,
releaseLabel: str = ...,
jobDriver: JobDriverTypeDef = ..., # (1)
configurationOverrides: ConfigurationOverridesTypeDef = ..., # (2)
tags: Mapping[str, str] = ...,
jobTemplateId: str = ...,
jobTemplateParameters: Mapping[str, str] = ...,
retryPolicyConfiguration: RetryPolicyConfigurationTypeDef = ..., # (3)
) -> StartJobRunResponseTypeDef: # (4)
...
- See JobDriverTypeDef
- See ConfigurationOverridesTypeDef
- See RetryPolicyConfigurationTypeDef
- See StartJobRunResponseTypeDef
# start_job_run method usage example with argument unpacking
kwargs: StartJobRunRequestRequestTypeDef = { # (1)
"virtualClusterId": ...,
"clientToken": ...,
}
parent.start_job_run(**kwargs)
tag_resource#
Assigns tags to resources.
Type annotations and code completion for boto3.client("emr-containers").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
resourceArn: str,
tags: Mapping[str, str],
) -> Dict[str, Any]:
...
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Removes tags from resources.
Type annotations and code completion for boto3.client("emr-containers").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> Dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("emr-containers").get_paginator
method with overloads.
client.get_paginator("list_job_runs")
-> ListJobRunsPaginatorclient.get_paginator("list_job_templates")
-> ListJobTemplatesPaginatorclient.get_paginator("list_managed_endpoints")
-> ListManagedEndpointsPaginatorclient.get_paginator("list_security_configurations")
-> ListSecurityConfigurationsPaginatorclient.get_paginator("list_virtual_clusters")
-> ListVirtualClustersPaginator