Skip to content

Type definitions#

Index > EMRServerless > Type definitions

Auto-generated documentation for EMRServerless type annotations stubs module mypy-boto3-emr-serverless.

TimestampTypeDef#

# TimestampTypeDef Union usage example

from mypy_boto3_emr_serverless.type_defs import TimestampTypeDef


def get_value() -> TimestampTypeDef:
    return ...


# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime.datetime,
    str,
]

ConfigurationUnionTypeDef#

# ConfigurationUnionTypeDef Union usage example

from mypy_boto3_emr_serverless.type_defs import ConfigurationUnionTypeDef


def get_value() -> ConfigurationUnionTypeDef:
    return ...


# ConfigurationUnionTypeDef definition

ConfigurationUnionTypeDef = Union[
    ConfigurationTypeDef,  # (1)
    ConfigurationOutputTypeDef,  # (2)
]
  1. See ConfigurationTypeDef
  2. See ConfigurationOutputTypeDef

DiskEncryptionConfigurationUnionTypeDef#

# DiskEncryptionConfigurationUnionTypeDef Union usage example

from mypy_boto3_emr_serverless.type_defs import DiskEncryptionConfigurationUnionTypeDef


def get_value() -> DiskEncryptionConfigurationUnionTypeDef:
    return ...


# DiskEncryptionConfigurationUnionTypeDef definition

DiskEncryptionConfigurationUnionTypeDef = Union[
    DiskEncryptionConfigurationTypeDef,  # (1)
    DiskEncryptionConfigurationOutputTypeDef,  # (2)
]
  1. See DiskEncryptionConfigurationTypeDef
  2. See DiskEncryptionConfigurationOutputTypeDef

JobRunExecutionIamPolicyUnionTypeDef#

# JobRunExecutionIamPolicyUnionTypeDef Union usage example

from mypy_boto3_emr_serverless.type_defs import JobRunExecutionIamPolicyUnionTypeDef


def get_value() -> JobRunExecutionIamPolicyUnionTypeDef:
    return ...


# JobRunExecutionIamPolicyUnionTypeDef definition

JobRunExecutionIamPolicyUnionTypeDef = Union[
    JobRunExecutionIamPolicyTypeDef,  # (1)
    JobRunExecutionIamPolicyOutputTypeDef,  # (2)
]
  1. See JobRunExecutionIamPolicyTypeDef
  2. See JobRunExecutionIamPolicyOutputTypeDef

NetworkConfigurationUnionTypeDef#

# NetworkConfigurationUnionTypeDef Union usage example

from mypy_boto3_emr_serverless.type_defs import NetworkConfigurationUnionTypeDef


def get_value() -> NetworkConfigurationUnionTypeDef:
    return ...


# NetworkConfigurationUnionTypeDef definition

NetworkConfigurationUnionTypeDef = Union[
    NetworkConfigurationTypeDef,  # (1)
    NetworkConfigurationOutputTypeDef,  # (2)
]
  1. See NetworkConfigurationTypeDef
  2. See NetworkConfigurationOutputTypeDef

SessionConfigurationOverridesUnionTypeDef#

# SessionConfigurationOverridesUnionTypeDef Union usage example

from mypy_boto3_emr_serverless.type_defs import SessionConfigurationOverridesUnionTypeDef


def get_value() -> SessionConfigurationOverridesUnionTypeDef:
    return ...


# SessionConfigurationOverridesUnionTypeDef definition

SessionConfigurationOverridesUnionTypeDef = Union[
    SessionConfigurationOverridesTypeDef,  # (1)
    SessionConfigurationOverridesOutputTypeDef,  # (2)
]
  1. See SessionConfigurationOverridesTypeDef
  2. See SessionConfigurationOverridesOutputTypeDef

JobDriverUnionTypeDef#

# JobDriverUnionTypeDef Union usage example

from mypy_boto3_emr_serverless.type_defs import JobDriverUnionTypeDef


def get_value() -> JobDriverUnionTypeDef:
    return ...


# JobDriverUnionTypeDef definition

JobDriverUnionTypeDef = Union[
    JobDriverTypeDef,  # (1)
    JobDriverOutputTypeDef,  # (2)
]
  1. See JobDriverTypeDef
  2. See JobDriverOutputTypeDef

MonitoringConfigurationUnionTypeDef#

# MonitoringConfigurationUnionTypeDef Union usage example

from mypy_boto3_emr_serverless.type_defs import MonitoringConfigurationUnionTypeDef


def get_value() -> MonitoringConfigurationUnionTypeDef:
    return ...


# MonitoringConfigurationUnionTypeDef definition

MonitoringConfigurationUnionTypeDef = Union[
    MonitoringConfigurationTypeDef,  # (1)
    MonitoringConfigurationOutputTypeDef,  # (2)
]
  1. See MonitoringConfigurationTypeDef
  2. See MonitoringConfigurationOutputTypeDef

ConfigurationOverridesUnionTypeDef#

# ConfigurationOverridesUnionTypeDef Union usage example

from mypy_boto3_emr_serverless.type_defs import ConfigurationOverridesUnionTypeDef


def get_value() -> ConfigurationOverridesUnionTypeDef:
    return ...


# ConfigurationOverridesUnionTypeDef definition

ConfigurationOverridesUnionTypeDef = Union[
    ConfigurationOverridesTypeDef,  # (1)
    ConfigurationOverridesOutputTypeDef,  # (2)
]
  1. See ConfigurationOverridesTypeDef
  2. See ConfigurationOverridesOutputTypeDef

ApplicationSummaryTypeDef#

# ApplicationSummaryTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ApplicationSummaryTypeDef


def get_value() -> ApplicationSummaryTypeDef:
    return {
        "id": ...,
    }


# ApplicationSummaryTypeDef definition

class ApplicationSummaryTypeDef(TypedDict):
    id: str,
    arn: str,
    releaseLabel: str,
    type: str,
    state: ApplicationStateType,  # (1)
    createdAt: datetime.datetime,
    updatedAt: datetime.datetime,
    name: NotRequired[str],
    stateDetails: NotRequired[str],
    architecture: NotRequired[ArchitectureType],  # (2)
  1. See ApplicationStateType
  2. See ArchitectureType

AutoStartConfigTypeDef#

# AutoStartConfigTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import AutoStartConfigTypeDef


def get_value() -> AutoStartConfigTypeDef:
    return {
        "enabled": ...,
    }


# AutoStartConfigTypeDef definition

class AutoStartConfigTypeDef(TypedDict):
    enabled: NotRequired[bool],

AutoStopConfigTypeDef#

# AutoStopConfigTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import AutoStopConfigTypeDef


def get_value() -> AutoStopConfigTypeDef:
    return {
        "enabled": ...,
    }


# AutoStopConfigTypeDef definition

class AutoStopConfigTypeDef(TypedDict):
    enabled: NotRequired[bool],
    idleTimeoutMinutes: NotRequired[int],

ConfigurationOutputTypeDef#

# ConfigurationOutputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ConfigurationOutputTypeDef


def get_value() -> ConfigurationOutputTypeDef:
    return {
        "classification": ...,
    }


# ConfigurationOutputTypeDef definition

class ConfigurationOutputTypeDef(TypedDict):
    classification: str,
    properties: NotRequired[dict[str, str]],
    configurations: NotRequired[list[dict[str, Any]]],

DiskEncryptionConfigurationOutputTypeDef#

# DiskEncryptionConfigurationOutputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import DiskEncryptionConfigurationOutputTypeDef


