Skip to content

Commit

Permalink
feat(client-medialive): This release adds support for automatic renew…
Browse files Browse the repository at this point in the history
…al of MediaLive reservations at the end of each reservation term. Automatic renewal is optional. This release also adds support for labelling accessibility-focused audio and caption tracks in HLS outputs.
  • Loading branch information
awstools committed Jun 29, 2022
1 parent 4f3d41e commit 1737bf6
Show file tree
Hide file tree
Showing 7 changed files with 329 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "@aws-sdk/types";

import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient";
import { UpdateMultiplexRequest, UpdateMultiplexResponse } from "../models/models_1";
import { UpdateMultiplexRequest, UpdateMultiplexResponse } from "../models/models_2";
import {
deserializeAws_restJson1UpdateMultiplexCommand,
serializeAws_restJson1UpdateMultiplexCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import {
} from "@aws-sdk/types";

import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient";
import { UpdateMultiplexProgramRequest } from "../models/models_1";
import { UpdateMultiplexProgramResponse } from "../models/models_2";
import { UpdateMultiplexProgramRequest, UpdateMultiplexProgramResponse } from "../models/models_2";
import {
deserializeAws_restJson1UpdateMultiplexProgramCommand,
serializeAws_restJson1UpdateMultiplexProgramCommand,
Expand Down
17 changes: 11 additions & 6 deletions clients/client-medialive/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,11 @@ export namespace BatchSuccessfulResultModel {
});
}

export enum AccessibilityType {
DOES_NOT_IMPLEMENT_ACCESSIBILITY_FEATURES = "DOES_NOT_IMPLEMENT_ACCESSIBILITY_FEATURES",
IMPLEMENTS_ACCESSIBILITY_FEATURES = "IMPLEMENTS_ACCESSIBILITY_FEATURES",
}

