Class CfnPackagingConfiguration
Creates a packaging configuration in a packaging group.
Inherited Members
Namespace: Amazon.CDK.AWS.MediaPackage
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPackagingConfiguration : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnPackagingConfiguration
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
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
.
CloudformationResource: AWS::MediaPackage::PackagingConfiguration
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackage;
var cfnPackagingConfiguration = new CfnPackagingConfiguration(this, "MyCfnPackagingConfiguration", new CfnPackagingConfigurationProps {
Id = "id",
PackagingGroupId = "packagingGroupId",
// the properties below are optional
CmafPackage = new CmafPackageProperty {
HlsManifests = new [] { new HlsManifestProperty {
AdMarkers = "adMarkers",
IncludeIframeOnlyStream = false,
ManifestName = "manifestName",
ProgramDateTimeIntervalSeconds = 123,
RepeatExtXKey = false,
StreamSelection = new StreamSelectionProperty {
MaxVideoBitsPerSecond = 123,
MinVideoBitsPerSecond = 123,
StreamOrder = "streamOrder"
}
} },
// the properties below are optional
Encryption = new CmafEncryptionProperty {
SpekeKeyProvider = new SpekeKeyProviderProperty {
RoleArn = "roleArn",
SystemIds = new [] { "systemIds" },
Url = "url",
// the properties below are optional
EncryptionContractConfiguration = new EncryptionContractConfigurationProperty {
PresetSpeke20Audio = "presetSpeke20Audio",
PresetSpeke20Video = "presetSpeke20Video"
}
}
},
IncludeEncoderConfigurationInSegments = false,
SegmentDurationSeconds = 123
},
DashPackage = new DashPackageProperty {
DashManifests = new [] { new DashManifestProperty {
ManifestLayout = "manifestLayout",
ManifestName = "manifestName",
MinBufferTimeSeconds = 123,
Profile = "profile",
ScteMarkersSource = "scteMarkersSource",
StreamSelection = new StreamSelectionProperty {
MaxVideoBitsPerSecond = 123,
MinVideoBitsPerSecond = 123,
StreamOrder = "streamOrder"
}
} },
// the properties below are optional
Encryption = new DashEncryptionProperty {
SpekeKeyProvider = new SpekeKeyProviderProperty {
RoleArn = "roleArn",
SystemIds = new [] { "systemIds" },
Url = "url",
// the properties below are optional
EncryptionContractConfiguration = new EncryptionContractConfigurationProperty {
PresetSpeke20Audio = "presetSpeke20Audio",
PresetSpeke20Video = "presetSpeke20Video"
}
}
},
IncludeEncoderConfigurationInSegments = false,
IncludeIframeOnlyStream = false,
PeriodTriggers = new [] { "periodTriggers" },
SegmentDurationSeconds = 123,
SegmentTemplateFormat = "segmentTemplateFormat"
},
HlsPackage = new HlsPackageProperty {
HlsManifests = new [] { new HlsManifestProperty {
AdMarkers = "adMarkers",
IncludeIframeOnlyStream = false,
ManifestName = "manifestName",
ProgramDateTimeIntervalSeconds = 123,
RepeatExtXKey = false,
StreamSelection = new StreamSelectionProperty {
MaxVideoBitsPerSecond = 123,
MinVideoBitsPerSecond = 123,
StreamOrder = "streamOrder"
}
} },
// the properties below are optional
Encryption = new HlsEncryptionProperty {
SpekeKeyProvider = new SpekeKeyProviderProperty {
RoleArn = "roleArn",
SystemIds = new [] { "systemIds" },
Url = "url",
// the properties below are optional
EncryptionContractConfiguration = new EncryptionContractConfigurationProperty {
PresetSpeke20Audio = "presetSpeke20Audio",
PresetSpeke20Video = "presetSpeke20Video"
}
},
// the properties below are optional
ConstantInitializationVector = "constantInitializationVector",
EncryptionMethod = "encryptionMethod"
},
IncludeDvbSubtitles = false,
SegmentDurationSeconds = 123,
UseAudioRenditionGroup = false
},
MssPackage = new MssPackageProperty {
MssManifests = new [] { new MssManifestProperty {
ManifestName = "manifestName",
StreamSelection = new StreamSelectionProperty {
MaxVideoBitsPerSecond = 123,
MinVideoBitsPerSecond = 123,
StreamOrder = "streamOrder"
}
} },
// the properties below are optional
Encryption = new MssEncryptionProperty {
SpekeKeyProvider = new SpekeKeyProviderProperty {
RoleArn = "roleArn",
SystemIds = new [] { "systemIds" },
Url = "url",
// the properties below are optional
EncryptionContractConfiguration = new EncryptionContractConfigurationProperty {
PresetSpeke20Audio = "presetSpeke20Audio",
PresetSpeke20Video = "presetSpeke20Video"
}
}
},
SegmentDurationSeconds = 123
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnPackagingConfiguration(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPackagingConfiguration(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnPackagingConfiguration(Construct, String, ICfnPackagingConfigurationProps) |
Properties
AttrArn | The Amazon Resource Name (ARN) for the packaging configuration. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
CmafPackage | Parameters for CMAF packaging. |
DashPackage | Parameters for DASH-ISO packaging. |
HlsPackage | Parameters for Apple HLS packaging. |
Id | Unique identifier that you assign to the packaging configuration. |
MssPackage | Parameters for Microsoft Smooth Streaming packaging. |
PackagingGroupId | The ID of the packaging group associated with this packaging configuration. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | The tags to assign to the packaging configuration. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPackagingConfiguration(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPackagingConfiguration(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnPackagingConfiguration(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPackagingConfiguration(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnPackagingConfiguration(Construct, String, ICfnPackagingConfigurationProps)
public CfnPackagingConfiguration(Construct scope, string id, ICfnPackagingConfigurationProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnPackagingConfigurationProps
Resource properties.
Properties
AttrArn
The Amazon Resource Name (ARN) for the packaging configuration.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
You can get this from the response to any request to the packaging configuration.
CloudformationAttribute: Arn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
CmafPackage
Parameters for CMAF packaging.
public virtual object CmafPackage { get; set; }
Property Value
System.Object
DashPackage
Parameters for DASH-ISO packaging.
public virtual object DashPackage { get; set; }
Property Value
System.Object
HlsPackage
Parameters for Apple HLS packaging.
public virtual object HlsPackage { get; set; }
Property Value
System.Object
Id
Unique identifier that you assign to the packaging configuration.
public virtual string Id { get; set; }
Property Value
System.String
MssPackage
Parameters for Microsoft Smooth Streaming packaging.
public virtual object MssPackage { get; set; }
Property Value
System.Object
PackagingGroupId
The ID of the packaging group associated with this packaging configuration.
public virtual string PackagingGroupId { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The tags to assign to the packaging configuration.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>