def get_value() -> DiskEncryptionConfigurationOutputTypeDef:
    return {
        "encryptionContext": ...,
    }


# DiskEncryptionConfigurationOutputTypeDef definition

class DiskEncryptionConfigurationOutputTypeDef(TypedDict):
    encryptionContext: NotRequired[dict[str, str]],
    encryptionKeyArn: NotRequired[str],

IdentityCenterConfigurationTypeDef#

# IdentityCenterConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import IdentityCenterConfigurationTypeDef


def get_value() -> IdentityCenterConfigurationTypeDef:
    return {
        "identityCenterInstanceArn": ...,
    }


# IdentityCenterConfigurationTypeDef definition

class IdentityCenterConfigurationTypeDef(TypedDict):
    identityCenterInstanceArn: NotRequired[str],
    identityCenterApplicationArn: NotRequired[str],
    userBackgroundSessionsEnabled: NotRequired[bool],

ImageConfigurationTypeDef#

# ImageConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ImageConfigurationTypeDef


def get_value() -> ImageConfigurationTypeDef:
    return {
        "imageUri": ...,
    }


# ImageConfigurationTypeDef definition

class ImageConfigurationTypeDef(TypedDict):
    imageUri: str,
    resolvedImageDigest: NotRequired[str],
    applicationLevelDigestResolution: NotRequired[bool],

InteractiveConfigurationTypeDef#

# InteractiveConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import InteractiveConfigurationTypeDef


def get_value() -> InteractiveConfigurationTypeDef:
    return {
        "studioEnabled": ...,
    }


# InteractiveConfigurationTypeDef definition

class InteractiveConfigurationTypeDef(TypedDict):
    studioEnabled: NotRequired[bool],
    livyEndpointEnabled: NotRequired[bool],
    sessionEnabled: NotRequired[bool],

JobLevelCostAllocationConfigurationTypeDef#

# JobLevelCostAllocationConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import JobLevelCostAllocationConfigurationTypeDef


def get_value() -> JobLevelCostAllocationConfigurationTypeDef:
    return {
        "enabled": ...,
    }


# JobLevelCostAllocationConfigurationTypeDef definition

class JobLevelCostAllocationConfigurationTypeDef(TypedDict):
    enabled: NotRequired[bool],

MaximumAllowedResourcesTypeDef#

# MaximumAllowedResourcesTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import MaximumAllowedResourcesTypeDef


def get_value() -> MaximumAllowedResourcesTypeDef:
    return {
        "cpu": ...,
    }


# MaximumAllowedResourcesTypeDef definition

class MaximumAllowedResourcesTypeDef(TypedDict):
    cpu: str,
    memory: str,
    disk: NotRequired[str],

NetworkConfigurationOutputTypeDef#

# NetworkConfigurationOutputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import NetworkConfigurationOutputTypeDef


def get_value() -> NetworkConfigurationOutputTypeDef:
    return {
        "subnetIds": ...,
    }


# NetworkConfigurationOutputTypeDef definition

class NetworkConfigurationOutputTypeDef(TypedDict):
    subnetIds: NotRequired[list[str]],
    securityGroupIds: NotRequired[list[str]],

SchedulerConfigurationTypeDef#

# SchedulerConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import SchedulerConfigurationTypeDef


def get_value() -> SchedulerConfigurationTypeDef:
    return {
        "queueTimeoutMinutes": ...,
    }


# SchedulerConfigurationTypeDef definition

class SchedulerConfigurationTypeDef(TypedDict):
    queueTimeoutMinutes: NotRequired[int],
    maxConcurrentRuns: NotRequired[int],

CancelJobRunRequestTypeDef#

# CancelJobRunRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import CancelJobRunRequestTypeDef


def get_value() -> CancelJobRunRequestTypeDef:
    return {
        "applicationId": ...,
    }


# CancelJobRunRequestTypeDef definition

class CancelJobRunRequestTypeDef(TypedDict):
    applicationId: str,
    jobRunId: str,
    shutdownGracePeriodInSeconds: NotRequired[int],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ResponseMetadataTypeDef


def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
    }


# ResponseMetadataTypeDef definition

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

CloudWatchLoggingConfigurationOutputTypeDef#

# CloudWatchLoggingConfigurationOutputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import CloudWatchLoggingConfigurationOutputTypeDef


def get_value() -> CloudWatchLoggingConfigurationOutputTypeDef:
    return {
        "enabled": ...,
    }


# CloudWatchLoggingConfigurationOutputTypeDef definition

class CloudWatchLoggingConfigurationOutputTypeDef(TypedDict):
    enabled: bool,
    logGroupName: NotRequired[str],
    logStreamNamePrefix: NotRequired[str],
    encryptionKeyArn: NotRequired[str],
    logTypes: NotRequired[dict[str, list[str]]],

CloudWatchLoggingConfigurationTypeDef#

# CloudWatchLoggingConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import CloudWatchLoggingConfigurationTypeDef


def get_value() -> CloudWatchLoggingConfigurationTypeDef:
    return {
        "enabled": ...,
    }


# CloudWatchLoggingConfigurationTypeDef definition

class CloudWatchLoggingConfigurationTypeDef(TypedDict):
    enabled: bool,
    logGroupName: NotRequired[str],
    logStreamNamePrefix: NotRequired[str],
    encryptionKeyArn: NotRequired[str],
    logTypes: NotRequired[Mapping[str, Sequence[str]]],

ConfigurationTypeDef#

# ConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ConfigurationTypeDef


def get_value() -> ConfigurationTypeDef:
    return {
        "classification": ...,
    }


# ConfigurationTypeDef definition

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

DiskEncryptionConfigurationTypeDef#

# DiskEncryptionConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import DiskEncryptionConfigurationTypeDef


def get_value() -> DiskEncryptionConfigurationTypeDef:
    return {
        "encryptionContext": ...,
    }


# DiskEncryptionConfigurationTypeDef definition

class DiskEncryptionConfigurationTypeDef(TypedDict):
    encryptionContext: NotRequired[Mapping[str, str]],
    encryptionKeyArn: NotRequired[str],

IdentityCenterConfigurationInputTypeDef#

# IdentityCenterConfigurationInputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import IdentityCenterConfigurationInputTypeDef


def get_value() -> IdentityCenterConfigurationInputTypeDef:
    return {
        "identityCenterInstanceArn": ...,
    }


# IdentityCenterConfigurationInputTypeDef definition

class IdentityCenterConfigurationInputTypeDef(TypedDict):
    identityCenterInstanceArn: NotRequired[str],
    userBackgroundSessionsEnabled: NotRequired[bool],

ImageConfigurationInputTypeDef#

# ImageConfigurationInputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ImageConfigurationInputTypeDef


def get_value() -> ImageConfigurationInputTypeDef:
    return {
        "imageUri": ...,
    }


# ImageConfigurationInputTypeDef definition

class ImageConfigurationInputTypeDef(TypedDict):
    imageUri: NotRequired[str],
    applicationLevelDigestResolution: NotRequired[bool],

DeleteApplicationRequestTypeDef#

# DeleteApplicationRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import DeleteApplicationRequestTypeDef


def get_value() -> DeleteApplicationRequestTypeDef:
    return {
        "applicationId": ...,
    }


# DeleteApplicationRequestTypeDef definition

class DeleteApplicationRequestTypeDef(TypedDict):
    applicationId: str,

GetApplicationRequestTypeDef#

# GetApplicationRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetApplicationRequestTypeDef


