Skip to content

Type definitions#

Index > EMRContainers > Type definitions

Auto-generated documentation for EMRContainers type annotations stubs module mypy-boto3-emr-containers.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

CancelJobRunRequestRequestTypeDef#

# CancelJobRunRequestRequestTypeDef definition

class CancelJobRunRequestRequestTypeDef(TypedDict):
    id: str,
    virtualClusterId: str,

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

CertificateTypeDef#

# CertificateTypeDef definition

class CertificateTypeDef(TypedDict):
    certificateArn: NotRequired[str],
    certificateData: NotRequired[str],

CloudWatchMonitoringConfigurationTypeDef#

# CloudWatchMonitoringConfigurationTypeDef definition

class CloudWatchMonitoringConfigurationTypeDef(TypedDict):
    logGroupName: str,
    logStreamNamePrefix: NotRequired[str],

ConfigurationPaginatorTypeDef#

# ConfigurationPaginatorTypeDef definition

class ConfigurationPaginatorTypeDef(TypedDict):
    classification: str,
    properties: NotRequired[Dict[str, str]],
    configurations: NotRequired[List[Dict[str, Any]]],

ConfigurationTypeDef#

# ConfigurationTypeDef definition

class ConfigurationTypeDef(TypedDict):
    classification: str,
    properties: NotRequired[Mapping[str, str]],
    configurations: NotRequired[Sequence[Dict[str, Any]]],

EksInfoTypeDef#

# EksInfoTypeDef definition

class EksInfoTypeDef(TypedDict):
    namespace: NotRequired[str],

ContainerLogRotationConfigurationTypeDef#

# ContainerLogRotationConfigurationTypeDef definition

class ContainerLogRotationConfigurationTypeDef(TypedDict):
    rotationSize: str,
    maxFilesToKeep: int,

CredentialsTypeDef#

# CredentialsTypeDef definition

class CredentialsTypeDef(TypedDict):
    token: NotRequired[str],

DeleteJobTemplateRequestRequestTypeDef#

# DeleteJobTemplateRequestRequestTypeDef definition

class DeleteJobTemplateRequestRequestTypeDef(TypedDict):
    id: str,

DeleteManagedEndpointRequestRequestTypeDef#

# DeleteManagedEndpointRequestRequestTypeDef definition

class DeleteManagedEndpointRequestRequestTypeDef(TypedDict):
    id: str,
    virtualClusterId: str,

DeleteVirtualClusterRequestRequestTypeDef#

# DeleteVirtualClusterRequestRequestTypeDef definition

class DeleteVirtualClusterRequestRequestTypeDef(TypedDict):
    id: str,

DescribeJobRunRequestRequestTypeDef#

# DescribeJobRunRequestRequestTypeDef definition

class DescribeJobRunRequestRequestTypeDef(TypedDict):
    id: str,
    virtualClusterId: str,

DescribeJobTemplateRequestRequestTypeDef#

# DescribeJobTemplateRequestRequestTypeDef definition

class DescribeJobTemplateRequestRequestTypeDef(TypedDict):
    id: str,

DescribeManagedEndpointRequestRequestTypeDef#

# DescribeManagedEndpointRequestRequestTypeDef definition

class DescribeManagedEndpointRequestRequestTypeDef(TypedDict):
    id: str,
    virtualClusterId: str,

DescribeVirtualClusterRequestRequestTypeDef#

# DescribeVirtualClusterRequestRequestTypeDef definition

class DescribeVirtualClusterRequestRequestTypeDef(TypedDict):
    id: str,

GetManagedEndpointSessionCredentialsRequestRequestTypeDef#

# GetManagedEndpointSessionCredentialsRequestRequestTypeDef definition

class GetManagedEndpointSessionCredentialsRequestRequestTypeDef(TypedDict):
    endpointIdentifier: str,
    virtualClusterIdentifier: str,
    executionRoleArn: str,
    credentialType: str,
    durationInSeconds: NotRequired[int],
    logContext: NotRequired[str],
    clientToken: NotRequired[str],

SparkSqlJobDriverTypeDef#

# SparkSqlJobDriverTypeDef definition

class SparkSqlJobDriverTypeDef(TypedDict):
    entryPoint: NotRequired[str],
    sparkSqlParameters: NotRequired[str],

