# UserSettingProperty

Information about the user's permission settings.

- Source: Generated at build time
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspaces as workspaces } from 'aws-cdk-lib';
const userSettingProperty: workspaces.CfnDirectory.UserSettingProperty = {
  action: 'action',
  permission: 'permission',

  // the properties below are optional
  maximumLength: 123,
};
```

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_workspaces as workspaces

user_setting_property = workspaces.CfnDirectory.UserSettingProperty(
    action="action",
    permission="permission",

    # the properties below are optional
    maximum_length=123
)
```

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.workspaces.*;

UserSettingProperty userSettingProperty = UserSettingProperty.builder()
        .action("action")
        .permission("permission")

        // the properties below are optional
        .maximumLength(123)
        .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.WorkSpaces;

var userSettingProperty = new UserSettingProperty {
    Action = "action",
    Permission = "permission",

    // the properties below are optional
    MaximumLength = 123
};
```

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"

userSettingProperty := &UserSettingProperty{
	Action: jsii.String("action"),
	Permission: jsii.String("permission"),

	// the properties below are optional
	MaximumLength: jsii.Number(123),
}
```

## Properties

- `action`: string (required) — Indicates the type of action.

- `maximumLength`: number — Indicates the maximum character length for the specified user setting.

- `permission`: string (required) — Indicates if the setting is enabled or disabled.
