Skip to content

Session

Source code in docs_src/capo_emr_serverless/types/session.py
class Session(TypedDict, closed=True):
    application_id: "capo_emr_serverless.types.application_id.ApplicationId"
    """<p>The ID of the application that the session belongs to.</p>"""
    session_id: "capo_emr_serverless.types.session_id.SessionId"
    """<p>The ID of the session.</p>"""
    arn: "capo_emr_serverless.types.session_arn.SessionArn"
    """<p>The Amazon Resource Name (ARN) of the session.</p>"""
    name: NotRequired["capo_emr_serverless.types.string256.String256"]
    """<p>The optional name of the session.</p>"""
    state: "capo_emr_serverless.types.session_state.SessionState"
    """<p>The state of the session.</p>"""
    state_details: "capo_emr_serverless.types.string1024.String1024"
    """<p>Additional details about the current state of the session.</p>"""
    release_label: "capo_emr_serverless.types.release_label.ReleaseLabel"
    """<p>The Amazon EMR release label associated with the session.</p>"""
    execution_role_arn: "capo_emr_serverless.types.iam_role_arn.IAMRoleArn"
    """<p>The Amazon Resource Name (ARN) of the execution role for the session.</p>"""
    created_by: (
        "capo_emr_serverless.types.request_identity_user_arn.RequestIdentityUserArn"
    )
    """<p>The IAM principal that created the session.</p>"""
    created_at: "capo_emr_serverless.types.date.Date"
    """<p>The date and time that the session was created.</p>"""
    updated_at: "capo_emr_serverless.types.date.Date"
    """<p>The date and time that the session was last updated.</p>"""
    started_at: NotRequired["capo_emr_serverless.types.date.Date"]
    """<p>The date and time that the session moved to a running state.</p>"""
    ended_at: NotRequired["capo_emr_serverless.types.date.Date"]
    """<p>The date and time that the session was terminated or failed.</p>"""
    idle_since: NotRequired["capo_emr_serverless.types.date.Date"]
    """<p>The date and time that the session became idle.</p>"""
    configuration_overrides: NotRequired[
        "capo_emr_serverless.types.session_configuration_overrides.SessionConfigurationOverrides"
    ]
    """<p>The configuration overrides for the session, including runtime configuration properties.</p>"""
    network_configuration: NotRequired[
        "capo_emr_serverless.types.network_configuration.NetworkConfiguration"
    ]
    """<p>The network configuration for customer VPC connectivity for the session.</p>"""
    idle_timeout_minutes: NotRequired["capo_emr_serverless.types.duration.Duration"]
    """<p>The idle timeout in minutes for the session. After the session remains idle for this duration, it is automatically terminated.</p>"""
    tags: NotRequired["capo_emr_serverless.types.tag_map.TagMap"]
    """<p>The tags assigned to the session.</p>"""
    total_resource_utilization: NotRequired[
        "capo_emr_serverless.types.total_resource_utilization.TotalResourceUtilization"
    ]
    """<p>The aggregate vCPU, memory, and storage resources used from the time the session starts to execute, until the time the session terminates, rounded up to the nearest second.</p>"""
    billed_resource_utilization: NotRequired[
        "capo_emr_serverless.types.resource_utilization.ResourceUtilization"
    ]
    """<p>The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the session. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. Note that billed resources do not include usage for idle pre-initialized workers.</p>"""
    total_execution_duration_seconds: NotRequired["int"]
    """<p>The total execution duration of the session in seconds.</p>"""

application_id instance-attribute

application_id: ApplicationId

The ID of the application that the session belongs to.

arn instance-attribute

The Amazon Resource Name (ARN) of the session.

billed_resource_utilization instance-attribute

billed_resource_utilization: NotRequired[ResourceUtilization]

The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the session. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. Note that billed resources do not include usage for idle pre-initialized workers.

configuration_overrides instance-attribute

configuration_overrides: NotRequired[SessionConfigurationOverrides]

The configuration overrides for the session, including runtime configuration properties.

created_at instance-attribute

created_at: Date

The date and time that the session was created.

created_by instance-attribute

The IAM principal that created the session.

ended_at instance-attribute

ended_at: NotRequired[Date]

The date and time that the session was terminated or failed.

execution_role_arn instance-attribute

execution_role_arn: IAMRoleArn

The Amazon Resource Name (ARN) of the execution role for the session.

idle_since instance-attribute

idle_since: NotRequired[Date]

The date and time that the session became idle.

idle_timeout_minutes instance-attribute

idle_timeout_minutes: NotRequired[Duration]

The idle timeout in minutes for the session. After the session remains idle for this duration, it is automatically terminated.

name instance-attribute

name: NotRequired[String256]

The optional name of the session.

network_configuration instance-attribute

network_configuration: NotRequired[NetworkConfiguration]

The network configuration for customer VPC connectivity for the session.

release_label instance-attribute

release_label: ReleaseLabel

The Amazon EMR release label associated with the session.

session_id instance-attribute

session_id: SessionId

The ID of the session.

started_at instance-attribute

started_at: NotRequired[Date]

The date and time that the session moved to a running state.

state instance-attribute

state: SessionState

The state of the session.

state_details instance-attribute

state_details: String1024

Additional details about the current state of the session.

tags instance-attribute

tags: NotRequired[TagMap]

The tags assigned to the session.

total_execution_duration_seconds instance-attribute

total_execution_duration_seconds: NotRequired[int]

The total execution duration of the session in seconds.

total_resource_utilization instance-attribute

total_resource_utilization: NotRequired[TotalResourceUtilization]

The aggregate vCPU, memory, and storage resources used from the time the session starts to execute, until the time the session terminates, rounded up to the nearest second.

updated_at instance-attribute

updated_at: Date

The date and time that the session was last updated.