diff --git a/clients/client-mediapackagev2/src/commands/CreateChannelCommand.ts b/clients/client-mediapackagev2/src/commands/CreateChannelCommand.ts index 765645a39e39..b9a329e0e231 100644 --- a/clients/client-mediapackagev2/src/commands/CreateChannelCommand.ts +++ b/clients/client-mediapackagev2/src/commands/CreateChannelCommand.ts @@ -39,6 +39,7 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met * ChannelGroupName: "STRING_VALUE", // required * ChannelName: "STRING_VALUE", // required * ClientToken: "STRING_VALUE", + * InputType: "HLS" || "CMAF", * Description: "STRING_VALUE", * Tags: { // TagMap * "": "STRING_VALUE", @@ -59,6 +60,7 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met * // Url: "STRING_VALUE", * // }, * // ], + * // InputType: "HLS" || "CMAF", * // ETag: "STRING_VALUE", * // Tags: { // TagMap * // "": "STRING_VALUE", diff --git a/clients/client-mediapackagev2/src/commands/CreateOriginEndpointCommand.ts b/clients/client-mediapackagev2/src/commands/CreateOriginEndpointCommand.ts index da5f5121df7a..b621340eaf29 100644 --- a/clients/client-mediapackagev2/src/commands/CreateOriginEndpointCommand.ts +++ b/clients/client-mediapackagev2/src/commands/CreateOriginEndpointCommand.ts @@ -136,6 +136,11 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR * }, * }, * ], + * ForceEndpointErrorConfiguration: { // ForceEndpointErrorConfiguration + * EndpointErrorConditions: [ // EndpointErrorConditions + * "STALE_MANIFEST" || "INCOMPLETE_MANIFEST" || "MISSING_DRM_KEY" || "SLATE_INPUT", + * ], + * }, * Tags: { // TagMap * "": "STRING_VALUE", * }, @@ -248,6 +253,11 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR * // }, * // }, * // ], + * // ForceEndpointErrorConfiguration: { // ForceEndpointErrorConfiguration + * // EndpointErrorConditions: [ // EndpointErrorConditions + * // "STALE_MANIFEST" || "INCOMPLETE_MANIFEST" || "MISSING_DRM_KEY" || "SLATE_INPUT", + * // ], + * // }, * // ETag: "STRING_VALUE", * // Tags: { // TagMap * // "": "STRING_VALUE", diff --git a/clients/client-mediapackagev2/src/commands/GetChannelCommand.ts b/clients/client-mediapackagev2/src/commands/GetChannelCommand.ts index 0a451355edc7..92f0df2bfa46 100644 --- a/clients/client-mediapackagev2/src/commands/GetChannelCommand.ts +++ b/clients/client-mediapackagev2/src/commands/GetChannelCommand.ts @@ -54,6 +54,7 @@ export interface GetChannelCommandOutput extends GetChannelResponse, __MetadataB * // Url: "STRING_VALUE", * // }, * // ], + * // InputType: "HLS" || "CMAF", * // ETag: "STRING_VALUE", * // Tags: { // TagMap * // "": "STRING_VALUE", diff --git a/clients/client-mediapackagev2/src/commands/GetOriginEndpointCommand.ts b/clients/client-mediapackagev2/src/commands/GetOriginEndpointCommand.ts index a0ea43a58251..9287f0640772 100644 --- a/clients/client-mediapackagev2/src/commands/GetOriginEndpointCommand.ts +++ b/clients/client-mediapackagev2/src/commands/GetOriginEndpointCommand.ts @@ -120,10 +120,6 @@ export interface GetOriginEndpointCommandOutput extends GetOriginEndpointRespons * // }, * // }, * // ], - * // ETag: "STRING_VALUE", - * // Tags: { // TagMap - * // "": "STRING_VALUE", - * // }, * // DashManifests: [ // GetDashManifests * // { // GetDashManifestConfiguration * // ManifestName: "STRING_VALUE", // required @@ -152,6 +148,15 @@ export interface GetOriginEndpointCommandOutput extends GetOriginEndpointRespons * // }, * // }, * // ], + * // ForceEndpointErrorConfiguration: { // ForceEndpointErrorConfiguration + * // EndpointErrorConditions: [ // EndpointErrorConditions + * // "STALE_MANIFEST" || "INCOMPLETE_MANIFEST" || "MISSING_DRM_KEY" || "SLATE_INPUT", + * // ], + * // }, + * // ETag: "STRING_VALUE", + * // Tags: { // TagMap + * // "": "STRING_VALUE", + * // }, * // }; * * ``` diff --git a/clients/client-mediapackagev2/src/commands/ListChannelsCommand.ts b/clients/client-mediapackagev2/src/commands/ListChannelsCommand.ts index 13602418d73c..69d212177ceb 100644 --- a/clients/client-mediapackagev2/src/commands/ListChannelsCommand.ts +++ b/clients/client-mediapackagev2/src/commands/ListChannelsCommand.ts @@ -51,6 +51,7 @@ export interface ListChannelsCommandOutput extends ListChannelsResponse, __Metad * // CreatedAt: new Date("TIMESTAMP"), // required * // ModifiedAt: new Date("TIMESTAMP"), // required * // Description: "STRING_VALUE", + * // InputType: "HLS" || "CMAF", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-mediapackagev2/src/commands/ListOriginEndpointsCommand.ts b/clients/client-mediapackagev2/src/commands/ListOriginEndpointsCommand.ts index 0707c8e6d5ac..2367224bf053 100644 --- a/clients/client-mediapackagev2/src/commands/ListOriginEndpointsCommand.ts +++ b/clients/client-mediapackagev2/src/commands/ListOriginEndpointsCommand.ts @@ -74,6 +74,11 @@ export interface ListOriginEndpointsCommandOutput extends ListOriginEndpointsRes * // Url: "STRING_VALUE", * // }, * // ], + * // ForceEndpointErrorConfiguration: { // ForceEndpointErrorConfiguration + * // EndpointErrorConditions: [ // EndpointErrorConditions + * // "STALE_MANIFEST" || "INCOMPLETE_MANIFEST" || "MISSING_DRM_KEY" || "SLATE_INPUT", + * // ], + * // }, * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-mediapackagev2/src/commands/UpdateChannelCommand.ts b/clients/client-mediapackagev2/src/commands/UpdateChannelCommand.ts index f08c14782cab..478313b2e989 100644 --- a/clients/client-mediapackagev2/src/commands/UpdateChannelCommand.ts +++ b/clients/client-mediapackagev2/src/commands/UpdateChannelCommand.ts @@ -57,6 +57,7 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met * // Url: "STRING_VALUE", * // }, * // ], + * // InputType: "HLS" || "CMAF", * // ETag: "STRING_VALUE", * // Tags: { // TagMap * // "": "STRING_VALUE", diff --git a/clients/client-mediapackagev2/src/commands/UpdateOriginEndpointCommand.ts b/clients/client-mediapackagev2/src/commands/UpdateOriginEndpointCommand.ts index 36fd4b856694..e0771dc96ffb 100644 --- a/clients/client-mediapackagev2/src/commands/UpdateOriginEndpointCommand.ts +++ b/clients/client-mediapackagev2/src/commands/UpdateOriginEndpointCommand.ts @@ -136,6 +136,11 @@ export interface UpdateOriginEndpointCommandOutput extends UpdateOriginEndpointR * }, * }, * ], + * ForceEndpointErrorConfiguration: { // ForceEndpointErrorConfiguration + * EndpointErrorConditions: [ // EndpointErrorConditions + * "STALE_MANIFEST" || "INCOMPLETE_MANIFEST" || "MISSING_DRM_KEY" || "SLATE_INPUT", + * ], + * }, * ETag: "STRING_VALUE", * }; * const command = new UpdateOriginEndpointCommand(input); @@ -218,6 +223,11 @@ export interface UpdateOriginEndpointCommandOutput extends UpdateOriginEndpointR * // }, * // }, * // ], + * // ForceEndpointErrorConfiguration: { // ForceEndpointErrorConfiguration + * // EndpointErrorConditions: [ // EndpointErrorConditions + * // "STALE_MANIFEST" || "INCOMPLETE_MANIFEST" || "MISSING_DRM_KEY" || "SLATE_INPUT", + * // ], + * // }, * // ETag: "STRING_VALUE", * // Tags: { // TagMap * // "": "STRING_VALUE", diff --git a/clients/client-mediapackagev2/src/models/models_0.ts b/clients/client-mediapackagev2/src/models/models_0.ts index 96429183050d..632c5d5aa9ac 100644 --- a/clients/client-mediapackagev2/src/models/models_0.ts +++ b/clients/client-mediapackagev2/src/models/models_0.ts @@ -232,10 +232,13 @@ export const ValidationExceptionType = { NONE_MODE_WITH_TIMING_SOURCE: "NONE_MODE_WITH_TIMING_SOURCE", NUM_MANIFESTS_HIGH: "NUM_MANIFESTS_HIGH", NUM_MANIFESTS_LOW: "NUM_MANIFESTS_LOW", + ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION: + "ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION", PERIOD_TRIGGERS_NONE_SPECIFIED_WITH_ADDITIONAL_VALUES: "PERIOD_TRIGGERS_NONE_SPECIFIED_WITH_ADDITIONAL_VALUES", ROLE_ARN_INVALID_FORMAT: "ROLE_ARN_INVALID_FORMAT", ROLE_ARN_LENGTH_OUT_OF_RANGE: "ROLE_ARN_LENGTH_OUT_OF_RANGE", ROLE_ARN_NOT_ASSUMABLE: "ROLE_ARN_NOT_ASSUMABLE", + SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY: "SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY", TIMING_SOURCE_MISSING: "TIMING_SOURCE_MISSING", TS_CONTAINER_TYPE_WITH_DASH_MANIFEST: "TS_CONTAINER_TYPE_WITH_DASH_MANIFEST", UPDATE_PERIOD_SMALLER_THAN_SEGMENT_DURATION: "UPDATE_PERIOD_SMALLER_THAN_SEGMENT_DURATION", @@ -394,6 +397,20 @@ export interface PutChannelPolicyRequest { */ export interface PutChannelPolicyResponse {} +/** + * @public + * @enum + */ +export const InputType = { + CMAF: "CMAF", + HLS: "HLS", +} as const; + +/** + * @public + */ +export type InputType = (typeof InputType)[keyof typeof InputType]; + /** * @public */ @@ -416,6 +433,23 @@ export interface CreateChannelRequest { */ ClientToken?: string; + /** + *