SparkSubmitJobDriverPaginatorTypeDef#

# SparkSubmitJobDriverPaginatorTypeDef definition

class SparkSubmitJobDriverPaginatorTypeDef(TypedDict):
    entryPoint: str,
    entryPointArguments: NotRequired[List[str]],
    sparkSubmitParameters: NotRequired[str],

SparkSubmitJobDriverTypeDef#

# SparkSubmitJobDriverTypeDef definition

class SparkSubmitJobDriverTypeDef(TypedDict):
    entryPoint: str,
    entryPointArguments: NotRequired[Sequence[str]],
    sparkSubmitParameters: NotRequired[str],

RetryPolicyConfigurationTypeDef#

# RetryPolicyConfigurationTypeDef definition

class RetryPolicyConfigurationTypeDef(TypedDict):
    maxAttempts: int,

RetryPolicyExecutionTypeDef#

# RetryPolicyExecutionTypeDef definition

class RetryPolicyExecutionTypeDef(TypedDict):
    currentAttemptCount: int,

TemplateParameterConfigurationTypeDef#

# TemplateParameterConfigurationTypeDef definition

class TemplateParameterConfigurationTypeDef(TypedDict):
    type: NotRequired[TemplateParameterDataTypeType],  # (1)
    defaultValue: NotRequired[str],
  1. See TemplateParameterDataTypeType

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListTagsForResourceRequestRequestTypeDef#

# ListTagsForResourceRequestRequestTypeDef definition

class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    resourceArn: str,

S3MonitoringConfigurationTypeDef#

# S3MonitoringConfigurationTypeDef definition

class S3MonitoringConfigurationTypeDef(TypedDict):
    logUri: str,

ParametricCloudWatchMonitoringConfigurationTypeDef#

# ParametricCloudWatchMonitoringConfigurationTypeDef definition

class ParametricCloudWatchMonitoringConfigurationTypeDef(TypedDict):
    logGroupName: NotRequired[str],
    logStreamNamePrefix: NotRequired[str],

ParametricS3MonitoringConfigurationTypeDef#

# ParametricS3MonitoringConfigurationTypeDef definition

class ParametricS3MonitoringConfigurationTypeDef(TypedDict):
    logUri: NotRequired[str],

TagResourceRequestRequestTypeDef#

# TagResourceRequestRequestTypeDef definition

class TagResourceRequestRequestTypeDef(TypedDict):
    resourceArn: str,
    tags: Mapping[str, str],

UntagResourceRequestRequestTypeDef#

# UntagResourceRequestRequestTypeDef definition

class UntagResourceRequestRequestTypeDef(TypedDict):
    resourceArn: str,
    tagKeys: Sequence[str],

CancelJobRunResponseTypeDef#

# CancelJobRunResponseTypeDef definition

class CancelJobRunResponseTypeDef(TypedDict):
    id: str,
    virtualClusterId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreateJobTemplateResponseTypeDef#

# CreateJobTemplateResponseTypeDef definition

class CreateJobTemplateResponseTypeDef(TypedDict):
    id: str,
    name: str,
    arn: str,
    createdAt: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreateManagedEndpointResponseTypeDef#

# CreateManagedEndpointResponseTypeDef definition

class CreateManagedEndpointResponseTypeDef(TypedDict):
    id: str,
    name: str,
    arn: str,
    virtualClusterId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreateVirtualClusterResponseTypeDef#

# CreateVirtualClusterResponseTypeDef definition

class CreateVirtualClusterResponseTypeDef(TypedDict):
    id: str,
    name: str,
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteJobTemplateResponseTypeDef#

# DeleteJobTemplateResponseTypeDef definition

class DeleteJobTemplateResponseTypeDef(TypedDict):
    id: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteManagedEndpointResponseTypeDef#

# DeleteManagedEndpointResponseTypeDef definition

class DeleteManagedEndpointResponseTypeDef(TypedDict):
    id: str,
    virtualClusterId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteVirtualClusterResponseTypeDef#

# DeleteVirtualClusterResponseTypeDef definition

class DeleteVirtualClusterResponseTypeDef(TypedDict):
    id: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef definition

class ListTagsForResourceResponseTypeDef(TypedDict):
    tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StartJobRunResponseTypeDef#

