Class CfnPackagingConfiguration
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.mediapackage.CfnPackagingConfiguration
- All Implemented Interfaces:
IInspectable,ITaggable,IPackagingConfigurationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:43.690Z")
@Stability(Stable)
public class CfnPackagingConfiguration
extends CfnResource
implements IInspectable, IPackagingConfigurationRef, ITaggable
Creates a packaging configuration in a packaging group.
The packaging configuration represents a single delivery point for an asset. It determines the format and setting for the egressing content. Specify only one package format per configuration, such as HlsPackage .
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.mediapackage.*;
CfnPackagingConfiguration cfnPackagingConfiguration = CfnPackagingConfiguration.Builder.create(this, "MyCfnPackagingConfiguration")
.id("id")
.packagingGroupId("packagingGroupId")
// the properties below are optional
.cmafPackage(CmafPackageProperty.builder()
.hlsManifests(List.of(HlsManifestProperty.builder()
.adMarkers("adMarkers")
.includeIframeOnlyStream(false)
.manifestName("manifestName")
.programDateTimeIntervalSeconds(123)
.repeatExtXKey(false)
.streamSelection(StreamSelectionProperty.builder()
.maxVideoBitsPerSecond(123)
.minVideoBitsPerSecond(123)
.streamOrder("streamOrder")
.build())
.build()))
// the properties below are optional
.encryption(CmafEncryptionProperty.builder()
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.roleArn("roleArn")
.systemIds(List.of("systemIds"))
.url("url")
// the properties below are optional
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.build())
.build())
.includeEncoderConfigurationInSegments(false)
.segmentDurationSeconds(123)
.build())
.dashPackage(DashPackageProperty.builder()
.dashManifests(List.of(DashManifestProperty.builder()
.manifestLayout("manifestLayout")
.manifestName("manifestName")
.minBufferTimeSeconds(123)
.profile("profile")
.scteMarkersSource("scteMarkersSource")
.streamSelection(StreamSelectionProperty.builder()
.maxVideoBitsPerSecond(123)
.minVideoBitsPerSecond(123)
.streamOrder("streamOrder")
.build())
.build()))
// the properties below are optional
.encryption(DashEncryptionProperty.builder()
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.roleArn("roleArn")
.systemIds(List.of("systemIds"))
.url("url")
// the properties below are optional
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.build())
.build())
.includeEncoderConfigurationInSegments(false)
.includeIframeOnlyStream(false)
.periodTriggers(List.of("periodTriggers"))
.segmentDurationSeconds(123)
.segmentTemplateFormat("segmentTemplateFormat")
.build())
.hlsPackage(HlsPackageProperty.builder()
.hlsManifests(List.of(HlsManifestProperty.builder()
.adMarkers("adMarkers")
.includeIframeOnlyStream(false)
.manifestName("manifestName")
.programDateTimeIntervalSeconds(123)
.repeatExtXKey(false)
.streamSelection(StreamSelectionProperty.builder()
.maxVideoBitsPerSecond(123)
.minVideoBitsPerSecond(123)
.streamOrder("streamOrder")
.build())
.build()))
// the properties below are optional
.encryption(HlsEncryptionProperty.builder()
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.roleArn("roleArn")
.systemIds(List.of("systemIds"))
.url("url")
// the properties below are optional
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.build())
// the properties below are optional
.constantInitializationVector("constantInitializationVector")
.encryptionMethod("encryptionMethod")
.build())
.includeDvbSubtitles(false)
.segmentDurationSeconds(123)
.useAudioRenditionGroup(false)
.build())
.mssPackage(MssPackageProperty.builder()
.mssManifests(List.of(MssManifestProperty.builder()
.manifestName("manifestName")
.streamSelection(StreamSelectionProperty.builder()
.maxVideoBitsPerSecond(123)
.minVideoBitsPerSecond(123)
.streamOrder("streamOrder")
.build())
.build()))
// the properties below are optional
.encryption(MssEncryptionProperty.builder()
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.roleArn("roleArn")
.systemIds(List.of("systemIds"))
.url("url")
// the properties below are optional
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.build())
.build())
.segmentDurationSeconds(123)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPackagingConfiguration.static interfaceHolds encryption information so that access to the content can be controlled by a DRM solution.static interfaceParameters for a packaging configuration that uses Common Media Application Format (CMAF) packaging.static interfaceHolds encryption information so that access to the content can be controlled by a DRM solution.static interfaceParameters for a DASH manifest.static interfaceParameters for a packaging configuration that uses Dynamic Adaptive Streaming over HTTP (DASH) packaging.static interfaceUseencryptionContractConfigurationto configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0.static interfaceHolds encryption information so that access to the content can be controlled by a DRM solution.static interfaceParameters for an HLS manifest.static interfaceParameters for a packaging configuration that uses HTTP Live Streaming (HLS) packaging.static interfaceHolds encryption information so that access to the content can be controlled by a DRM solution.static interfaceParameters for a Microsoft Smooth manifest.static interfaceParameters for a packaging configuration that uses Microsoft Smooth Streaming (MSS) packaging.static interfaceA configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that provides encryption keys.static interfaceLimitations for outputs from the endpoint, based on the video bitrate.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.services.mediapackage.IPackagingConfigurationRef
IPackagingConfigurationRef.Jsii$Default, IPackagingConfigurationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPackagingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPackagingConfiguration(software.amazon.jsii.JsiiObjectRef objRef) CfnPackagingConfiguration(software.constructs.Construct scope, String id, CfnPackagingConfigurationProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) for the packaging configuration.Parameters for CMAF packaging.Parameters for DASH-ISO packaging.Parameters for Apple HLS packaging.getId()Unique identifier that you assign to the packaging configuration.Parameters for Microsoft Smooth Streaming packaging.A reference to a PackagingConfiguration resource.The ID of the packaging group associated with this packaging configuration.getTags()Tag Manager which manages the tags for this resource.The tags to assign to the packaging configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCmafPackage(IResolvable value) Parameters for CMAF packaging.voidParameters for CMAF packaging.voidsetDashPackage(IResolvable value) Parameters for DASH-ISO packaging.voidParameters for DASH-ISO packaging.voidsetHlsPackage(IResolvable value) Parameters for Apple HLS packaging.voidParameters for Apple HLS packaging.voidUnique identifier that you assign to the packaging configuration.voidsetMssPackage(IResolvable value) Parameters for Microsoft Smooth Streaming packaging.voidParameters for Microsoft Smooth Streaming packaging.voidsetPackagingGroupId(String value) The ID of the packaging group associated with this packaging configuration.voidsetTagsRaw(List<CfnTag> value) The tags to assign to the packaging configuration.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods 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
getNodeMethods 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
-
CfnPackagingConfiguration
protected CfnPackagingConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPackagingConfiguration
protected CfnPackagingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPackagingConfiguration
@Stability(Stable) public CfnPackagingConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPackagingConfigurationProps props) - 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
-
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) for the packaging configuration.You can get this from the response to any request to the packaging configuration.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPackagingConfigurationRef
A reference to a PackagingConfiguration resource.- Specified by:
getPackagingConfigurationRefin interfaceIPackagingConfigurationRef
-
getTags
Tag Manager which manages the tags for this resource. -
getId
Unique identifier that you assign to the packaging configuration. -
setId
Unique identifier that you assign to the packaging configuration. -
getPackagingGroupId
The ID of the packaging group associated with this packaging configuration. -
setPackagingGroupId
The ID of the packaging group associated with this packaging configuration. -
getCmafPackage
Parameters for CMAF packaging.Returns union: either
IResolvableorCfnPackagingConfiguration.CmafPackageProperty -
setCmafPackage
Parameters for CMAF packaging. -
setCmafPackage
@Stability(Stable) public void setCmafPackage(@Nullable CfnPackagingConfiguration.CmafPackageProperty value) Parameters for CMAF packaging. -
getDashPackage
Parameters for DASH-ISO packaging.Returns union: either
IResolvableorCfnPackagingConfiguration.DashPackageProperty -
setDashPackage
Parameters for DASH-ISO packaging. -
setDashPackage
@Stability(Stable) public void setDashPackage(@Nullable CfnPackagingConfiguration.DashPackageProperty value) Parameters for DASH-ISO packaging. -
getHlsPackage
Parameters for Apple HLS packaging.Returns union: either
IResolvableorCfnPackagingConfiguration.HlsPackageProperty -
setHlsPackage
Parameters for Apple HLS packaging. -
setHlsPackage
@Stability(Stable) public void setHlsPackage(@Nullable CfnPackagingConfiguration.HlsPackageProperty value) Parameters for Apple HLS packaging. -
getMssPackage
Parameters for Microsoft Smooth Streaming packaging.Returns union: either
IResolvableorCfnPackagingConfiguration.MssPackageProperty -
setMssPackage
Parameters for Microsoft Smooth Streaming packaging. -
setMssPackage
@Stability(Stable) public void setMssPackage(@Nullable CfnPackagingConfiguration.MssPackageProperty value) Parameters for Microsoft Smooth Streaming packaging. -
getTagsRaw
The tags to assign to the packaging configuration. -
setTagsRaw
The tags to assign to the packaging configuration.
-