The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

+ *

The allowed values are:

+ *
    + *
  • + *

    + * HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

    + *
  • + *
  • + *

    + * CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    + *
  • + *
+ * @public + */ + InputType?: InputType; + /** *

Enter any descriptive text that helps you to identify the channel.

* @public @@ -499,6 +533,23 @@ export interface CreateChannelResponse { */ IngestEndpoints?: IngestEndpoint[]; + /** + *

The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

+ *

The allowed values are:

+ *
    + *
  • + *

    + * HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

    + *
  • + *
  • + *

    + * CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    + *
  • + *
+ * @public + */ + InputType?: InputType; + /** *

The current Entity Tag (ETag) associated with this resource. The entity tag can be used to safely make concurrent updates to the resource.

* @public @@ -619,6 +670,23 @@ export interface GetChannelResponse { */ IngestEndpoints?: IngestEndpoint[]; + /** + *

The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

+ *

The allowed values are:

+ *
    + *
  • + *

    + * HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

    + *
  • + *
  • + *

    + * CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    + *
  • + *
+ * @public + */ + InputType?: InputType; + /** *

The current Entity Tag (ETag) associated with this resource. The entity tag can be used to safely make concurrent updates to the resource.

* @public @@ -695,6 +763,23 @@ export interface ChannelListConfiguration { * @public */ Description?: string; + + /** + *

The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

+ *

The allowed values are:

+ *
    + *
  • + *

    + * HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

    + *
  • + *
  • + *

    + * CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    + *
  • + *
+ * @public + */ + InputType?: InputType; } /** @@ -939,6 +1024,52 @@ export interface CreateDashManifestConfiguration { UtcTiming?: DashUtcTiming; } +/** + * @public + * @enum + */ +export const EndpointErrorCondition = { + INCOMPLETE_MANIFEST: "INCOMPLETE_MANIFEST", + MISSING_DRM_KEY: "MISSING_DRM_KEY", + SLATE_INPUT: "SLATE_INPUT", + STALE_MANIFEST: "STALE_MANIFEST", +} as const; + +/** + * @public + */ +export type EndpointErrorCondition = (typeof EndpointErrorCondition)[keyof typeof EndpointErrorCondition]; + +/** + *

The failover settings for the endpoint.

+ * @public + */ +export interface ForceEndpointErrorConfiguration { + /** + *

The failover conditions for the endpoint. The options are:

+ *
    + *
  • + *

    + * STALE_MANIFEST - The manifest stalled and there are no new segments or parts.

    + *
  • + *
  • + *

    + * INCOMPLETE_MANIFEST - There is a gap in the manifest.

    + *
  • + *
  • + *

    + * MISSING_DRM_KEY - Key rotation is enabled but we're unable to fetch the key for the current key period.

    + *
  • + *
  • + *

    + * SLATE_INPUT - The segments which contain slate content are considered to be missing content.

    + *
  • + *
+ * @public + */ + EndpointErrorConditions?: EndpointErrorCondition[]; +} + /** *

The SCTE configuration.

* @public @@ -1469,6 +1600,12 @@ export interface CreateOriginEndpointRequest { */ DashManifests?: CreateDashManifestConfiguration[]; + /** + *

The failover settings for the endpoint.

+ * @public + */ + ForceEndpointErrorConfiguration?: ForceEndpointErrorConfiguration; + /** *

A comma-separated list of tag key:value pairs that you define. For example:

*

@@ -1754,6 +1891,12 @@ export interface CreateOriginEndpointResponse { */ DashManifests?: GetDashManifestConfiguration[]; + /** + *

The failover settings for the endpoint.

+ * @public + */ + ForceEndpointErrorConfiguration?: ForceEndpointErrorConfiguration; + /** *

The current Entity Tag (ETag) associated with this resource. The entity tag can be used to safely make concurrent updates to the resource.

* @public @@ -1895,22 +2038,28 @@ export interface GetOriginEndpointResponse { LowLatencyHlsManifests?: GetLowLatencyHlsManifestConfiguration[]; /** - *

The current Entity Tag (ETag) associated with this resource. The entity tag can be used to safely make concurrent updates to the resource.

+ *

A DASH manifest configuration.

* @public */ - ETag?: string; + DashManifests?: GetDashManifestConfiguration[]; /** - *

The comma-separated list of tag key:value pairs assigned to the origin endpoint.

+ *

The failover settings for the endpoint.

* @public */ - Tags?: Record; + ForceEndpointErrorConfiguration?: ForceEndpointErrorConfiguration; /** - *

A DASH manifest configuration.

+ *

The current Entity Tag (ETag) associated with this resource. The entity tag can be used to safely make concurrent updates to the resource.

* @public */ - DashManifests?: GetDashManifestConfiguration[]; + ETag?: string; + + /** + *

The comma-separated list of tag key:value pairs assigned to the origin endpoint.

+ * @public + */ + Tags?: Record; } /** @@ -2078,6 +2227,12 @@ export interface OriginEndpointListConfiguration { * @public */ DashManifests?: ListDashManifestConfiguration[]; + + /** + *

The failover settings for the endpoint.

+ * @public + */ + ForceEndpointErrorConfiguration?: ForceEndpointErrorConfiguration; } /** @@ -2275,6 +2430,12 @@ export interface UpdateOriginEndpointRequest { */ DashManifests?: CreateDashManifestConfiguration[]; + /** + *

The failover settings for the endpoint.

+ * @public + */ + ForceEndpointErrorConfiguration?: ForceEndpointErrorConfiguration; + /** *

The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the resource's current entity tag, the update request will be rejected.

* @public @@ -2358,6 +2519,12 @@ export interface UpdateOriginEndpointResponse { */ LowLatencyHlsManifests?: GetLowLatencyHlsManifestConfiguration[]; + /** + *

The failover settings for the endpoint.

+ * @public + */ + ForceEndpointErrorConfiguration?: ForceEndpointErrorConfiguration; + /** *

The current Entity Tag (ETag) associated with this resource. The entity tag can be used to safely make concurrent updates to the resource.

* @public @@ -2452,6 +2619,23 @@ export interface UpdateChannelResponse { */ IngestEndpoints?: IngestEndpoint[]; + /** + *

The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

+ *

The allowed values are:

+ *
    + *
  • + *

    + * HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

    + *
  • + *
  • + *

    + * CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    + *
  • + *
+ * @public + */ + InputType?: InputType; + /** *

The current Entity Tag (ETag) associated with this resource. The entity tag can be used to safely make concurrent updates to the resource.

* @public diff --git a/clients/client-mediapackagev2/src/protocols/Aws_restJson1.ts b/clients/client-mediapackagev2/src/protocols/Aws_restJson1.ts index 74ffd0972b3b..3679c7f36929 100644 --- a/clients/client-mediapackagev2/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediapackagev2/src/protocols/Aws_restJson1.ts @@ -91,7 +91,9 @@ import { Encryption, EncryptionContractConfiguration, EncryptionMethod, + EndpointErrorCondition, FilterConfiguration, + ForceEndpointErrorConfiguration, GetDashManifestConfiguration, GetHlsManifestConfiguration, GetLowLatencyHlsManifestConfiguration, @@ -128,6 +130,7 @@ export const se_CreateChannelCommand = async ( take(input, { ChannelName: [], Description: [], + InputType: [], tags: [, (_) => _json(_), `Tags`], }) ); @@ -181,6 +184,7 @@ export const se_CreateOriginEndpointCommand = async ( ContainerType: [], DashManifests: (_) => se_CreateDashManifests(_, context), Description: [], + ForceEndpointErrorConfiguration: (_) => _json(_), HlsManifests: (_) => se_CreateHlsManifests(_, context), LowLatencyHlsManifests: (_) => se_CreateLowLatencyHlsManifests(_, context), OriginEndpointName: [], @@ -606,6 +610,7 @@ export const se_UpdateOriginEndpointCommand = async ( ContainerType: [], DashManifests: (_) => se_CreateDashManifests(_, context), Description: [], + ForceEndpointErrorConfiguration: (_) => _json(_), HlsManifests: (_) => se_CreateHlsManifests(_, context), LowLatencyHlsManifests: (_) => se_CreateLowLatencyHlsManifests(_, context), Segment: (_) => _json(_), @@ -638,6 +643,7 @@ export const de_CreateChannelCommand = async ( Description: __expectString, ETag: __expectString, IngestEndpoints: _json, + InputType: __expectString, ModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), Tags: _json, }); @@ -696,6 +702,7 @@ export const de_CreateOriginEndpointCommand = async ( DashManifests: (_) => de_GetDashManifests(_, context), Description: __expectString, ETag: __expectString, + ForceEndpointErrorConfiguration: _json, HlsManifests: (_) => de_GetHlsManifests(_, context), LowLatencyHlsManifests: (_) => de_GetLowLatencyHlsManifests(_, context), ModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), @@ -815,6 +822,7 @@ export const de_GetChannelCommand = async ( Description: __expectString, ETag: __expectString, IngestEndpoints: _json, + InputType: __expectString, ModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), Tags: _json, }); @@ -896,6 +904,7 @@ export const de_GetOriginEndpointCommand = async ( DashManifests: (_) => de_GetDashManifests(_, context), Description: __expectString, ETag: __expectString, + ForceEndpointErrorConfiguration: _json, HlsManifests: (_) => de_GetHlsManifests(_, context), LowLatencyHlsManifests: (_) => de_GetLowLatencyHlsManifests(_, context), ModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), @@ -1109,6 +1118,7 @@ export const de_UpdateChannelCommand = async ( Description: __expectString, ETag: __expectString, IngestEndpoints: _json, + InputType: __expectString, ModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), Tags: [, _json, `tags`], }); @@ -1167,6 +1177,7 @@ export const de_UpdateOriginEndpointCommand = async ( DashManifests: (_) => de_GetDashManifests(_, context), Description: __expectString, ETag: __expectString, + ForceEndpointErrorConfiguration: _json, HlsManifests: (_) => de_GetHlsManifests(_, context), LowLatencyHlsManifests: (_) => de_GetLowLatencyHlsManifests(_, context), ModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), @@ -1453,6 +1464,8 @@ const se_CreateLowLatencyHlsManifests = ( // se_EncryptionMethod omitted. +// se_EndpointErrorConditions omitted. + /** * serializeAws_restJson1FilterConfiguration */ @@ -1465,6 +1478,8 @@ const se_FilterConfiguration = (input: FilterConfiguration, context: __SerdeCont }); }; +// se_ForceEndpointErrorConfiguration omitted. + // se_Scte omitted. // se_ScteDash omitted. @@ -1526,6 +1541,7 @@ const de_ChannelListConfiguration = (output: any, context: __SerdeContext): Chan ChannelName: __expectString, CreatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), Description: __expectString, + InputType: __expectString, ModifiedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), }) as any; }; @@ -1542,6 +1558,8 @@ const de_ChannelListConfiguration = (output: any, context: __SerdeContext): Chan // de_EncryptionMethod omitted. +// de_EndpointErrorConditions omitted. + /** * deserializeAws_restJson1FilterConfiguration */ @@ -1554,6 +1572,8 @@ const de_FilterConfiguration = (output: any, context: __SerdeContext): FilterCon }) as any; }; +// de_ForceEndpointErrorConfiguration omitted. + /** * deserializeAws_restJson1GetDashManifestConfiguration */ @@ -1674,6 +1694,7 @@ const de_OriginEndpointListConfiguration = (output: any, context: __SerdeContext CreatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), DashManifests: _json, Description: __expectString, + ForceEndpointErrorConfiguration: _json, HlsManifests: _json, LowLatencyHlsManifests: _json, ModifiedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), diff --git a/codegen/sdk-codegen/aws-models/mediapackagev2.json b/codegen/sdk-codegen/aws-models/mediapackagev2.json index 9a33a5b0eb69..03b165100320 100644 --- a/codegen/sdk-codegen/aws-models/mediapackagev2.json +++ b/codegen/sdk-codegen/aws-models/mediapackagev2.json @@ -178,6 +178,12 @@ "traits": { "smithy.api#documentation": "