/**
* Arib Destination Settings
*/
Expand Down Expand Up @@ -1667,6 +1672,11 @@ export namespace CaptionDestinationSettings {
* Caption Description
*/
export interface CaptionDescription {
/**
* Indicates whether the caption track implements accessibility features such as written descriptions of spoken dialog, music, and sounds.
*/
Accessibility?: AccessibilityType | string;

/**
* Specifies which input caption selector to use as a caption source when generating output captions. This field should match a captionSelector name.
*/
Expand Down Expand Up @@ -3291,6 +3301,7 @@ export enum DeviceSettingsSyncState {

export enum DeviceUpdateStatus {
NOT_UP_TO_DATE = "NOT_UP_TO_DATE",
UPDATING = "UPDATING",
UP_TO_DATE = "UP_TO_DATE",
}

Expand Down Expand Up @@ -5712,9 +5723,3 @@ export enum HlsStreamInfResolution {
EXCLUDE = "EXCLUDE",
INCLUDE = "INCLUDE",
}

export enum HlsTimedMetadataId3Frame {
NONE = "NONE",
PRIV = "PRIV",
TDRL = "TDRL",
}
134 changes: 56 additions & 78 deletions clients/client-medialive/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import {
HlsRedundantManifest,
HlsSegmentationMode,
HlsStreamInfResolution,
HlsTimedMetadataId3Frame,
IFrameOnlyPlaylistType,
Input,
InputAttachment,
Expand Down Expand Up @@ -89,6 +88,12 @@ import {
VpcOutputSettingsDescription,
} from "./models_0";

export enum HlsTimedMetadataId3Frame {
NONE = "NONE",
PRIV = "PRIV",
TDRL = "TDRL",
}

export enum HlsTsFileMode {
SEGMENTED_FILES = "SEGMENTED_FILES",
SINGLE_FILE = "SINGLE_FILE",
Expand Down Expand Up @@ -823,6 +828,36 @@ export namespace PipelinePauseStateSettings {
});
}

export enum ReservationAutomaticRenewal {
DISABLED = "DISABLED",
ENABLED = "ENABLED",
UNAVAILABLE = "UNAVAILABLE",
}

/**
* The Renewal settings for Reservations
*/
export interface RenewalSettings {
/**
* Automatic renewal status for the reservation
*/
AutomaticRenewal?: ReservationAutomaticRenewal | string;

/**
* Count for the reservation renewal
*/
RenewalCount?: number;
}

export namespace RenewalSettings {
/**
* @internal
*/
export const filterSensitiveLog = (obj: RenewalSettings): any => ({
...obj,
});
}

export enum ReservationState {
ACTIVE = "ACTIVE",
CANCELED = "CANCELED",
Expand Down Expand Up @@ -894,6 +929,11 @@ export interface Reservation {
*/
Region?: string;

/**
* Renewal settings for the reservation
*/
RenewalSettings?: RenewalSettings;

/**
* Unique reservation ID, e.g. '1234567'
*/
Expand Down Expand Up @@ -5430,6 +5470,11 @@ export interface DeleteReservationResponse {
*/
Region?: string;

/**
* Renewal settings for the reservation
*/
RenewalSettings?: RenewalSettings;

/**
* Unique reservation ID, e.g. '1234567'
*/
Expand Down Expand Up @@ -6303,6 +6348,11 @@ export interface DescribeReservationResponse {
*/
Region?: string;

/**
* Renewal settings for the reservation
*/
RenewalSettings?: RenewalSettings;

/**
* Unique reservation ID, e.g. '1234567'
*/
Expand Down Expand Up @@ -7038,6 +7088,11 @@ export interface PurchaseOfferingRequest {
*/
OfferingId: string | undefined;

/**
* Renewal settings for the reservation
*/
RenewalSettings?: RenewalSettings;

/**
* Unique request ID to be specified. This is needed to prevent retries from creating multiple resources.
*/
Expand Down Expand Up @@ -7942,80 +7997,3 @@ export namespace UpdateInputSecurityGroupResponse {
...obj,
});
}

/**
* A request to update a multiplex.
*/
export interface UpdateMultiplexRequest {
/**
* ID of the multiplex to update.
*/
MultiplexId: string | undefined;

/**
* The new settings for a multiplex.
*/
MultiplexSettings?: MultiplexSettings;

/**
* Name of the multiplex.
*/
Name?: string;
}

export namespace UpdateMultiplexRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: UpdateMultiplexRequest): any => ({
...obj,
});
}

/**
* Placeholder documentation for UpdateMultiplexResponse
*/
export interface UpdateMultiplexResponse {
/**
* The updated multiplex.
*/
Multiplex?: Multiplex;
}

export namespace UpdateMultiplexResponse {
/**
* @internal
*/
export const filterSensitiveLog = (obj: UpdateMultiplexResponse): any => ({
...obj,
});
}

/**
* A request to update a program in a multiplex.
*/
export interface UpdateMultiplexProgramRequest {
/**
* The ID of the multiplex of the program to update.
*/
MultiplexId: string | undefined;

/**
* The new settings for a multiplex program.
*/
MultiplexProgramSettings?: MultiplexProgramSettings;

/**
* The name of the program to update.
*/
ProgramName: string | undefined;
}

export namespace UpdateMultiplexProgramRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: UpdateMultiplexProgramRequest): any => ({
...obj,
});
}
91 changes: 90 additions & 1 deletion clients/client-medialive/src/models/models_2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,89 @@
// smithy-typescript generated code
import { MultiplexProgram, Reservation } from "./models_1";
import {
Multiplex,
MultiplexProgram,
MultiplexProgramSettings,
MultiplexSettings,
RenewalSettings,
Reservation,
} from "./models_1";

/**
* A request to update a multiplex.
*/
export interface UpdateMultiplexRequest {
/**
* ID of the multiplex to update.
*/
MultiplexId: string | undefined;

/**
* The new settings for a multiplex.
*/
MultiplexSettings?: MultiplexSettings;

/**
* Name of the multiplex.
*/
Name?: string;
}

export namespace UpdateMultiplexRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: UpdateMultiplexRequest): any => ({
...obj,
});
}

/**
* Placeholder documentation for UpdateMultiplexResponse
*/
export interface UpdateMultiplexResponse {
/**
* The updated multiplex.
*/
Multiplex?: Multiplex;
}

export namespace UpdateMultiplexResponse {
/**
* @internal
*/
export const filterSensitiveLog = (obj: UpdateMultiplexResponse): any => ({
...obj,
});
}

/**
* A request to update a program in a multiplex.
*/
export interface UpdateMultiplexProgramRequest {
/**
* The ID of the multiplex of the program to update.
*/
MultiplexId: string | undefined;

/**
* The new settings for a multiplex program.
*/
MultiplexProgramSettings?: MultiplexProgramSettings;

/**
* The name of the program to update.
*/
ProgramName: string | undefined;
}

export namespace UpdateMultiplexProgramRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: UpdateMultiplexProgramRequest): any => ({
...obj,
});
}

/**
* Placeholder documentation for UpdateMultiplexProgramResponse
Expand Down Expand Up @@ -29,6 +113,11 @@ export interface UpdateReservationRequest {
*/
Name?: string;

/**
* Renewal settings for the reservation
*/
RenewalSettings?: RenewalSettings;

/**
* Unique reservation ID, e.g. '1234567'
*/
Expand Down

0 comments on commit 1737bf6

Please sign in to comment.