Class CfnPackagingConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:00.315Z") @Stability(Stable) public class CfnPackagingConfiguration extends CfnResource implements IInspectable
A CloudFormation AWS::MediaPackage::PackagingConfiguration.

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().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().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().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().build())
                                 .build())
                         .build())
                 .segmentDurationSeconds(123)
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • 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 Construct scope, @NotNull String id, @NotNull CfnPackagingConfigurationProps props)
      Create a new AWS::MediaPackage::PackagingConfiguration.

      Parameters:
      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.
  • 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()
      The tags to assign to the packaging configuration.
    • 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.