Any descriptive information that you want to add to the channel for future identification purposes.

" } + }, + "InputType": { + "target": "com.amazonaws.mediapackagev2#InputType", + "traits": { + "smithy.api#documentation": "

The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

\n

The allowed values are:

\n
    \n
  • \n

    \n HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

    \n
  • \n
  • \n

    \n CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    \n
  • \n
" + } } }, "traits": { @@ -381,6 +387,7 @@ "input": { "ChannelGroupName": "exampleChannelGroup", "ChannelName": "exampleChannel", + "InputType": "HLS", "Description": "Description for exampleChannel", "Tags": { "key1": "value1", @@ -394,6 +401,7 @@ "Arn": "arn:aws:mediapackagev2:us-west-2:123456789012:channelGroup/exampleChannelGroup/channel/exampleChannel", "CreatedAt": "2022-10-18T09:36:00.00Z", "ModifiedAt": "2022-10-18T09:36:00.00Z", + "InputType": "HLS", "IngestEndpoints": [ { "Id": "1", @@ -613,6 +621,12 @@ "smithy.api#idempotencyToken": {} } }, + "InputType": { + "target": "com.amazonaws.mediapackagev2#InputType", + "traits": { + "smithy.api#documentation": "

The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

\n

The allowed values are:

\n
    \n
  • \n

    \n HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

    \n
  • \n
  • \n

    \n CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    \n
  • \n