# StartJobRunResponseTypeDef definition

class StartJobRunResponseTypeDef(TypedDict):
    id: str,
    name: str,
    arn: str,
    virtualClusterId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ContainerInfoTypeDef#

# ContainerInfoTypeDef definition

class ContainerInfoTypeDef(TypedDict):
    eksInfo: NotRequired[EksInfoTypeDef],  # (1)
  1. See EksInfoTypeDef

GetManagedEndpointSessionCredentialsResponseTypeDef#

# GetManagedEndpointSessionCredentialsResponseTypeDef definition

class GetManagedEndpointSessionCredentialsResponseTypeDef(TypedDict):
    id: str,
    credentials: CredentialsTypeDef,  # (1)
    expiresAt: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CredentialsTypeDef
  2. See ResponseMetadataTypeDef

JobDriverPaginatorTypeDef#

# JobDriverPaginatorTypeDef definition

class JobDriverPaginatorTypeDef(TypedDict):
    sparkSubmitJobDriver: NotRequired[SparkSubmitJobDriverPaginatorTypeDef],  # (1)
    sparkSqlJobDriver: NotRequired[SparkSqlJobDriverTypeDef],  # (2)
  1. See SparkSubmitJobDriverPaginatorTypeDef
  2. See SparkSqlJobDriverTypeDef

JobDriverTypeDef#

# JobDriverTypeDef definition

class JobDriverTypeDef(TypedDict):
    sparkSubmitJobDriver: NotRequired[SparkSubmitJobDriverTypeDef],  # (1)
    sparkSqlJobDriver: NotRequired[SparkSqlJobDriverTypeDef],  # (2)
  1. See SparkSubmitJobDriverTypeDef
  2. See SparkSqlJobDriverTypeDef

ListJobRunsRequestListJobRunsPaginateTypeDef#

# ListJobRunsRequestListJobRunsPaginateTypeDef definition

class ListJobRunsRequestListJobRunsPaginateTypeDef(TypedDict):
    virtualClusterId: str,
    createdBefore: NotRequired[Union[datetime, str]],
    createdAfter: NotRequired[Union[datetime, str]],
    name: NotRequired[str],
    states: NotRequired[Sequence[JobRunStateType]],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See JobRunStateType
  2. See PaginatorConfigTypeDef

ListJobRunsRequestRequestTypeDef#

# ListJobRunsRequestRequestTypeDef definition

class ListJobRunsRequestRequestTypeDef(TypedDict):
    virtualClusterId: str,
    createdBefore: NotRequired[Union[datetime, str]],
    createdAfter: NotRequired[Union[datetime, str]],
    name: NotRequired[str],
    states: NotRequired[Sequence[JobRunStateType]],  # (1)
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
  1. See JobRunStateType

ListJobTemplatesRequestListJobTemplatesPaginateTypeDef#

# ListJobTemplatesRequestListJobTemplatesPaginateTypeDef definition

class ListJobTemplatesRequestListJobTemplatesPaginateTypeDef(TypedDict):
    createdAfter: NotRequired[Union[datetime, str]],
    createdBefore: NotRequired[Union[datetime, str]],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListJobTemplatesRequestRequestTypeDef#

# ListJobTemplatesRequestRequestTypeDef definition

class ListJobTemplatesRequestRequestTypeDef(TypedDict):
    createdAfter: NotRequired[Union[datetime, str]],
    createdBefore: NotRequired[Union[datetime, str]],
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],

ListManagedEndpointsRequestListManagedEndpointsPaginateTypeDef#

# ListManagedEndpointsRequestListManagedEndpointsPaginateTypeDef definition

class ListManagedEndpointsRequestListManagedEndpointsPaginateTypeDef(TypedDict):
    virtualClusterId: str,
    createdBefore: NotRequired[Union[datetime, str]],
    createdAfter: NotRequired[Union[datetime, str]],
    types: NotRequired[Sequence[str]],
    states: NotRequired[Sequence[EndpointStateType]],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See EndpointStateType
  2. See PaginatorConfigTypeDef

ListManagedEndpointsRequestRequestTypeDef#

# ListManagedEndpointsRequestRequestTypeDef definition

