1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. glue
  6. getSession

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.76.0
published on Monday, Aug 24, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.76.0
published on Monday, Aug 24, 2026 by Pulumi

    Resource Type definition for AWS::Glue::Session. Sessions provide an on-demand, serverless Apache Spark runtime environment for building, testing, and running data preparation and analytics applications.

    Using getSession

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSession(args: GetSessionArgs, opts?: InvokeOptions): Promise<GetSessionResult>
    function getSessionOutput(args: GetSessionOutputArgs, opts?: InvokeOutputOptions): Output<GetSessionResult>
    def get_session(arn: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetSessionResult
    def get_session_output(arn: pulumi.Input[Optional[str]] = None,
                    opts: Optional[InvokeOutputOptions] = None) -> Output[GetSessionResult]
    func LookupSession(ctx *Context, args *LookupSessionArgs, opts ...InvokeOption) (*LookupSessionResult, error)
    func LookupSessionOutput(ctx *Context, args *LookupSessionOutputArgs, opts ...InvokeOption) LookupSessionResultOutput

    > Note: This function is named LookupSession in the Go SDK.

    public static class GetSession 
    {
        public static Task<GetSessionResult> InvokeAsync(GetSessionArgs args, InvokeOptions? opts = null)
        public static Output<GetSessionResult> Invoke(GetSessionInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSessionResult> Invoke(GetSessionInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSessionResult> getSession(GetSessionArgs args, InvokeOptions options)
    public static Output<GetSessionResult> getSession(GetSessionArgs args, InvokeOptions options)
    public static Output<GetSessionResult> getSession(GetSessionArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:glue:getSession
      arguments:
        # arguments dictionary
    data "aws-native_glue_get_session" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    The Amazon Resource Name (ARN) of the session.
    Arn string
    The Amazon Resource Name (ARN) of the session.
    arn string
    The Amazon Resource Name (ARN) of the session.
    arn String
    The Amazon Resource Name (ARN) of the session.
    arn string
    The Amazon Resource Name (ARN) of the session.
    arn str
    The Amazon Resource Name (ARN) of the session.
    arn String
    The Amazon Resource Name (ARN) of the session.

    getSession Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the session.
    CreatedOn string
    The time and date when the session was created.
    Progress double
    The code execution progress of the session.
    Status Pulumi.AwsNative.Glue.SessionStatus
    The session status.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags belonging to the session.
    Arn string
    The Amazon Resource Name (ARN) of the session.
    CreatedOn string
    The time and date when the session was created.
    Progress float64
    The code execution progress of the session.
    Status SessionStatus
    The session status.
    Tags Tag
    The tags belonging to the session.
    arn string
    The Amazon Resource Name (ARN) of the session.
    created_on string
    The time and date when the session was created.
    progress number
    The code execution progress of the session.
    status "PROVISIONING" | "READY" | "FAILED" | "TIMEOUT" | "STOPPING" | "STOPPED"
    The session status.
    tags list(object)
    The tags belonging to the session.
    arn String
    The Amazon Resource Name (ARN) of the session.
    createdOn String
    The time and date when the session was created.
    progress Double
    The code execution progress of the session.
    status SessionStatus
    The session status.
    tags List<Tag>
    The tags belonging to the session.
    arn string
    The Amazon Resource Name (ARN) of the session.
    createdOn string
    The time and date when the session was created.
    progress number
    The code execution progress of the session.
    status SessionStatus
    The session status.
    tags Tag[]
    The tags belonging to the session.
    arn str
    The Amazon Resource Name (ARN) of the session.
    created_on str
    The time and date when the session was created.
    progress float
    The code execution progress of the session.
    status SessionStatus
    The session status.
    tags Sequence[root_Tag]
    The tags belonging to the session.
    arn String
    The Amazon Resource Name (ARN) of the session.
    createdOn String
    The time and date when the session was created.
    progress Number
    The code execution progress of the session.
    status "PROVISIONING" | "READY" | "FAILED" | "TIMEOUT" | "STOPPING" | "STOPPED"
    The session status.
    tags List<Property Map>
    The tags belonging to the session.

    Supporting Types

    SessionStatus

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.76.0
    published on Monday, Aug 24, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial