> **Experimental**
>
> `@aws-cdk/aws-mediaconnect-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# FlowEntitlementProps

Properties for the Flow entitlement.

Used as props by: [FlowEntitlement](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.FlowEntitlement.html)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/flow-entitlement.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-mediaconnect-alpha/lib/flow-entitlement.ts#L42)

## Example

TypeScript:

```ts
declare const stack: Stack;
declare const flow: Flow;
declare const role: iam.IRole;
declare const secret: secretsmanager.ISecret;

new FlowEntitlement(stack, 'MyEntitlement', {
  flow,
  subscribers: ['111122223333'],
  description: 'Grant partner access to live feed',
  encryption: {
    role,
    secret,
    algorithm: EncryptionAlgorithm.AES256,
  },
});
```

Python:

```python
from aws_cdk.aws_mediaconnect_alpha import StaticKeyEncryption
# stack: Stack
# flow: Flow
# role: iam.IRole
# secret: secretsmanager.ISecret

FlowEntitlement(stack, "MyEntitlement",
    flow=flow,
    subscribers=["111122223333"],
    description="Grant partner access to live feed",
    encryption=StaticKeyEncryption(
        role=role,
        secret=secret,
        algorithm=EncryptionAlgorithm.AES256
    )
)
```

Java:

```java
Stack stack;
Flow flow;
IRole role;
ISecret secret;

FlowEntitlement.Builder.create(stack, "MyEntitlement")
        .flow(flow)
        .subscribers(List.of("111122223333"))
        .description("Grant partner access to live feed")
        .encryption(StaticKeyEncryption.builder()
                .role(role)
                .secret(secret)
                .algorithm(EncryptionAlgorithm.AES256)
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
Stack stack;
Flow flow;
IRole role;
ISecret secret;

new FlowEntitlement(stack, "MyEntitlement", new FlowEntitlementProps {
    Flow = flow,
    Subscribers = new [] { "111122223333" },
    Description = "Grant partner access to live feed",
    Encryption = new StaticKeyEncryption {
        Role = role,
        Secret = secret,
        Algorithm = EncryptionAlgorithm.AES256
    }
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
var stack Stack
var flow Flow
var role IRole
var secret ISecret

awsmediaconnectalpha.NewFlowEntitlement(stack, jsii.String("MyEntitlement"), &FlowEntitlementProps{
	Flow: Flow,
	Subscribers: []*string{
		jsii.String("111122223333"),
	},
	Description: jsii.String("Grant partner access to live feed"),
	Encryption: &StaticKeyEncryption{
		Role: *Role,
		Secret: *Secret,
		Algorithm: awsmediaconnectalpha.EncryptionAlgorithm_AES256(),
	},
})
```

## Properties

- `dataTransferSubscriberFeePercent`: number — The percentage of the entitlement data transfer fee that you want the subscriber to be responsible for.

  **Default:** the MediaConnect service default

- `description`: string (required) — A description of the entitlement.

  This description appears only on the MediaConnect console
  and is not visible outside of the current AWS account.

- `encryption`: [StaticKeyEncryption](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.StaticKeyEncryption.html) — Options for encrypting the entitlement.

  **Default:** no encryption

  Only static key encryption is supported for entitlements.

- `entitlementStatus`: [EntitlementStatus](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.EntitlementStatus.html) — An indication of whether the new entitlement should be enabled or disabled as soon as it is created.

  **Default:** undefined; when omitted, MediaConnect enables the entitlement (ENABLED) at deploy time

- `flow`: [IFlow](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.IFlow.html) (required) — The flow to set the entitlement from.

- `flowEntitlementName`: string = autogenerated — The name of the entitlement.

  This value must be unique within the current flow.

- `subscribers`: string[] (required) — The AWS account IDs that you want to share your content with.

  The receiving accounts (subscribers)
  will be allowed to create their own flows using your content as the source.