class ListManagedEndpointsRequestRequestTypeDef(TypedDict):
    virtualClusterId: str,
    createdBefore: NotRequired[Union[datetime, str]],
    createdAfter: NotRequired[Union[datetime, str]],
    types: NotRequired[Sequence[str]],
    states: NotRequired[Sequence[EndpointStateType]],  # (1)
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
  1. See EndpointStateType

ListVirtualClustersRequestListVirtualClustersPaginateTypeDef#

# ListVirtualClustersRequestListVirtualClustersPaginateTypeDef definition

class ListVirtualClustersRequestListVirtualClustersPaginateTypeDef(TypedDict):
    containerProviderId: NotRequired[str],
    containerProviderType: NotRequired[ContainerProviderTypeType],  # (1)
    createdAfter: NotRequired[Union[datetime, str]],
    createdBefore: NotRequired[Union[datetime, str]],
    states: NotRequired[Sequence[VirtualClusterStateType]],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ContainerProviderTypeType
  2. See VirtualClusterStateType
  3. See PaginatorConfigTypeDef

ListVirtualClustersRequestRequestTypeDef#

# ListVirtualClustersRequestRequestTypeDef definition

class ListVirtualClustersRequestRequestTypeDef(TypedDict):
    containerProviderId: NotRequired[str],
    containerProviderType: NotRequired[ContainerProviderTypeType],  # (1)
    createdAfter: NotRequired[Union[datetime, str]],
    createdBefore: NotRequired[Union[datetime, str]],
    states: NotRequired[Sequence[VirtualClusterStateType]],  # (2)
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
  1. See ContainerProviderTypeType
  2. See VirtualClusterStateType

MonitoringConfigurationTypeDef#

# MonitoringConfigurationTypeDef definition

class MonitoringConfigurationTypeDef(TypedDict):
    persistentAppUI: NotRequired[PersistentAppUIType],  # (1)
    cloudWatchMonitoringConfiguration: NotRequired[CloudWatchMonitoringConfigurationTypeDef],  # (2)
    s3MonitoringConfiguration: NotRequired[S3MonitoringConfigurationTypeDef],  # (3)
    containerLogRotationConfiguration: NotRequired[ContainerLogRotationConfigurationTypeDef],  # (4)
  1. See PersistentAppUIType
  2. See CloudWatchMonitoringConfigurationTypeDef
  3. See S3MonitoringConfigurationTypeDef
  4. See ContainerLogRotationConfigurationTypeDef

ParametricMonitoringConfigurationTypeDef#

# ParametricMonitoringConfigurationTypeDef definition

class ParametricMonitoringConfigurationTypeDef(TypedDict):
    persistentAppUI: NotRequired[str],
    cloudWatchMonitoringConfiguration: NotRequired[ParametricCloudWatchMonitoringConfigurationTypeDef],  # (1)
    s3MonitoringConfiguration: NotRequired[ParametricS3MonitoringConfigurationTypeDef],  # (2)
  1. See ParametricCloudWatchMonitoringConfigurationTypeDef
  2. See ParametricS3MonitoringConfigurationTypeDef

ContainerProviderTypeDef#

# ContainerProviderTypeDef definition

class ContainerProviderTypeDef(TypedDict):
    type: ContainerProviderTypeType,  # (1)
    id: str,
    info: NotRequired[ContainerInfoTypeDef],  # (2)
  1. See ContainerProviderTypeType
  2. See ContainerInfoTypeDef

ConfigurationOverridesPaginatorTypeDef#

# ConfigurationOverridesPaginatorTypeDef definition

class ConfigurationOverridesPaginatorTypeDef(TypedDict):
    applicationConfiguration: NotRequired[List[ConfigurationPaginatorTypeDef]],  # (1)
    monitoringConfiguration: NotRequired[MonitoringConfigurationTypeDef],  # (2)
  1. See ConfigurationPaginatorTypeDef
  2. See MonitoringConfigurationTypeDef

ConfigurationOverridesTypeDef#

# ConfigurationOverridesTypeDef definition

class ConfigurationOverridesTypeDef(TypedDict):
    applicationConfiguration: NotRequired[Sequence[ConfigurationTypeDef]],  # (1)
    monitoringConfiguration: NotRequired[MonitoringConfigurationTypeDef],  # (2)
  1. See ConfigurationTypeDef
  2. See MonitoringConfigurationTypeDef

ParametricConfigurationOverridesPaginatorTypeDef#

# ParametricConfigurationOverridesPaginatorTypeDef definition

class ParametricConfigurationOverridesPaginatorTypeDef(TypedDict):
    applicationConfiguration: NotRequired[List[ConfigurationPaginatorTypeDef]],  # (1)
    monitoringConfiguration: NotRequired[ParametricMonitoringConfigurationTypeDef],  # (2)
  1. See ConfigurationPaginatorTypeDef
  2. See ParametricMonitoringConfigurationTypeDef

ParametricConfigurationOverridesTypeDef#

# ParametricConfigurationOverridesTypeDef definition

class ParametricConfigurationOverridesTypeDef(TypedDict):
    applicationConfiguration: NotRequired[Sequence[ConfigurationTypeDef]],  # (1)
    monitoringConfiguration: NotRequired[ParametricMonitoringConfigurationTypeDef],  # (2)
  1. See ConfigurationTypeDef
  2. See ParametricMonitoringConfigurationTypeDef

CreateVirtualClusterRequestRequestTypeDef#

# CreateVirtualClusterRequestRequestTypeDef definition

class CreateVirtualClusterRequestRequestTypeDef(TypedDict):
    name: str,
    containerProvider: ContainerProviderTypeDef,  # (1)
    clientToken: str,
    tags: NotRequired[Mapping[str, str]],
  1. See ContainerProviderTypeDef

VirtualClusterTypeDef#

# VirtualClusterTypeDef definition

class VirtualClusterTypeDef(TypedDict):
    id: NotRequired[str],
    name: NotRequired[str],
    arn: NotRequired[str],
    state: NotRequired[VirtualClusterStateType],  # (1)
    containerProvider: NotRequired[ContainerProviderTypeDef],  # (2)
    createdAt: NotRequired[datetime],
    tags: NotRequired[Dict[str, str]],
  1. See VirtualClusterStateType
  2. See ContainerProviderTypeDef

EndpointPaginatorTypeDef#

# EndpointPaginatorTypeDef definition

class EndpointPaginatorTypeDef(TypedDict):
    id: NotRequired[str],
    name: NotRequired[str],
    arn: NotRequired[str],
    virtualClusterId: NotRequired[str],
    type: NotRequired[str],
    state: NotRequired[EndpointStateType],  # (1)
    releaseLabel: NotRequired[str],
    executionRoleArn: NotRequired[str],
    certificateArn: NotRequired[str],
    certificateAuthority: NotRequired[CertificateTypeDef],  # (2)
    configurationOverrides: NotRequired[ConfigurationOverridesPaginatorTypeDef],  # (3)
    serverUrl: NotRequired[str],
    createdAt: NotRequired[datetime],
    securityGroup: NotRequired[str],
    subnetIds: NotRequired[List[str]],
    stateDetails: NotRequired[str],
    failureReason: NotRequired[FailureReasonType],  # (4)
    tags: NotRequired[Dict[str, str]],
  1. See EndpointStateType
  2. See CertificateTypeDef
  3. See ConfigurationOverridesPaginatorTypeDef
  4. See FailureReasonType

JobRunPaginatorTypeDef#

# JobRunPaginatorTypeDef definition

class JobRunPaginatorTypeDef(TypedDict):
    id: NotRequired[str],
    name: NotRequired[str],
    virtualClusterId: NotRequired[str],
    arn: NotRequired[str],
    state: NotRequired[JobRunStateType],  # (1)
    clientToken: NotRequired[str],
    executionRoleArn: NotRequired[str],
    releaseLabel: NotRequired[str],
    configurationOverrides: NotRequired[ConfigurationOverridesPaginatorTypeDef],  # (2)
    jobDriver: NotRequired[JobDriverPaginatorTypeDef],  # (3)
    createdAt: NotRequired[datetime],
    createdBy: NotRequired[str],
    finishedAt: NotRequired[datetime],
    stateDetails: NotRequired[str],
    failureReason: NotRequired[FailureReasonType],  # (4)
    tags: NotRequired[Dict[str, str]],
    retryPolicyConfiguration: NotRequired[RetryPolicyConfigurationTypeDef],  # (5)
    retryPolicyExecution: NotRequired[RetryPolicyExecutionTyp