@aws-sdk/client-rekognition 3.36.0 → 3.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/Rekognition.js +0 -3
  3. package/dist-cjs/RekognitionClient.js +0 -8
  4. package/dist-cjs/commands/CompareFacesCommand.js +0 -86
  5. package/dist-cjs/commands/CreateCollectionCommand.js +0 -36
  6. package/dist-cjs/commands/CreateProjectCommand.js +0 -26
  7. package/dist-cjs/commands/CreateProjectVersionCommand.js +0 -35
  8. package/dist-cjs/commands/CreateStreamProcessorCommand.js +0 -34
  9. package/dist-cjs/commands/DeleteCollectionCommand.js +0 -28
  10. package/dist-cjs/commands/DeleteFacesCommand.js +0 -27
  11. package/dist-cjs/commands/DeleteProjectCommand.js +0 -27
  12. package/dist-cjs/commands/DeleteProjectVersionCommand.js +0 -31
  13. package/dist-cjs/commands/DeleteStreamProcessorCommand.js +0 -25
  14. package/dist-cjs/commands/DescribeCollectionCommand.js +0 -29
  15. package/dist-cjs/commands/DescribeProjectVersionsCommand.js +0 -28
  16. package/dist-cjs/commands/DescribeProjectsCommand.js +0 -25
  17. package/dist-cjs/commands/DescribeStreamProcessorCommand.js +0 -25
  18. package/dist-cjs/commands/DetectCustomLabelsCommand.js +0 -74
  19. package/dist-cjs/commands/DetectFacesCommand.js +0 -46
  20. package/dist-cjs/commands/DetectLabelsCommand.js +0 -96
  21. package/dist-cjs/commands/DetectModerationLabelsCommand.js +0 -37
  22. package/dist-cjs/commands/DetectProtectiveEquipmentCommand.js +0 -63
  23. package/dist-cjs/commands/DetectTextCommand.js +0 -45
  24. package/dist-cjs/commands/GetCelebrityInfoCommand.js +0 -31
  25. package/dist-cjs/commands/GetCelebrityRecognitionCommand.js +0 -58
  26. package/dist-cjs/commands/GetContentModerationCommand.js +0 -53
  27. package/dist-cjs/commands/GetFaceDetectionCommand.js +0 -36
  28. package/dist-cjs/commands/GetFaceSearchCommand.js +0 -54
  29. package/dist-cjs/commands/GetLabelDetectionCommand.js +0 -44
  30. package/dist-cjs/commands/GetPersonTrackingCommand.js +0 -53
  31. package/dist-cjs/commands/GetSegmentDetectionCommand.js +0 -46
  32. package/dist-cjs/commands/GetTextDetectionCommand.js +0 -42
  33. package/dist-cjs/commands/IndexFacesCommand.js +0 -123
  34. package/dist-cjs/commands/ListCollectionsCommand.js +0 -29
  35. package/dist-cjs/commands/ListFacesCommand.js +0 -31
  36. package/dist-cjs/commands/ListStreamProcessorsCommand.js +0 -24
  37. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -28
  38. package/dist-cjs/commands/RecognizeCelebritiesCommand.js +0 -54
  39. package/dist-cjs/commands/SearchFacesByImageCommand.js +0 -70
  40. package/dist-cjs/commands/SearchFacesCommand.js +0 -44
  41. package/dist-cjs/commands/StartCelebrityRecognitionCommand.js +0 -35
  42. package/dist-cjs/commands/StartContentModerationCommand.js +0 -35
  43. package/dist-cjs/commands/StartFaceDetectionCommand.js +0 -36
  44. package/dist-cjs/commands/StartFaceSearchCommand.js +0 -33
  45. package/dist-cjs/commands/StartLabelDetectionCommand.js +0 -38
  46. package/dist-cjs/commands/StartPersonTrackingCommand.js +0 -32
  47. package/dist-cjs/commands/StartProjectVersionCommand.js +0 -33
  48. package/dist-cjs/commands/StartSegmentDetectionCommand.js +0 -39
  49. package/dist-cjs/commands/StartStreamProcessorCommand.js +0 -26
  50. package/dist-cjs/commands/StartTextDetectionCommand.js +0 -31
  51. package/dist-cjs/commands/StopProjectVersionCommand.js +0 -25
  52. package/dist-cjs/commands/StopStreamProcessorCommand.js +0 -24
  53. package/dist-cjs/commands/TagResourceCommand.js +0 -28
  54. package/dist-cjs/commands/UntagResourceCommand.js +0 -28
  55. package/dist-cjs/commands/index.js +54 -0
  56. package/dist-cjs/endpoints.js +6 -1
  57. package/dist-cjs/index.js +5 -69
  58. package/dist-cjs/models/models_0.js +0 -621
  59. package/dist-cjs/pagination/DescribeProjectVersionsPaginator.js +0 -10
  60. package/dist-cjs/pagination/DescribeProjectsPaginator.js +0 -10
  61. package/dist-cjs/pagination/GetCelebrityRecognitionPaginator.js +0 -10
  62. package/dist-cjs/pagination/GetContentModerationPaginator.js +0 -10
  63. package/dist-cjs/pagination/GetFaceDetectionPaginator.js +0 -10
  64. package/dist-cjs/pagination/GetFaceSearchPaginator.js +0 -10
  65. package/dist-cjs/pagination/GetLabelDetectionPaginator.js +0 -10
  66. package/dist-cjs/pagination/GetPersonTrackingPaginator.js +0 -10
  67. package/dist-cjs/pagination/GetSegmentDetectionPaginator.js +0 -10
  68. package/dist-cjs/pagination/GetTextDetectionPaginator.js +0 -10
  69. package/dist-cjs/pagination/ListCollectionsPaginator.js +0 -10
  70. package/dist-cjs/pagination/ListFacesPaginator.js +0 -10
  71. package/dist-cjs/pagination/ListStreamProcessorsPaginator.js +0 -10
  72. package/dist-cjs/pagination/index.js +17 -0
  73. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  74. package/dist-cjs/runtimeConfig.browser.js +1 -5
  75. package/dist-cjs/runtimeConfig.js +1 -5
  76. package/dist-cjs/runtimeConfig.native.js +0 -3
  77. package/dist-cjs/runtimeConfig.shared.js +0 -3
  78. package/dist-cjs/waiters/index.js +5 -0
  79. package/dist-cjs/waiters/waitForProjectVersionRunning.js +0 -9
  80. package/dist-cjs/waiters/waitForProjectVersionTrainingCompleted.js +0 -9
  81. package/dist-es/commands/index.js +51 -0
  82. package/dist-es/endpoints.js +6 -1
  83. package/dist-es/index.js +5 -69
  84. package/dist-es/pagination/index.js +14 -0
  85. package/dist-es/waiters/index.js +2 -0
  86. package/dist-types/commands/index.d.ts +51 -0
  87. package/dist-types/index.d.ts +5 -69
  88. package/dist-types/pagination/index.d.ts +14 -0
  89. package/dist-types/ts3.4/Rekognition.d.ts +52 -1018
  90. package/dist-types/ts3.4/RekognitionClient.d.ts +24 -89
  91. package/dist-types/ts3.4/commands/CompareFacesCommand.d.ts +2 -82
  92. package/dist-types/ts3.4/commands/CreateCollectionCommand.d.ts +2 -32
  93. package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +2 -22
  94. package/dist-types/ts3.4/commands/CreateProjectVersionCommand.d.ts +2 -31
  95. package/dist-types/ts3.4/commands/CreateStreamProcessorCommand.d.ts +2 -30
  96. package/dist-types/ts3.4/commands/DeleteCollectionCommand.d.ts +2 -24
  97. package/dist-types/ts3.4/commands/DeleteFacesCommand.d.ts +2 -23
  98. package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +2 -23
  99. package/dist-types/ts3.4/commands/DeleteProjectVersionCommand.d.ts +2 -27
  100. package/dist-types/ts3.4/commands/DeleteStreamProcessorCommand.d.ts +2 -21
  101. package/dist-types/ts3.4/commands/DescribeCollectionCommand.d.ts +2 -25
  102. package/dist-types/ts3.4/commands/DescribeProjectVersionsCommand.d.ts +2 -24
  103. package/dist-types/ts3.4/commands/DescribeProjectsCommand.d.ts +2 -21
  104. package/dist-types/ts3.4/commands/DescribeStreamProcessorCommand.d.ts +2 -21
  105. package/dist-types/ts3.4/commands/DetectCustomLabelsCommand.d.ts +2 -70
  106. package/dist-types/ts3.4/commands/DetectFacesCommand.d.ts +2 -42
  107. package/dist-types/ts3.4/commands/DetectLabelsCommand.d.ts +2 -92
  108. package/dist-types/ts3.4/commands/DetectModerationLabelsCommand.d.ts +2 -33
  109. package/dist-types/ts3.4/commands/DetectProtectiveEquipmentCommand.d.ts +2 -59
  110. package/dist-types/ts3.4/commands/DetectTextCommand.d.ts +2 -41
  111. package/dist-types/ts3.4/commands/GetCelebrityInfoCommand.d.ts +2 -27
  112. package/dist-types/ts3.4/commands/GetCelebrityRecognitionCommand.d.ts +2 -54
  113. package/dist-types/ts3.4/commands/GetContentModerationCommand.d.ts +2 -49
  114. package/dist-types/ts3.4/commands/GetFaceDetectionCommand.d.ts +2 -32
  115. package/dist-types/ts3.4/commands/GetFaceSearchCommand.d.ts +2 -50
  116. package/dist-types/ts3.4/commands/GetLabelDetectionCommand.d.ts +2 -40
  117. package/dist-types/ts3.4/commands/GetPersonTrackingCommand.d.ts +2 -49
  118. package/dist-types/ts3.4/commands/GetSegmentDetectionCommand.d.ts +2 -42
  119. package/dist-types/ts3.4/commands/GetTextDetectionCommand.d.ts +2 -38
  120. package/dist-types/ts3.4/commands/IndexFacesCommand.d.ts +2 -119
  121. package/dist-types/ts3.4/commands/ListCollectionsCommand.d.ts +2 -25
  122. package/dist-types/ts3.4/commands/ListFacesCommand.d.ts +2 -27
  123. package/dist-types/ts3.4/commands/ListStreamProcessorsCommand.d.ts +2 -20
  124. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -24
  125. package/dist-types/ts3.4/commands/RecognizeCelebritiesCommand.d.ts +2 -50
  126. package/dist-types/ts3.4/commands/SearchFacesByImageCommand.d.ts +2 -66
  127. package/dist-types/ts3.4/commands/SearchFacesCommand.d.ts +2 -40
  128. package/dist-types/ts3.4/commands/StartCelebrityRecognitionCommand.d.ts +2 -31
  129. package/dist-types/ts3.4/commands/StartContentModerationCommand.d.ts +2 -31
  130. package/dist-types/ts3.4/commands/StartFaceDetectionCommand.d.ts +2 -32
  131. package/dist-types/ts3.4/commands/StartFaceSearchCommand.d.ts +2 -29
  132. package/dist-types/ts3.4/commands/StartLabelDetectionCommand.d.ts +2 -34
  133. package/dist-types/ts3.4/commands/StartPersonTrackingCommand.d.ts +2 -28
  134. package/dist-types/ts3.4/commands/StartProjectVersionCommand.d.ts +2 -29
  135. package/dist-types/ts3.4/commands/StartSegmentDetectionCommand.d.ts +2 -35
  136. package/dist-types/ts3.4/commands/StartStreamProcessorCommand.d.ts +2 -22
  137. package/dist-types/ts3.4/commands/StartTextDetectionCommand.d.ts +2 -27
  138. package/dist-types/ts3.4/commands/StopProjectVersionCommand.d.ts +2 -21
  139. package/dist-types/ts3.4/commands/StopStreamProcessorCommand.d.ts +2 -20
  140. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -24
  141. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -24
  142. package/dist-types/ts3.4/commands/index.d.ts +51 -0
  143. package/dist-types/ts3.4/index.d.ts +5 -69
  144. package/dist-types/ts3.4/models/models_0.d.ts +856 -3431
  145. package/dist-types/ts3.4/pagination/index.d.ts +14 -0
  146. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  147. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  148. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  149. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  150. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  151. package/dist-types/ts3.4/waiters/waitForProjectVersionRunning.d.ts +2 -9
  152. package/dist-types/ts3.4/waiters/waitForProjectVersionTrainingCompleted.d.ts +2 -9
  153. package/dist-types/waiters/index.d.ts +2 -0
  154. package/package.json +33 -33
