Skip to content

Commit 5e8a193

Browse files
author
awstools
committed
feat(client-kinesis-video-archived-media): NoDataRetentionException thrown when GetImages requested for a Stream that does not retain data (that is, has a DataRetentionInHours of 0).
1 parent 1c08c4d commit 5e8a193

File tree

7 files changed

+30
-16
lines changed

7 files changed

+30
-16
lines changed

clients/client-kinesis-video-archived-media/src/commands/GetClipCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ export interface GetClipCommandOutput extends Omit<GetClipOutput, "Payload">, __
124124
* <p>No codec private data was found in at least one of tracks of the video stream.</p>
125125
*
126126
* @throws {@link NoDataRetentionException} (client fault)
127-
* <p>A streaming session was requested for a stream that does not retain data (that is, has
127+
* <p>
128+
* <code>GetImages</code> was requested for a stream that does not retain data (that is, has
128129
* a <code>DataRetentionInHours</code> of 0). </p>
129130
*
130131
* @throws {@link NotAuthorizedException} (client fault)

clients/client-kinesis-video-archived-media/src/commands/GetDASHStreamingSessionURLCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ export interface GetDASHStreamingSessionURLCommandOutput extends GetDASHStreamin
227227
* <p>No codec private data was found in at least one of tracks of the video stream.</p>
228228
*
229229
* @throws {@link NoDataRetentionException} (client fault)
230-
* <p>A streaming session was requested for a stream that does not retain data (that is, has
230+
* <p>
231+
* <code>GetImages</code> was requested for a stream that does not retain data (that is, has
231232
* a <code>DataRetentionInHours</code> of 0). </p>
232233
*
233234
* @throws {@link NotAuthorizedException} (client fault)

clients/client-kinesis-video-archived-media/src/commands/GetHLSStreamingSessionURLCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ export interface GetHLSStreamingSessionURLCommandOutput extends GetHLSStreamingS
270270
* <p>No codec private data was found in at least one of tracks of the video stream.</p>
271271
*
272272
* @throws {@link NoDataRetentionException} (client fault)
273-
* <p>A streaming session was requested for a stream that does not retain data (that is, has
273+
* <p>
274+
* <code>GetImages</code> was requested for a stream that does not retain data (that is, has
274275
* a <code>DataRetentionInHours</code> of 0). </p>
275276
*
276277
* @throws {@link NotAuthorizedException} (client fault)

clients/client-kinesis-video-archived-media/src/commands/GetImagesCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export interface GetImagesCommandOutput extends GetImagesOutput, __MetadataBeare
3232

3333
/**
3434
* @public
35-
* <p>Retrieves a list of Images corresponding to each timestamp for a given time range, sampling interval, and image format configuration.</p>
35+
* <p>Retrieves a list of images corresponding to each timestamp for a given time range,
36+
* sampling interval, and image format configuration.</p>
3637
* @example
3738
* Use a bare-bones client and the command you need to make an API call.
3839
* ```javascript
@@ -83,6 +84,11 @@ export interface GetImagesCommandOutput extends GetImagesOutput, __MetadataBeare
8384
* <p>A specified parameter exceeds its restrictions, is not supported, or can't be
8485
* used.</p>
8586
*
87+
* @throws {@link NoDataRetentionException} (client fault)
88+
* <p>
89+
* <code>GetImages</code> was requested for a stream that does not retain data (that is, has
90+
* a <code>DataRetentionInHours</code> of 0). </p>
91+
*
8692
* @throws {@link NotAuthorizedException} (client fault)
8793
* <p>Status Code: 403, The caller is not authorized to perform an operation on the given
8894
* stream, or the token has expired.</p>

clients/client-kinesis-video-archived-media/src/models/models_0.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ export class MissingCodecPrivateDataException extends __BaseException {
233233

234234
/**
235235
* @public
236-
* <p>A streaming session was requested for a stream that does not retain data (that is, has
236+
* <p>
237+
* <code>GetImages</code> was requested for a stream that does not retain data (that is, has
237238
* a <code>DataRetentionInHours</code> of 0). </p>
238239
*/
239240
export class NoDataRetentionException extends __BaseException {
@@ -1100,13 +1101,8 @@ export interface GetImagesInput {
11001101

11011102
/**
11021103
* @public
1103-
* <p>The time interval in milliseconds (ms) at which the images need to be generated from
1104-
* the stream, with a default of 3000 ms. The minimum value that can be provided is 200 ms.
1105-
* If the timestamp range is less than the sampling interval, the Image from the
1106-
* <code>startTimestamp</code> will be returned if available. </p>
1107-
* <note>
1108-
* <p>The minimum value of 200 ms is a hard limit.</p>
1109-
* </note>
1104+
* <p>The time interval in milliseconds (ms) at which the images need to be generated from the stream. The minimum value that can be provided is 200 ms (5 images per second). If the timestamp range is less than the sampling interval, the image from the <code>startTimestamp</code> will be returned if available.
1105+
* </p>
11101106
*/
11111107
SamplingInterval?: number;
11121108

@@ -1402,6 +1398,9 @@ export interface ListFragmentsInput {
14021398
* @public
14031399
* <p>Describes the timestamp range and timestamp origin for the range of fragments to
14041400
* return.</p>
1401+
* <note>
1402+
* <p>This is only required when the <code>NextToken</code> isn't passed in the API.</p>
1403+
* </note>
14051404
*/
14061405
FragmentSelector?: FragmentSelector;
14071406
}

clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@ const de_GetImagesCommandError = async (
474474
case "InvalidArgumentException":
475475
case "com.amazonaws.kinesisvideoarchivedmedia#InvalidArgumentException":
476476
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
477+
case "NoDataRetentionException":
478+
case "com.amazonaws.kinesisvideoarchivedmedia#NoDataRetentionException":
479+
throw await de_NoDataRetentionExceptionRes(parsedOutput, context);
477480
case "NotAuthorizedException":
478481
case "com.amazonaws.kinesisvideoarchivedmedia#NotAuthorizedException":
479482
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);

codegen/sdk-codegen/aws-models/kinesis-video-archived-media.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,6 +1633,9 @@
16331633
{
16341634
"target": "com.amazonaws.kinesisvideoarchivedmedia#InvalidArgumentException"
16351635
},
1636+
{
1637+
"target": "com.amazonaws.kinesisvideoarchivedmedia#NoDataRetentionException"
1638+
},
16361639
{
16371640
"target": "com.amazonaws.kinesisvideoarchivedmedia#NotAuthorizedException"
16381641
},
@@ -1641,7 +1644,7 @@
16411644
}
16421645
],
16431646
"traits": {
1644-
"smithy.api#documentation": "<p>Retrieves a list of Images corresponding to each timestamp for a given time range, sampling interval, and image format configuration.</p>",
1647+
"smithy.api#documentation": "<p>Retrieves a list of images corresponding to each timestamp for a given time range,\n sampling interval, and image format configuration.</p>",
16451648
"smithy.api#http": {
16461649
"method": "POST",
16471650
"uri": "/getImages",
@@ -1694,7 +1697,7 @@
16941697
"SamplingInterval": {
16951698
"target": "com.amazonaws.kinesisvideoarchivedmedia#SamplingInterval",
16961699
"traits": {
1697-
"smithy.api#documentation": "<p>The time interval in milliseconds (ms) at which the images need to be generated from\n the stream, with a default of 3000 ms. The minimum value that can be provided is 200 ms.\n If the timestamp range is less than the sampling interval, the Image from the\n <code>startTimestamp</code> will be returned if available. </p>\n <note>\n <p>The minimum value of 200 ms is a hard limit.</p>\n </note>"
1700+
"smithy.api#documentation": "<p>The time interval in milliseconds (ms) at which the images need to be generated from the stream. The minimum value that can be provided is 200 ms (5 images per second). If the timestamp range is less than the sampling interval, the image from the <code>startTimestamp</code> will be returned if available.\n </p>"
16981701
}
16991702
},
17001703
"Format": {
@@ -2171,7 +2174,7 @@
21712174
"FragmentSelector": {
21722175
"target": "com.amazonaws.kinesisvideoarchivedmedia#FragmentSelector",
21732176
"traits": {
2174-
"smithy.api#documentation": "<p>Describes the timestamp range and timestamp origin for the range of fragments to\n return.</p>"
2177+
"smithy.api#documentation": "<p>Describes the timestamp range and timestamp origin for the range of fragments to\n return.</p>\n <note>\n <p>This is only required when the <code>NextToken</code> isn't passed in the API.</p>\n </note>"
21752178
}
21762179
}
21772180
},
@@ -2245,7 +2248,7 @@
22452248
}
22462249
},
22472250
"traits": {
2248-
"smithy.api#documentation": "<p>A streaming session was requested for a stream that does not retain data (that is, has\n a <code>DataRetentionInHours</code> of 0). </p>",
2251+
"smithy.api#documentation": "<p>\n <code>GetImages</code> was requested for a stream that does not retain data (that is, has\n a <code>DataRetentionInHours</code> of 0). </p>",
22492252
"smithy.api#error": "client",
22502253
"smithy.api#httpError": 400
22512254
}

0 commit comments

Comments
 (0)