Skip to content
v2.277.0

Experimental

@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

EntitlementSource Struct ​

Options for Entitlement.

Example ​

ts
declare const stack: Stack;

// Import an entitlement from another AWS account
const entitlement = FlowEntitlement.fromFlowEntitlementArn(stack, 'ImportedEntitlement',
  'arn:aws:mediaconnect:us-west-2:111122223333:entitlement:1-11111111111111111111111111111111:MyEntitlement',
);

const flow = new Flow(stack, 'MyFlow', {
  source: SourceConfiguration.entitlement({
    entitlement: entitlement,
  }),
});
python
# stack: Stack


# Import an entitlement from another AWS account
entitlement = FlowEntitlement.from_flow_entitlement_arn(stack, "ImportedEntitlement", "arn:aws:mediaconnect:us-west-2:111122223333:entitlement:1-11111111111111111111111111111111:MyEntitlement")

flow = Flow(stack, "MyFlow",
    source=SourceConfiguration.entitlement(
        entitlement=entitlement
    )
)
java
Stack stack;


// Import an entitlement from another AWS account
IFlowEntitlement entitlement = FlowEntitlement.fromFlowEntitlementArn(stack, "ImportedEntitlement", "arn:aws:mediaconnect:us-west-2:111122223333:entitlement:1-11111111111111111111111111111111:MyEntitlement");

Flow flow = Flow.Builder.create(stack, "MyFlow")
        .source(SourceConfiguration.entitlement(EntitlementSource.builder()
                .entitlement(entitlement)
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
Stack stack;


// Import an entitlement from another AWS account
var entitlement = FlowEntitlement.FromFlowEntitlementArn(stack, "ImportedEntitlement", "arn:aws:mediaconnect:us-west-2:111122223333:entitlement:1-11111111111111111111111111111111:MyEntitlement");

var flow = new Flow(stack, "MyFlow", new FlowProps {
    Source = SourceConfiguration.Entitlement(new EntitlementSource {
        Entitlement = entitlement
    })
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
var stack Stack


// Import an entitlement from another AWS account
entitlement := awsmediaconnectalpha.FlowEntitlement_FromFlowEntitlementArn(stack, jsii.String("ImportedEntitlement"), jsii.String("arn:aws:mediaconnect:us-west-2:111122223333:entitlement:1-11111111111111111111111111111111:MyEntitlement"))

flow := awsmediaconnectalpha.NewFlow(stack, jsii.String("MyFlow"), &FlowProps{
	Source: awsmediaconnectalpha.SourceConfiguration_Entitlement(&EntitlementSource{
		Entitlement: entitlement,
	}),
})

Properties ​

decryptionoptionalStaticKeyEncryptiondecryptionoptionalStaticKeyEncryptiondecryptionoptionalStaticKeyEncryptionDecryptionoptionalStaticKeyEncryptionDecryptionoptionalStaticKeyEncryption#
Options to decrypt incoming feed.

Default: no decryption

entitlementIFlowEntitlemententitlementIFlowEntitlemententitlementIFlowEntitlementEntitlementIFlowEntitlementEntitlementIFlowEntitlementrequired#
The entitlement that allows you to subscribe to content that comes from another AWS account.