# UserSettingProperty

Specifies an action and whether the action is enabled or disabled for users during their streaming sessions.

- Source: Generated at build time
- Type last changed: v2.109.0 · 16 Nov 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appstream as appstream } from 'aws-cdk-lib';
const userSettingProperty: appstream.CfnStack.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_appstream as appstream

user_setting_property = appstream.CfnStack.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.appstream.*;

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.AppStream;

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) — The action that is enabled or disabled.

- `maximumLength`: number — Specifies the number of characters that can be copied by end users from the local device to the remote session, and to the local device from the remote session.

  This can be specified only for the `CLIPBOARD_COPY_FROM_LOCAL_DEVICE` and `CLIPBOARD_COPY_TO_LOCAL_DEVICE` actions.

  This defaults to 20,971,520 (20 MB) when unspecified and the permission is `ENABLED` . This can't be specified when the permission is `DISABLED` .

  The value can be between 1 and 20,971,520 (20 MB).

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