" + } + }, "Description": { "target": "com.amazonaws.mediapackagev2#ResourceDescription", "traits": { @@ -679,6 +693,12 @@ "IngestEndpoints": { "target": "com.amazonaws.mediapackagev2#IngestEndpointList" }, + "InputType": { + "target": "com.amazonaws.mediapackagev2#InputType", + "traits": { + "smithy.api#documentation": "

The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

\n

The allowed values are:

\n
    \n
  • \n

    \n HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

    \n
  • \n
  • \n

    \n CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    \n
  • \n
" + } + }, "ETag": { "target": "com.amazonaws.mediapackagev2#EntityTag", "traits": { @@ -940,6 +960,9 @@ "ContainerType": "TS", "Description": "Description for exampleOriginEndpointTS", "StartoverWindowSeconds": 300, + "ForceEndpointErrorConfiguration": { + "EndpointErrorConditions": ["STALE_MANIFEST", "INCOMPLETE_MANIFEST", "MISSING_DRM_KEY", "SLATE_INPUT"] + }, "Segment": { "SegmentDurationSeconds": 6, "SegmentName": "segmentName", @@ -1022,6 +1045,9 @@ "ModifiedAt": "2022-10-18T09:36:00.00Z", "ContainerType": "TS", "StartoverWindowSeconds": 300, + "ForceEndpointErrorConfiguration": { + "EndpointErrorConditions": ["STALE_MANIFEST", "INCOMPLETE_MANIFEST", "MISSING_DRM_KEY", "SLATE_INPUT"] + }, "Segment": { "SegmentDurationSeconds": 6, "SegmentName": "segmentName", @@ -1108,6 +1134,9 @@ "OriginEndpointName": "exampleOriginEndpointCMAF", "ContainerType": "CMAF", "StartoverWindowSeconds": 300, + "ForceEndpointErrorConfiguration": { + "EndpointErrorConditions": ["STALE_MANIFEST", "INCOMPLETE_MANIFEST", "MISSING_DRM_KEY", "SLATE_INPUT"] + }, "Segment": { "SegmentDurationSeconds": 6, "SegmentName": "segmentName", @@ -1215,6 +1244,9 @@ "ModifiedAt": "2022-10-18T09:36:00.00Z", "ContainerType": "CMAF", "StartoverWindowSeconds": 300, + "ForceEndpointErrorConfiguration": { + "EndpointErrorConditions": ["STALE_MANIFEST", "INCOMPLETE_MANIFEST", "MISSING_DRM_KEY", "SLATE_INPUT"] + }, "Segment": { "SegmentDurationSeconds": 6, "SegmentName": "segmentName", @@ -1413,6 +1445,12 @@ "smithy.api#documentation": "

