EMRContainersClient#
Index > EMRContainers > EMRContainersClient
Auto-generated documentation for EMRContainers type annotations stubs module types-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 types_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 types_boto3_emr_containers.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
    ...Methods#
can_paginate#
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:
    ...generate_presigned_url#
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:
    ...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: CancelJobRunRequestTypeDef = {  # (1)
    "id": ...,
    "virtualClusterId": ...,
}
parent.cancel_job_run(**kwargs)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: JobTemplateDataUnionTypeDef,  # (1)
    tags: Mapping[str, str] = ...,
    kmsKeyArn: str = ...,
) -> CreateJobTemplateResponseTypeDef:  # (2)
    ...# create_job_template method usage example with argument unpacking
kwargs: CreateJobTemplateRequestTypeDef = {  # (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: ConfigurationOverridesUnionTypeDef = ...,  # (1)
    tags: Mapping[str, str] = ...,
) -> CreateManagedEndpointResponseTypeDef:  # (2)
    ...# create_managed_endpoint method usage example with argument unpacking
kwargs: CreateManagedEndpointRequestTypeDef = {  # (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)
    containerProvider: ContainerProviderTypeDef = ...,  # (2)
    tags: Mapping[str, str] = ...,
) -> CreateSecurityConfigurationResponseTypeDef:  # (3)
    ...- See SecurityConfigurationDataTypeDef
- See ContainerProviderTypeDef
- See CreateSecurityConfigurationResponseTypeDef
# create_security_configuration method usage example with argument unpacking
kwargs: CreateSecurityConfigurationRequestTypeDef = {  # (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: CreateVirtualClusterRequestTypeDef = {  # (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: DeleteJobTemplateRequestTypeDef = {  # (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: DeleteManagedEndpointRequestTypeDef = {  # (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: DeleteVirtualClusterRequestTypeDef = {  # (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: DescribeJobRunRequestTypeDef = {  # (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: DescribeJobTemplateRequestTypeDef = {  # (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: DescribeManagedEndpointRequestTypeDef = {  # (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: DescribeSecurityConfigurationRequestTypeDef = {  # (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: DescribeVirtualClusterRequestTypeDef = {  # (1)
    "id": ...,
}
parent.describe_virtual_cluster(**kwargs)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: GetManagedEndpointSessionCredentialsRequestTypeDef = {  # (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)
    ...- See Sequence[JobRunStateType]
- See ListJobRunsResponseTypeDef
# list_job_runs method usage example with argument unpacking
kwargs: ListJobRunsRequestTypeDef = {  # (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: ListJobTemplatesRequestTypeDef = {  # (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)
    ...- See Sequence[EndpointStateType]
- See ListManagedEndpointsResponseTypeDef
# list_managed_endpoints method usage example with argument unpacking
kwargs: ListManagedEndpointsRequestTypeDef = {  # (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: ListSecurityConfigurationsRequestTypeDef = {  # (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: ListTagsForResourceRequestTypeDef = {  # (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)
    ...- See ContainerProviderTypeType
- See Sequence[VirtualClusterStateType]
- See ListVirtualClustersResponseTypeDef
# list_virtual_clusters method usage example with argument unpacking
kwargs: ListVirtualClustersRequestTypeDef = {  # (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: JobDriverUnionTypeDef = ...,  # (1)
    configurationOverrides: ConfigurationOverridesUnionTypeDef = ...,  # (2)
    tags: Mapping[str, str] = ...,
    jobTemplateId: str = ...,
    jobTemplateParameters: Mapping[str, str] = ...,
    retryPolicyConfiguration: RetryPolicyConfigurationTypeDef = ...,  # (3)
) -> StartJobRunResponseTypeDef:  # (4)
    ...- See JobDriverUnionTypeDef
- See ConfigurationOverridesUnionTypeDef
- See RetryPolicyConfigurationTypeDef
- See StartJobRunResponseTypeDef
# start_job_run method usage example with argument unpacking
kwargs: StartJobRunRequestTypeDef = {  # (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: TagResourceRequestTypeDef = {  # (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: UntagResourceRequestTypeDef = {  # (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")-> ListJobRunsPaginator
- client.get_paginator("list_job_templates")-> ListJobTemplatesPaginator
- client.get_paginator("list_managed_endpoints")-> ListManagedEndpointsPaginator
- client.get_paginator("list_security_configurations")-> ListSecurityConfigurationsPaginator
- client.get_paginator("list_virtual_clusters")-> ListVirtualClustersPaginator