diff --git a/clients/client-ivs/README.md b/clients/client-ivs/README.md index ead8c0f1554e..0d411a9f1ae0 100644 --- a/clients/client-ivs/README.md +++ b/clients/client-ivs/README.md @@ -47,49 +47,34 @@ History.

-Resources +Key Concepts

-

The following resources contain information about your IVS live stream (see Getting Started with -Amazon IVS):

+

For more information about your IVS live stream, also see Getting Started with IVS Low-Latency Streaming.

Tagging

@@ -268,7 +253,7 @@ simultaneously.

-RecordingConfiguration Endpoints +Recording Configuration Endpoints

-StreamKey Endpoints +Stream Key Endpoints

*

- * Resources + * Key Concepts *

- *

The following resources contain information about your IVS live stream (see Getting Started with - * Amazon IVS):

* + *

For more information about your IVS live stream, also see Getting Started with IVS Low-Latency Streaming.

*

* Tagging *

@@ -976,7 +961,7 @@ export interface Ivs { * * *

- * RecordingConfiguration Endpoints + * Recording Configuration Endpoints *

* *

- * StreamKey Endpoints + * Stream Key Endpoints *

* *

- * Resources + * Key Concepts *

- *

The following resources contain information about your IVS live stream (see Getting Started with - * Amazon IVS):

* + *

For more information about your IVS live stream, also see Getting Started with IVS Low-Latency Streaming.

*

* Tagging *

@@ -658,7 +643,7 @@ export interface IvsClientResolvedConfig extends IvsClientResolvedConfigType {} * * *

- * RecordingConfiguration Endpoints + * Recording Configuration Endpoints *

*
    *
  • @@ -723,7 +708,7 @@ export interface IvsClientResolvedConfig extends IvsClientResolvedConfigType {} *
  • *
*

- * StreamKey Endpoints + * Stream Key Endpoints *

*
    *
  • diff --git a/clients/client-ivs/src/commands/BatchGetChannelCommand.ts b/clients/client-ivs/src/commands/BatchGetChannelCommand.ts index 3b6d1acffcbf..c674ae958629 100644 --- a/clients/client-ivs/src/commands/BatchGetChannelCommand.ts +++ b/clients/client-ivs/src/commands/BatchGetChannelCommand.ts @@ -6,7 +6,11 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient"; -import { BatchGetChannelRequest, BatchGetChannelResponse } from "../models/models_0"; +import { + BatchGetChannelRequest, + BatchGetChannelResponse, + BatchGetChannelResponseFilterSensitiveLog, +} from "../models/models_0"; import { de_BatchGetChannelCommand, se_BatchGetChannelCommand } from "../protocols/Aws_restJson1"; /** @@ -57,6 +61,10 @@ export interface BatchGetChannelCommandOutput extends BatchGetChannelResponse, _ * // }, * // insecureIngest: true || false, * // preset: "HIGHER_BANDWIDTH_DELIVERY" || "CONSTRAINED_BANDWIDTH_DELIVERY", + * // srt: { // Srt + * // endpoint: "STRING_VALUE", + * // passphrase: "STRING_VALUE", + * // }, * // playbackRestrictionPolicyArn: "STRING_VALUE", * // }, * // ], @@ -101,7 +109,7 @@ export class BatchGetChannelCommand extends $Command }) .s("AmazonInteractiveVideoService", "BatchGetChannel", {}) .n("IvsClient", "BatchGetChannelCommand") - .f(void 0, void 0) + .f(void 0, BatchGetChannelResponseFilterSensitiveLog) .ser(se_BatchGetChannelCommand) .de(de_BatchGetChannelCommand) .build() {} diff --git a/clients/client-ivs/src/commands/CreateChannelCommand.ts b/clients/client-ivs/src/commands/CreateChannelCommand.ts index 0fbde586cb88..154517099984 100644 --- a/clients/client-ivs/src/commands/CreateChannelCommand.ts +++ b/clients/client-ivs/src/commands/CreateChannelCommand.ts @@ -68,6 +68,10 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met * // }, * // insecureIngest: true || false, * // preset: "HIGHER_BANDWIDTH_DELIVERY" || "CONSTRAINED_BANDWIDTH_DELIVERY", + * // srt: { // Srt + * // endpoint: "STRING_VALUE", + * // passphrase: "STRING_VALUE", + * // }, * // playbackRestrictionPolicyArn: "STRING_VALUE", * // }, * // streamKey: { // StreamKey diff --git a/clients/client-ivs/src/commands/GetChannelCommand.ts b/clients/client-ivs/src/commands/GetChannelCommand.ts index a5601b46286d..e0e0bbcf2b49 100644 --- a/clients/client-ivs/src/commands/GetChannelCommand.ts +++ b/clients/client-ivs/src/commands/GetChannelCommand.ts @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient"; -import { GetChannelRequest, GetChannelResponse } from "../models/models_0"; +import { GetChannelRequest, GetChannelResponse, GetChannelResponseFilterSensitiveLog } from "../models/models_0"; import { de_GetChannelCommand, se_GetChannelCommand } from "../protocols/Aws_restJson1"; /** @@ -54,6 +54,10 @@ export interface GetChannelCommandOutput extends GetChannelResponse, __MetadataB * // }, * // insecureIngest: true || false, * // preset: "HIGHER_BANDWIDTH_DELIVERY" || "CONSTRAINED_BANDWIDTH_DELIVERY", + * // srt: { // Srt + * // endpoint: "STRING_VALUE", + * // passphrase: "STRING_VALUE", + * // }, * // playbackRestrictionPolicyArn: "STRING_VALUE", * // }, * // }; @@ -99,7 +103,7 @@ export class GetChannelCommand extends $Command }) .s("AmazonInteractiveVideoService", "GetChannel", {}) .n("IvsClient", "GetChannelCommand") - .f(void 0, void 0) + .f(void 0, GetChannelResponseFilterSensitiveLog) .ser(se_GetChannelCommand) .de(de_GetChannelCommand) .build() {} diff --git a/clients/client-ivs/src/commands/GetStreamSessionCommand.ts b/clients/client-ivs/src/commands/GetStreamSessionCommand.ts index bb6085e74f68..6ba9caffb603 100644 --- a/clients/client-ivs/src/commands/GetStreamSessionCommand.ts +++ b/clients/client-ivs/src/commands/GetStreamSessionCommand.ts @@ -6,7 +6,11 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient"; -import { GetStreamSessionRequest, GetStreamSessionResponse } from "../models/models_0"; +import { + GetStreamSessionRequest, + GetStreamSessionResponse, + GetStreamSessionResponseFilterSensitiveLog, +} from "../models/models_0"; import { de_GetStreamSessionCommand, se_GetStreamSessionCommand } from "../protocols/Aws_restJson1"; /** @@ -59,6 +63,10 @@ export interface GetStreamSessionCommandOutput extends GetStreamSessionResponse, * // }, * // insecureIngest: true || false, * // preset: "HIGHER_BANDWIDTH_DELIVERY" || "CONSTRAINED_BANDWIDTH_DELIVERY", + * // srt: { // Srt + * // endpoint: "STRING_VALUE", + * // passphrase: "STRING_VALUE", + * // }, * // playbackRestrictionPolicyArn: "STRING_VALUE", * // }, * // ingestConfiguration: { // IngestConfiguration @@ -158,7 +166,7 @@ export class GetStreamSessionCommand extends $Command }) .s("AmazonInteractiveVideoService", "GetStreamSession", {}) .n("IvsClient", "GetStreamSessionCommand") - .f(void 0, void 0) + .f(void 0, GetStreamSessionResponseFilterSensitiveLog) .ser(se_GetStreamSessionCommand) .de(de_GetStreamSessionCommand) .build() {} diff --git a/clients/client-ivs/src/commands/UpdateChannelCommand.ts b/clients/client-ivs/src/commands/UpdateChannelCommand.ts index 1c0c15c7723d..d9372028f8b4 100644 --- a/clients/client-ivs/src/commands/UpdateChannelCommand.ts +++ b/clients/client-ivs/src/commands/UpdateChannelCommand.ts @@ -6,7 +6,11 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient"; -import { UpdateChannelRequest, UpdateChannelResponse } from "../models/models_0"; +import { + UpdateChannelRequest, + UpdateChannelResponse, + UpdateChannelResponseFilterSensitiveLog, +} from "../models/models_0"; import { de_UpdateChannelCommand, se_UpdateChannelCommand } from "../protocols/Aws_restJson1"; /** @@ -64,6 +68,10 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met * // }, * // insecureIngest: true || false, * // preset: "HIGHER_BANDWIDTH_DELIVERY" || "CONSTRAINED_BANDWIDTH_DELIVERY", + * // srt: { // Srt + * // endpoint: "STRING_VALUE", + * // passphrase: "STRING_VALUE", + * // }, * // playbackRestrictionPolicyArn: "STRING_VALUE", * // }, * // }; @@ -115,7 +123,7 @@ export class UpdateChannelCommand extends $Command }) .s("AmazonInteractiveVideoService", "UpdateChannel", {}) .n("IvsClient", "UpdateChannelCommand") - .f(void 0, void 0) + .f(void 0, UpdateChannelResponseFilterSensitiveLog) .ser(se_UpdateChannelCommand) .de(de_UpdateChannelCommand) .build() {} diff --git a/clients/client-ivs/src/index.ts b/clients/client-ivs/src/index.ts index 0464dd27f8b6..a41c3c98727e 100644 --- a/clients/client-ivs/src/index.ts +++ b/clients/client-ivs/src/index.ts @@ -42,49 +42,34 @@ *
  • *
*

- * Resources + * Key Concepts *

- *

The following resources contain information about your IVS live stream (see Getting Started with - * Amazon IVS):

*
    *
  • *

    - * Channel — Stores configuration data related to your - * live stream. You first create a channel and then use the channel’s stream key to start - * your live stream. See the Channel endpoints for more information.

    + * Channel — Stores configuration data related to your live stream. You first create a channel and then use the channel’s stream key to start your live stream.

    *
  • *
  • *

    - * Stream key — An identifier assigned by Amazon IVS - * when you create a channel, which is then used to authorize streaming. See the StreamKey - * endpoints for more information. - * Treat the stream key like - * a secret, since it allows anyone to stream to the - * channel. + * Stream key — An identifier assigned by Amazon IVS when you create a channel, which is then used to authorize streaming. + * Treat the stream key like a secret, since it allows anyone to stream to the channel. * *

    *
  • *
  • *

    - * Playback key pair — Video playback may be restricted - * using playback-authorization tokens, which use public-key encryption. A playback key pair - * is the public-private pair of keys used to sign and validate the playback-authorization - * token. See the PlaybackKeyPair endpoints for more information.

    + * Playback key pair — Video playback may be restricted using playback-authorization tokens, which use public-key encryption. A playback key pair is the public-private pair of keys used to sign and validate the playback-authorization token.

    *
  • *
  • *

    - * Recording configuration — Stores configuration - * related to recording a live stream and where to store the recorded content. Multiple - * channels can reference the same recording configuration. See the Recording Configuration - * endpoints for more information.

    + * Recording configuration — Stores configuration related to recording a live stream and where to store the recorded content. Multiple channels can reference the same recording configuration.

    *
  • *
  • *

    - * Playback restriction policy — Restricts playback by - * countries and/or origin sites. See the Playback Restriction Policy endpoints for more - * information.

    + * Playback restriction policy — Restricts playback by countries and/or origin sites.

    *
  • *
+ *

For more information about your IVS live stream, also see Getting Started with IVS Low-Latency Streaming.

*

* Tagging *

@@ -263,7 +248,7 @@ * * *

- * RecordingConfiguration Endpoints + * Recording Configuration Endpoints *

*
    *
  • @@ -328,7 +313,7 @@ *
  • *
*

- * StreamKey Endpoints + * Stream Key Endpoints *

*
    *
  • diff --git a/clients/client-ivs/src/models/models_0.ts b/clients/client-ivs/src/models/models_0.ts index 43a340b4792a..7961c67df625 100644 --- a/clients/client-ivs/src/models/models_0.ts +++ b/clients/client-ivs/src/models/models_0.ts @@ -68,6 +68,26 @@ export const TranscodePreset = { */ export type TranscodePreset = (typeof TranscodePreset)[keyof typeof TranscodePreset]; +/** + *

    Specifies information needed to stream using the SRT protocol.

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

    The endpoint to be used when streaming with IVS using the SRT protocol.

    + * @public + */ + endpoint?: string; + + /** + *

    Auto-generated passphrase to enable encryption. This field is applicable only if the end + * user has not enabled the insecureIngest option for the + * channel.

    + * @public + */ + passphrase?: string; +} + /** * @public * @enum @@ -119,8 +139,8 @@ export interface Channel { type?: ChannelType; /** - *

    Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. - * Default: "" (empty string, recording is disabled).

    + *

    Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables + * recording. Default: "" (empty string, recording is disabled).

    * @public */ recordingConfigurationArn?: string; @@ -171,7 +191,15 @@ export interface Channel { preset?: TranscodePreset; /** - *

    Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction. Default: "" (empty string, no playback restriction policy is applied).

    + *

    Specifies the endpoint and optional passphrase for streaming with the SRT protocol.

    + * @public + */ + srt?: Srt; + + /** + *

    Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables + * playback restriction. Default: "" (empty string, no playback restriction policy is + * applied).

    * @public */ playbackRestrictionPolicyArn?: string; @@ -487,7 +515,7 @@ export interface CreateChannelRequest { tags?: Record; /** - *

    Whether the channel allows insecure RTMP ingest. Default: false.

    + *

    Whether the channel allows insecure RTMP and SRT ingest. Default: false.

    * @public */ insecureIngest?: boolean; @@ -636,14 +664,16 @@ export interface PlaybackRestrictionPolicy { /** *

    A list of country codes that control geoblocking restriction. Allowed values are the - * officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).

    + * officially assigned ISO 3166-1 + * alpha-2 codes. Default: All countries (an empty array).

    * @public */ allowedCountries: string[] | undefined; /** *

    A list of origin sites that control CORS restriction. Allowed values are the same as valid - * values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array).

    + * values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All + * origins (an empty array).

    * @public */ allowedOrigins: string[] | undefined; @@ -1735,8 +1765,8 @@ export interface ChannelSummary { authorized?: boolean; /** - *

    Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. - * Default: "" (empty string, recording is disabled).

    + *

    Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables + * recording. Default: "" (empty string, recording is disabled).

    * @public */ recordingConfigurationArn?: string; @@ -1776,8 +1806,9 @@ export interface ChannelSummary { preset?: TranscodePreset; /** - *

    Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction. - * Default: "" (empty string, no playback restriction policy is applied).

    + *

    Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables + * playback restriction. Default: "" (empty string, no playback restriction policy is + * applied).

    * @public */ playbackRestrictionPolicyArn?: string; @@ -1904,7 +1935,8 @@ export interface PlaybackRestrictionPolicySummary { /** *

    A list of origin sites that control CORS restriction. Allowed values are the same as valid - * values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array).

    + * values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All + * origins (an empty array).

    * @public */ allowedOrigins: string[] | undefined; @@ -2482,7 +2514,7 @@ export interface UpdateChannelRequest { recordingConfigurationArn?: string; /** - *

    Whether the channel allows insecure RTMP ingest. Default: false.

    + *

    Whether the channel allows insecure RTMP and SRT ingest. Default: false.

    * @public */ insecureIngest?: boolean; @@ -2567,6 +2599,30 @@ export interface UpdatePlaybackRestrictionPolicyResponse { playbackRestrictionPolicy?: PlaybackRestrictionPolicy; } +/** + * @internal + */ +export const SrtFilterSensitiveLog = (obj: Srt): any => ({ + ...obj, + ...(obj.passphrase && { passphrase: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const ChannelFilterSensitiveLog = (obj: Channel): any => ({ + ...obj, + ...(obj.srt && { srt: SrtFilterSensitiveLog(obj.srt) }), +}); + +/** + * @internal + */ +export const BatchGetChannelResponseFilterSensitiveLog = (obj: BatchGetChannelResponse): any => ({ + ...obj, + ...(obj.channels && { channels: obj.channels.map((item) => ChannelFilterSensitiveLog(item)) }), +}); + /** * @internal */ @@ -2588,6 +2644,7 @@ export const BatchGetStreamKeyResponseFilterSensitiveLog = (obj: BatchGetStreamK */ export const CreateChannelResponseFilterSensitiveLog = (obj: CreateChannelResponse): any => ({ ...obj, + ...(obj.channel && { channel: ChannelFilterSensitiveLog(obj.channel) }), ...(obj.streamKey && { streamKey: StreamKeyFilterSensitiveLog(obj.streamKey) }), }); @@ -2599,6 +2656,14 @@ export const CreateStreamKeyResponseFilterSensitiveLog = (obj: CreateStreamKeyRe ...(obj.streamKey && { streamKey: StreamKeyFilterSensitiveLog(obj.streamKey) }), }); +/** + * @internal + */ +export const GetChannelResponseFilterSensitiveLog = (obj: GetChannelResponse): any => ({ + ...obj, + ...(obj.channel && { channel: ChannelFilterSensitiveLog(obj.channel) }), +}); + /** * @internal */ @@ -2607,6 +2672,22 @@ export const GetStreamKeyResponseFilterSensitiveLog = (obj: GetStreamKeyResponse ...(obj.streamKey && { streamKey: StreamKeyFilterSensitiveLog(obj.streamKey) }), }); +/** + * @internal + */ +export const StreamSessionFilterSensitiveLog = (obj: StreamSession): any => ({ + ...obj, + ...(obj.channel && { channel: ChannelFilterSensitiveLog(obj.channel) }), +}); + +/** + * @internal + */ +export const GetStreamSessionResponseFilterSensitiveLog = (obj: GetStreamSessionResponse): any => ({ + ...obj, + ...(obj.streamSession && { streamSession: StreamSessionFilterSensitiveLog(obj.streamSession) }), +}); + /** * @internal */ @@ -2614,3 +2695,11 @@ export const PutMetadataRequestFilterSensitiveLog = (obj: PutMetadataRequest): a ...obj, ...(obj.metadata && { metadata: SENSITIVE_STRING }), }); + +/** + * @internal + */ +export const UpdateChannelResponseFilterSensitiveLog = (obj: UpdateChannelResponse): any => ({ + ...obj, + ...(obj.channel && { channel: ChannelFilterSensitiveLog(obj.channel) }), +}); diff --git a/clients/client-ivs/src/protocols/Aws_restJson1.ts b/clients/client-ivs/src/protocols/Aws_restJson1.ts index 2608308f6fa5..92a86be240d2 100644 --- a/clients/client-ivs/src/protocols/Aws_restJson1.ts +++ b/clients/client-ivs/src/protocols/Aws_restJson1.ts @@ -1964,6 +1964,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont // de_S3DestinationConfiguration omitted. +// de_Srt omitted. + /** * deserializeAws_restJson1_Stream */ diff --git a/codegen/sdk-codegen/aws-models/ivs.json b/codegen/sdk-codegen/aws-models/ivs.json index f6448afe044e..2564f876b7e4 100644 --- a/codegen/sdk-codegen/aws-models/ivs.json +++ b/codegen/sdk-codegen/aws-models/ivs.json @@ -157,7 +157,7 @@ "date" ] }, - "smithy.api#documentation": "

    \n Introduction\n

    \n

    The Amazon Interactive Video Service (IVS) API is REST compatible, using a standard HTTP\n API and an Amazon Web Services EventBridge event stream for responses. JSON is used for both\n requests and responses, including errors.

    \n

    The API is an Amazon Web Services regional service. For a list of supported regions and\n Amazon IVS HTTPS service endpoints, see the Amazon IVS page in the\n Amazon Web Services General Reference.

    \n

    \n \n All API request parameters and URLs are case sensitive.\n \n \n

    \n

    For a summary of notable documentation changes in each release, see Document\n History.

    \n

    \n Allowed Header Values\n

    \n
      \n
    • \n

      \n \n Accept:\n application/json

      \n
    • \n
    • \n

      \n \n Accept-Encoding:\n gzip, deflate

      \n
    • \n
    • \n

      \n \n Content-Type:\n application/json

      \n
    • \n
    \n

    \n Resources\n

    \n

    The following resources contain information about your IVS live stream (see Getting Started with\n Amazon IVS):

    \n
      \n
    • \n

      \n Channel — Stores configuration data related to your\n live stream. You first create a channel and then use the channel’s stream key to start\n your live stream. See the Channel endpoints for more information.

      \n
    • \n
    • \n

      \n Stream key — An identifier assigned by Amazon IVS\n when you create a channel, which is then used to authorize streaming. See the StreamKey\n endpoints for more information. \n Treat the stream key like\n a secret, since it allows anyone to stream to the\n channel.\n \n

      \n
    • \n
    • \n

      \n Playback key pair — Video playback may be restricted\n using playback-authorization tokens, which use public-key encryption. A playback key pair\n is the public-private pair of keys used to sign and validate the playback-authorization\n token. See the PlaybackKeyPair endpoints for more information.

      \n
    • \n
    • \n

      \n Recording configuration — Stores configuration\n related to recording a live stream and where to store the recorded content. Multiple\n channels can reference the same recording configuration. See the Recording Configuration\n endpoints for more information.

      \n
    • \n
    • \n

      \n Playback restriction policy — Restricts playback by\n countries and/or origin sites. See the Playback Restriction Policy endpoints for more\n information.

      \n
    • \n
    \n

    \n Tagging\n

    \n

    A tag is a metadata label that you assign to an Amazon Web Services\n resource. A tag comprises a key and a value, both\n set by you. For example, you might set a tag as topic:nature to label a\n particular video category. See Tagging Amazon Web Services Resources for\n more information, including restrictions that apply to tags and \"Tag naming limits and\n requirements\"; Amazon IVS has no service-specific constraints beyond what is documented\n there.

    \n

    Tags can help you identify and organize your Amazon Web Services resources. For example,\n you can use the same tag for different resources to indicate that they are related. You can\n also use tags to manage access (see Access Tags).

    \n

    The Amazon IVS API has these tag-related endpoints: TagResource, UntagResource, and ListTagsForResource. The following\n resources support tagging: Channels, Stream Keys, Playback Key Pairs, and Recording\n Configurations.

    \n

    At most 50 tags can be applied to a resource.

    \n

    \n Authentication versus Authorization\n

    \n

    Note the differences between these concepts:

    \n
      \n
    • \n

      \n Authentication is about verifying identity. You need to be\n authenticated to sign Amazon IVS API requests.

      \n
    • \n
    • \n

      \n Authorization is about granting permissions. Your IAM roles need to have permissions for Amazon IVS API requests. In addition,\n authorization is needed to view Amazon IVS private channels.\n (Private channels are channels that are enabled for \"playback authorization.\")

      \n
    • \n
    \n

    \n Authentication\n

    \n

    All Amazon IVS API requests must be authenticated with a signature. The Amazon Web Services\n Command-Line Interface (CLI) and Amazon IVS Player SDKs take care of signing the underlying\n API calls for you. However, if your application calls the Amazon IVS API directly, it’s your\n responsibility to sign the requests.

    \n

    You generate a signature using valid Amazon Web Services credentials that have permission\n to perform the requested action. For example, you must sign PutMetadata requests with a\n signature generated from a user account that has the ivs:PutMetadata\n permission.

    \n

    For more information:

    \n \n

    \n Amazon Resource Names (ARNs)\n

    \n

    ARNs uniquely identify AWS resources. An ARN is required when you need to specify a\n resource unambiguously across all of AWS, such as in IAM policies and API\n calls. For more information, see Amazon\n Resource Names in the AWS General Reference.

    \n

    \n Channel Endpoints\n

    \n
      \n
    • \n

      \n CreateChannel — Creates a new channel and an associated stream\n key to start streaming.

      \n
    • \n
    • \n

      \n GetChannel — Gets the channel configuration for the specified\n channel ARN.

      \n
    • \n
    • \n

      \n BatchGetChannel — Performs GetChannel on\n multiple ARNs simultaneously.

      \n
    • \n
    • \n

      \n ListChannels — Gets summary information about all channels in\n your account, in the Amazon Web Services region where the API request is processed. This\n list can be filtered to match a specified name or recording-configuration ARN. Filters are\n mutually exclusive and cannot be used together. If you try to use both filters, you will\n get an error (409 Conflict Exception).

      \n
    • \n
    • \n

      \n UpdateChannel — Updates a channel's configuration. This does\n not affect an ongoing stream of this channel. You must stop and restart the stream for the\n changes to take effect.

      \n
    • \n
    • \n

      \n DeleteChannel — Deletes the specified channel.

      \n
    • \n
    \n

    \n Playback Restriction Policy Endpoints\n

    \n \n

    \n Private Channel Endpoints\n

    \n

    For more information, see Setting Up Private Channels in the\n Amazon IVS User Guide.

    \n
      \n
    • \n

      \n ImportPlaybackKeyPair — Imports the public portion of a new\n key pair and returns its arn and fingerprint. The\n privateKey can then be used to generate viewer authorization tokens, to\n grant viewers access to private channels (channels enabled for playback\n authorization).

      \n
    • \n
    • \n

      \n GetPlaybackKeyPair — Gets a specified playback authorization\n key pair and returns the arn and fingerprint. The\n privateKey held by the caller can be used to generate viewer authorization\n tokens, to grant viewers access to private channels.

      \n
    • \n
    • \n

      \n ListPlaybackKeyPairs — Gets summary information about playback\n key pairs.

      \n
    • \n
    • \n

      \n DeletePlaybackKeyPair — Deletes a specified authorization key\n pair. This invalidates future viewer tokens generated using the key pair’s\n privateKey.

      \n
    • \n
    • \n

      \n StartViewerSessionRevocation — Starts the process of revoking\n the viewer session associated with a specified channel ARN and viewer ID. Optionally, you\n can provide a version to revoke viewer sessions less than and including that\n version.

      \n
    • \n
    • \n

      \n BatchStartViewerSessionRevocation — Performs StartViewerSessionRevocation on multiple channel ARN and viewer ID pairs\n simultaneously.

      \n
    • \n
    \n

    \n RecordingConfiguration Endpoints\n

    \n \n

    \n Stream Endpoints\n

    \n
      \n
    • \n

      \n GetStream — Gets information about the active (live) stream on\n a specified channel.

      \n
    • \n
    • \n

      \n GetStreamSession — Gets metadata on a specified stream.

      \n
    • \n
    • \n

      \n ListStreams — Gets summary information about live streams in\n your account, in the Amazon Web Services region where the API request is processed.

      \n
    • \n
    • \n

      \n ListStreamSessions — Gets a summary of current and previous\n streams for a specified channel in your account, in the AWS region where the API request\n is processed.

      \n
    • \n
    • \n

      \n StopStream — Disconnects the incoming RTMPS stream for the\n specified channel. Can be used in conjunction with DeleteStreamKey to\n prevent further streaming to a channel.

      \n
    • \n
    • \n

      \n PutMetadata — Inserts metadata into the active stream of the\n specified channel. At most 5 requests per second per channel are allowed, each with a\n maximum 1 KB payload. (If 5 TPS is not sufficient for your needs, we recommend batching\n your data into a single PutMetadata call.) At most 155 requests per second per account are\n allowed.

      \n
    • \n
    \n

    \n StreamKey Endpoints\n

    \n
      \n
    • \n

      \n CreateStreamKey — Creates a stream key, used to initiate a\n stream, for the specified channel ARN.

      \n
    • \n
    • \n

      \n GetStreamKey — Gets stream key information for the specified\n ARN.

      \n
    • \n
    • \n

      \n BatchGetStreamKey — Performs GetStreamKey on\n multiple ARNs simultaneously.

      \n
    • \n
    • \n

      \n ListStreamKeys — Gets summary information about stream keys\n for the specified channel.

      \n
    • \n
    • \n

      \n DeleteStreamKey — Deletes the stream key for the specified\n ARN, so it can no longer be used to stream.

      \n
    • \n
    \n

    \n Amazon Web Services Tags Endpoints\n

    \n
      \n
    • \n

      \n TagResource — Adds or updates tags for the Amazon Web Services\n resource with the specified ARN.

      \n
    • \n
    • \n

      \n UntagResource — Removes tags from the resource with the\n specified ARN.

      \n
    • \n
    • \n

      \n ListTagsForResource — Gets information about Amazon Web Services tags for the specified ARN.

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

    \n Introduction\n

    \n

    The Amazon Interactive Video Service (IVS) API is REST compatible, using a standard HTTP\n API and an Amazon Web Services EventBridge event stream for responses. JSON is used for both\n requests and responses, including errors.

    \n

    The API is an Amazon Web Services regional service. For a list of supported regions and\n Amazon IVS HTTPS service endpoints, see the Amazon IVS page in the\n Amazon Web Services General Reference.

    \n

    \n \n All API request parameters and URLs are case sensitive.\n \n \n

    \n

    For a summary of notable documentation changes in each release, see Document\n History.

    \n

    \n Allowed Header Values\n

    \n
      \n
    • \n

      \n \n Accept:\n application/json

      \n
    • \n
    • \n

      \n \n Accept-Encoding:\n gzip, deflate

      \n
    • \n
    • \n

      \n \n Content-Type:\n application/json

      \n
    • \n
    \n

    \n Key Concepts\n

    \n
      \n
    • \n

      \n Channel — Stores configuration data related to your live stream. You first create a channel and then use the channel’s stream key to start your live stream.

      \n
    • \n
    • \n

      \n Stream key — An identifier assigned by Amazon IVS when you create a channel, which is then used to authorize streaming. \n Treat the stream key like a secret, since it allows anyone to stream to the channel.\n \n

      \n
    • \n
    • \n

      \n Playback key pair — Video playback may be restricted using playback-authorization tokens, which use public-key encryption. A playback key pair is the public-private pair of keys used to sign and validate the playback-authorization token.

      \n
    • \n
    • \n

      \n Recording configuration — Stores configuration related to recording a live stream and where to store the recorded content. Multiple channels can reference the same recording configuration.

      \n
    • \n
    • \n

      \n Playback restriction policy — Restricts playback by countries and/or origin sites.

      \n
    • \n
    \n

    For more information about your IVS live stream, also see Getting Started with IVS Low-Latency Streaming.

    \n

    \n Tagging\n

    \n

    A tag is a metadata label that you assign to an Amazon Web Services\n resource. A tag comprises a key and a value, both\n set by you. For example, you might set a tag as topic:nature to label a\n particular video category. See Tagging Amazon Web Services Resources for\n more information, including restrictions that apply to tags and \"Tag naming limits and\n requirements\"; Amazon IVS has no service-specific constraints beyond what is documented\n there.

    \n

    Tags can help you identify and organize your Amazon Web Services resources. For example,\n you can use the same tag for different resources to indicate that they are related. You can\n also use tags to manage access (see Access Tags).

    \n

    The Amazon IVS API has these tag-related endpoints: TagResource, UntagResource, and ListTagsForResource. The following\n resources support tagging: Channels, Stream Keys, Playback Key Pairs, and Recording\n Configurations.

    \n

    At most 50 tags can be applied to a resource.

    \n

    \n Authentication versus Authorization\n

    \n

    Note the differences between these concepts:

    \n
      \n
    • \n

      \n Authentication is about verifying identity. You need to be\n authenticated to sign Amazon IVS API requests.

      \n
    • \n
    • \n

      \n Authorization is about granting permissions. Your IAM roles need to have permissions for Amazon IVS API requests. In addition,\n authorization is needed to view Amazon IVS private channels.\n (Private channels are channels that are enabled for \"playback authorization.\")

      \n
    • \n
    \n

    \n Authentication\n

    \n

    All Amazon IVS API requests must be authenticated with a signature. The Amazon Web Services\n Command-Line Interface (CLI) and Amazon IVS Player SDKs take care of signing the underlying\n API calls for you. However, if your application calls the Amazon IVS API directly, it’s your\n responsibility to sign the requests.

    \n

    You generate a signature using valid Amazon Web Services credentials that have permission\n to perform the requested action. For example, you must sign PutMetadata requests with a\n signature generated from a user account that has the ivs:PutMetadata\n permission.

    \n

    For more information:

    \n \n

    \n Amazon Resource Names (ARNs)\n

    \n

    ARNs uniquely identify AWS resources. An ARN is required when you need to specify a\n resource unambiguously across all of AWS, such as in IAM policies and API\n calls. For more information, see Amazon\n Resource Names in the AWS General Reference.

    \n

    \n Channel Endpoints\n

    \n
      \n
    • \n

      \n CreateChannel — Creates a new channel and an associated stream\n key to start streaming.

      \n
    • \n
    • \n

      \n GetChannel — Gets the channel configuration for the specified\n channel ARN.

      \n
    • \n
    • \n

      \n BatchGetChannel — Performs GetChannel on\n multiple ARNs simultaneously.

      \n
    • \n
    • \n

      \n ListChannels — Gets summary information about all channels in\n your account, in the Amazon Web Services region where the API request is processed. This\n list can be filtered to match a specified name or recording-configuration ARN. Filters are\n mutually exclusive and cannot be used together. If you try to use both filters, you will\n get an error (409 Conflict Exception).

      \n
    • \n
    • \n

      \n UpdateChannel — Updates a channel's configuration. This does\n not affect an ongoing stream of this channel. You must stop and restart the stream for the\n changes to take effect.

      \n
    • \n
    • \n

      \n DeleteChannel — Deletes the specified channel.

      \n
    • \n
    \n

    \n Playback Restriction Policy Endpoints\n

    \n \n

    \n Private Channel Endpoints\n

    \n

    For more information, see Setting Up Private Channels in the\n Amazon IVS User Guide.

    \n
      \n
    • \n

      \n ImportPlaybackKeyPair — Imports the public portion of a new\n key pair and returns its arn and fingerprint. The\n privateKey can then be used to generate viewer authorization tokens, to\n grant viewers access to private channels (channels enabled for playback\n authorization).

      \n
    • \n
    • \n

      \n GetPlaybackKeyPair — Gets a specified playback authorization\n key pair and returns the arn and fingerprint. The\n privateKey held by the caller can be used to generate viewer authorization\n tokens, to grant viewers access to private channels.

      \n
    • \n
    • \n

      \n ListPlaybackKeyPairs — Gets summary information about playback\n key pairs.

      \n
    • \n
    • \n

      \n DeletePlaybackKeyPair — Deletes a specified authorization key\n pair. This invalidates future viewer tokens generated using the key pair’s\n privateKey.

      \n
    • \n
    • \n

      \n StartViewerSessionRevocation — Starts the process of revoking\n the viewer session associated with a specified channel ARN and viewer ID. Optionally, you\n can provide a version to revoke viewer sessions less than and including that\n version.

      \n
    • \n
    • \n

      \n BatchStartViewerSessionRevocation — Performs StartViewerSessionRevocation on multiple channel ARN and viewer ID pairs\n simultaneously.

      \n
    • \n
    \n

    \n Recording Configuration Endpoints\n

    \n \n

    \n Stream Endpoints\n

    \n
      \n
    • \n

      \n GetStream — Gets information about the active (live) stream on\n a specified channel.

      \n
    • \n
    • \n

      \n GetStreamSession — Gets metadata on a specified stream.

      \n
    • \n
    • \n

      \n ListStreams — Gets summary information about live streams in\n your account, in the Amazon Web Services region where the API request is processed.

      \n
    • \n
    • \n

      \n ListStreamSessions — Gets a summary of current and previous\n streams for a specified channel in your account, in the AWS region where the API request\n is processed.

      \n
    • \n
    • \n

      \n StopStream — Disconnects the incoming RTMPS stream for the\n specified channel. Can be used in conjunction with DeleteStreamKey to\n prevent further streaming to a channel.

      \n
    • \n
    • \n

      \n PutMetadata — Inserts metadata into the active stream of the\n specified channel. At most 5 requests per second per channel are allowed, each with a\n maximum 1 KB payload. (If 5 TPS is not sufficient for your needs, we recommend batching\n your data into a single PutMetadata call.) At most 155 requests per second per account are\n allowed.

      \n
    • \n
    \n

    \n Stream Key Endpoints\n

    \n
      \n
    • \n

      \n CreateStreamKey — Creates a stream key, used to initiate a\n stream, for the specified channel ARN.

      \n
    • \n
    • \n

      \n GetStreamKey — Gets stream key information for the specified\n ARN.

      \n
    • \n
    • \n

      \n BatchGetStreamKey — Performs GetStreamKey on\n multiple ARNs simultaneously.

      \n
    • \n
    • \n

      \n ListStreamKeys — Gets summary information about stream keys\n for the specified channel.

      \n
    • \n
    • \n

      \n DeleteStreamKey — Deletes the stream key for the specified\n ARN, so it can no longer be used to stream.

      \n
    • \n
    \n

    \n Amazon Web Services Tags Endpoints\n

    \n
      \n
    • \n

      \n TagResource — Adds or updates tags for the Amazon Web Services\n resource with the specified ARN.

      \n
    • \n
    • \n

      \n UntagResource — Removes tags from the resource with the\n specified ARN.

      \n
    • \n
    • \n

      \n ListTagsForResource — Gets information about Amazon Web Services tags for the specified ARN.

      \n
    • \n
    ", "smithy.api#title": "Amazon Interactive Video Service", "smithy.rules#endpointRuleSet": { "version": "1.0", @@ -1197,7 +1197,7 @@ "recordingConfigurationArn": { "target": "com.amazonaws.ivs#ChannelRecordingConfigurationArn", "traits": { - "smithy.api#documentation": "

    Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording.\n Default: \"\" (empty string, recording is disabled).

    " + "smithy.api#documentation": "

    Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables\n recording. Default: \"\" (empty string, recording is disabled).

    " } }, "ingestEndpoint": { @@ -1238,10 +1238,16 @@ "smithy.api#documentation": "

    Optional transcode preset for the channel. This is selectable only for\n ADVANCED_HD and ADVANCED_SD channel types. For those channel\n types, the default preset is HIGHER_BANDWIDTH_DELIVERY. For other\n channel types (BASIC and STANDARD), preset is the empty\n string (\"\").

    " } }, + "srt": { + "target": "com.amazonaws.ivs#Srt", + "traits": { + "smithy.api#documentation": "

    Specifies the endpoint and optional passphrase for streaming with the SRT protocol.

    " + } + }, "playbackRestrictionPolicyArn": { "target": "com.amazonaws.ivs#ChannelPlaybackRestrictionPolicyArn", "traits": { - "smithy.api#documentation": "

    Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction. Default: \"\" (empty string, no playback restriction policy is applied).

    " + "smithy.api#documentation": "

    Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables\n playback restriction. Default: \"\" (empty string, no playback restriction policy is\n applied).

    " } } }, @@ -1369,7 +1375,7 @@ "recordingConfigurationArn": { "target": "com.amazonaws.ivs#ChannelRecordingConfigurationArn", "traits": { - "smithy.api#documentation": "

    Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording.\n Default: \"\" (empty string, recording is disabled).

    " + "smithy.api#documentation": "

    Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables\n recording. Default: \"\" (empty string, recording is disabled).

    " } }, "tags": { @@ -1400,7 +1406,7 @@ "playbackRestrictionPolicyArn": { "target": "com.amazonaws.ivs#ChannelPlaybackRestrictionPolicyArn", "traits": { - "smithy.api#documentation": "

    Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction.\n Default: \"\" (empty string, no playback restriction policy is applied).

    " + "smithy.api#documentation": "

    Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables\n playback restriction. Default: \"\" (empty string, no playback restriction policy is\n applied).

    " } } }, @@ -1536,7 +1542,7 @@ "target": "com.amazonaws.ivs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

    Whether the channel allows insecure RTMP ingest. Default: false.

    " + "smithy.api#documentation": "

    Whether the channel allows insecure RTMP and SRT ingest. Default: false.

    " } }, "preset": { @@ -3307,14 +3313,14 @@ "allowedCountries": { "target": "com.amazonaws.ivs#PlaybackRestrictionPolicyAllowedCountryList", "traits": { - "smithy.api#documentation": "

    A list of country codes that control geoblocking restriction. Allowed values are the\n officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).

    ", + "smithy.api#documentation": "

    A list of country codes that control geoblocking restriction. Allowed values are the\n officially assigned ISO 3166-1\n alpha-2 codes. Default: All countries (an empty array).

    ", "smithy.api#required": {} } }, "allowedOrigins": { "target": "com.amazonaws.ivs#PlaybackRestrictionPolicyAllowedOriginList", "traits": { - "smithy.api#documentation": "

    A list of origin sites that control CORS restriction. Allowed values are the same as valid\n values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array).

    ", + "smithy.api#documentation": "

    A list of origin sites that control CORS restriction. Allowed values are the same as valid\n values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All\n origins (an empty array).

    ", "smithy.api#required": {} } }, @@ -3420,7 +3426,7 @@ "allowedOrigins": { "target": "com.amazonaws.ivs#PlaybackRestrictionPolicyAllowedOriginList", "traits": { - "smithy.api#documentation": "

    A list of origin sites that control CORS restriction. Allowed values are the same as valid\n values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array).

    ", + "smithy.api#documentation": "

    A list of origin sites that control CORS restriction. Allowed values are the same as valid\n values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All\n origins (an empty array).

    ", "smithy.api#required": {} } }, @@ -3809,6 +3815,35 @@ "smithy.api#httpError": 402 } }, + "com.amazonaws.ivs#Srt": { + "type": "structure", + "members": { + "endpoint": { + "target": "com.amazonaws.ivs#SrtEndpoint", + "traits": { + "smithy.api#documentation": "

    The endpoint to be used when streaming with IVS using the SRT protocol.

    " + } + }, + "passphrase": { + "target": "com.amazonaws.ivs#SrtPassphrase", + "traits": { + "smithy.api#documentation": "

    Auto-generated passphrase to enable encryption. This field is applicable only if the end\n user has not enabled the insecureIngest option for the\n channel.

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

    Specifies information needed to stream using the SRT protocol.

    " + } + }, + "com.amazonaws.ivs#SrtEndpoint": { + "type": "string" + }, + "com.amazonaws.ivs#SrtPassphrase": { + "type": "string", + "traits": { + "smithy.api#sensitive": {} + } + }, "com.amazonaws.ivs#StartViewerSessionRevocation": { "type": "operation", "input": { @@ -4699,7 +4734,7 @@ "target": "com.amazonaws.ivs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

    Whether the channel allows insecure RTMP ingest. Default: false.

    " + "smithy.api#documentation": "

    Whether the channel allows insecure RTMP and SRT ingest. Default: false.

    " } }, "preset": {