A DASH manifest configuration.

" } }, + "ForceEndpointErrorConfiguration": { + "target": "com.amazonaws.mediapackagev2#ForceEndpointErrorConfiguration", + "traits": { + "smithy.api#documentation": "

The failover settings for the endpoint.

" + } + }, "Tags": { "target": "com.amazonaws.mediapackagev2#TagMap", "traits": { @@ -1514,6 +1552,12 @@ "smithy.api#documentation": "

A DASH manifest configuration.

" } }, + "ForceEndpointErrorConfiguration": { + "target": "com.amazonaws.mediapackagev2#ForceEndpointErrorConfiguration", + "traits": { + "smithy.api#documentation": "

The failover settings for the endpoint.

" + } + }, "ETag": { "target": "com.amazonaws.mediapackagev2#EntityTag", "traits": { @@ -2172,6 +2216,41 @@ "smithy.api#documentation": "

The encryption type.

" } }, + "com.amazonaws.mediapackagev2#EndpointErrorCondition": { + "type": "enum", + "members": { + "STALE_MANIFEST": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STALE_MANIFEST" + } + }, + "INCOMPLETE_MANIFEST": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INCOMPLETE_MANIFEST" + } + }, + "MISSING_DRM_KEY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MISSING_DRM_KEY" + } + }, + "SLATE_INPUT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SLATE_INPUT" + } + } + } + }, + "com.amazonaws.mediapackagev2#EndpointErrorConditions": { + "type": "list", + "member": { + "target": "com.amazonaws.mediapackagev2#EndpointErrorCondition" + } + }, "com.amazonaws.mediapackagev2#EntityTag": { "type": "string", "traits": { @@ -2222,6 +2301,20 @@ "smithy.api#documentation": "

