Class CfnPrefetchSchedule
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.CfnPrefetchSchedule
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IPrefetchScheduleRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:14.123Z")
@Stability(Stable)
public class CfnPrefetchSchedule
extends CfnResource
implements IInspectable, IPrefetchScheduleRef, ITaggableV2
Definition of AWS::MediaTailor::PrefetchSchedule Resource Type.
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.*;
CfnPrefetchSchedule cfnPrefetchSchedule = CfnPrefetchSchedule.Builder.create(this, "MyCfnPrefetchSchedule")
.name("name")
.playbackConfigurationName("playbackConfigurationName")
// the properties below are optional
.consumption(PrefetchConsumptionProperty.builder()
.endTime("endTime")
// the properties below are optional
.availMatchingCriteria(List.of(AvailMatchingCriteriaProperty.builder()
.dynamicVariable("dynamicVariable")
.operator("operator")
.build()))
.startTime("startTime")
.build())
.recurringPrefetchConfiguration(RecurringPrefetchConfigurationProperty.builder()
.endTime("endTime")
.recurringConsumption(RecurringConsumptionProperty.builder()
.availMatchingCriteria(List.of(AvailMatchingCriteriaProperty.builder()
.dynamicVariable("dynamicVariable")
.operator("operator")
.build()))
.retrievedAdExpirationSeconds(123)
.build())
.recurringRetrieval(RecurringRetrievalProperty.builder()
.delayAfterAvailEndSeconds(123)
.dynamicVariables(Map.of(
"dynamicVariablesKey", "dynamicVariables"))
.trafficShapingRetrievalWindow(TrafficShapingRetrievalWindowProperty.builder()
.retrievalWindowDurationSeconds(123)
.build())
.trafficShapingTpsConfiguration(TrafficShapingTpsConfigurationProperty.builder()
.peakConcurrentUsers(123)
.peakTps(123)
.build())
.trafficShapingType("trafficShapingType")
.build())
// the properties below are optional
.startTime("startTime")
.build())
.retrieval(PrefetchRetrievalProperty.builder()
.endTime("endTime")
// the properties below are optional
.dynamicVariables(Map.of(
"dynamicVariablesKey", "dynamicVariables"))
.startTime("startTime")
.trafficShapingRetrievalWindow(TrafficShapingRetrievalWindowProperty.builder()
.retrievalWindowDurationSeconds(123)
.build())
.trafficShapingTpsConfiguration(TrafficShapingTpsConfigurationProperty.builder()
.peakConcurrentUsers(123)
.peakTps(123)
.build())
.trafficShapingType("trafficShapingType")
.build())
.scheduleType("scheduleType")
.streamId("streamId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static final classA fluent builder forCfnPrefetchSchedule.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample: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.IPrefetchScheduleRef
IPrefetchScheduleRef.Jsii$Default, IPrefetchScheduleRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPrefetchSchedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPrefetchSchedule(software.amazon.jsii.JsiiObjectRef objRef) CfnPrefetchSchedule(software.constructs.Construct scope, String id, CfnPrefetchScheduleProps props) Create a newAWS::MediaTailor::PrefetchSchedule. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForPrefetchSchedule(IPrefetchScheduleRef resource) The Amazon Resource Name (ARN) of the prefetch schedule.Tag Manager which manages the tags for this resource.Returns union: eitherIResolvableorCfnPrefetchSchedule.PrefetchConsumptionPropertygetName()The name to assign to the prefetch schedule.The name of the playback configuration.A reference to a PrefetchSchedule resource.Returns union: eitherIResolvableorCfnPrefetchSchedule.RecurringPrefetchConfigurationPropertyReturns union: eitherIResolvableorCfnPrefetchSchedule.PrefetchRetrievalPropertyThe frequency that MediaTailor creates prefetch schedules.An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that use the same playback configuration.getTags()The tags assigned to the prefetch schedule.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnPrefetchSchedule.renderProperties(Map<String, Object> props) voidsetConsumption(IResolvable value) voidvoidThe name to assign to the prefetch schedule.voidThe name of the playback configuration.voidvoidvoidsetRetrieval(IResolvable value) voidvoidsetScheduleType(String value) The frequency that MediaTailor creates prefetch schedules.voidsetStreamId(String value) An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that use the same playback configuration.voidThe tags assigned to the prefetch schedule.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
-
CfnPrefetchSchedule
protected CfnPrefetchSchedule(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPrefetchSchedule
protected CfnPrefetchSchedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPrefetchSchedule
@Stability(Stable) public CfnPrefetchSchedule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPrefetchScheduleProps props) Create a newAWS::MediaTailor::PrefetchSchedule.- 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
-
arnForPrefetchSchedule
@Stability(Stable) @NotNull public static String arnForPrefetchSchedule(@NotNull IPrefetchScheduleRef resource) - Parameters:
resource- This parameter is required.
-
isCfnPrefetchSchedule
Checks whether the given object is a CfnPrefetchSchedule.- 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 Amazon Resource Name (ARN) of the prefetch schedule. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getPrefetchScheduleRef
A reference to a PrefetchSchedule resource.- Specified by:
getPrefetchScheduleRefin interfaceIPrefetchScheduleRef
-
getName
The name to assign to the prefetch schedule. -
setName
The name to assign to the prefetch schedule. -
getPlaybackConfigurationName
The name of the playback configuration. -
setPlaybackConfigurationName
The name of the playback configuration. -
getConsumption
Returns union: eitherIResolvableorCfnPrefetchSchedule.PrefetchConsumptionProperty -
setConsumption
-
setConsumption
@Stability(Stable) public void setConsumption(@Nullable CfnPrefetchSchedule.PrefetchConsumptionProperty value) -
getRecurringPrefetchConfiguration
Returns union: eitherIResolvableorCfnPrefetchSchedule.RecurringPrefetchConfigurationProperty -
setRecurringPrefetchConfiguration
-
setRecurringPrefetchConfiguration
@Stability(Stable) public void setRecurringPrefetchConfiguration(@Nullable CfnPrefetchSchedule.RecurringPrefetchConfigurationProperty value) -
getRetrieval
Returns union: eitherIResolvableorCfnPrefetchSchedule.PrefetchRetrievalProperty -
setRetrieval
-
setRetrieval
@Stability(Stable) public void setRetrieval(@Nullable CfnPrefetchSchedule.PrefetchRetrievalProperty value) -
getScheduleType
The frequency that MediaTailor creates prefetch schedules. -
setScheduleType
The frequency that MediaTailor creates prefetch schedules. -
getStreamId
An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that use the same playback configuration. -
setStreamId
An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that use the same playback configuration. -
getTags
The tags assigned to the prefetch schedule. -
setTags
The tags assigned to the prefetch schedule.
-