Class Channel
- All Implemented Interfaces:
IEnvironmentAware,IChannelRef,IResource,IChannel,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Example:
Stack stack;
ChannelGroup group = ChannelGroup.Builder.create(stack, "MyChannelGroup")
.channelGroupName("my-test-channel-group")
.build();
Channel channel = Channel.Builder.create(stack, "MyChannel")
.channelGroup(group)
.channelName("my-testchannel")
.input(InputConfiguration.cmaf())
.build();
OriginEndpoint endpoint = OriginEndpoint.Builder.create(stack, "MyOriginEndpoint")
.channel(channel)
.originEndpointName("my-test-endpoint")
.segment(Segment.cmaf())
.manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder()
.manifestName("index")
.build())))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.mediapackagev2.alpha.IChannel
IChannel.Jsii$Default, IChannel.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedChannel(software.amazon.jsii.JsiiObjectRef objRef) Channel(software.constructs.Construct scope, String id, ChannelProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddOriginEndpoint(String id, OriginEndpointOptions options) (experimental) Add Origin Endpoint for this Channel.addToResourcePolicy(PolicyStatement statement) (experimental) Configure channel policy.static IChannelfromChannelAttributes(software.constructs.Construct scope, String id, ChannelAttributes attrs) (experimental) Creates a Channel construct that represents an external (imported) Channel.protected Boolean(experimental) Indicates if a channel resource policy should automatically created upon the first call toaddToResourcePolicy.(experimental) The Amazon Resource Name (ARN) associated with the resource.(experimental) The channel group this channel belongs to.(experimental) The name that describes the channel group.(experimental) The name that describes the channel.(experimental) A reference to this Channel resource.(experimental) The date and time the channel was created.(experimental) Collection of grant methods for this channel.(experimental) The list of ingest endpoints.(experimental) The date and time the channel was modified.(experimental) The resource policy associated with this channel.(experimental) Create a CloudWatch metric.metric(String metricName, MetricOptions options) (experimental) Create a CloudWatch metric.(experimental) Returns Metric for Egress Bytes.metricEgressBytes(MetricOptions options) (experimental) Returns Metric for Egress Bytes.(experimental) Returns Metric for Egress Request Count.metricEgressRequestCount(MetricOptions options) (experimental) Returns Metric for Egress Request Count.(experimental) Returns Metric for Egress Response time.metricEgressResponseTime(MetricOptions options) (experimental) Returns Metric for Egress Response time.(experimental) Returns Metric for Ingress Bytes.metricIngressBytes(MetricOptions options) (experimental) Returns Metric for Ingress Bytes.(experimental) Returns Metric for Ingress Request Count.metricIngressRequestCount(MetricOptions options) (experimental) Returns Metric for Ingress Request Count.(experimental) Returns Metric for Ingress response time.metricIngressResponseTime(MetricOptions options) (experimental) Returns Metric for Ingress response time.protected voidsetAutoCreatePolicy(Boolean value) (experimental) Indicates if a channel resource policy should automatically created upon the first call toaddToResourcePolicy.voidsetPolicy(ChannelPolicy value) (experimental) The resource policy associated with this channel.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
Channel
protected Channel(software.amazon.jsii.JsiiObjectRef objRef) -
Channel
protected Channel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Channel
@Stability(Experimental) public Channel(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ChannelProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromChannelAttributes
@Stability(Experimental) @NotNull public static IChannel fromChannelAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ChannelAttributes attrs) (experimental) Creates a Channel construct that represents an external (imported) Channel.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
addOriginEndpoint
@Stability(Experimental) @NotNull public OriginEndpoint addOriginEndpoint(@NotNull String id, @NotNull OriginEndpointOptions options) (experimental) Add Origin Endpoint for this Channel.- Specified by:
addOriginEndpointin interfaceIChannel- Parameters:
id- This parameter is required.options- This parameter is required.
-
addToResourcePolicy
@Stability(Experimental) @NotNull public AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) (experimental) 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.
- Specified by:
addToResourcePolicyin interfaceIChannel- Parameters:
statement- This parameter is required.
-
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions options) (experimental) Create a CloudWatch metric. -
metric
(experimental) Create a CloudWatch metric. -
metricEgressBytes
(experimental) Returns Metric for Egress Bytes.Default: - sum over 60 seconds
- Specified by:
metricEgressBytesin interfaceIChannel- Parameters:
options-
-
metricEgressBytes
(experimental) Returns Metric for Egress Bytes.Default: - sum over 60 seconds
- Specified by:
metricEgressBytesin interfaceIChannel
-
metricEgressRequestCount
@Stability(Experimental) @NotNull public Metric metricEgressRequestCount(@Nullable MetricOptions options) (experimental) Returns Metric for Egress Request Count.Default: - sum over 60 seconds
- Specified by:
metricEgressRequestCountin interfaceIChannel- Parameters:
options-
-
metricEgressRequestCount
(experimental) Returns Metric for Egress Request Count.Default: - sum over 60 seconds
- Specified by:
metricEgressRequestCountin interfaceIChannel
-
metricEgressResponseTime
@Stability(Experimental) @NotNull public Metric metricEgressResponseTime(@Nullable MetricOptions options) (experimental) Returns Metric for Egress Response time.Default: - average over 60 seconds
- Specified by:
metricEgressResponseTimein interfaceIChannel- Parameters:
options-
-
metricEgressResponseTime
(experimental) Returns Metric for Egress Response time.Default: - average over 60 seconds
- Specified by:
metricEgressResponseTimein interfaceIChannel
-
metricIngressBytes
(experimental) Returns Metric for Ingress Bytes.Default: - sum over 60 seconds
- Specified by:
metricIngressBytesin interfaceIChannel- Parameters:
options-
-
metricIngressBytes
(experimental) Returns Metric for Ingress Bytes.Default: - sum over 60 seconds
- Specified by:
metricIngressBytesin interfaceIChannel
-
metricIngressRequestCount
@Stability(Experimental) @NotNull public Metric metricIngressRequestCount(@Nullable MetricOptions options) (experimental) Returns Metric for Ingress Request Count.Default: - sum over 60 seconds
- Specified by:
metricIngressRequestCountin interfaceIChannel- Parameters:
options-
-
metricIngressRequestCount
(experimental) Returns Metric for Ingress Request Count.Default: - sum over 60 seconds
- Specified by:
metricIngressRequestCountin interfaceIChannel
-
metricIngressResponseTime
@Stability(Experimental) @NotNull public Metric metricIngressResponseTime(@Nullable MetricOptions options) (experimental) Returns Metric for Ingress response time.Default: - average over 60 seconds
- Specified by:
metricIngressResponseTimein interfaceIChannel- Parameters:
options-
-
metricIngressResponseTime
(experimental) Returns Metric for Ingress response time.Default: - average over 60 seconds
- Specified by:
metricIngressResponseTimein interfaceIChannel
-
getChannelArn
(experimental) The Amazon Resource Name (ARN) associated with the resource.- Specified by:
getChannelArnin interfaceIChannel
-
getChannelGroupName
(experimental) The name that describes the channel group.The name is the primary identifier for the channel group.
- Specified by:
getChannelGroupNamein interfaceIChannel
-
getChannelName
(experimental) The name that describes the channel.The name is the primary identifier for the channel.
- Specified by:
getChannelNamein interfaceIChannel
-
getChannelRef
(experimental) A reference to this Channel resource.- Specified by:
getChannelRefin interfaceIChannelRef
-
getGrants
(experimental) Collection of grant methods for this channel. -
getIngestEndpointUrls
(experimental) The list of ingest endpoints.- Specified by:
getIngestEndpointUrlsin interfaceIChannel
-
getChannelGroup
(experimental) The channel group this channel belongs to.Only available when the channel was created in the same stack. Undefined for imported channels.
- Specified by:
getChannelGroupin interfaceIChannel
-
getCreatedAt
(experimental) The date and time the channel was created.- Specified by:
getCreatedAtin interfaceIChannel
-
getModifiedAt
(experimental) The date and time the channel was modified.- Specified by:
getModifiedAtin interfaceIChannel
-
getAutoCreatePolicy
(experimental) Indicates if a channel resource policy should automatically created upon the first call toaddToResourcePolicy. -
setAutoCreatePolicy
(experimental) Indicates if a channel resource policy should automatically created upon the first call toaddToResourcePolicy. -
getPolicy
(experimental) The resource policy associated with this channel.If
autoCreatePolicyis true, aChannelPolicywill be created upon the first call to addToResourcePolicy(s). -
setPolicy
(experimental) The resource policy associated with this channel.If
autoCreatePolicyis true, aChannelPolicywill be created upon the first call to addToResourcePolicy(s).
-