Filter configuration includes settings for manifest filtering, start and end times, and time delay that apply to all of your egress requests for this manifest.

" } }, + "com.amazonaws.mediapackagev2#ForceEndpointErrorConfiguration": { + "type": "structure", + "members": { + "EndpointErrorConditions": { + "target": "com.amazonaws.mediapackagev2#EndpointErrorConditions", + "traits": { + "smithy.api#documentation": "

The failover conditions for the endpoint. The options are:

\n
    \n
  • \n

    \n STALE_MANIFEST - The manifest stalled and there are no new segments or parts.

    \n
  • \n
  • \n

    \n INCOMPLETE_MANIFEST - There is a gap in the manifest.

    \n
  • \n
  • \n

    \n MISSING_DRM_KEY - Key rotation is enabled but we're unable to fetch the key for the current key period.

    \n
  • \n
  • \n

    \n SLATE_INPUT - The segments which contain slate content are considered to be missing content.

    \n
  • \n
" + } + } + }, + "traits": { + "smithy.api#documentation": "

The failover settings for the endpoint.

" + } + }, "com.amazonaws.mediapackagev2#GetChannel": { "type": "operation", "input": { @@ -2264,6 +2357,7 @@ "Arn": "arn:aws:mediapackagev2:us-west-2:123456789012:channelGroup/exampleChannelGroup/channel/exampleChannel", "CreatedAt": "2022-10-18T09:36:00.00Z", "ModifiedAt": "2022-10-18T09:36:00.00Z", + "InputType": "HLS", "IngestEndpoints": [ { "Id": "1", @@ -2598,6 +2692,12 @@ "IngestEndpoints": { "target": "com.amazonaws.mediapackagev2#IngestEndpointList" }, + "InputType": { + "target": "com.amazonaws.mediapackagev2#InputType", + "traits": { + "smithy.api#documentation": "

