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

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

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 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.79.0
published on Monday, Sep 14, 2026 by Pulumi

    Definition of AWS::Bedrock::Session Resource Type

    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(session_arn: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetSessionResult
    def get_session_output(session_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:bedrock:getSession
      arguments:
        # arguments dictionary
    data "aws-native_bedrock_get_session" "name" {
        # arguments
    }

    The following arguments are supported:

    SessionArn string
    The Amazon Resource Name (ARN) of the session.
    SessionArn string
    The Amazon Resource Name (ARN) of the session.
    session_arn string
    The Amazon Resource Name (ARN) of the session.
    sessionArn String
    The Amazon Resource Name (ARN) of the session.
    sessionArn string
    The Amazon Resource Name (ARN) of the session.
    session_arn str
    The Amazon Resource Name (ARN) of the session.
    sessionArn String
    The Amazon Resource Name (ARN) of the session.

    getSession Result

    The following output properties are available:

    CreatedAt string
    The timestamp for when the session was created.
    LastUpdatedAt string
    The timestamp for when the session was last modified.
    SessionArn string
    The Amazon Resource Name (ARN) of the session.
    SessionId string
    The unique identifier of the session in UUID format.
    SessionMetadata Dictionary<string, string>
    A map of key-value pairs containing attributes to be persisted across the session.
    SessionStatus Pulumi.AwsNative.Bedrock.SessionStatus
    The current status of the session.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    A list of tags associated with the session.
    CreatedAt string
    The timestamp for when the session was created.
    LastUpdatedAt string
    The timestamp for when the session was last modified.
    SessionArn string
    The Amazon Resource Name (ARN) of the session.
    SessionId string
    The unique identifier of the session in UUID format.
    SessionMetadata map[string]string
    A map of key-value pairs containing attributes to be persisted across the session.
    SessionStatus SessionStatus
    The current status of the session.
    Tags Tag
    A list of tags associated with the session.
    created_at string
    The timestamp for when the session was created.
    last_updated_at string
    The timestamp for when the session was last modified.
    session_arn string
    The Amazon Resource Name (ARN) of the session.
    session_id string
    The unique identifier of the session in UUID format.
    session_metadata map(string)
    A map of key-value pairs containing attributes to be persisted across the session.
    session_status "ACTIVE" | "EXPIRED" | "ENDED"
    The current status of the session.
    tags list(object)
    A list of tags associated with the session.
    createdAt String
    The timestamp for when the session was created.
    lastUpdatedAt String
    The timestamp for when the session was last modified.
    sessionArn String
    The Amazon Resource Name (ARN) of the session.
    sessionId String
    The unique identifier of the session in UUID format.
    sessionMetadata Map<String,String>
    A map of key-value pairs containing attributes to be persisted across the session.
    sessionStatus SessionStatus
    The current status of the session.
    tags List<Tag>
    A list of tags associated with the session.
    createdAt string
    The timestamp for when the session was created.
    lastUpdatedAt string
    The timestamp for when the session was last modified.
    sessionArn string
    The Amazon Resource Name (ARN) of the session.
    sessionId string
    The unique identifier of the session in UUID format.
    sessionMetadata {[key: string]: string}
    A map of key-value pairs containing attributes to be persisted across the session.
    sessionStatus SessionStatus
    The current status of the session.
    tags Tag[]
    A list of tags associated with the session.
    created_at str
    The timestamp for when the session was created.
    last_updated_at str
    The timestamp for when the session was last modified.
    session_arn str
    The Amazon Resource Name (ARN) of the session.
    session_id str
    The unique identifier of the session in UUID format.
    session_metadata Mapping[str, str]
    A map of key-value pairs containing attributes to be persisted across the session.
    session_status SessionStatus
    The current status of the session.
    tags Sequence[root_Tag]
    A list of tags associated with the session.
    createdAt String
    The timestamp for when the session was created.
    lastUpdatedAt String
    The timestamp for when the session was last modified.
    sessionArn String
    The Amazon Resource Name (ARN) of the session.
    sessionId String
    The unique identifier of the session in UUID format.
    sessionMetadata Map<String>
    A map of key-value pairs containing attributes to be persisted across the session.
    sessionStatus "ACTIVE" | "EXPIRED" | "ENDED"
    The current status of the session.
    tags List<Property Map>
    A list of tags associated with 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.79.0
    published on Monday, Sep 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial