Skip to content

StartSessionRequest

Source code in docs_src/capo_athena/types/start_session_request.py
class StartSessionRequest(TypedDict, closed=True):
    description: NotRequired["capo_athena.types.description_string.DescriptionString"]
    """<p>The session description.</p>"""
    work_group: "capo_athena.types.work_group_name.WorkGroupName"
    """<p>The workgroup to which the session belongs.</p>"""
    engine_configuration: "capo_athena.types.engine_configuration.EngineConfiguration"
    """<p>Contains engine data processing unit (DPU) configuration settings and parameter mappings.</p>"""
    execution_role: NotRequired["capo_athena.types.role_arn.RoleArn"]
    """<p>The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and Identity Center enabled workgroups.</p>"""
    monitoring_configuration: NotRequired[
        "capo_athena.types.monitoring_configuration.MonitoringConfiguration"
    ]
    """<p>Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc.</p>"""
    notebook_version: NotRequired["capo_athena.types.name_string.NameString"]
    """<p>The notebook version. This value is supplied automatically for notebook sessions in the Athena console and is not required for programmatic session access. The only valid notebook version is <code>Athena notebook version 1</code>. If you specify a value for <code>NotebookVersion</code>, you must also specify a value for <code>NotebookId</code>. See <a>EngineConfiguration$AdditionalConfigs</a>.</p>"""
    session_idle_timeout_in_minutes: NotRequired[
        "capo_athena.types.session_idle_timeout_in_minutes.SessionIdleTimeoutInMinutes"
    ]
    """<p>The idle timeout in minutes for the session.</p>"""
    client_request_token: NotRequired[
        "capo_athena.types.idempotency_token.IdempotencyToken"
    ]
    """<p>A unique case-sensitive string used to ensure the request to create the session is idempotent (executes only once). If another <code>StartSessionRequest</code> is received, the same response is returned and another session is not created. If a parameter has changed, an error is returned.</p> <important> <p>This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.</p> </important>"""
    tags: NotRequired["capo_athena.types.tag_list.TagList"]
    """<p>A list of comma separated tags to add to the session that is created.</p>"""
    copy_work_group_tags: NotRequired["capo_athena.types.boxed_boolean.BoxedBoolean"]
    """<p>Copies the tags from the Workgroup to the Session when.</p>"""

client_request_token instance-attribute

client_request_token: NotRequired[IdempotencyToken]

A unique case-sensitive string used to ensure the request to create the session is idempotent (executes only once). If another StartSessionRequest is received, the same response is returned and another session is not created. If a parameter has changed, an error is returned.

This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.

copy_work_group_tags instance-attribute

copy_work_group_tags: NotRequired[BoxedBoolean]

Copies the tags from the Workgroup to the Session when.

description instance-attribute

description: NotRequired[DescriptionString]

The session description.

engine_configuration instance-attribute

engine_configuration: EngineConfiguration

Contains engine data processing unit (DPU) configuration settings and parameter mappings.

execution_role instance-attribute

execution_role: NotRequired[RoleArn]

The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and Identity Center enabled workgroups.

monitoring_configuration instance-attribute

monitoring_configuration: NotRequired[MonitoringConfiguration]

Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc.

notebook_version instance-attribute

notebook_version: NotRequired[NameString]

The notebook version. This value is supplied automatically for notebook sessions in the Athena console and is not required for programmatic session access. The only valid notebook version is Athena notebook version 1. If you specify a value for NotebookVersion, you must also specify a value for NotebookId. See EngineConfiguration$AdditionalConfigs.

session_idle_timeout_in_minutes instance-attribute

session_idle_timeout_in_minutes: NotRequired[SessionIdleTimeoutInMinutes]

The idle timeout in minutes for the session.

tags instance-attribute

tags: NotRequired[TagList]

A list of comma separated tags to add to the session that is created.

work_group instance-attribute

work_group: WorkGroupName

The workgroup to which the session belongs.