Skip to content
v2.278.0

CfnFlowEntitlementProps Struct ​

Properties for defining a CfnFlowEntitlement.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediaconnect as mediaconnect } from 'aws-cdk-lib';
const cfnFlowEntitlementProps: mediaconnect.CfnFlowEntitlementProps = {
  description: 'description',
  flowArn: 'flowArn',
  name: 'name',
  subscribers: ['subscribers'],

  // the properties below are optional
  dataTransferSubscriberFeePercent: 123,
  encryption: {
    algorithm: 'algorithm',
    roleArn: 'roleArn',

    // the properties below are optional
    constantInitializationVector: 'constantInitializationVector',
    deviceId: 'deviceId',
    keyType: 'keyType',
    region: 'region',
    resourceId: 'resourceId',
    secretArn: 'secretArn',
    url: 'url',
  },
  entitlementStatus: 'entitlementStatus',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediaconnect as mediaconnect

cfn_flow_entitlement_props = mediaconnect.CfnFlowEntitlementProps(
    description="description",
    flow_arn="flowArn",
    name="name",
    subscribers=["subscribers"],

    # the properties below are optional
    data_transfer_subscriber_fee_percent=123,
    encryption=mediaconnect.CfnFlowEntitlement.EncryptionProperty(
        algorithm="algorithm",
        role_arn="roleArn",

        # the properties below are optional
        constant_initialization_vector="constantInitializationVector",
        device_id="deviceId",
        key_type="keyType",
        region="region",
        resource_id="resourceId",
        secret_arn="secretArn",
        url="url"
    ),
    entitlement_status="entitlementStatus",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.mediaconnect.*;

CfnFlowEntitlementProps cfnFlowEntitlementProps = CfnFlowEntitlementProps.builder()
        .description("description")
        .flowArn("flowArn")
        .name("name")
        .subscribers(List.of("subscribers"))

        // the properties below are optional
        .dataTransferSubscriberFeePercent(123)
        .encryption(EncryptionProperty.builder()
                .algorithm("algorithm")
                .roleArn("roleArn")

                // the properties below are optional
                .constantInitializationVector("constantInitializationVector")
                .deviceId("deviceId")
                .keyType("keyType")
                .region("region")
                .resourceId("resourceId")
                .secretArn("secretArn")
                .url("url")
                .build())
        .entitlementStatus("entitlementStatus")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
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.MediaConnect;

var cfnFlowEntitlementProps = new CfnFlowEntitlementProps {
    Description = "description",
    FlowArn = "flowArn",
    Name = "name",
    Subscribers = new [] { "subscribers" },

    // the properties below are optional
    DataTransferSubscriberFeePercent = 123,
    Encryption = new EncryptionProperty {
        Algorithm = "algorithm",
        RoleArn = "roleArn",

        // the properties below are optional
        ConstantInitializationVector = "constantInitializationVector",
        DeviceId = "deviceId",
        KeyType = "keyType",
        Region = "region",
        ResourceId = "resourceId",
        SecretArn = "secretArn",
        Url = "url"
    },
    EntitlementStatus = "entitlementStatus",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnFlowEntitlementProps := &CfnFlowEntitlementProps{
	Description: jsii.String("description"),
	FlowArn: jsii.String("flowArn"),
	Name: jsii.String("name"),
	Subscribers: []*string{
		jsii.String("subscribers"),
	},

	// the properties below are optional
	DataTransferSubscriberFeePercent: jsii.Number(123),
	Encryption: &EncryptionProperty{
		Algorithm: jsii.String("algorithm"),
		RoleArn: jsii.String("roleArn"),

		// the properties below are optional
		ConstantInitializationVector: jsii.String("constantInitializationVector"),
		DeviceId: jsii.String("deviceId"),
		KeyType: jsii.String("keyType"),
		Region: jsii.String("region"),
		ResourceId: jsii.String("resourceId"),
		SecretArn: jsii.String("secretArn"),
		Url: jsii.String("url"),
	},
	EntitlementStatus: jsii.String("entitlementStatus"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

dataTransferSubscriberFeePercentoptionalnumberdata_transfer_subscriber_fee_percentoptionalint | floatdataTransferSubscriberFeePercentoptionalNumberDataTransferSubscriberFeePercentoptionaldoubleDataTransferSubscriberFeePercentoptional*float64 = 0 #
The percentage of the entitlement data transfer fee that you want the subscriber to be responsible for.
descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*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.

encryptionoptionalIResolvable | CfnFlowEntitlement.EncryptionPropertyencryptionoptionaltyping.Union[IResolvable, EncryptionProperty]encryptionoptionalIResolvableEncryptionoptionalIResolvableEncryptionoptionalinterface{} #
Encryption information.
entitlementStatusoptionalstringentitlement_statusoptionalstrentitlementStatusoptionalStringEntitlementStatusoptionalstringEntitlementStatusoptional*string #
An indication of whether the new entitlement should be enabled or disabled as soon as it is created.

If you don’t specify the entitlementStatus field in your request, MediaConnect sets it to ENABLED.

flowArnstringflow_arnstrflowArnStringFlowArnstringFlowArn*string required #
The Amazon Resource Name (ARN) of the flow.
namestringnamestrnameStringNamestringName*string required #
The name of the entitlement.

This value must be unique within the current flow.

subscribersstring[]subscriberstyping.List[str]subscribersList<String>Subscribersstring[]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.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Key-value pairs that can be used to tag and organize this flow entitlement.