Class CfnProgram
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.mediatailor.CfnProgram
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IProgramRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-10-08T16:59:58.883Z")
@Stability(Stable)
public class CfnProgram
extends CfnResource
implements IInspectable, IProgramRef
Resource schema for AWS::MediaTailor::Program.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediatailor.*;
CfnProgram cfnProgram = CfnProgram.Builder.create(this, "MyCfnProgram")
.channelName("channelName")
.programName("programName")
.sourceLocationName("sourceLocationName")
// the properties below are optional
.adBreaks(List.of(AdBreakProperty.builder()
.offsetMillis(123)
// the properties below are optional
.adBreakMetadata(List.of(KeyValuePairProperty.builder()
.key("key")
.value("value")
.build()))
.messageType("messageType")
.slate(SlateSourceProperty.builder()
.sourceLocationName("sourceLocationName")
.vodSourceName("vodSourceName")
.build())
.spliceInsertMessage(SpliceInsertMessageProperty.builder()
.availNum(123)
.availsExpected(123)
.spliceEventId(123)
.uniqueProgramId(123)
.build())
.timeSignalMessage(TimeSignalMessageProperty.builder()
.segmentationDescriptors(List.of(SegmentationDescriptorProperty.builder()
.segmentationEventId(123)
.segmentationTypeId(123)
.segmentationUpid("segmentationUpid")
.segmentationUpidType(123)
.segmentNum(123)
.segmentsExpected(123)
.subSegmentNum(123)
.subSegmentsExpected(123)
.build()))
.build())
.build()))
.audienceMedia(List.of(AudienceMediaProperty.builder()
.alternateMedia(List.of(AlternateMediaProperty.builder()
.adBreaks(List.of(AdBreakProperty.builder()
.offsetMillis(123)
// the properties below are optional
.adBreakMetadata(List.of(KeyValuePairProperty.builder()
.key("key")
.value("value")
.build()))
.messageType("messageType")
.slate(SlateSourceProperty.builder()
.sourceLocationName("sourceLocationName")
.vodSourceName("vodSourceName")
.build())
.spliceInsertMessage(SpliceInsertMessageProperty.builder()
.availNum(123)
.availsExpected(123)
.spliceEventId(123)
.uniqueProgramId(123)
.build())
.timeSignalMessage(TimeSignalMessageProperty.builder()
.segmentationDescriptors(List.of(SegmentationDescriptorProperty.builder()
.segmentationEventId(123)
.segmentationTypeId(123)
.segmentationUpid("segmentationUpid")
.segmentationUpidType(123)
.segmentNum(123)
.segmentsExpected(123)
.subSegmentNum(123)
.subSegmentsExpected(123)
.build()))
.build())
.build()))
.clipRange(ClipRangeProperty.builder()
.endOffsetMillis(123)
.startOffsetMillis(123)
.build())
.durationMillis(123)
.liveSourceName("liveSourceName")
.scheduledStartTimeMillis(123)
.sourceLocationName("sourceLocationName")
.vodSourceName("vodSourceName")
.build()))
.audience("audience")
.build()))
.liveSourceName("liveSourceName")
.scheduleConfiguration(ScheduleConfigurationProperty.builder()
.transition(TransitionProperty.builder()
.relativePosition("relativePosition")
.type("type")
// the properties below are optional
.durationMillis(123)
.relativeProgram("relativeProgram")
.scheduledStartTimeMillis(123)
.build())
// the properties below are optional
.clipRange(ClipRangeProperty.builder()
.endOffsetMillis(123)
.startOffsetMillis(123)
.build())
.build())
.vodSourceName("vodSourceName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAd break configuration parameters.static interfaceA playlist of media to be played instead of the default media on a particular program.static interfaceAn AudienceMedia object contains an Audience and a list of AlternateMedia.static final classA fluent builder forCfnProgram.static interfaceClip range configuration for the VOD source associated with the program.static interfaceFor SCTE35_ENHANCED output, defines a key and corresponding value.static interfaceSchedule configuration parameters.static interfaceThe segmentation_descriptor message configuration.static interfaceSlate VOD source configuration.static interfaceSplice insert message configuration.static interfaceThe SCTE-35 time_signal message configuration.static interfaceProgram transition configuration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.mediatailor.IProgramRef
IProgramRef.Jsii$Default, IProgramRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnProgram(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnProgram(software.amazon.jsii.JsiiObjectRef objRef) CfnProgram(software.constructs.Construct scope, String id, CfnProgramProps props) Create a newAWS::MediaTailor::Program. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForProgram(IProgramRef resource) The ad break configuration settings.The ARN of the program.Clip range configuration for the VOD source associated with the program.The timestamp of when the program was created.The duration of the live program in milliseconds.The date and time that the program is scheduled to start.The list of AudienceMedia defined in program.The name of the channel for this Program.The name of the LiveSource for this Program.The name of the Program.A reference to a Program resource.Schedule configuration parameters.The name of the source location.The name that's used to refer to a VOD source.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnProgram.renderProperties(Map<String, Object> props) voidsetAdBreaks(List<Object> value) The ad break configuration settings.voidsetAdBreaks(IResolvable value) The ad break configuration settings.voidsetAudienceMedia(List<Object> value) The list of AudienceMedia defined in program.voidsetAudienceMedia(IResolvable value) The list of AudienceMedia defined in program.voidsetChannelName(String value) The name of the channel for this Program.voidsetLiveSourceName(String value) The name of the LiveSource for this Program.voidsetProgramName(String value) The name of the Program.voidSchedule configuration parameters.voidSchedule configuration parameters.voidsetSourceLocationName(String value) The name of the source location.voidsetVodSourceName(String value) The name that's used to refer to a VOD source.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnProgram
protected CfnProgram(software.amazon.jsii.JsiiObjectRef objRef) -
CfnProgram
protected CfnProgram(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnProgram
@Stability(Stable) public CfnProgram(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnProgramProps props) Create a newAWS::MediaTailor::Program.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForProgram
- Parameters:
resource- This parameter is required.
-
isCfnProgram
Checks whether the given object is a CfnProgram.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The ARN of the program. -
getAttrClipRange
Clip range configuration for the VOD source associated with the program. -
getAttrCreationTime
The timestamp of when the program was created. -
getAttrDurationMillis
The duration of the live program in milliseconds. -
getAttrScheduledStartTime
The date and time that the program is scheduled to start. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getProgramRef
A reference to a Program resource.- Specified by:
getProgramRefin interfaceIProgramRef
-
getChannelName
The name of the channel for this Program. -
setChannelName
The name of the channel for this Program. -
getProgramName
The name of the Program. -
setProgramName
The name of the Program. -
getSourceLocationName
The name of the source location. -
setSourceLocationName
The name of the source location. -
getAdBreaks
The ad break configuration settings.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnProgram.AdBreakProperty> -
setAdBreaks
The ad break configuration settings. -
setAdBreaks
The ad break configuration settings. -
getAudienceMedia
The list of AudienceMedia defined in program.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnProgram.AudienceMediaProperty> -
setAudienceMedia
The list of AudienceMedia defined in program. -
setAudienceMedia
The list of AudienceMedia defined in program. -
getLiveSourceName
The name of the LiveSource for this Program. -
setLiveSourceName
The name of the LiveSource for this Program. -
getScheduleConfiguration
Schedule configuration parameters.Returns union: either
IResolvableorCfnProgram.ScheduleConfigurationProperty -
setScheduleConfiguration
Schedule configuration parameters. -
setScheduleConfiguration
@Stability(Stable) public void setScheduleConfiguration(@Nullable CfnProgram.ScheduleConfigurationProperty value) Schedule configuration parameters. -
getVodSourceName
The name that's used to refer to a VOD source. -
setVodSourceName
The name that's used to refer to a VOD source.
-