@@ -5,64 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the inappropriate, unwanted, or offensive content analysis results for a Amazon Rekognition Video analysis started by
10
- * <a>StartContentModeration</a>. For a list of moderation labels in Amazon Rekognition, see
11
- * <a href="https://docs.aws.amazon.com/rekognition/latest/dg/moderation.html#moderation-api">Using the image and video moderation APIs</a>.</p>
12
- *
13
- * <p>Amazon Rekognition Video inappropriate or offensive content detection in a stored video is an asynchronous operation. You start analysis by calling
14
- * <a>StartContentModeration</a> which returns a job identifier (<code>JobId</code>).
15
- * When analysis finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service
16
- * topic registered in the initial call to <code>StartContentModeration</code>.
17
- * To get the results of the content analysis, first check that the status value published to the Amazon SNS
18
- * topic is <code>SUCCEEDED</code>. If so, call <code>GetContentModeration</code> and pass the job identifier
19
- * (<code>JobId</code>) from the initial call to <code>StartContentModeration</code>. </p>
20
- *
21
- * <p>For more information, see Working with Stored Videos in the
22
- * Amazon Rekognition Devlopers Guide.</p>
23
- * <p>
24
- * <code>GetContentModeration</code> returns detected inappropriate, unwanted, or offensive content moderation labels,
25
- * and the time they are detected, in an array, <code>ModerationLabels</code>, of
26
- * <a>ContentModerationDetection</a> objects.
27
- * </p>
28
- * <p>By default, the moderated labels are returned sorted by time, in milliseconds from the start of the
29
- * video. You can also sort them by moderated label by specifying <code>NAME</code> for the <code>SortBy</code>
30
- * input parameter. </p>
31
- * <p>Since video analysis can return a large number of results, use the <code>MaxResults</code> parameter to limit
32
- * the number of labels returned in a single call to <code>GetContentModeration</code>. If there are more results than
33
- * specified in <code>MaxResults</code>, the value of <code>NextToken</code> in the operation response contains a
34
- * pagination token for getting the next set of results. To get the next page of results, call <code>GetContentModeration</code>
35
- * and populate the <code>NextToken</code> request parameter with the value of <code>NextToken</code>
36
- * returned from the previous call to <code>GetContentModeration</code>.</p>
37
- *
38
- * <p>For more information, see Content moderation in the Amazon Rekognition Developer Guide.</p>
39
- * @example
40
- * Use a bare-bones client and the command you need to make an API call.
41
- * ```javascript
42
- * import { RekognitionClient, GetContentModerationCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
43
- * // const { RekognitionClient, GetContentModerationCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
44
- * const client = new RekognitionClient(config);
45
- * const command = new GetContentModerationCommand(input);
46
- * const response = await client.send(command);
47
- * ```
48
- *
49
- * @see {@link GetContentModerationCommandInput} for command's `input` shape.
50
- * @see {@link GetContentModerationCommandOutput} for command's `response` shape.
51
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
52
- *
53
- */
54
8
  class GetContentModerationCommand extends smithy_client_1.Command {
55
- // Start section: command_properties
56
- // End section: command_properties
57
9
  constructor(input) {
58
- // Start section: command_constructor
59
10
  super();
60
11
  this.input = input;
61
- // End section: command_constructor
62
12
  }
63
- /**
64
- * @internal
65
- */
66
13
  resolveMiddleware(clientStack, configuration, options) {
67
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
68
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,47 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets face detection results for a Amazon Rekognition Video analysis started by <a>StartFaceDetection</a>.</p>
10
- * <p>Face detection with Amazon Rekognition Video is an asynchronous operation. You start face detection by calling <a>StartFaceDetection</a>
11
- * which returns a job identifier (<code>JobId</code>). When the face detection operation finishes, Amazon Rekognition Video publishes a completion status to
12
- * the Amazon Simple Notification Service topic registered in the initial call to <code>StartFaceDetection</code>. To get the results
13
- * of the face detection operation, first check that the status value published to the Amazon SNS topic is <code>SUCCEEDED</code>.
14
- * If so, call <a>GetFaceDetection</a> and pass the job identifier
15
- * (<code>JobId</code>) from the initial call to <code>StartFaceDetection</code>.</p>
16
- * <p>
17
- * <code>GetFaceDetection</code> returns an array of detected faces (<code>Faces</code>) sorted by the time the faces were detected. </p>
18
- * <p>Use MaxResults parameter to limit the number of labels returned. If there are more results than
19
- * specified in <code>MaxResults</code>, the value of <code>NextToken</code> in the operation response contains a pagination token for getting the next set
20
- * of results. To get the next page of results, call <code>GetFaceDetection</code> and populate the <code>NextToken</code> request parameter with the token
21
- * value returned from the previous call to <code>GetFaceDetection</code>.</p>
22
- * @example
23
- * Use a bare-bones client and the command you need to make an API call.
24
- * ```javascript
25
- * import { RekognitionClient, GetFaceDetectionCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
26
- * // const { RekognitionClient, GetFaceDetectionCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
27
- * const client = new RekognitionClient(config);
28
- * const command = new GetFaceDetectionCommand(input);
29
- * const response = await client.send(command);
30
- * ```
31
- *
32
- * @see {@link GetFaceDetectionCommandInput} for command's `input` shape.
33
- * @see {@link GetFaceDetectionCommandOutput} for command's `response` shape.
34
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
35
- *
36
- */
37
8
  class GetFaceDetectionCommand extends smithy_client_1.Command {
38
- // Start section: command_properties
39
- // End section: command_properties
40
9
  constructor(input) {
41
- // Start section: command_constructor
42
10
  super();
43
11
  this.input = input;
44
- // End section: command_constructor
45
12
  }
46
- /**
47
- * @internal
48
- */
49
13
  resolveMiddleware(clientStack, configuration, options) {
50
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
51
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,65 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the face search results for Amazon Rekognition Video face search started by
10
- * <a>StartFaceSearch</a>. The search returns faces in a collection that match the faces
11
- * of persons detected in a video. It also includes the time(s) that faces are matched in the video.</p>
12
- * <p>Face search in a video is an asynchronous operation. You start face search by calling
13
- * to <a>StartFaceSearch</a> which returns a job identifier (<code>JobId</code>).
14
- * When the search operation finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service
15
- * topic registered in the initial call to <code>StartFaceSearch</code>.
16
- * To get the search results, first check that the status value published to the Amazon SNS
17
- * topic is <code>SUCCEEDED</code>. If so, call <code>GetFaceSearch</code> and pass the job identifier
18
- * (<code>JobId</code>) from the initial call to <code>StartFaceSearch</code>.</p>
19
- *
20
- * <p>For more information, see Searching Faces in a Collection in the
21
- * Amazon Rekognition Developer Guide.</p>
22
- * <p>The search results are retured in an array, <code>Persons</code>, of
23
- * <a>PersonMatch</a> objects. Each<code>PersonMatch</code> element contains
24
- * details about the matching faces in the input collection, person information (facial attributes,
25
- * bounding boxes, and person identifer)
26
- * for the matched person, and the time the person was matched in the video.</p>
27
- * <note>
28
- * <p>
29
- * <code>GetFaceSearch</code> only returns the default
30
- * facial attributes (<code>BoundingBox</code>, <code>Confidence</code>,
31
- * <code>Landmarks</code>, <code>Pose</code>, and <code>Quality</code>). The other facial attributes listed
32
- * in the <code>Face</code> object of the following response syntax are not returned. For more information,
33
- * see FaceDetail in the Amazon Rekognition Developer Guide. </p>
34
- * </note>
35
- *
36
- * <p>By default, the <code>Persons</code> array is sorted by the time, in milliseconds from the
37
- * start of the video, persons are matched.
38
- * You can also sort by persons by specifying <code>INDEX</code> for the <code>SORTBY</code> input
39
- * parameter.</p>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { RekognitionClient, GetFaceSearchCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
44
- * // const { RekognitionClient, GetFaceSearchCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
45
- * const client = new RekognitionClient(config);
46
- * const command = new GetFaceSearchCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link GetFaceSearchCommandInput} for command's `input` shape.
51
- * @see {@link GetFaceSearchCommandOutput} for command's `response` shape.
52
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
8
  class GetFaceSearchCommand extends smithy_client_1.Command {
56
- // Start section: command_properties
57
- // End section: command_properties
58
9
  constructor(input) {
59
- // Start section: command_constructor
60
10
  super();
61
11
  this.input = input;
62
- // End section: command_constructor
63
12
  }
64
- /**
65
- * @internal
66
- */
67
13
  resolveMiddleware(clientStack, configuration, options) {
68
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
69
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,55 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the label detection results of a Amazon Rekognition Video analysis started by <a>StartLabelDetection</a>. </p>
10
- *
11
- * <p>The label detection operation is started by a call to <a>StartLabelDetection</a>
12
- * which returns a job identifier (<code>JobId</code>). When the label detection operation finishes, Amazon Rekognition publishes a completion status to
13
- * the Amazon Simple Notification Service topic registered in the initial call to <code>StartlabelDetection</code>. To get the results
14
- * of the label detection operation, first check that the status value published to the Amazon SNS topic is <code>SUCCEEDED</code>.
15
- * If so, call <a>GetLabelDetection</a> and pass the job identifier
16
- * (<code>JobId</code>) from the initial call to <code>StartLabelDetection</code>.</p>
17
- * <p>
18
- * <code>GetLabelDetection</code> returns an array of detected labels (<code>Labels</code>) sorted by the time
19
- * the labels were detected. You can also sort by the label name by specifying <code>NAME</code> for the
20
- * <code>SortBy</code> input parameter.</p>
21
- * <p>The labels returned include the label name, the percentage confidence in the accuracy of the detected label,
22
- * and the time the label was detected in the video.</p>
23
- * <p>The returned labels also include bounding box information for common objects, a
24
- * hierarchical taxonomy of detected labels, and the version of the label model used for detection.</p>
25
- *
26
- * <p>Use MaxResults parameter to limit the number of labels returned. If there are more results than
27
- * specified in <code>MaxResults</code>, the value of <code>NextToken</code> in the operation response contains a pagination token for getting the next set
28
- * of results. To get the next page of results, call <code>GetlabelDetection</code> and populate the <code>NextToken</code> request parameter with the token
29
- * value returned from the previous call to <code>GetLabelDetection</code>.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { RekognitionClient, GetLabelDetectionCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
34
- * // const { RekognitionClient, GetLabelDetectionCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
35
- * const client = new RekognitionClient(config);
36
- * const command = new GetLabelDetectionCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link GetLabelDetectionCommandInput} for command's `input` shape.
41
- * @see {@link GetLabelDetectionCommandOutput} for command's `response` shape.
42
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
8
  class GetLabelDetectionCommand extends smithy_client_1.Command {
46
- // Start section: command_properties
47
- // End section: command_properties
48
9
  constructor(input) {
49
- // Start section: command_constructor
50
10
  super();
51
11
  this.input = input;
52
- // End section: command_constructor
53
12
  }
54
- /**
55
- * @internal
56
- */
57
13
  resolveMiddleware(clientStack, configuration, options) {
58
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
59
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,64 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the path tracking results of a Amazon Rekognition Video analysis started by <a>StartPersonTracking</a>.</p>
10
- *
11
- * <p>The person path tracking operation is started by a call to <code>StartPersonTracking</code>
12
- * which returns a job identifier (<code>JobId</code>). When the operation finishes, Amazon Rekognition Video publishes a completion status to
13
- * the Amazon Simple Notification Service topic registered in the initial call to <code>StartPersonTracking</code>.</p>
14
- * <p>To get the results of the person path tracking operation, first check
15
- * that the status value published to the Amazon SNS topic is <code>SUCCEEDED</code>.
16
- * If so, call <a>GetPersonTracking</a> and pass the job identifier
17
- * (<code>JobId</code>) from the initial call to <code>StartPersonTracking</code>.</p>
18
- * <p>
19
- * <code>GetPersonTracking</code> returns an array, <code>Persons</code>, of tracked persons and the time(s) their
20
- * paths were tracked in the video. </p>
21
- * <note>
22
- * <p>
23
- * <code>GetPersonTracking</code> only returns the default
24
- * facial attributes (<code>BoundingBox</code>, <code>Confidence</code>,
25
- * <code>Landmarks</code>, <code>Pose</code>, and <code>Quality</code>). The other facial attributes listed
26
- * in the <code>Face</code> object of the following response syntax are not returned. </p>
27
- *
28
- * <p>For more information, see FaceDetail in the Amazon Rekognition Developer Guide.</p>
29
- * </note>
30
- *
31
- *
32
- * <p>By default, the array is sorted by the time(s) a person's path is tracked in the video.
33
- * You can sort by tracked persons by specifying <code>INDEX</code> for the <code>SortBy</code> input parameter.</p>
34
- *
35
- * <p>Use the <code>MaxResults</code> parameter to limit the number of items returned. If there are more results than
36
- * specified in <code>MaxResults</code>, the value of <code>NextToken</code> in the operation response contains a pagination token for getting the next set
37
- * of results. To get the next page of results, call <code>GetPersonTracking</code> and populate the <code>NextToken</code> request parameter with the token
38
- * value returned from the previous call to <code>GetPersonTracking</code>.</p>
39
- * @example
40
- * Use a bare-bones client and the command you need to make an API call.
41
- * ```javascript
42
- * import { RekognitionClient, GetPersonTrackingCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
43
- * // const { RekognitionClient, GetPersonTrackingCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
44
- * const client = new RekognitionClient(config);
45
- * const command = new GetPersonTrackingCommand(input);
46
- * const response = await client.send(command);
47
- * ```
48
- *
49
- * @see {@link GetPersonTrackingCommandInput} for command's `input` shape.
50
- * @see {@link GetPersonTrackingCommandOutput} for command's `response` shape.
51
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
52
- *
53
- */
54
8
  class GetPersonTrackingCommand extends smithy_client_1.Command {
55
- // Start section: command_properties
56
- // End section: command_properties
57
9
  constructor(input) {
58
- // Start section: command_constructor
59
10
  super();
60
11
  this.input = input;
61
- // End section: command_constructor
62
12
  }
63
- /**
64
- * @internal
65
- */
66
13
  resolveMiddleware(clientStack, configuration, options) {
67
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
68
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,57 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the segment detection results of a Amazon Rekognition Video analysis started by <a>StartSegmentDetection</a>.</p>
10
- * <p>Segment detection with Amazon Rekognition Video is an asynchronous operation. You start segment detection by
11
- * calling <a>StartSegmentDetection</a> which returns a job identifier (<code>JobId</code>).
12
- * When the segment detection operation finishes, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service
13
- * topic registered in the initial call to <code>StartSegmentDetection</code>. To get the results
14
- * of the segment detection operation, first check that the status value published to the Amazon SNS topic is <code>SUCCEEDED</code>.
15
- * if so, call <code>GetSegmentDetection</code> and pass the job identifier (<code>JobId</code>) from the initial call
16
- * of <code>StartSegmentDetection</code>.</p>
17
- * <p>
18
- * <code>GetSegmentDetection</code> returns detected segments in an array (<code>Segments</code>)
19
- * of <a>SegmentDetection</a> objects. <code>Segments</code> is sorted by the segment types
20
- * specified in the <code>SegmentTypes</code> input parameter of <code>StartSegmentDetection</code>.
21
- * Each element of the array includes the detected segment, the precentage confidence in the acuracy
22
- * of the detected segment, the type of the segment, and the frame in which the segment was detected.</p>
23
- * <p>Use <code>SelectedSegmentTypes</code> to find out the type of segment detection requested in the
24
- * call to <code>StartSegmentDetection</code>.</p>
25
- * <p>Use the <code>MaxResults</code> parameter to limit the number of segment detections returned. If there are more results than
26
- * specified in <code>MaxResults</code>, the value of <code>NextToken</code> in the operation response contains
27
- * a pagination token for getting the next set of results. To get the next page of results, call <code>GetSegmentDetection</code>
28
- * and populate the <code>NextToken</code> request parameter with the token value returned from the previous
29
- * call to <code>GetSegmentDetection</code>.</p>
30
- *
31
- * <p>For more information, see Detecting Video Segments in Stored Video in the Amazon Rekognition Developer Guide.</p>
32
- * @example
33
- * Use a bare-bones client and the command you need to make an API call.
34
- * ```javascript
35
- * import { RekognitionClient, GetSegmentDetectionCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
36
- * // const { RekognitionClient, GetSegmentDetectionCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
37
- * const client = new RekognitionClient(config);
38
- * const command = new GetSegmentDetectionCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link GetSegmentDetectionCommandInput} for command's `input` shape.
43
- * @see {@link GetSegmentDetectionCommandOutput} for command's `response` shape.
44
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
8
  class GetSegmentDetectionCommand extends smithy_client_1.Command {
48
- // Start section: command_properties
49
- // End section: command_properties
50
9
  constructor(input) {
51
- // Start section: command_constructor
52
10
  super();
53
11
  this.input = input;
54
- // End section: command_constructor
55
12
  }
56
- /**
57
- * @internal
58
- */
59
13
  resolveMiddleware(clientStack, configuration, options) {
60
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
61
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,53 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the text detection results of a Amazon Rekognition Video analysis started by <a>StartTextDetection</a>.</p>
10
- * <p>Text detection with Amazon Rekognition Video is an asynchronous operation. You start text detection by
11
- * calling <a>StartTextDetection</a> which returns a job identifier (<code>JobId</code>)
12
- * When the text detection operation finishes, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service
13
- * topic registered in the initial call to <code>StartTextDetection</code>. To get the results
14
- * of the text detection operation, first check that the status value published to the Amazon SNS topic is <code>SUCCEEDED</code>.
15
- * if so, call <code>GetTextDetection</code> and pass the job identifier (<code>JobId</code>) from the initial call
16
- * of <code>StartLabelDetection</code>.</p>
17
- * <p>
18
- * <code>GetTextDetection</code> returns an array of detected text (<code>TextDetections</code>) sorted by
19
- * the time the text was detected, up to 50 words per frame of video.</p>
20
- * <p>Each element of the array includes the detected text, the precentage confidence in the acuracy
21
- * of the detected text, the time the text was detected, bounding box information for where the text
22
- * was located, and unique identifiers for words and their lines.</p>
23
- * <p>Use MaxResults parameter to limit the number of text detections returned. If there are more results than
24
- * specified in <code>MaxResults</code>, the value of <code>NextToken</code> in the operation response contains
25
- * a pagination token for getting the next set of results. To get the next page of results, call <code>GetTextDetection</code>
26
- * and populate the <code>NextToken</code> request parameter with the token value returned from the previous
27
- * call to <code>GetTextDetection</code>.</p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { RekognitionClient, GetTextDetectionCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
32
- * // const { RekognitionClient, GetTextDetectionCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
33
- * const client = new RekognitionClient(config);
34
- * const command = new GetTextDetectionCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link GetTextDetectionCommandInput} for command's `input` shape.
39
- * @see {@link GetTextDetectionCommandOutput} for command's `response` shape.
40
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
8
  class GetTextDetectionCommand extends smithy_client_1.Command {
44
- // Start section: command_properties
45
- // End section: command_properties
46
9
  constructor(input) {
47
- // Start section: command_constructor
48
10
  super();
49
11
  this.input = input;
50
- // End section: command_constructor
51
12
  }
52
- /**
53
- * @internal
54
- */
55
13
  resolveMiddleware(clientStack, configuration, options) {
56
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
57
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,134 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Detects faces in the input image and adds them to the specified collection. </p>
10
- * <p>Amazon Rekognition doesn't save the actual faces that are detected. Instead, the underlying
11
- * detection algorithm first detects the faces in the input image. For each face, the algorithm
12
- * extracts facial features into a feature vector, and stores it in the backend database.
13
- * Amazon Rekognition uses feature vectors when it performs face match and search operations using the
14
- * <a>SearchFaces</a> and <a>SearchFacesByImage</a>
15
- * operations.</p>
16
- *
17
- * <p>For more information, see Adding Faces to a Collection in the Amazon Rekognition
18
- * Developer Guide.</p>
19
- * <p>To get the number of faces in a collection, call <a>DescribeCollection</a>. </p>
20
- *
21
- * <p>If you're using version 1.0 of the face detection model, <code>IndexFaces</code>
22
- * indexes the 15 largest faces in the input image. Later versions of the face detection model
23
- * index the 100 largest faces in the input image. </p>
24
- * <p>If you're using version 4 or later of the face model, image orientation information
25
- * is not returned in the <code>OrientationCorrection</code> field. </p>
26
- * <p>To determine which version of the model you're using, call <a>DescribeCollection</a>
27
- * and supply the collection ID. You can also get the model version from the value of <code>FaceModelVersion</code> in the response
28
- * from <code>IndexFaces</code>
29
- * </p>
30
- *
31
- * <p>For more information, see Model Versioning in the Amazon Rekognition Developer
32
- * Guide.</p>
33
- * <p>If you provide the optional <code>ExternalImageId</code> for the input image you
34
- * provided, Amazon Rekognition associates this ID with all faces that it detects. When you call the <a>ListFaces</a> operation, the response returns the external ID. You can use this
35
- * external image ID to create a client-side index to associate the faces with each image. You
36
- * can then use the index to find all faces in an image.</p>
37
- * <p>You can specify the maximum number of faces to index with the <code>MaxFaces</code> input
38
- * parameter. This is useful when you want to index the largest faces in an image and don't want to index
39
- * smaller faces, such as those belonging to people standing in the background.</p>
40
- * <p>The <code>QualityFilter</code> input parameter allows you to filter out detected faces
41
- * that don’t meet a required quality bar. The quality bar is based on a
42
- * variety of common use cases. By default, <code>IndexFaces</code> chooses the quality bar that's
43
- * used to filter faces. You can also explicitly choose
44
- * the quality bar. Use <code>QualityFilter</code>, to set the quality bar
45
- * by specifying <code>LOW</code>, <code>MEDIUM</code>, or <code>HIGH</code>.
46
- * If you do not want to filter detected faces, specify <code>NONE</code>. </p>
47
- * <note>
48
- * <p>To use quality filtering, you need a collection associated with version 3 of the
49
- * face model or higher. To get the version of the face model associated with a collection, call
50
- * <a>DescribeCollection</a>. </p>
51
- * </note>
52
- * <p>Information about faces detected in an image, but not indexed, is returned in an array of
53
- * <a>UnindexedFace</a> objects, <code>UnindexedFaces</code>. Faces aren't
54
- * indexed for reasons such as:</p>
55
- * <ul>
56
- * <li>
57
- * <p>The number of faces detected exceeds the value of the <code>MaxFaces</code> request
58
- * parameter.</p>
59
- * </li>
60
- * <li>
61
- * <p>The face is too small compared to the image dimensions.</p>
62
- * </li>
63
- * <li>
64
- * <p>The face is too blurry.</p>
65
- * </li>
66
- * <li>
67
- * <p>The image is too dark.</p>
68
- * </li>
69
- * <li>
70
- * <p>The face has an extreme pose.</p>
71
- * </li>
72
- * <li>
73
- * <p>The face doesn’t have enough detail to be suitable for face search.</p>
74
- * </li>
75
- * </ul>
76
- * <p>In response, the <code>IndexFaces</code> operation returns an array of metadata for
77
- * all detected faces, <code>FaceRecords</code>. This includes: </p>
78
- * <ul>
79
- * <li>
80
- * <p>The bounding box, <code>BoundingBox</code>, of the detected face. </p>
81
- * </li>
82
- * <li>
83
- * <p>A confidence value, <code>Confidence</code>, which indicates the confidence that the
84
- * bounding box contains a face.</p>
85
- * </li>
86
- * <li>
87
- * <p>A face ID, <code>FaceId</code>, assigned by the service for each face that's detected
88
- * and stored.</p>
89
- * </li>
90
- * <li>
91
- * <p>An image ID, <code>ImageId</code>, assigned by the service for the input image.</p>
92
- * </li>
93
- * </ul>
94
- * <p>If you request all facial attributes (by using the <code>detectionAttributes</code>
95
- * parameter), Amazon Rekognition returns detailed facial attributes, such as facial landmarks (for
96
- * example, location of eye and mouth) and other facial attributes. If you provide
97
- * the same image, specify the same collection, and use the same external ID in the
98
- * <code>IndexFaces</code> operation, Amazon Rekognition doesn't save duplicate face metadata.</p>
99
- *
100
- *
101
- * <p></p>
102
- *
103
- *
104
- * <p>The input image is passed either as base64-encoded image bytes, or as a reference to an
105
- * image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations,
106
- * passing image bytes isn't supported. The image must be formatted as a PNG or JPEG file. </p>
107
- * <p>This operation requires permissions to perform the <code>rekognition:IndexFaces</code>
108
- * action.</p>
109
- * @example
110
- * Use a bare-bones client and the command you need to make an API call.
111
- * ```javascript
112
- * import { RekognitionClient, IndexFacesCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
113
- * // const { RekognitionClient, IndexFacesCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
114
- * const client = new RekognitionClient(config);
115
- * const command = new IndexFacesCommand(input);
116
- * const response = await client.send(command);
117
- * ```
118
- *
119
- * @see {@link IndexFacesCommandInput} for command's `input` shape.
120
- * @see {@link IndexFacesCommandOutput} for command's `response` shape.
121
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
122
- *
123
- */
124
8
  class IndexFacesCommand extends smithy_client_1.Command {
125
- // Start section: command_properties
126
- // End section: command_properties
127
9
  constructor(input) {
128
- // Start section: command_constructor
129
10
  super();
130
11
  this.input = input;
131
- // End section: command_constructor
132
12
  }
133
- /**
134
- * @internal
135
- */
136
13
  resolveMiddleware(clientStack, configuration, options) {
137
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
138
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Returns list of collection IDs in your account.
10
- * If the result is truncated, the response also provides a <code>NextToken</code>
11
- * that you can use in the subsequent request to fetch the next set of collection IDs.</p>
12
- *
13
- * <p>For an example, see Listing Collections in the Amazon Rekognition Developer Guide.</p>
14
- * <p>This operation requires permissions to perform the <code>rekognition:ListCollections</code> action.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { RekognitionClient, ListCollectionsCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
19
- * // const { RekognitionClient, ListCollectionsCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
20
- * const client = new RekognitionClient(config);
21
- * const command = new ListCollectionsCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link ListCollectionsCommandInput} for command's `input` shape.
26
- * @see {@link ListCollectionsCommandOutput} for command's `response` shape.
27
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class ListCollectionsCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,42 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Returns metadata for faces in the specified collection.
10
- * This metadata includes information such as the bounding box coordinates, the confidence
11
- * (that the bounding box contains a face), and face ID. For an example, see Listing Faces in a Collection
12
- * in the Amazon Rekognition Developer Guide.</p>
13
- *
14
- *
15
- * <p>This operation requires permissions to perform the
16
- * <code>rekognition:ListFaces</code> action.</p>
17
- * @example
18
- * Use a bare-bones client and the command you need to make an API call.
19
- * ```javascript
20
- * import { RekognitionClient, ListFacesCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
21
- * // const { RekognitionClient, ListFacesCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
22
- * const client = new RekognitionClient(config);
23
- * const command = new ListFacesCommand(input);
24
- * const response = await client.send(command);
25
- * ```
26
- *
27
- * @see {@link ListFacesCommandInput} for command's `input` shape.
28
- * @see {@link ListFacesCommandOutput} for command's `response` shape.
29
- * @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
30
- *
31
- */
32
8
  class ListFacesCommand extends smithy_client_1.Command {
33
- // Start section: command_properties
34
- // End section: command_properties
35
9
  constructor(input) {
36
- // Start section: command_constructor
37
10
  super();
38
11
  this.input = input;
39
- // End section: command_constructor
40
12
  }
41
- /**
42
- * @internal
43
- */
44
13
  resolveMiddleware(clientStack, configuration, options) {
45
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
46
15
  const stack = clientStack.concat(this.middlewareStack);