Skip to content
v2.278.0

Experimental

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

IChannel Interface ​

Represents a MediaPackage V2 Channel.

Properties ​

channelArnstringchannel_arnstrchannelArnStringChannelArnstringChannelArn*string #
The Amazon Resource Name (ARN) associated with the resource.
channelGroupmay be undefinedIChannelGroupchannel_groupmay be undefinedIChannelGroupchannelGroupmay be undefinedIChannelGroupChannelGroupmay be undefinedIChannelGroupChannelGroupmay be undefinedIChannelGroup #
The channel group this channel belongs to.

Only available when the channel was created in the same stack. Undefined for imported channels.

channelGroupNamestringchannel_group_namestrchannelGroupNameStringChannelGroupNamestringChannelGroupName*string #
The name that describes the channel group.

The name is the primary identifier for the channel group.

channelNamestringchannel_namestrchannelNameStringChannelNamestringChannelName*string #
The name that describes the channel.

The name is the primary identifier for the channel.

A reference to a Channel resource.
createdAtmay be undefinedstringcreated_atmay be undefinedstrcreatedAtmay be undefinedStringCreatedAtmay be undefinedstringCreatedAtmay be undefined*string #
The date and time the channel was created.
The environment this resource belongs to.
notes

For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.

Grants IAM resource policy to the role used to write to MediaPackage V2 Channel.
ingestEndpointUrlsstring[]ingest_endpoint_urlstyping.List[str]ingestEndpointUrlsList<String>IngestEndpointUrlsstring[]IngestEndpointUrls*[]*string #
The ingest endpoint URLs for the channel.
modifiedAtmay be undefinedstringmodified_atmay be undefinedstrmodifiedAtmay be undefinedStringModifiedAtmay be undefinedstringModifiedAtmay be undefined*string #
The date and time the channel was modified.
nodeNodenodeNodenodeNodeNodeNodeNodeNode #
The tree node.
regionstringregionstrregionStringRegionstringRegion*string #
The AWS region where this channel lives.
stackStackstackStackstackStackStackStackStackStack #
The stack in which this resource is defined.

Methods ​

addOriginEndpoint(id: string, options: OriginEndpointOptions): OriginEndpointdef add_origin_endpoint(self, id: str, options: OriginEndpointOptions) -> OriginEndpointpublic OriginEndpoint addOriginEndpoint(String id, OriginEndpointOptions options)public OriginEndpoint AddOriginEndpoint(string id, OriginEndpointOptions options)func AddOriginEndpoint(Id *string, Options OriginEndpointOptions) OriginEndpoint #
Add Origin Endpoint for this Channel.
addToResourcePolicy(statement: PolicyStatement): AddToResourcePolicyResultdef add_to_resource_policy(self, statement: PolicyStatement) -> AddToResourcePolicyResultpublic AddToResourcePolicyResult addToResourcePolicy(PolicyStatement statement)public AddToResourcePolicyResult AddToResourcePolicy(PolicyStatement statement)func AddToResourcePolicy(Statement PolicyStatement) AddToResourcePolicyResult #
Configure channel policy.

You can only add 1 ChannelPolicy to a Channel. If you have already defined one, function will append the policy already created.

applyRemovalPolicy(policy: RemovalPolicy): voiddef apply_removal_policy(self, policy: RemovalPolicy) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy)public void ApplyRemovalPolicy(RemovalPolicy policy)func ApplyRemovalPolicy(Policy RemovalPolicy) #
Apply the given removal policy to this resource.
notes

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

metric(metricName: string, props?: MetricOptions): Metricdef metric(self, metric_name: str, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metric(String metricName, MetricOptions props)public Metric Metric(string metricName, MetricOptions? props = null)func Metric(MetricName *string, Props MetricOptions) Metric #
Create a CloudWatch metric.
2 parameters

Parameters

  • metricNamemetric_namemetricNamemetricNameMetricName — name of the metric.
  • propspropspropspropsProps — metric options.
metricEgressBytes(options?: MetricOptions): Metricdef metric_egress_bytes(self, options: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricEgressBytes(MetricOptions options)public Metric MetricEgressBytes(MetricOptions? options = null)func MetricEgressBytes(Options MetricOptions) Metric #
Returns Metric for Egress Bytes.
metricEgressRequestCount(options?: MetricOptions): Metricdef metric_egress_request_count(self, options: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricEgressRequestCount(MetricOptions options)public Metric MetricEgressRequestCount(MetricOptions? options = null)func MetricEgressRequestCount(Options MetricOptions) Metric #
Returns Metric for Egress Request Count.
metricEgressResponseTime(options?: MetricOptions): Metricdef metric_egress_response_time(self, options: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricEgressResponseTime(MetricOptions options)public Metric MetricEgressResponseTime(MetricOptions? options = null)func MetricEgressResponseTime(Options MetricOptions) Metric #
Returns Metric for Egress Response time.
metricIngressBytes(options?: MetricOptions): Metricdef metric_ingress_bytes(self, options: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricIngressBytes(MetricOptions options)public Metric MetricIngressBytes(MetricOptions? options = null)func MetricIngressBytes(Options MetricOptions) Metric #
Returns Metric for Ingress Bytes.
metricIngressRequestCount(options?: MetricOptions): Metricdef metric_ingress_request_count(self, options: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricIngressRequestCount(MetricOptions options)public Metric MetricIngressRequestCount(MetricOptions? options = null)func MetricIngressRequestCount(Options MetricOptions) Metric #
Returns Metric for Ingress Request Count.
metricIngressResponseTime(options?: MetricOptions): Metricdef metric_ingress_response_time(self, options: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricIngressResponseTime(MetricOptions options)public Metric MetricIngressResponseTime(MetricOptions? options = null)func MetricIngressResponseTime(Options MetricOptions) Metric #
Returns Metric for Ingress response time.
with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct #
Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.

1 parameter · returns

Parameters

  • mixinsmixinsmixinsmixinsMixins — The mixins to apply.

Returns: This construct for chaining