The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

\n

The allowed values are:

\n
    \n
  • \n

    \n HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

    \n
  • \n
  • \n

    \n CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    \n
  • \n
" + } + }, "ETag": { "target": "com.amazonaws.mediapackagev2#EntityTag", "traits": { @@ -2852,6 +2952,9 @@ "ModifiedAt": "2022-10-18T09:36:00.00Z", "ContainerType": "TS", "StartoverWindowSeconds": 300, + "ForceEndpointErrorConfiguration": { + "EndpointErrorConditions": ["STALE_MANIFEST", "INCOMPLETE_MANIFEST", "MISSING_DRM_KEY", "SLATE_INPUT"] + }, "Segment": { "SegmentDurationSeconds": 6, "SegmentName": "segmentName", @@ -3171,6 +3274,18 @@ "smithy.api#documentation": "

A low-latency HLS manifest configuration.

" } }, + "DashManifests": { + "target": "com.amazonaws.mediapackagev2#GetDashManifests", + "traits": { + "smithy.api#documentation": "

A DASH manifest configuration.

" + } + }, + "ForceEndpointErrorConfiguration": { + "target": "com.amazonaws.mediapackagev2#ForceEndpointErrorConfiguration", + "traits": { + "smithy.api#documentation": "

The failover settings for the endpoint.

" + } + }, "ETag": { "target": "com.amazonaws.mediapackagev2#EntityTag", "traits": { @@ -3184,12 +3299,6 @@ "aws.cloudformation#cfnExcludeProperty": {}, "smithy.api#documentation": "

The comma-separated list of tag key:value pairs assigned to the origin endpoint.

" } - }, - "DashManifests": { - "target": "com.amazonaws.mediapackagev2#GetDashManifests", - "traits": { - "smithy.api#documentation": "

A DASH manifest configuration.

" - } } }, "traits": { @@ -3235,6 +3344,23 @@ "smithy.api#documentation": "

The list of ingest endpoints.

