1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. cognito
  6. getUserPoolSessionConfigurationAttachment

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::Cognito::UserPoolSessionConfigurationAttachment. Manages the session configuration of a user pool: whether user session tracking is enabled and the maximum number of concurrent token sessions per user. The service default (UserSessionTracking DISABLED with TokenSession MaxPerUser 20) cannot be declared; remove the resource to return the user pool to the default.

    Using getUserPoolSessionConfigurationAttachment

    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 getUserPoolSessionConfigurationAttachment(args: GetUserPoolSessionConfigurationAttachmentArgs, opts?: InvokeOptions): Promise<GetUserPoolSessionConfigurationAttachmentResult>
    function getUserPoolSessionConfigurationAttachmentOutput(args: GetUserPoolSessionConfigurationAttachmentOutputArgs, opts?: InvokeOutputOptions): Output<GetUserPoolSessionConfigurationAttachmentResult>
    def get_user_pool_session_configuration_attachment(user_pool_id: Optional[str] = None,
                                                       opts: Optional[InvokeOptions] = None) -> GetUserPoolSessionConfigurationAttachmentResult
    def get_user_pool_session_configuration_attachment_output(user_pool_id: pulumi.Input[Optional[str]] = None,
                                                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetUserPoolSessionConfigurationAttachmentResult]
    func LookupUserPoolSessionConfigurationAttachment(ctx *Context, args *LookupUserPoolSessionConfigurationAttachmentArgs, opts ...InvokeOption) (*LookupUserPoolSessionConfigurationAttachmentResult, error)
    func LookupUserPoolSessionConfigurationAttachmentOutput(ctx *Context, args *LookupUserPoolSessionConfigurationAttachmentOutputArgs, opts ...InvokeOption) LookupUserPoolSessionConfigurationAttachmentResultOutput

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

    public static class GetUserPoolSessionConfigurationAttachment 
    {
        public static Task<GetUserPoolSessionConfigurationAttachmentResult> InvokeAsync(GetUserPoolSessionConfigurationAttachmentArgs args, InvokeOptions? opts = null)
        public static Output<GetUserPoolSessionConfigurationAttachmentResult> Invoke(GetUserPoolSessionConfigurationAttachmentInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetUserPoolSessionConfigurationAttachmentResult> Invoke(GetUserPoolSessionConfigurationAttachmentInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetUserPoolSessionConfigurationAttachmentResult> getUserPoolSessionConfigurationAttachment(GetUserPoolSessionConfigurationAttachmentArgs args, InvokeOptions options)
    public static Output<GetUserPoolSessionConfigurationAttachmentResult> getUserPoolSessionConfigurationAttachment(GetUserPoolSessionConfigurationAttachmentArgs args, InvokeOptions options)
    public static Output<GetUserPoolSessionConfigurationAttachmentResult> getUserPoolSessionConfigurationAttachment(GetUserPoolSessionConfigurationAttachmentArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:cognito:getUserPoolSessionConfigurationAttachment
      arguments:
        # arguments dictionary
    data "aws-native_cognito_get_user_pool_session_configuration_attachment" "name" {
        # arguments
    }

    The following arguments are supported:

    UserPoolId string
    The ID of the user pool.
    UserPoolId string
    The ID of the user pool.
    user_pool_id string
    The ID of the user pool.
    userPoolId String
    The ID of the user pool.
    userPoolId string
    The ID of the user pool.
    user_pool_id str
    The ID of the user pool.
    userPoolId String
    The ID of the user pool.

    getUserPoolSessionConfigurationAttachment Result

    The following output properties are available:

    TokenSession UserPoolSessionConfigurationAttachmentTokenSession
    UserSessionTracking UserPoolSessionConfigurationAttachmentUserSessionTracking
    Whether server-side user session tracking is enabled for the user pool. Requires the ESSENTIALS or PLUS feature plan.
    token_session object
    user_session_tracking "ENABLED" | "DISABLED"
    Whether server-side user session tracking is enabled for the user pool. Requires the ESSENTIALS or PLUS feature plan.
    tokenSession UserPoolSessionConfigurationAttachmentTokenSession
    userSessionTracking UserPoolSessionConfigurationAttachmentUserSessionTracking
    Whether server-side user session tracking is enabled for the user pool. Requires the ESSENTIALS or PLUS feature plan.
    tokenSession UserPoolSessionConfigurationAttachmentTokenSession
    userSessionTracking UserPoolSessionConfigurationAttachmentUserSessionTracking
    Whether server-side user session tracking is enabled for the user pool. Requires the ESSENTIALS or PLUS feature plan.
    token_session UserPoolSessionConfigurationAttachmentTokenSession
    user_session_tracking UserPoolSessionConfigurationAttachmentUserSessionTracking
    Whether server-side user session tracking is enabled for the user pool. Requires the ESSENTIALS or PLUS feature plan.
    tokenSession Property Map
    userSessionTracking "ENABLED" | "DISABLED"
    Whether server-side user session tracking is enabled for the user pool. Requires the ESSENTIALS or PLUS feature plan.

    Supporting Types

    UserPoolSessionConfigurationAttachmentTokenSession

    MaxPerUser int
    The maximum number of concurrent token sessions per user across all app clients. When a new session would exceed this number, the least recently used session ends.
    MaxPerUser int
    The maximum number of concurrent token sessions per user across all app clients. When a new session would exceed this number, the least recently used session ends.
    max_per_user number
    The maximum number of concurrent token sessions per user across all app clients. When a new session would exceed this number, the least recently used session ends.
    maxPerUser Integer
    The maximum number of concurrent token sessions per user across all app clients. When a new session would exceed this number, the least recently used session ends.
    maxPerUser number
    The maximum number of concurrent token sessions per user across all app clients. When a new session would exceed this number, the least recently used session ends.
    max_per_user int
    The maximum number of concurrent token sessions per user across all app clients. When a new session would exceed this number, the least recently used session ends.
    maxPerUser Number
    The maximum number of concurrent token sessions per user across all app clients. When a new session would exceed this number, the least recently used session ends.

    UserPoolSessionConfigurationAttachmentUserSessionTracking

    NameValue
    EnabledENABLED
    DisabledDISABLED
    NameValue
    UserPoolSessionConfigurationAttachmentUserSessionTrackingEnabledENABLED
    UserPoolSessionConfigurationAttachmentUserSessionTrackingDisabledDISABLED
    Value
    ENABLED
    DISABLED
    NameValue
    EnabledENABLED
    DisabledDISABLED
    NameValue
    EnabledENABLED
    DisabledDISABLED
    NameValue
    ENABLEDENABLED
    DISABLEDDISABLED
    Value
    ENABLED
    DISABLED

    Package Details

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

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

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial