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, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:09.936Z") @Stability(Stable) public class CfnPackagingConfiguration extends CfnResource implements IInspectable, 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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String 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

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getId

      @Stability(Stable) @NotNull public String getId()
      Unique identifier that you assign to the packaging configuration.
    • setId

      @Stability(Stable) public void setId(@NotNull String value)
      Unique identifier that you assign to the packaging configuration.
    • getPackagingGroupId

      @Stability(Stable) @NotNull public String getPackagingGroupId()
      The ID of the packaging group associated with this packaging configuration.
    • setPackagingGroupId

      @Stability(Stable) public void setPackagingGroupId(@NotNull String value)
      The ID of the packaging group associated with this packaging configuration.
    • getCmafPackage

      @Stability(Stable) @Nullable public Object getCmafPackage()
      Parameters for CMAF packaging.
    • setCmafPackage

      @Stability(Stable) public void setCmafPackage(@Nullable IResolvable value)
      Parameters for CMAF packaging.
    • setCmafPackage

      @Stability(Stable) public void setCmafPackage(@Nullable CfnPackagingConfiguration.CmafPackageProperty value)
      Parameters for CMAF packaging.
    • getDashPackage

      @Stability(Stable) @Nullable public Object getDashPackage()
      Parameters for DASH-ISO packaging.
    • setDashPackage

      @Stability(Stable) public void setDashPackage(@Nullable IResolvable value)
      Parameters for DASH-ISO packaging.
    • setDashPackage

      @Stability(Stable) public void setDashPackage(@Nullable CfnPackagingConfiguration.DashPackageProperty value)
      Parameters for DASH-ISO packaging.
    • getHlsPackage

      @Stability(Stable) @Nullable public Object getHlsPackage()
      Parameters for Apple HLS packaging.
    • setHlsPackage

      @Stability(Stable) public void setHlsPackage(@Nullable IResolvable value)
      Parameters for Apple HLS packaging.
    • setHlsPackage

      @Stability(Stable) public void setHlsPackage(@Nullable CfnPackagingConfiguration.HlsPackageProperty value)
      Parameters for Apple HLS packaging.
    • getMssPackage

      @Stability(Stable) @Nullable public Object getMssPackage()
      Parameters for Microsoft Smooth Streaming packaging.
    • setMssPackage

      @Stability(Stable) public void setMssPackage(@Nullable IResolvable value)
      Parameters for Microsoft Smooth Streaming packaging.
    • setMssPackage

      @Stability(Stable) public void setMssPackage(@Nullable CfnPackagingConfiguration.MssPackageProperty value)
      Parameters for Microsoft Smooth Streaming packaging.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags to assign to the packaging configuration.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags to assign to the packaging configuration.