" } }, + "com.amazonaws.mediapackagev2#InputType": { + "type": "enum", + "members": { + "HLS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HLS" + } + }, + "CMAF": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CMAF" + } + } + } + }, "com.amazonaws.mediapackagev2#InternalServerException": { "type": "structure", "members": { @@ -3612,6 +3738,14 @@ "CreatedAt": "2022-10-18T09:36:00.00Z", "ModifiedAt": "2022-10-18T09:36:00.00Z", "ContainerType": "TS", + "ForceEndpointErrorConfiguration": { + "EndpointErrorConditions": [ + "STALE_MANIFEST", + "INCOMPLETE_MANIFEST", + "MISSING_DRM_KEY", + "SLATE_INPUT" + ] + }, "HlsManifests": [ { "ManifestName": "exampleManifest1", @@ -3645,6 +3779,14 @@ "CreatedAt": "2022-10-18T09:36:00.00Z", "ModifiedAt": "2022-10-18T09:36:00.00Z", "ContainerType": "CMAF", + "ForceEndpointErrorConfiguration": { + "EndpointErrorConditions": [ + "STALE_MANIFEST", + "INCOMPLETE_MANIFEST", + "MISSING_DRM_KEY", + "SLATE_INPUT" + ] + }, "HlsManifests": [ { "ManifestName": "exampleManifest1", @@ -3918,6 +4060,12 @@ "traits": { "smithy.api#documentation": "

A DASH manifest configuration.

" } + }, + "ForceEndpointErrorConfiguration": { + "target": "com.amazonaws.mediapackagev2#ForceEndpointErrorConfiguration", + "traits": { + "smithy.api#documentation": "

The failover settings for the endpoint.

" + } } }, "traits": { @@ -4821,6 +4969,7 @@ "Arn": "arn:aws:mediapackagev2:us-west-2:123456789012:channelGroup/exampleChannelGroup/channel/exampleChannel", "CreatedAt": "2022-10-18T09:36:00.00Z", "ModifiedAt": "2022-10-18T10:36:00.00Z", + "InputType": "HLS", "IngestEndpoints": [ { "Id": "1", @@ -5087,6 +5236,12 @@ "IngestEndpoints": { "target": "com.amazonaws.mediapackagev2#IngestEndpointList" }, + "InputType": { + "target": "com.amazonaws.mediapackagev2#InputType", + "traits": { + "smithy.api#documentation": "

The input type will be an immutable field which will be used to define whether the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default to HLS to preserve current behavior.

\n

The allowed values are:

\n
    \n
  • \n

    \n HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments).

    \n
  • \n
  • \n

    \n CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests).

    \n
  • \n
" + } + }, "ETag": { "target": "com.amazonaws.mediapackagev2#EntityTag", "traits": { @@ -5151,6 +5306,9 @@ "ContainerType": "TS", "Description": "Updated description for exampleOriginEndpointTS", "StartoverWindowSeconds": 600, + "ForceEndpointErrorConfiguration": { + "EndpointErrorConditions": ["STALE_MANIFEST", "INCOMPLETE_MANIFEST", "MISSING_DRM_KEY", "SLATE_INPUT"] + }, "Segment": { "SegmentDurationSeconds": 7, "SegmentName": "segmentName2", @@ -5229,6 +5387,9 @@ "ModifiedAt": "2022-10-18T09:36:00.00Z", "ContainerType": "TS", "StartoverWindowSeconds": 600, + "ForceEndpointErrorConfiguration": { + "EndpointErrorConditions": ["STALE_MANIFEST", "INCOMPLETE_MANIFEST", "MISSING_DRM_KEY", "SLATE_INPUT"] + }, "Segment": { "SegmentDurationSeconds": 7, "SegmentName": "segmentName2", @@ -5393,6 +5554,12 @@ "smithy.api#documentation": "

A DASH manifest configuration.

" } }, + "ForceEndpointErrorConfiguration": { + "target": "com.amazonaws.mediapackagev2#ForceEndpointErrorConfiguration", + "traits": { + "smithy.api#documentation": "

The failover settings for the endpoint.

" + } + }, "ETag": { "target": "com.amazonaws.mediapackagev2#EntityTag", "traits": { @@ -5489,6 +5656,12 @@ "smithy.api#documentation": "

A low-latency HLS manifest configuration.

" } }, + "ForceEndpointErrorConfiguration": { + "target": "com.amazonaws.mediapackagev2#ForceEndpointErrorConfiguration", + "traits": { + "smithy.api#documentation": "

The failover settings for the endpoint.

" + } + }, "ETag": { "target": "com.amazonaws.mediapackagev2#EntityTag", "traits": { @@ -5805,6 +5978,18 @@ "traits": { "smithy.api#enumValue": "DRM_SIGNALING_MISMATCH_SEGMENT_ENCRYPTION_STATUS" } + }, + "ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION" + } + }, + "SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY" + } } } },