Experimental
@aws-cdk/aws-mediapackagev2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ChannelPolicyProps Struct
Properties for the Channel Policy.
| Stability | Experimental |
|---|---|
| Source | lib/channel-policy.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediapackagev2_alpha from '@aws-cdk/aws-mediapackagev2-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const channel: mediapackagev2_alpha.Channel;
declare const policyDocument: iam.PolicyDocument;
const channelPolicyProps: mediapackagev2_alpha.ChannelPolicyProps = {
channel: channel,
// the properties below are optional
policyDocument: policyDocument,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediapackagev2_alpha as mediapackagev2_alpha
from aws_cdk import aws_iam as iam
# channel: mediapackagev2_alpha.Channel
# policy_document: iam.PolicyDocument
channel_policy_props = mediapackagev2_alpha.ChannelPolicyProps(
channel=channel,
# the properties below are optional
policy_document=policy_document
)
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.mediapackagev2.alpha.*;
import software.amazon.awscdk.services.iam.*;
Channel channel;
PolicyDocument policyDocument;
ChannelPolicyProps channelPolicyProps = ChannelPolicyProps.builder()
.channel(channel)
// the properties below are optional
.policyDocument(policyDocument)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaPackageV2.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackageV2.Alpha;
using Amazon.CDK.AWS.IAM;
Channel channel;
PolicyDocument policyDocument;
var channelPolicyProps = new ChannelPolicyProps {
Channel = channel,
// the properties below are optional
PolicyDocument = policyDocument
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import mediapackagev2_alpha "github.com/aws/aws-cdk-go/awsmediapackagev2alpha"
import "github.com/aws/aws-cdk-go/awscdk"
var channel Channel
var policyDocument PolicyDocument
channelPolicyProps := &ChannelPolicyProps{
Channel: channel,
// the properties below are optional
PolicyDocument: policyDocument,
}
Properties
Channel to apply the Channel Policy to.
policyDocumentoptionalPolicyDocumentpolicy_documentoptionalPolicyDocumentpolicyDocumentoptionalPolicyDocumentPolicyDocumentoptionalPolicyDocumentPolicyDocumentoptionalPolicyDocument #Initial policy document to apply.
Default: empty policy document