# CfnEntitlementProps

Properties for defining a `CfnEntitlement`.

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

- Source: Generated at build time
- Type last changed: v2.9.0 · 26 Jan 2022

## 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 cfnEntitlementProps: appstream.CfnEntitlementProps = {
  appVisibility: 'appVisibility',
  attributes: [{
    name: 'name',
    value: 'value',
  }],
  name: 'name',
  stackName: 'stackName',

  // the properties below are optional
  description: 'description',
};
```

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

cfn_entitlement_props = appstream.CfnEntitlementProps(
    app_visibility="appVisibility",
    attributes=[appstream.CfnEntitlement.AttributeProperty(
        name="name",
        value="value"
    )],
    name="name",
    stack_name="stackName",

    # the properties below are optional
    description="description"
)
```

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

CfnEntitlementProps cfnEntitlementProps = CfnEntitlementProps.builder()
        .appVisibility("appVisibility")
        .attributes(List.of(AttributeProperty.builder()
                .name("name")
                .value("value")
                .build()))
        .name("name")
        .stackName("stackName")

        // the properties below are optional
        .description("description")
        .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 cfnEntitlementProps = new CfnEntitlementProps {
    AppVisibility = "appVisibility",
    Attributes = new [] { new AttributeProperty {
        Name = "name",
        Value = "value"
    } },
    Name = "name",
    StackName = "stackName",

    // the properties below are optional
    Description = "description"
};
```

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"

cfnEntitlementProps := &CfnEntitlementProps{
	AppVisibility: jsii.String("appVisibility"),
	Attributes: []interface{}{
		&AttributeProperty{
			Name: jsii.String("name"),
			Value: jsii.String("value"),
		},
	},
	Name: jsii.String("name"),
	StackName: jsii.String("stackName"),

	// the properties below are optional
	Description: jsii.String("description"),
}
```

## Properties

- `appVisibility`: string (required) — Specifies whether to entitle all apps or only selected apps.

- `attributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEntitlement.AttributeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnEntitlement.AttributeProperty.html)[] (required) — The attributes of the entitlement.

- `description`: string — The description of the entitlement.

- `name`: string (required) — The name of the entitlement.

- `stackName`: string (required) — The name of the stack.
