import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreatePackagingConfigurationRequest, CreatePackagingConfigurationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreatePackagingConfigurationCommand}. */ export interface CreatePackagingConfigurationCommandInput extends CreatePackagingConfigurationRequest { } /** * @public * * The output of {@link CreatePackagingConfigurationCommand}. */ export interface CreatePackagingConfigurationCommandOutput extends CreatePackagingConfigurationResponse, __MetadataBearer { } declare const CreatePackagingConfigurationCommand_base: { new (input: CreatePackagingConfigurationCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreatePackagingConfigurationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** * Creates a new MediaPackage VOD PackagingConfiguration resource. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MediaPackageVodClient, CreatePackagingConfigurationCommand } from "@aws-sdk/client-mediapackage-vod"; // ES Modules import * // const { MediaPackageVodClient, CreatePackagingConfigurationCommand } = require("@aws-sdk/client-mediapackage-vod"); // CommonJS import * // import type { MediaPackageVodClientConfig } from "@aws-sdk/client-mediapackage-vod"; * const config = {}; // type is MediaPackageVodClientConfig * const client = new MediaPackageVodClient(config); * const input = { // CreatePackagingConfigurationRequest * CmafPackage: { // CmafPackage * Encryption: { // CmafEncryption * ConstantInitializationVector: "STRING_VALUE", * SpekeKeyProvider: { // SpekeKeyProvider * EncryptionContractConfiguration: { // EncryptionContractConfiguration * PresetSpeke20Audio: "PRESET-AUDIO-1" || "PRESET-AUDIO-2" || "PRESET-AUDIO-3" || "SHARED" || "UNENCRYPTED", // required * PresetSpeke20Video: "PRESET-VIDEO-1" || "PRESET-VIDEO-2" || "PRESET-VIDEO-3" || "PRESET-VIDEO-4" || "PRESET-VIDEO-5" || "PRESET-VIDEO-6" || "PRESET-VIDEO-7" || "PRESET-VIDEO-8" || "SHARED" || "UNENCRYPTED", // required * }, * RoleArn: "STRING_VALUE", // required * SystemIds: [ // __listOf__string // required * "STRING_VALUE", * ], * Url: "STRING_VALUE", // required * }, * }, * HlsManifests: [ // __listOfHlsManifest // required * { // HlsManifest * AdMarkers: "NONE" || "SCTE35_ENHANCED" || "PASSTHROUGH", * IncludeIframeOnlyStream: true || false, * ManifestName: "STRING_VALUE", * ProgramDateTimeIntervalSeconds: Number("int"), * RepeatExtXKey: true || false, * StreamSelection: { // StreamSelection * MaxVideoBitsPerSecond: Number("int"), * MinVideoBitsPerSecond: Number("int"), * StreamOrder: "ORIGINAL" || "VIDEO_BITRATE_ASCENDING" || "VIDEO_BITRATE_DESCENDING", * }, * }, * ], * IncludeEncoderConfigurationInSegments: true || false, * SegmentDurationSeconds: Number("int"), * }, * DashPackage: { // DashPackage * DashManifests: [ // __listOfDashManifest // required * { // DashManifest * ManifestLayout: "FULL" || "COMPACT", * ManifestName: "STRING_VALUE", * MinBufferTimeSeconds: Number("int"), * Profile: "NONE" || "HBBTV_1_5", * ScteMarkersSource: "SEGMENTS" || "MANIFEST", * StreamSelection: { * MaxVideoBitsPerSecond: Number("int"), * MinVideoBitsPerSecond: Number("int"), * StreamOrder: "ORIGINAL" || "VIDEO_BITRATE_ASCENDING" || "VIDEO_BITRATE_DESCENDING", * }, * }, * ], * Encryption: { // DashEncryption * SpekeKeyProvider: { * EncryptionContractConfiguration: { * PresetSpeke20Audio: "PRESET-AUDIO-1" || "PRESET-AUDIO-2" || "PRESET-AUDIO-3" || "SHARED" || "UNENCRYPTED", // required * PresetSpeke20Video: "PRESET-VIDEO-1" || "PRESET-VIDEO-2" || "PRESET-VIDEO-3" || "PRESET-VIDEO-4" || "PRESET-VIDEO-5" || "PRESET-VIDEO-6" || "PRESET-VIDEO-7" || "PRESET-VIDEO-8" || "SHARED" || "UNENCRYPTED", // required * }, * RoleArn: "STRING_VALUE", // required * SystemIds: [ // required * "STRING_VALUE", * ], * Url: "STRING_VALUE", // required * }, * }, * IncludeEncoderConfigurationInSegments: true || false, * IncludeIframeOnlyStream: true || false, * PeriodTriggers: [ // __listOf__PeriodTriggersElement * "ADS", * ], * SegmentDurationSeconds: Number("int"), * SegmentTemplateFormat: "NUMBER_WITH_TIMELINE" || "TIME_WITH_TIMELINE" || "NUMBER_WITH_DURATION", * }, * HlsPackage: { // HlsPackage * Encryption: { // HlsEncryption * ConstantInitializationVector: "STRING_VALUE", * EncryptionMethod: "AES_128" || "SAMPLE_AES", * SpekeKeyProvider: { * EncryptionContractConfiguration: { * PresetSpeke20Audio: "PRESET-AUDIO-1" || "PRESET-AUDIO-2" || "PRESET-AUDIO-3" || "SHARED" || "UNENCRYPTED", // required * PresetSpeke20Video: "PRESET-VIDEO-1" || "PRESET-VIDEO-2" || "PRESET-VIDEO-3" || "PRESET-VIDEO-4" || "PRESET-VIDEO-5" || "PRESET-VIDEO-6" || "PRESET-VIDEO-7" || "PRESET-VIDEO-8" || "SHARED" || "UNENCRYPTED", // required * }, * RoleArn: "STRING_VALUE", // required * SystemIds: [ // required * "STRING_VALUE", * ], * Url: "STRING_VALUE", // required * }, * }, * HlsManifests: [ // required * { * AdMarkers: "NONE" || "SCTE35_ENHANCED" || "PASSTHROUGH", * IncludeIframeOnlyStream: true || false, * ManifestName: "STRING_VALUE", * ProgramDateTimeIntervalSeconds: Number("int"), * RepeatExtXKey: true || false, * StreamSelection: { * MaxVideoBitsPerSecond: Number("int"), * MinVideoBitsPerSecond: Number("int"), * StreamOrder: "ORIGINAL" || "VIDEO_BITRATE_ASCENDING" || "VIDEO_BITRATE_DESCENDING", * }, * }, * ], * IncludeDvbSubtitles: true || false, * SegmentDurationSeconds: Number("int"), * UseAudioRenditionGroup: true || false, * }, * Id: "STRING_VALUE", // required * MssPackage: { // MssPackage * Encryption: { // MssEncryption * SpekeKeyProvider: { * EncryptionContractConfiguration: { * PresetSpeke20Audio: "PRESET-AUDIO-1" || "PRESET-AUDIO-2" || "PRESET-AUDIO-3" || "SHARED" || "UNENCRYPTED", // required * PresetSpeke20Video: "PRESET-VIDEO-1" || "PRESET-VIDEO-2" || "PRESET-VIDEO-3" || "PRESET-VIDEO-4" || "PRESET-VIDEO-5" || "PRESET-VIDEO-6" || "PRESET-VIDEO-7" || "PRESET-VIDEO-8" || "SHARED" || "UNENCRYPTED", // required * }, * RoleArn: "STRING_VALUE", // required * SystemIds: [ // required * "STRING_VALUE", * ], * Url: "STRING_VALUE", // required * }, * }, * MssManifests: [ // __listOfMssManifest // required * { // MssManifest * ManifestName: "STRING_VALUE", * StreamSelection: { * MaxVideoBitsPerSecond: Number("int"), * MinVideoBitsPerSecond: Number("int"), * StreamOrder: "ORIGINAL" || "VIDEO_BITRATE_ASCENDING" || "VIDEO_BITRATE_DESCENDING", * }, * }, * ], * SegmentDurationSeconds: Number("int"), * }, * PackagingGroupId: "STRING_VALUE", // required * Tags: { // Tags * "": "STRING_VALUE", * }, * }; * const command = new CreatePackagingConfigurationCommand(input); * const response = await client.send(command); * // { // CreatePackagingConfigurationResponse * // Arn: "STRING_VALUE", * // CmafPackage: { // CmafPackage * // Encryption: { // CmafEncryption * // ConstantInitializationVector: "STRING_VALUE", * // SpekeKeyProvider: { // SpekeKeyProvider * // EncryptionContractConfiguration: { // EncryptionContractConfiguration * // PresetSpeke20Audio: "PRESET-AUDIO-1" || "PRESET-AUDIO-2" || "PRESET-AUDIO-3" || "SHARED" || "UNENCRYPTED", // required * // PresetSpeke20Video: "PRESET-VIDEO-1" || "PRESET-VIDEO-2" || "PRESET-VIDEO-3" || "PRESET-VIDEO-4" || "PRESET-VIDEO-5" || "PRESET-VIDEO-6" || "PRESET-VIDEO-7" || "PRESET-VIDEO-8" || "SHARED" || "UNENCRYPTED", // required * // }, * // RoleArn: "STRING_VALUE", // required * // SystemIds: [ // __listOf__string // required * // "STRING_VALUE", * // ], * // Url: "STRING_VALUE", // required * // }, * // }, * // HlsManifests: [ // __listOfHlsManifest // required * // { // HlsManifest * // AdMarkers: "NONE" || "SCTE35_ENHANCED" || "PASSTHROUGH", * // IncludeIframeOnlyStream: true || false, * // ManifestName: "STRING_VALUE", * // ProgramDateTimeIntervalSeconds: Number("int"), * // RepeatExtXKey: true || false, * // StreamSelection: { // StreamSelection * // MaxVideoBitsPerSecond: Number("int"), * // MinVideoBitsPerSecond: Number("int"), * // StreamOrder: "ORIGINAL" || "VIDEO_BITRATE_ASCENDING" || "VIDEO_BITRATE_DESCENDING", * // }, * // }, * // ], * // IncludeEncoderConfigurationInSegments: true || false, * // SegmentDurationSeconds: Number("int"), * // }, * // CreatedAt: "STRING_VALUE", * // DashPackage: { // DashPackage * // DashManifests: [ // __listOfDashManifest // required * // { // DashManifest * // ManifestLayout: "FULL" || "COMPACT", * // ManifestName: "STRING_VALUE", * // MinBufferTimeSeconds: Number("int"), * // Profile: "NONE" || "HBBTV_1_5", * // ScteMarkersSource: "SEGMENTS" || "MANIFEST", * // StreamSelection: { * // MaxVideoBitsPerSecond: Number("int"), * // MinVideoBitsPerSecond: Number("int"), * // StreamOrder: "ORIGINAL" || "VIDEO_BITRATE_ASCENDING" || "VIDEO_BITRATE_DESCENDING", * // }, * // }, * // ], * // Encryption: { // DashEncryption * // SpekeKeyProvider: { * // EncryptionContractConfiguration: { * // PresetSpeke20Audio: "PRESET-AUDIO-1" || "PRESET-AUDIO-2" || "PRESET-AUDIO-3" || "SHARED" || "UNENCRYPTED", // required * // PresetSpeke20Video: "PRESET-VIDEO-1" || "PRESET-VIDEO-2" || "PRESET-VIDEO-3" || "PRESET-VIDEO-4" || "PRESET-VIDEO-5" || "PRESET-VIDEO-6" || "PRESET-VIDEO-7" || "PRESET-VIDEO-8" || "SHARED" || "UNENCRYPTED", // required * // }, * // RoleArn: "STRING_VALUE", // required * // SystemIds: [ // required * // "STRING_VALUE", * // ], * // Url: "STRING_VALUE", // required * // }, * // }, * // IncludeEncoderConfigurationInSegments: true || false, * // IncludeIframeOnlyStream: true || false, * // PeriodTriggers: [ // __listOf__PeriodTriggersElement * // "ADS", * // ], * // SegmentDurationSeconds: Number("int"), * // SegmentTemplateFormat: "NUMBER_WITH_TIMELINE" || "TIME_WITH_TIMELINE" || "NUMBER_WITH_DURATION", * // }, * // HlsPackage: { // HlsPackage * // Encryption: { // HlsEncryption * // ConstantInitializationVector: "STRING_VALUE", * // EncryptionMethod: "AES_128" || "SAMPLE_AES", * // SpekeKeyProvider: { * // EncryptionContractConfiguration: { * // PresetSpeke20Audio: "PRESET-AUDIO-1" || "PRESET-AUDIO-2" || "PRESET-AUDIO-3" || "SHARED" || "UNENCRYPTED", // required * // PresetSpeke20Video: "PRESET-VIDEO-1" || "PRESET-VIDEO-2" || "PRESET-VIDEO-3" || "PRESET-VIDEO-4" || "PRESET-VIDEO-5" || "PRESET-VIDEO-6" || "PRESET-VIDEO-7" || "PRESET-VIDEO-8" || "SHARED" || "UNENCRYPTED", // required * // }, * // RoleArn: "STRING_VALUE", // required * // SystemIds: [ // required * // "STRING_VALUE", * // ], * // Url: "STRING_VALUE", // required * // }, * // }, * // HlsManifests: [ // required * // { * // AdMarkers: "NONE" || "SCTE35_ENHANCED" || "PASSTHROUGH", * // IncludeIframeOnlyStream: true || false, * // ManifestName: "STRING_VALUE", * // ProgramDateTimeIntervalSeconds: Number("int"), * // RepeatExtXKey: true || false, * // StreamSelection: { * // MaxVideoBitsPerSecond: Number("int"), * // MinVideoBitsPerSecond: Number("int"), * // StreamOrder: "ORIGINAL" || "VIDEO_BITRATE_ASCENDING" || "VIDEO_BITRATE_DESCENDING", * // }, * // }, * // ], * // IncludeDvbSubtitles: true || false, * // SegmentDurationSeconds: Number("int"), * // UseAudioRenditionGroup: true || false, * // }, * // Id: "STRING_VALUE", * // MssPackage: { // MssPackage * // Encryption: { // MssEncryption * // SpekeKeyProvider: { * // EncryptionContractConfiguration: { * // PresetSpeke20Audio: "PRESET-AUDIO-1" || "PRESET-AUDIO-2" || "PRESET-AUDIO-3" || "SHARED" || "UNENCRYPTED", // required * // PresetSpeke20Video: "PRESET-VIDEO-1" || "PRESET-VIDEO-2" || "PRESET-VIDEO-3" || "PRESET-VIDEO-4" || "PRESET-VIDEO-5" || "PRESET-VIDEO-6" || "PRESET-VIDEO-7" || "PRESET-VIDEO-8" || "SHARED" || "UNENCRYPTED", // required * // }, * // RoleArn: "STRING_VALUE", // required * // SystemIds: [ // required * // "STRING_VALUE", * // ], * // Url: "STRING_VALUE", // required * // }, * // }, * // MssManifests: [ // __listOfMssManifest // required * // { // MssManifest * // ManifestName: "STRING_VALUE", * // StreamSelection: { * // MaxVideoBitsPerSecond: Number("int"), * // MinVideoBitsPerSecond: Number("int"), * // StreamOrder: "ORIGINAL" || "VIDEO_BITRATE_ASCENDING" || "VIDEO_BITRATE_DESCENDING", * // }, * // }, * // ], * // SegmentDurationSeconds: Number("int"), * // }, * // PackagingGroupId: "STRING_VALUE", * // Tags: { // Tags * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param CreatePackagingConfigurationCommandInput - {@link CreatePackagingConfigurationCommandInput} * @returns {@link CreatePackagingConfigurationCommandOutput} * @see {@link CreatePackagingConfigurationCommandInput} for command's `input` shape. * @see {@link CreatePackagingConfigurationCommandOutput} for command's `response` shape. * @see {@link MediaPackageVodClientResolvedConfig | config} for MediaPackageVodClient's `config` shape. * * @throws {@link ForbiddenException} (client fault) * The client is not authorized to access the requested resource. * * @throws {@link InternalServerErrorException} (server fault) * An unexpected error occurred. * * @throws {@link NotFoundException} (client fault) * The requested resource does not exist. * * @throws {@link ServiceUnavailableException} (server fault) * An unexpected error occurred. * * @throws {@link TooManyRequestsException} (client fault) * The client has exceeded their resource or throttling limits. * * @throws {@link UnprocessableEntityException} (client fault) * The parameters sent in the request are not valid. * * @throws {@link MediaPackageVodServiceException} *

Base exception class for all service exceptions from MediaPackageVod service.

* * * @public */ export declare class CreatePackagingConfigurationCommand extends CreatePackagingConfigurationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreatePackagingConfigurationRequest; output: CreatePackagingConfigurationResponse; }; sdk: { input: CreatePackagingConfigurationCommandInput; output: CreatePackagingConfigurationCommandOutput; }; }; }