# CfnUserPoolSessionConfigurationAttachmentProps

Properties for defining a `CfnUserPoolSessionConfigurationAttachment`.

Used as props by: [CfnUserPoolSessionConfigurationAttachment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnUserPoolSessionConfigurationAttachment.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const cfnUserPoolSessionConfigurationAttachmentProps: cognito.CfnUserPoolSessionConfigurationAttachmentProps = {
  tokenSession: {
    maxPerUser: 123,
  },
  userPoolId: 'userPoolId',
  userSessionTracking: 'userSessionTracking',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito

cfn_user_pool_session_configuration_attachment_props = cognito.CfnUserPoolSessionConfigurationAttachmentProps(
    token_session=cognito.CfnUserPoolSessionConfigurationAttachment.TokenSessionProperty(
        max_per_user=123
    ),
    user_pool_id="userPoolId",
    user_session_tracking="userSessionTracking"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;

CfnUserPoolSessionConfigurationAttachmentProps cfnUserPoolSessionConfigurationAttachmentProps = CfnUserPoolSessionConfigurationAttachmentProps.builder()
        .tokenSession(TokenSessionProperty.builder()
                .maxPerUser(123)
                .build())
        .userPoolId("userPoolId")
        .userSessionTracking("userSessionTracking")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;

var cfnUserPoolSessionConfigurationAttachmentProps = new CfnUserPoolSessionConfigurationAttachmentProps {
    TokenSession = new TokenSessionProperty {
        MaxPerUser = 123
    },
    UserPoolId = "userPoolId",
    UserSessionTracking = "userSessionTracking"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnUserPoolSessionConfigurationAttachmentProps := &CfnUserPoolSessionConfigurationAttachmentProps{
	TokenSession: &TokenSessionProperty{
		MaxPerUser: jsii.Number(123),
	},
	UserPoolId: jsii.String("userPoolId"),
	UserSessionTracking: jsii.String("userSessionTracking"),
}
```

## Properties

- `tokenSession`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserPoolSessionConfigurationAttachment.TokenSessionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnUserPoolSessionConfigurationAttachment.TokenSessionProperty.html) (required) — Token session settings that apply to every app client in the user pool.

- `userPoolId`: string (required) — The ID of the user pool.

- `userSessionTracking`: string (required) — Whether server-side user session tracking is enabled for the user pool.

  Requires the ESSENTIALS or PLUS feature plan.