def get_value() -> GetApplicationRequestTypeDef:
    return {
        "applicationId": ...,
    }


# GetApplicationRequestTypeDef definition

class GetApplicationRequestTypeDef(TypedDict):
    applicationId: str,

GetDashboardForJobRunRequestTypeDef#

# GetDashboardForJobRunRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetDashboardForJobRunRequestTypeDef


def get_value() -> GetDashboardForJobRunRequestTypeDef:
    return {
        "applicationId": ...,
    }


# GetDashboardForJobRunRequestTypeDef definition

class GetDashboardForJobRunRequestTypeDef(TypedDict):
    applicationId: str,
    jobRunId: str,
    attempt: NotRequired[int],
    accessSystemProfileLogs: NotRequired[bool],

GetJobRunRequestTypeDef#

# GetJobRunRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetJobRunRequestTypeDef


def get_value() -> GetJobRunRequestTypeDef:
    return {
        "applicationId": ...,
    }


# GetJobRunRequestTypeDef definition

class GetJobRunRequestTypeDef(TypedDict):
    applicationId: str,
    jobRunId: str,
    attempt: NotRequired[int],

GetResourceDashboardRequestTypeDef#

# GetResourceDashboardRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetResourceDashboardRequestTypeDef


def get_value() -> GetResourceDashboardRequestTypeDef:
    return {
        "applicationId": ...,
    }


# GetResourceDashboardRequestTypeDef definition

class GetResourceDashboardRequestTypeDef(TypedDict):
    applicationId: str,
    resourceId: str,
    resourceType: ResourceTypeType,  # (1)
  1. See ResourceTypeType

GetSessionEndpointRequestTypeDef#

# GetSessionEndpointRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetSessionEndpointRequestTypeDef


def get_value() -> GetSessionEndpointRequestTypeDef:
    return {
        "applicationId": ...,
    }


# GetSessionEndpointRequestTypeDef definition

class GetSessionEndpointRequestTypeDef(TypedDict):
    applicationId: str,
    sessionId: str,

GetSessionRequestTypeDef#

# GetSessionRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetSessionRequestTypeDef


def get_value() -> GetSessionRequestTypeDef:
    return {
        "applicationId": ...,
    }


# GetSessionRequestTypeDef definition

class GetSessionRequestTypeDef(TypedDict):
    applicationId: str,
    sessionId: str,

HiveTypeDef#

# HiveTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import HiveTypeDef


def get_value() -> HiveTypeDef:
    return {
        "query": ...,
    }


# HiveTypeDef definition

class HiveTypeDef(TypedDict):
    query: str,
    initQueryFile: NotRequired[str],
    parameters: NotRequired[str],

WorkerResourceConfigTypeDef#

# WorkerResourceConfigTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import WorkerResourceConfigTypeDef


def get_value() -> WorkerResourceConfigTypeDef:
    return {
        "cpu": ...,
    }


# WorkerResourceConfigTypeDef definition

class WorkerResourceConfigTypeDef(TypedDict):
    cpu: str,
    memory: str,
    disk: NotRequired[str],
    diskType: NotRequired[str],

SparkSubmitOutputTypeDef#

# SparkSubmitOutputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import SparkSubmitOutputTypeDef


def get_value() -> SparkSubmitOutputTypeDef:
    return {
        "entryPoint": ...,
    }


# SparkSubmitOutputTypeDef definition

class SparkSubmitOutputTypeDef(TypedDict):
    entryPoint: str,
    entryPointArguments: NotRequired[list[str]],
    sparkSubmitParameters: NotRequired[str],

SparkSubmitTypeDef#

# SparkSubmitTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import SparkSubmitTypeDef


def get_value() -> SparkSubmitTypeDef:
    return {
        "entryPoint": ...,
    }


# SparkSubmitTypeDef definition

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

JobRunAttemptSummaryTypeDef#

# JobRunAttemptSummaryTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import JobRunAttemptSummaryTypeDef


def get_value() -> JobRunAttemptSummaryTypeDef:
    return {
        "applicationId": ...,
    }


# JobRunAttemptSummaryTypeDef definition

class JobRunAttemptSummaryTypeDef(TypedDict):
    applicationId: str,
    id: str,
    arn: str,
    createdBy: str,
    jobCreatedAt: datetime.datetime,
    createdAt: datetime.datetime,
    updatedAt: datetime.datetime,
    executionRole: str,
    state: JobRunStateType,  # (2)
    stateDetails: str,
    releaseLabel: str,
    name: NotRequired[str],
    mode: NotRequired[JobRunModeType],  # (1)
    type: NotRequired[str],
    attempt: NotRequired[int],
  1. See JobRunModeType
  2. See JobRunStateType

JobRunExecutionIamPolicyOutputTypeDef#

# JobRunExecutionIamPolicyOutputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import JobRunExecutionIamPolicyOutputTypeDef


def get_value() -> JobRunExecutionIamPolicyOutputTypeDef:
    return {
        "policy": ...,
    }


# JobRunExecutionIamPolicyOutputTypeDef definition

class JobRunExecutionIamPolicyOutputTypeDef(TypedDict):
    policy: NotRequired[str],
    policyArns: NotRequired[list[str]],

JobRunExecutionIamPolicyTypeDef#

# JobRunExecutionIamPolicyTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import JobRunExecutionIamPolicyTypeDef


def get_value() -> JobRunExecutionIamPolicyTypeDef:
    return {
        "policy": ...,
    }


# JobRunExecutionIamPolicyTypeDef definition

class JobRunExecutionIamPolicyTypeDef(TypedDict):
    policy: NotRequired[str],
    policyArns: NotRequired[Sequence[str]],

JobRunSummaryTypeDef#

# JobRunSummaryTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import JobRunSummaryTypeDef


def get_value() -> JobRunSummaryTypeDef:
    return {
        "applicationId": ...,
    }


# JobRunSummaryTypeDef definition

class JobRunSummaryTypeDef(TypedDict):
    applicationId: str,
    id: str,
    arn: str,
    createdBy: str,
    createdAt: datetime.datetime,
    updatedAt: datetime.datetime,
    executionRole: str,
    state: JobRunStateType,  # (2)
    stateDetails: str,
    releaseLabel: str,
    name: NotRequired[str],
    mode: NotRequired[JobRunModeType],  # (1)
    type: NotRequired[str],
    attempt: NotRequired[int],
    attemptCreatedAt: NotRequired[datetime.datetime],
    attemptUpdatedAt: NotRequired[datetime.datetime],
  1. See JobRunModeType
  2. See JobRunStateType

ResourceUtilizationTypeDef#

# ResourceUtilizationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ResourceUtilizationTypeDef


def get_value() -> ResourceUtilizationTypeDef:
    return {
        "vCPUHour": ...,
    }


# ResourceUtilizationTypeDef definition

class ResourceUtilizationTypeDef(TypedDict):
    vCPUHour: NotRequired[float],
    memoryGBHour: NotRequired[float],
    storageGBHour: NotRequired[float],

RetryPolicyTypeDef#

# RetryPolicyTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import RetryPolicyTypeDef


def get_value() -> RetryPolicyTypeDef:
    return {
        "maxAttempts": ...,
    }


# RetryPolicyTypeDef definition

class RetryPolicyTypeDef(TypedDict):
    maxAttempts: NotRequired[int],
    maxFailedAttemptsPerHour: NotRequired[int],

TotalResourceUtilizationTypeDef#

# TotalResourceUtilizationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import TotalResourceUtilizationTypeDef


def get_value() -> TotalResourceUtilizationTypeDef:
    return {
        "vCPUHour": ...,
    }


# TotalResourceUtilizationTypeDef definition

class TotalResourceUtilizationTypeDef(TypedDict):
    vCPUHour: NotRequired[float],
    memoryGBHour: NotRequired[float],
    storageGBHour: NotRequired[float],

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import PaginatorConfigTypeDef


def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }


# PaginatorConfigTypeDef definition

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

ListApplicationsRequestTypeDef#

# ListApplicationsRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListApplicationsRequestTypeDef


def get_value() -> ListApplicationsRequestTypeDef:
    return {
        "nextToken": ...,
    }


# ListApplicationsRequestTypeDef definition

class ListApplicationsRequestTypeDef(TypedDict):
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    states: NotRequired[Sequence[ApplicationStateType]],  # (1)
  1. See Sequence[ApplicationStateType]

ListJobRunAttemptsRequestTypeDef#

# ListJobRunAttemptsRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListJobRunAttemptsRequestTypeDef


def get_value() -> ListJobRunAttemptsRequestTypeDef:
    return {
        "applicationId": ...,
    }


# ListJobRunAttemptsRequestTypeDef definition

class ListJobRunAttemptsRequestTypeDef(TypedDict):
    applicationId: str,
    jobRunId: str,
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

SessionSummaryTypeDef#

# SessionSummaryTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import SessionSummaryTypeDef


def get_value() -> SessionSummaryTypeDef:
    return {
        "applicationId": ...,
    }


# SessionSummaryTypeDef definition

class SessionSummaryTypeDef(TypedDict):
    applicationId: str,
    sessionId: str,
    arn: str,
    state: SessionStateType,  # (1)
    stateDetails: str,
    releaseLabel: str,
    executionRoleArn: str,
    createdBy: str,
    createdAt: datetime.datetime,
    updatedAt: datetime.datetime,
    name: NotRequired[str],
  1. See SessionStateType

ListTagsForResourceRequestTypeDef#

# ListTagsForResourceRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListTagsForResourceRequestTypeDef


def get_value() -> ListTagsForResourceRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# ListTagsForResourceRequestTypeDef definition

class ListTagsForResourceRequestTypeDef(TypedDict):
    resourceArn: str,

ManagedPersistenceMonitoringConfigurationTypeDef#

# ManagedPersistenceMonitoringConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ManagedPersistenceMonitoringConfigurationTypeDef


def get_value() -> ManagedPersistenceMonitoringConfigurationTypeDef:
    return {
        "enabled": ...,
    }


# ManagedPersistenceMonitoringConfigurationTypeDef definition

class ManagedPersistenceMonitoringConfigurationTypeDef(TypedDict):
    enabled: NotRequired[bool],
    encryptionKeyArn: NotRequired[str],

PrometheusMonitoringConfigurationTypeDef#

# PrometheusMonitoringConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import PrometheusMonitoringConfigurationTypeDef


def get_value() -> PrometheusMonitoringConfigurationTypeDef:
    return {
        "remoteWriteUrl": ...,
    }


# PrometheusMonitoringConfigurationTypeDef definition

class PrometheusMonitoringConfigurationTypeDef(TypedDict):
    remoteWriteUrl: NotRequired[str],

S3MonitoringConfigurationTypeDef#

# S3MonitoringConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import S3MonitoringConfigurationTypeDef


def get_value() -> S3MonitoringConfigurationTypeDef:
    return {
        "logUri": ...,
    }


# S3MonitoringConfigurationTypeDef definition

class S3MonitoringConfigurationTypeDef(TypedDict):
    logUri: NotRequired[str],
    encryptionKeyArn: NotRequired[str],

NetworkConfigurationTypeDef#

# NetworkConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import NetworkConfigurationTypeDef


def get_value() -> NetworkConfigurationTypeDef:
    return {
        "subnetIds": ...,
    }


# NetworkConfigurationTypeDef definition

class NetworkConfigurationTypeDef(TypedDict):
    subnetIds: NotRequired[Sequence[str]],
    securityGroupIds: NotRequired[Sequence[str]],

StartApplicationRequestTypeDef#

# StartApplicationRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import StartApplicationRequestTypeDef


def get_value() -> StartApplicationRequestTypeDef:
    return {
        "applicationId": ...,
    }


# StartApplicationRequestTypeDef definition

class StartApplicationRequestTypeDef(TypedDict):
    applicationId: str,

StopApplicationRequestTypeDef#

# StopApplicationRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import StopApplicationRequestTypeDef


def get_value() -> StopApplicationRequestTypeDef:
    return {
        "applicationId": ...,
    }


# StopApplicationRequestTypeDef definition

class StopApplicationRequestTypeDef(TypedDict):
    applicationId: str,

TagResourceRequestTypeDef#

# TagResourceRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import TagResourceRequestTypeDef


def get_value() -> TagResourceRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# TagResourceRequestTypeDef definition

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

TerminateSessionRequestTypeDef#

# TerminateSessionRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import TerminateSessionRequestTypeDef


def get_value() -> TerminateSessionRequestTypeDef:
    return {
        "applicationId": ...,
    }


# TerminateSessionRequestTypeDef definition

class TerminateSessionRequestTypeDef(TypedDict):
    applicationId: str,
    sessionId: str,

UntagResourceRequestTypeDef#

# UntagResourceRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import UntagResourceRequestTypeDef


def get_value() -> UntagResourceRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# UntagResourceRequestTypeDef definition

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

SessionConfigurationOverridesOutputTypeDef#

# SessionConfigurationOverridesOutputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import SessionConfigurationOverridesOutputTypeDef


def get_value() -> SessionConfigurationOverridesOutputTypeDef:
    return {
        "runtimeConfiguration": ...,
    }


# SessionConfigurationOverridesOutputTypeDef definition

class SessionConfigurationOverridesOutputTypeDef(TypedDict):
    runtimeConfiguration: NotRequired[list[ConfigurationOutputTypeDef]],  # (1)
  1. See list[ConfigurationOutputTypeDef]

WorkerTypeSpecificationTypeDef#

# WorkerTypeSpecificationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import WorkerTypeSpecificationTypeDef


def get_value() -> WorkerTypeSpecificationTypeDef:
    return {
        "imageConfiguration": ...,
    }


# WorkerTypeSpecificationTypeDef definition

class WorkerTypeSpecificationTypeDef(TypedDict):
    imageConfiguration: NotRequired[ImageConfigurationTypeDef],  # (1)
  1. See ImageConfigurationTypeDef

CancelJobRunResponseTypeDef#

# CancelJobRunResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import CancelJobRunResponseTypeDef


def get_value() -> CancelJobRunResponseTypeDef:
    return {
        "applicationId": ...,
    }


# CancelJobRunResponseTypeDef definition

class CancelJobRunResponseTypeDef(TypedDict):
    applicationId: str,
    jobRunId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreateApplicationResponseTypeDef#

# CreateApplicationResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import CreateApplicationResponseTypeDef


def get_value() -> CreateApplicationResponseTypeDef:
    return {
        "applicationId": ...,
    }


# CreateApplicationResponseTypeDef definition

class CreateApplicationResponseTypeDef(TypedDict):
    applicationId: str,
    name: str,
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetDashboardForJobRunResponseTypeDef#

# GetDashboardForJobRunResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetDashboardForJobRunResponseTypeDef


def get_value() -> GetDashboardForJobRunResponseTypeDef:
    return {
        "url": ...,
    }


# GetDashboardForJobRunResponseTypeDef definition

class GetDashboardForJobRunResponseTypeDef(TypedDict):
    url: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetResourceDashboardResponseTypeDef#

# GetResourceDashboardResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetResourceDashboardResponseTypeDef


def get_value() -> GetResourceDashboardResponseTypeDef:
    return {
        "url": ...,
    }


# GetResourceDashboardResponseTypeDef definition

class GetResourceDashboardResponseTypeDef(TypedDict):
    url: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetSessionEndpointResponseTypeDef#

# GetSessionEndpointResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetSessionEndpointResponseTypeDef


def get_value() -> GetSessionEndpointResponseTypeDef:
    return {
        "applicationId": ...,
    }


# GetSessionEndpointResponseTypeDef definition

class GetSessionEndpointResponseTypeDef(TypedDict):
    applicationId: str,
    sessionId: str,
    endpoint: str,
    authToken: str,
    authTokenExpiresAt: datetime.datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListApplicationsResponseTypeDef#

# ListApplicationsResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListApplicationsResponseTypeDef


def get_value() -> ListApplicationsResponseTypeDef:
    return {
        "applications": ...,
    }


# ListApplicationsResponseTypeDef definition

