@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:32.823Z") public class CfnPackagingConfiguration extends CfnResource implements IInspectable
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") .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") .build()) .build()) .includeEncoderConfigurationInSegments(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") .build()) // the properties below are optional .constantInitializationVector("constantInitializationVector") .encryptionMethod("encryptionMethod") .build()) .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") .build()) .build()) .segmentDurationSeconds(123) .build()) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnPackagingConfiguration.Builder
A fluent builder for
CfnPackagingConfiguration . |
static interface |
CfnPackagingConfiguration.CmafEncryptionProperty
Holds encryption information so that access to the content can be controlled by a DRM solution.
|
static interface |
CfnPackagingConfiguration.CmafPackageProperty
Parameters for a packaging configuration that uses Common Media Application Format (CMAF) packaging.
|
static interface |
CfnPackagingConfiguration.DashEncryptionProperty
Holds encryption information so that access to the content can be controlled by a DRM solution.
|
static interface |
CfnPackagingConfiguration.DashManifestProperty
Parameters for a DASH manifest.
|
static interface |
CfnPackagingConfiguration.DashPackageProperty
Parameters for a packaging configuration that uses Dynamic Adaptive Streaming over HTTP (DASH) packaging.
|
static interface |
CfnPackagingConfiguration.HlsEncryptionProperty
Holds encryption information so that access to the content can be controlled by a DRM solution.
|
static interface |
CfnPackagingConfiguration.HlsManifestProperty
Parameters for an HLS manifest.
|
static interface |
CfnPackagingConfiguration.HlsPackageProperty
Parameters for a packaging configuration that uses HTTP Live Streaming (HLS) packaging.
|
static interface |
CfnPackagingConfiguration.MssEncryptionProperty
Holds encryption information so that access to the content can be controlled by a DRM solution.
|
static interface |
CfnPackagingConfiguration.MssManifestProperty
Parameters for a Microsoft Smooth manifest.
|
static interface |
CfnPackagingConfiguration.MssPackageProperty
Parameters for a packaging configuration that uses Microsoft Smooth Streaming (MSS) packaging.
|
static interface |
CfnPackagingConfiguration.SpekeKeyProviderProperty
A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that provides encryption keys.
|
static interface |
CfnPackagingConfiguration.StreamSelectionProperty
Limitations for outputs from the endpoint, based on the video bitrate.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnPackagingConfiguration(Construct scope,
java.lang.String id,
CfnPackagingConfigurationProps props)
Create a new `AWS::MediaPackage::PackagingConfiguration`.
|
protected |
CfnPackagingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPackagingConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
The Amazon Resource Name (ARN) for the packaging configuration.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getCmafPackage()
Parameters for CMAF packaging.
|
java.lang.Object |
getDashPackage()
Parameters for DASH-ISO packaging.
|
java.lang.Object |
getHlsPackage()
Parameters for Apple HLS packaging.
|
java.lang.String |
getId()
Unique identifier that you assign to the packaging configuration.
|
java.lang.Object |
getMssPackage()
Parameters for Microsoft Smooth Streaming packaging.
|
java.lang.String |
getPackagingGroupId()
The ID of the packaging group associated with this packaging configuration.
|
TagManager |
getTags()
The tags to assign to the packaging configuration.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCmafPackage(CfnPackagingConfiguration.CmafPackageProperty value)
Parameters for CMAF packaging.
|
void |
setCmafPackage(IResolvable value)
Parameters for CMAF packaging.
|
void |
setDashPackage(CfnPackagingConfiguration.DashPackageProperty value)
Parameters for DASH-ISO packaging.
|
void |
setDashPackage(IResolvable value)
Parameters for DASH-ISO packaging.
|
void |
setHlsPackage(CfnPackagingConfiguration.HlsPackageProperty value)
Parameters for Apple HLS packaging.
|
void |
setHlsPackage(IResolvable value)
Parameters for Apple HLS packaging.
|
void |
setId(java.lang.String value)
Unique identifier that you assign to the packaging configuration.
|
void |
setMssPackage(CfnPackagingConfiguration.MssPackageProperty value)
Parameters for Microsoft Smooth Streaming packaging.
|
void |
setMssPackage(IResolvable value)
Parameters for Microsoft Smooth Streaming packaging.
|
void |
setPackagingGroupId(java.lang.String value)
The ID of the packaging group associated with this packaging configuration.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnPackagingConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPackagingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnPackagingConfiguration(Construct scope, java.lang.String id, CfnPackagingConfigurationProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
You can get this from the response to any request to the packaging configuration.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getId()
public void setId(java.lang.String value)
public java.lang.String getPackagingGroupId()
public void setPackagingGroupId(java.lang.String value)
public java.lang.Object getCmafPackage()
public void setCmafPackage(IResolvable value)
public void setCmafPackage(CfnPackagingConfiguration.CmafPackageProperty value)
public java.lang.Object getDashPackage()
public void setDashPackage(IResolvable value)
public void setDashPackage(CfnPackagingConfiguration.DashPackageProperty value)
public java.lang.Object getHlsPackage()
public void setHlsPackage(IResolvable value)
public void setHlsPackage(CfnPackagingConfiguration.HlsPackageProperty value)
public java.lang.Object getMssPackage()
public void setMssPackage(IResolvable value)
public void setMssPackage(CfnPackagingConfiguration.MssPackageProperty value)