interface IChannel
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.IChannel |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#IChannel |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.IChannel |
Python | aws_cdk.aws_mediapackagev2_alpha.IChannel |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป IChannel |
Implements
IDependable, IConstruct, IEnvironment, IResource, IChannel
Implemented by
Channel
Obtainable from
Channel.fromChannelAttributes()
Represents a MediaPackage V2 Channel.
Properties
| Name | Type | Description |
|---|---|---|
| channel | string | The Amazon Resource Name (ARN) associated with the resource. |
| channel | string | The name that describes the channel group. |
| channel | string | The name that describes the channel. |
| channel | Channel | A reference to a Channel resource. |
| env | Resource | The environment this resource belongs to. |
| grants | Channel | Grants IAM resource policy to the role used to write to MediaPackage V2 Channel. |
| ingest | string[] | The ingest endpoint URLs for the channel. |
| node | Node | The tree node. |
| stack | Stack | The stack in which this resource is defined. |
| channel | IChannel | The channel group this channel belongs to. |
| created | string | The date and time the channel was created. |
| modified | string | The date and time the channel was modified. |
channelArn
Type:
string
The Amazon Resource Name (ARN) associated with the resource.
channelGroupName
Type:
string
The name that describes the channel group.
The name is the primary identifier for the channel group.
channelName
Type:
string
The name that describes the channel.
The name is the primary identifier for the channel.
channelRef
Type:
Channel
A reference to a Channel resource.
env
Type:
Resource
The environment this resource belongs to.
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
Type:
Channel
Grants IAM resource policy to the role used to write to MediaPackage V2 Channel.
ingestEndpointUrls
Type:
string[]
The ingest endpoint URLs for the channel.
node
Type:
Node
The tree node.
stack
Type:
Stack
The stack in which this resource is defined.
channelGroup?
Type:
IChannel
(optional)
The channel group this channel belongs to.
Only available when the channel was created in the same stack. Undefined for imported channels.
createdAt?
Type:
string
(optional)
The date and time the channel was created.
modifiedAt?
Type:
string
(optional)
The date and time the channel was modified.
Methods
| Name | Description |
|---|---|
| add | Add Origin Endpoint for this Channel. |
| add | Configure channel policy. |
| apply | Apply the given removal policy to this resource. |
| metric(metricName, props?) | Create a CloudWatch metric. |
| metric | Returns Metric for Egress Bytes. |
| metric | Returns Metric for Egress Request Count. |
| metric | Returns Metric for Egress Response time. |
| metric | Returns Metric for Ingress Bytes. |
| metric | Returns Metric for Ingress Request Count. |
| metric | Returns Metric for Ingress response time. |
| with(...mixins) | Applies one or more mixins to this construct. |
addOriginEndpoint(id, options)
public addOriginEndpoint(id: string, options: OriginEndpointOptions): OriginEndpoint
Parameters
- id
string - options
OriginEndpoint Options
Returns
Add Origin Endpoint for this Channel.
addToResourcePolicy(statement)
public addToResourcePolicy(statement: PolicyStatement): AddToResourcePolicyResult
Parameters
- statement
PolicyStatement
Returns
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)
public applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
RemovalPolicy
Apply the given removal policy to this resource.
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, props?)
public metric(metricName: string, props?: MetricOptions): Metric
Parameters
- metricName
stringโ name of the metric. - props
Metricโ metric options.Options
Returns
Create a CloudWatch metric.
metricEgressBytes(options?)
public metricEgressBytes(options?: MetricOptions): Metric
Parameters
- options
MetricOptions
Returns
Returns Metric for Egress Bytes.
metricEgressRequestCount(options?)
public metricEgressRequestCount(options?: MetricOptions): Metric
Parameters
- options
MetricOptions
Returns
Returns Metric for Egress Request Count.
metricEgressResponseTime(options?)
public metricEgressResponseTime(options?: MetricOptions): Metric
Parameters
- options
MetricOptions
Returns
Returns Metric for Egress Response time.
metricIngressBytes(options?)
public metricIngressBytes(options?: MetricOptions): Metric
Parameters
- options
MetricOptions
Returns
Returns Metric for Ingress Bytes.
metricIngressRequestCount(options?)
public metricIngressRequestCount(options?: MetricOptions): Metric
Parameters
- options
MetricOptions
Returns
Returns Metric for Ingress Request Count.
metricIngressResponseTime(options?)
public metricIngressResponseTime(options?: MetricOptions): Metric
Parameters
- options
MetricOptions
Returns
Returns Metric for Ingress response time.
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixinโ The mixins to apply.
Returns
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.

.NET
Go
Java
Python
TypeScript (