class ListApplicationsResponseTypeDef(TypedDict):
    applications: list[ApplicationSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See list[ApplicationSummaryTypeDef]
  2. See ResponseMetadataTypeDef

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListTagsForResourceResponseTypeDef


def get_value() -> ListTagsForResourceResponseTypeDef:
    return {
        "tags": ...,
    }


# ListTagsForResourceResponseTypeDef definition

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

StartJobRunResponseTypeDef#

# StartJobRunResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import StartJobRunResponseTypeDef


def get_value() -> StartJobRunResponseTypeDef:
    return {
        "applicationId": ...,
    }


# StartJobRunResponseTypeDef definition

class StartJobRunResponseTypeDef(TypedDict):
    applicationId: str,
    jobRunId: str,
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StartSessionResponseTypeDef#

# StartSessionResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import StartSessionResponseTypeDef


def get_value() -> StartSessionResponseTypeDef:
    return {
        "applicationId": ...,
    }


# StartSessionResponseTypeDef definition

class StartSessionResponseTypeDef(TypedDict):
    applicationId: str,
    sessionId: str,
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

TerminateSessionResponseTypeDef#

# TerminateSessionResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import TerminateSessionResponseTypeDef


def get_value() -> TerminateSessionResponseTypeDef:
    return {
        "applicationId": ...,
    }


# TerminateSessionResponseTypeDef definition

class TerminateSessionResponseTypeDef(TypedDict):
    applicationId: str,
    sessionId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

SessionConfigurationOverridesTypeDef#

# SessionConfigurationOverridesTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import SessionConfigurationOverridesTypeDef


def get_value() -> SessionConfigurationOverridesTypeDef:
    return {
        "runtimeConfiguration": ...,
    }


# SessionConfigurationOverridesTypeDef definition

class SessionConfigurationOverridesTypeDef(TypedDict):
    runtimeConfiguration: NotRequired[Sequence[ConfigurationTypeDef]],  # (1)
  1. See Sequence[ConfigurationTypeDef]

WorkerTypeSpecificationInputTypeDef#

# WorkerTypeSpecificationInputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import WorkerTypeSpecificationInputTypeDef


def get_value() -> WorkerTypeSpecificationInputTypeDef:
    return {
        "imageConfiguration": ...,
    }


# WorkerTypeSpecificationInputTypeDef definition

class WorkerTypeSpecificationInputTypeDef(TypedDict):
    imageConfiguration: NotRequired[ImageConfigurationInputTypeDef],  # (1)
  1. See ImageConfigurationInputTypeDef

InitialCapacityConfigTypeDef#

# InitialCapacityConfigTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import InitialCapacityConfigTypeDef


def get_value() -> InitialCapacityConfigTypeDef:
    return {
        "workerCount": ...,
    }


# InitialCapacityConfigTypeDef definition

class InitialCapacityConfigTypeDef(TypedDict):
    workerCount: int,
    workerConfiguration: NotRequired[WorkerResourceConfigTypeDef],  # (1)
  1. See WorkerResourceConfigTypeDef

JobDriverOutputTypeDef#

# JobDriverOutputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import JobDriverOutputTypeDef


def get_value() -> JobDriverOutputTypeDef:
    return {
        "sparkSubmit": ...,
    }


# JobDriverOutputTypeDef definition

class JobDriverOutputTypeDef(TypedDict):
    sparkSubmit: NotRequired[SparkSubmitOutputTypeDef],  # (1)
    hive: NotRequired[HiveTypeDef],  # (2)
  1. See SparkSubmitOutputTypeDef
  2. See HiveTypeDef

JobDriverTypeDef#

# JobDriverTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import JobDriverTypeDef


def get_value() -> JobDriverTypeDef:
    return {
        "sparkSubmit": ...,
    }


# JobDriverTypeDef definition

class JobDriverTypeDef(TypedDict):
    sparkSubmit: NotRequired[SparkSubmitTypeDef],  # (1)
    hive: NotRequired[HiveTypeDef],  # (2)
  1. See SparkSubmitTypeDef
  2. See HiveTypeDef

ListJobRunAttemptsResponseTypeDef#

# ListJobRunAttemptsResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListJobRunAttemptsResponseTypeDef


def get_value() -> ListJobRunAttemptsResponseTypeDef:
    return {
        "jobRunAttempts": ...,
    }


# ListJobRunAttemptsResponseTypeDef definition

class ListJobRunAttemptsResponseTypeDef(TypedDict):
    jobRunAttempts: list[JobRunAttemptSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See list[JobRunAttemptSummaryTypeDef]
  2. See ResponseMetadataTypeDef

ListJobRunsResponseTypeDef#

# ListJobRunsResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListJobRunsResponseTypeDef


def get_value() -> ListJobRunsResponseTypeDef:
    return {
        "jobRuns": ...,
    }


# ListJobRunsResponseTypeDef definition

class ListJobRunsResponseTypeDef(TypedDict):
    jobRuns: list[JobRunSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See list[JobRunSummaryTypeDef]
  2. See ResponseMetadataTypeDef

ListApplicationsRequestPaginateTypeDef#

# ListApplicationsRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListApplicationsRequestPaginateTypeDef


def get_value() -> ListApplicationsRequestPaginateTypeDef:
    return {
        "states": ...,
    }


# ListApplicationsRequestPaginateTypeDef definition

class ListApplicationsRequestPaginateTypeDef(TypedDict):
    states: NotRequired[Sequence[ApplicationStateType]],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See Sequence[ApplicationStateType]
  2. See PaginatorConfigTypeDef

ListJobRunAttemptsRequestPaginateTypeDef#

# ListJobRunAttemptsRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListJobRunAttemptsRequestPaginateTypeDef


def get_value() -> ListJobRunAttemptsRequestPaginateTypeDef:
    return {
        "applicationId": ...,
    }


# ListJobRunAttemptsRequestPaginateTypeDef definition

class ListJobRunAttemptsRequestPaginateTypeDef(TypedDict):
    applicationId: str,
    jobRunId: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListJobRunsRequestPaginateTypeDef#

# ListJobRunsRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListJobRunsRequestPaginateTypeDef


def get_value() -> ListJobRunsRequestPaginateTypeDef:
    return {
        "applicationId": ...,
    }


# ListJobRunsRequestPaginateTypeDef definition

class ListJobRunsRequestPaginateTypeDef(TypedDict):
    applicationId: str,
    createdAtAfter: NotRequired[TimestampTypeDef],
    createdAtBefore: NotRequired[TimestampTypeDef],
    states: NotRequired[Sequence[JobRunStateType]],  # (1)
    mode: NotRequired[JobRunModeType],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See Sequence[JobRunStateType]
  2. See JobRunModeType
  3. See PaginatorConfigTypeDef

ListJobRunsRequestTypeDef#

# ListJobRunsRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListJobRunsRequestTypeDef


def get_value() -> ListJobRunsRequestTypeDef:
    return {
        "applicationId": ...,
    }


# ListJobRunsRequestTypeDef definition

class ListJobRunsRequestTypeDef(TypedDict):
    applicationId: str,
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    createdAtAfter: NotRequired[TimestampTypeDef],
    createdAtBefore: NotRequired[TimestampTypeDef],
    states: NotRequired[Sequence[JobRunStateType]],  # (1)
    mode: NotRequired[JobRunModeType],  # (2)
  1. See Sequence[JobRunStateType]
  2. See JobRunModeType

ListSessionsRequestPaginateTypeDef#

# ListSessionsRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListSessionsRequestPaginateTypeDef


def get_value() -> ListSessionsRequestPaginateTypeDef:
    return {
        "applicationId": ...,
    }


# ListSessionsRequestPaginateTypeDef definition

class ListSessionsRequestPaginateTypeDef(TypedDict):
    applicationId: str,
    states: NotRequired[Sequence[SessionStateType]],  # (1)
    createdAtAfter: NotRequired[TimestampTypeDef],
    createdAtBefore: NotRequired[TimestampTypeDef],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See Sequence[SessionStateType]
  2. See PaginatorConfigTypeDef

ListSessionsRequestTypeDef#

# ListSessionsRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListSessionsRequestTypeDef


def get_value() -> ListSessionsRequestTypeDef:
    return {
        "applicationId": ...,
    }


# ListSessionsRequestTypeDef definition

class ListSessionsRequestTypeDef(TypedDict):
    applicationId: str,
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    states: NotRequired[Sequence[SessionStateType]],  # (1)
    createdAtAfter: NotRequired[TimestampTypeDef],
    createdAtBefore: NotRequired[TimestampTypeDef],
  1. See Sequence[SessionStateType]

ListSessionsResponseTypeDef#

# ListSessionsResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ListSessionsResponseTypeDef


def get_value() -> ListSessionsResponseTypeDef:
    return {
        "sessions": ...,
    }


# ListSessionsResponseTypeDef definition

class ListSessionsResponseTypeDef(TypedDict):
    sessions: list[SessionSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See list[SessionSummaryTypeDef]
  2. See ResponseMetadataTypeDef

MonitoringConfigurationOutputTypeDef#

# MonitoringConfigurationOutputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import MonitoringConfigurationOutputTypeDef


def get_value() -> MonitoringConfigurationOutputTypeDef:
    return {
        "s3MonitoringConfiguration": ...,
    }


# MonitoringConfigurationOutputTypeDef definition

class MonitoringConfigurationOutputTypeDef(TypedDict):
    s3MonitoringConfiguration: NotRequired[S3MonitoringConfigurationTypeDef],  # (1)
    managedPersistenceMonitoringConfiguration: NotRequired[ManagedPersistenceMonitoringConfigurationTypeDef],  # (2)
    cloudWatchLoggingConfiguration: NotRequired[CloudWatchLoggingConfigurationOutputTypeDef],  # (3)
    prometheusMonitoringConfiguration: NotRequired[PrometheusMonitoringConfigurationTypeDef],  # (4)
  1. See S3MonitoringConfigurationTypeDef
  2. See ManagedPersistenceMonitoringConfigurationTypeDef
  3. See CloudWatchLoggingConfigurationOutputTypeDef
  4. See PrometheusMonitoringConfigurationTypeDef

MonitoringConfigurationTypeDef#

# MonitoringConfigurationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import MonitoringConfigurationTypeDef


def get_value() -> MonitoringConfigurationTypeDef:
    return {
        "s3MonitoringConfiguration": ...,
    }


# MonitoringConfigurationTypeDef definition

class MonitoringConfigurationTypeDef(TypedDict):
    s3MonitoringConfiguration: NotRequired[S3MonitoringConfigurationTypeDef],  # (1)
    managedPersistenceMonitoringConfiguration: NotRequired[ManagedPersistenceMonitoringConfigurationTypeDef],  # (2)
    cloudWatchLoggingConfiguration: NotRequired[CloudWatchLoggingConfigurationTypeDef],  # (3)
    prometheusMonitoringConfiguration: NotRequired[PrometheusMonitoringConfigurationTypeDef],  # (4)
  1. See S3MonitoringConfigurationTypeDef
  2. See ManagedPersistenceMonitoringConfigurationTypeDef
  3. See CloudWatchLoggingConfigurationTypeDef
  4. See PrometheusMonitoringConfigurationTypeDef

SessionTypeDef#

# SessionTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import SessionTypeDef


def get_value() -> SessionTypeDef:
    return {
        "applicationId": ...,
    }


# SessionTypeDef definition

class SessionTypeDef(TypedDict):
    applicationId: str,
    sessionId: str,
    arn: str,
    state: SessionStateType,  # (1)
    stateDetails: str,
    releaseLabel: str,
    executionRoleArn: str,
    createdBy: str,
    createdAt: datetime.datetime,
    updatedAt: datetime.datetime,
    name: NotRequired[str],
    startedAt: NotRequired[datetime.datetime],
    endedAt: NotRequired[datetime.datetime],
    idleSince: NotRequired[datetime.datetime],
    configurationOverrides: NotRequired[SessionConfigurationOverridesOutputTypeDef],  # (2)
    networkConfiguration: NotRequired[NetworkConfigurationOutputTypeDef],  # (3)
    idleTimeoutMinutes: NotRequired[int],
    tags: NotRequired[dict[str, str]],
    totalResourceUtilization: NotRequired[TotalResourceUtilizationTypeDef],  # (4)
    billedResourceUtilization: NotRequired[ResourceUtilizationTypeDef],  # (5)
    totalExecutionDurationSeconds: NotRequired[int],
  1. See SessionStateType
  2. See SessionConfigurationOverridesOutputTypeDef
  3. See NetworkConfigurationOutputTypeDef
  4. See TotalResourceUtilizationTypeDef
  5. See ResourceUtilizationTypeDef

ApplicationTypeDef#

# ApplicationTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ApplicationTypeDef


def get_value() -> ApplicationTypeDef:
    return {
        "applicationId": ...,
    }


# ApplicationTypeDef definition

class ApplicationTypeDef(TypedDict):
    applicationId: str,
    arn: str,
    releaseLabel: str,
    type: str,
    state: ApplicationStateType,  # (1)
    createdAt: datetime.datetime,
    updatedAt: datetime.datetime,
    name: NotRequired[str],
    stateDetails: NotRequired[str],
    initialCapacity: NotRequired[dict[str, InitialCapacityConfigTypeDef]],  # (2)
    maximumCapacity: NotRequired[MaximumAllowedResourcesTypeDef],  # (3)
    tags: NotRequired[dict[str, str]],
    autoStartConfiguration: NotRequired[AutoStartConfigTypeDef],  # (4)
    autoStopConfiguration: NotRequired[AutoStopConfigTypeDef],  # (5)
    networkConfiguration: NotRequired[NetworkConfigurationOutputTypeDef],  # (6)
    architecture: NotRequired[ArchitectureType],  # (7)
    imageConfiguration: NotRequired[ImageConfigurationTypeDef],  # (8)
    workerTypeSpecifications: NotRequired[dict[str, WorkerTypeSpecificationTypeDef]],  # (9)
    runtimeConfiguration: NotRequired[list[ConfigurationOutputTypeDef]],  # (10)
    monitoringConfiguration: NotRequired[MonitoringConfigurationOutputTypeDef],  # (11)
    diskEncryptionConfiguration: NotRequired[DiskEncryptionConfigurationOutputTypeDef],  # (12)
    interactiveConfiguration: NotRequired[InteractiveConfigurationTypeDef],  # (13)
    schedulerConfiguration: NotRequired[SchedulerConfigurationTypeDef],  # (14)
    identityCenterConfiguration: NotRequired[IdentityCenterConfigurationTypeDef],  # (15)
    jobLevelCostAllocationConfiguration: NotRequired[JobLevelCostAllocationConfigurationTypeDef],  # (16)
  1. See ApplicationStateType
  2. See dict[str, InitialCapacityConfigTypeDef]
  3. See MaximumAllowedResourcesTypeDef
  4. See AutoStartConfigTypeDef
  5. See AutoStopConfigTypeDef
  6. See NetworkConfigurationOutputTypeDef
  7. See ArchitectureType
  8. See ImageConfigurationTypeDef
  9. See dict[str, WorkerTypeSpecificationTypeDef]
  10. See list[ConfigurationOutputTypeDef]
  11. See MonitoringConfigurationOutputTypeDef
  12. See DiskEncryptionConfigurationOutputTypeDef
  13. See InteractiveConfigurationTypeDef
  14. See SchedulerConfigurationTypeDef
  15. See IdentityCenterConfigurationTypeDef
  16. See JobLevelCostAllocationConfigurationTypeDef

ConfigurationOverridesOutputTypeDef#

# ConfigurationOverridesOutputTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ConfigurationOverridesOutputTypeDef


def get_value() -> ConfigurationOverridesOutputTypeDef:
    return {
        "applicationConfiguration": ...,
    }


# ConfigurationOverridesOutputTypeDef definition

class ConfigurationOverridesOutputTypeDef(TypedDict):
    applicationConfiguration: NotRequired[list[ConfigurationOutputTypeDef]],  # (1)
    monitoringConfiguration: NotRequired[MonitoringConfigurationOutputTypeDef],  # (2)
    diskEncryptionConfiguration: NotRequired[DiskEncryptionConfigurationOutputTypeDef],  # (3)
  1. See list[ConfigurationOutputTypeDef]
  2. See MonitoringConfigurationOutputTypeDef
  3. See DiskEncryptionConfigurationOutputTypeDef

ConfigurationOverridesTypeDef#

# ConfigurationOverridesTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import ConfigurationOverridesTypeDef


def get_value() -> ConfigurationOverridesTypeDef:
    return {
        "applicationConfiguration": ...,
    }


# ConfigurationOverridesTypeDef definition

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

GetSessionResponseTypeDef#

# GetSessionResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetSessionResponseTypeDef


def get_value() -> GetSessionResponseTypeDef:
    return {
        "session": ...,
    }


# GetSessionResponseTypeDef definition

class GetSessionResponseTypeDef(TypedDict):
    session: SessionTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See SessionTypeDef
  2. See ResponseMetadataTypeDef

StartSessionRequestTypeDef#

# StartSessionRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import StartSessionRequestTypeDef


def get_value() -> StartSessionRequestTypeDef:
    return {
        "applicationId": ...,
    }


# StartSessionRequestTypeDef definition

class StartSessionRequestTypeDef(TypedDict):
    applicationId: str,
    clientToken: str,
    executionRoleArn: str,
    configurationOverrides: NotRequired[SessionConfigurationOverridesUnionTypeDef],  # (1)
    tags: NotRequired[Mapping[str, str]],
    idleTimeoutMinutes: NotRequired[int],
    name: NotRequired[str],
  1. See SessionConfigurationOverridesUnionTypeDef

GetApplicationResponseTypeDef#

# GetApplicationResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetApplicationResponseTypeDef


def get_value() -> GetApplicationResponseTypeDef:
    return {
        "application": ...,
    }


# GetApplicationResponseTypeDef definition

class GetApplicationResponseTypeDef(TypedDict):
    application: ApplicationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApplicationTypeDef
  2. See ResponseMetadataTypeDef

UpdateApplicationResponseTypeDef#

# UpdateApplicationResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import UpdateApplicationResponseTypeDef


def get_value() -> UpdateApplicationResponseTypeDef:
    return {
        "application": ...,
    }


# UpdateApplicationResponseTypeDef definition

class UpdateApplicationResponseTypeDef(TypedDict):
    application: ApplicationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApplicationTypeDef
  2. See ResponseMetadataTypeDef

JobRunTypeDef#

# JobRunTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import JobRunTypeDef


def get_value() -> JobRunTypeDef:
    return {
        "applicationId": ...,
    }


# JobRunTypeDef definition

class JobRunTypeDef(TypedDict):
    applicationId: str,
    jobRunId: str,
    arn: str,
    createdBy: str,
    createdAt: datetime.datetime,
    updatedAt: datetime.datetime,
    executionRole: str,
    state: JobRunStateType,  # (2)
    stateDetails: str,
    releaseLabel: str,
    jobDriver: JobDriverOutputTypeDef,  # (4)
    name: NotRequired[str],
    executionIamPolicy: NotRequired[JobRunExecutionIamPolicyOutputTypeDef],  # (1)
    configurationOverrides: NotRequired[ConfigurationOverridesOutputTypeDef],  # (3)
    tags: NotRequired[dict[str, str]],
    totalResourceUtilization: NotRequired[TotalResourceUtilizationTypeDef],  # (5)
    networkConfiguration: NotRequired[NetworkConfigurationOutputTypeDef],  # (6)
    totalExecutionDurationSeconds: NotRequired[int],
    executionTimeoutMinutes: NotRequired[int],
    billedResourceUtilization: NotRequired[ResourceUtilizationTypeDef],  # (7)
    mode: NotRequired[JobRunModeType],  # (8)
    retryPolicy: NotRequired[RetryPolicyTypeDef],  # (9)
    attempt: NotRequired[int],
    attemptCreatedAt: NotRequired[datetime.datetime],
    attemptUpdatedAt: NotRequired[datetime.datetime],
    startedAt: NotRequired[datetime.datetime],
    endedAt: NotRequired[datetime.datetime],
    queuedDurationMilliseconds: NotRequired[int],
    imageConfiguration: NotRequired[ImageConfigurationTypeDef],  # (10)
    workerTypeSpecifications: NotRequired[dict[str, WorkerTypeSpecificationTypeDef]],  # (11)
  1. See JobRunExecutionIamPolicyOutputTypeDef
  2. See JobRunStateType
  3. See ConfigurationOverridesOutputTypeDef
  4. See JobDriverOutputTypeDef
  5. See TotalResourceUtilizationTypeDef
  6. See NetworkConfigurationOutputTypeDef
  7. See ResourceUtilizationTypeDef
  8. See JobRunModeType
  9. See RetryPolicyTypeDef
  10. See ImageConfigurationTypeDef
  11. See dict[str, WorkerTypeSpecificationTypeDef]

CreateApplicationRequestTypeDef#

# CreateApplicationRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import CreateApplicationRequestTypeDef


def get_value() -> CreateApplicationRequestTypeDef:
    return {
        "releaseLabel": ...,
    }


# CreateApplicationRequestTypeDef definition

class CreateApplicationRequestTypeDef(TypedDict):
    releaseLabel: str,
    type: str,
    clientToken: str,
    name: NotRequired[str],
    initialCapacity: NotRequired[Mapping[str, InitialCapacityConfigTypeDef]],  # (1)
    maximumCapacity: NotRequired[MaximumAllowedResourcesTypeDef],  # (2)
    tags: NotRequired[Mapping[str, str]],
    autoStartConfiguration: NotRequired[AutoStartConfigTypeDef],  # (3)
    autoStopConfiguration: NotRequired[AutoStopConfigTypeDef],  # (4)
    networkConfiguration: NotRequired[NetworkConfigurationUnionTypeDef],  # (5)
    architecture: NotRequired[ArchitectureType],  # (6)
    imageConfiguration: NotRequired[ImageConfigurationInputTypeDef],  # (7)
    workerTypeSpecifications: NotRequired[Mapping[str, WorkerTypeSpecificationInputTypeDef]],  # (8)
    runtimeConfiguration: NotRequired[Sequence[ConfigurationUnionTypeDef]],  # (9)
    monitoringConfiguration: NotRequired[MonitoringConfigurationUnionTypeDef],  # (10)
    diskEncryptionConfiguration: NotRequired[DiskEncryptionConfigurationUnionTypeDef],  # (11)
    interactiveConfiguration: NotRequired[InteractiveConfigurationTypeDef],  # (12)
    schedulerConfiguration: NotRequired[SchedulerConfigurationTypeDef],  # (13)
    identityCenterConfiguration: NotRequired[IdentityCenterConfigurationInputTypeDef],  # (14)
    jobLevelCostAllocationConfiguration: NotRequired[JobLevelCostAllocationConfigurationTypeDef],  # (15)
  1. See Mapping[str, InitialCapacityConfigTypeDef]
  2. See MaximumAllowedResourcesTypeDef
  3. See AutoStartConfigTypeDef
  4. See AutoStopConfigTypeDef
  5. See NetworkConfigurationUnionTypeDef
  6. See ArchitectureType
  7. See ImageConfigurationInputTypeDef
  8. See Mapping[str, WorkerTypeSpecificationInputTypeDef]
  9. See Sequence[ConfigurationUnionTypeDef]
  10. See MonitoringConfigurationUnionTypeDef
  11. See DiskEncryptionConfigurationUnionTypeDef
  12. See InteractiveConfigurationTypeDef
  13. See SchedulerConfigurationTypeDef
  14. See IdentityCenterConfigurationInputTypeDef
  15. See JobLevelCostAllocationConfigurationTypeDef

UpdateApplicationRequestTypeDef#

# UpdateApplicationRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import UpdateApplicationRequestTypeDef


def get_value() -> UpdateApplicationRequestTypeDef:
    return {
        "applicationId": ...,
    }


# UpdateApplicationRequestTypeDef definition

class UpdateApplicationRequestTypeDef(TypedDict):
    applicationId: str,
    clientToken: str,
    initialCapacity: NotRequired[Mapping[str, InitialCapacityConfigTypeDef]],  # (1)
    maximumCapacity: NotRequired[MaximumAllowedResourcesTypeDef],  # (2)
    autoStartConfiguration: NotRequired[AutoStartConfigTypeDef],  # (3)
    autoStopConfiguration: NotRequired[AutoStopConfigTypeDef],  # (4)
    networkConfiguration: NotRequired[NetworkConfigurationUnionTypeDef],  # (5)
    architecture: NotRequired[ArchitectureType],  # (6)
    imageConfiguration: NotRequired[ImageConfigurationInputTypeDef],  # (7)
    workerTypeSpecifications: NotRequired[Mapping[str, WorkerTypeSpecificationInputTypeDef]],  # (8)
    interactiveConfiguration: NotRequired[InteractiveConfigurationTypeDef],  # (9)
    releaseLabel: NotRequired[str],
    runtimeConfiguration: NotRequired[Sequence[ConfigurationUnionTypeDef]],  # (10)
    monitoringConfiguration: NotRequired[MonitoringConfigurationUnionTypeDef],  # (11)
    diskEncryptionConfiguration: NotRequired[DiskEncryptionConfigurationUnionTypeDef],  # (12)
    schedulerConfiguration: NotRequired[SchedulerConfigurationTypeDef],  # (13)
    identityCenterConfiguration: NotRequired[IdentityCenterConfigurationInputTypeDef],  # (14)
    jobLevelCostAllocationConfiguration: NotRequired[JobLevelCostAllocationConfigurationTypeDef],  # (15)
  1. See Mapping[str, InitialCapacityConfigTypeDef]
  2. See MaximumAllowedResourcesTypeDef
  3. See AutoStartConfigTypeDef
  4. See AutoStopConfigTypeDef
  5. See NetworkConfigurationUnionTypeDef
  6. See ArchitectureType
  7. See ImageConfigurationInputTypeDef
  8. See Mapping[str, WorkerTypeSpecificationInputTypeDef]
  9. See InteractiveConfigurationTypeDef
  10. See Sequence[ConfigurationUnionTypeDef]
  11. See MonitoringConfigurationUnionTypeDef
  12. See DiskEncryptionConfigurationUnionTypeDef
  13. See SchedulerConfigurationTypeDef
  14. See IdentityCenterConfigurationInputTypeDef
  15. See JobLevelCostAllocationConfigurationTypeDef

GetJobRunResponseTypeDef#

# GetJobRunResponseTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import GetJobRunResponseTypeDef


def get_value() -> GetJobRunResponseTypeDef:
    return {
        "jobRun": ...,
    }


# GetJobRunResponseTypeDef definition

class GetJobRunResponseTypeDef(TypedDict):
    jobRun: JobRunTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See JobRunTypeDef
  2. See ResponseMetadataTypeDef

StartJobRunRequestTypeDef#

# StartJobRunRequestTypeDef TypedDict usage example

from mypy_boto3_emr_serverless.type_defs import StartJobRunRequestTypeDef


def get_value() -> StartJobRunRequestTypeDef:
    return {
        "applicationId": ...,
    }


# StartJobRunRequestTypeDef definition

class StartJobRunRequestTypeDef(TypedDict):
    applicationId: str,
    clientToken: str,
    executionRoleArn: str,
    executionIamPolicy: NotRequired[JobRunExecutionIamPolicyUnionTypeDef],  # (1)
    jobDriver: NotRequired[JobDriverUnionTypeDef],  # (2)
    configurationOverrides: NotRequired[ConfigurationOverridesUnionTypeDef],  # (3)
    tags: NotRequired[Mapping[str, str]],
    executionTimeoutMinutes: NotRequired[int],
    name: NotRequired[str],
    mode: NotRequired[JobRunModeType],  # (4)
    retryPolicy: NotRequired[RetryPolicyTypeDef],  # (5)
  1. See JobRunExecutionIamPolicyUnionTypeDef
  2. See JobDriverUnionTypeDef
  3. See ConfigurationOverridesUnionTypeDef
  4. See JobRunModeType
  5. See RetryPolicyTypeDef