Skip to content

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)
    ...
  1. See CancelJobRunResponseTypeDef
# cancel_job_run method usage example with argument unpacking

kwargs: CancelJobRunRequestRequestTypeDef = {  # (1)
    "id": ...,
    "virtualClusterId": ...,
}

parent.cancel_job_run(**kwargs)
  1. See CancelJobRunRequestRequestTypeDef

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: Union[JobTemplateDataTypeDef, JobTemplateDataExtraOutputTypeDef],  # (1)
    tags: Mapping[str, str] = ...,
    kmsKeyArn: str = ...,
) -> CreateJobTemplateResponseTypeDef:  # (2)
    ...
  1. See JobTemplateDataTypeDef JobTemplateDataExtraOutputTypeDef
  2. See CreateJobTemplateResponseTypeDef
# create_job_template method usage example with argument unpacking

kwargs: CreateJobTemplateRequestRequestTypeDef = {  # (1)
    "name": ...,
    "clientToken": ...,
    "jobTemplateData": ...,
}

parent.create_job_template(**kwargs)
  1. See CreateJobTemplateRequestRequestTypeDef

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: Union[ConfigurationOverridesTypeDef, ConfigurationOverridesExtraOutputTypeDef] = ...,  # (1)
    tags: Mapping[str, str] = ...,
) -> CreateManagedEndpointResponseTypeDef:  # (2)
    ...
  1. See ConfigurationOverridesTypeDef ConfigurationOverridesExtraOutputTypeDef
  2. See CreateManagedEndpointResponseTypeDef
# create_managed_endpoint method usage example with argument unpacking

kwargs: CreateManagedEndpointRequestRequestTypeDef = {  # (1)
    "name": ...,
    "virtualClusterId": ...,
    "type": ...,
    "releaseLabel": ...,
    "executionRoleArn": ...,
    "clientToken": ...,
}

parent.create_managed_endpoint(**kwargs)
  1. See CreateManagedEndpointRequestRequestTypeDef

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)
    ...
  1. See SecurityConfigurationDataTypeDef
  2. See CreateSecurityConfigurationResponseTypeDef
# create_security_configuration method usage example with argument unpacking

kwargs: CreateSecurityConfigurationRequestRequestTypeDef = {  # (1)
    "clientToken": ...,
    "name": ...,
    "securityConfigurationData": ...,
}

parent.create_security_configuration(**kwargs)
  1. See CreateSecurityConfigurationRequestRequestTypeDef

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)
    ...
  1. See ContainerProviderTypeDef
  2. See CreateVirtualClusterResponseTypeDef
# create_virtual_cluster method usage example with argument unpacking

kwargs: CreateVirtualClusterRequestRequestTypeDef = {  # (1)
    "name": ...,
    "containerProvider": ...,
    "clientToken": ...,
}

parent.create_virtual_cluster(**kwargs)
  1. See CreateVirtualClusterRequestRequestTypeDef

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)
    ...
  1. See DeleteJobTemplateResponseTypeDef
# delete_job_template method usage example with argument unpacking

kwargs: DeleteJobTemplateRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.delete_job_template(**kwargs)
  1. See DeleteJobTemplateRequestRequestTypeDef

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)
    ...
  1. See DeleteManagedEndpointResponseTypeDef
# delete_managed_endpoint method usage example with argument unpacking

kwargs: DeleteManagedEndpointRequestRequestTypeDef = {  # (1)
    "id": ...,
    "virtualClusterId": ...,
}

parent.delete_managed_endpoint(**kwargs)
  1. See DeleteManagedEndpointRequestRequestTypeDef

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)
    ...
  1. See DeleteVirtualClusterResponseTypeDef
# delete_virtual_cluster method usage example with argument unpacking

kwargs: DeleteVirtualClusterRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.delete_virtual_cluster(**kwargs)
  1. See DeleteVirtualClusterRequestRequestTypeDef

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)
    ...
  1. See DescribeJobRunResponseTypeDef
# describe_job_run method usage example with argument unpacking

kwargs: DescribeJobRunRequestRequestTypeDef = {  # (1)
    "id": ...,
    "virtualClusterId": ...,
}

parent.describe_job_run(**kwargs)
  1. See DescribeJobRunRequestRequestTypeDef

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)
    ...
  1. See DescribeJobTemplateResponseTypeDef
# describe_job_template method usage example with argument unpacking

kwargs: DescribeJobTemplateRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.describe_job_template(**kwargs)
  1. See DescribeJobTemplateRequestRequestTypeDef

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)
    ...
  1. See DescribeManagedEndpointResponseTypeDef