@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.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/Rekognition.js +0 -3
- package/dist-cjs/RekognitionClient.js +0 -8
- package/dist-cjs/commands/CompareFacesCommand.js +0 -86
- package/dist-cjs/commands/CreateCollectionCommand.js +0 -36
- package/dist-cjs/commands/CreateProjectCommand.js +0 -26
- package/dist-cjs/commands/CreateProjectVersionCommand.js +0 -35
- package/dist-cjs/commands/CreateStreamProcessorCommand.js +0 -34
- package/dist-cjs/commands/DeleteCollectionCommand.js +0 -28
- package/dist-cjs/commands/DeleteFacesCommand.js +0 -27
- package/dist-cjs/commands/DeleteProjectCommand.js +0 -27
- package/dist-cjs/commands/DeleteProjectVersionCommand.js +0 -31
- package/dist-cjs/commands/DeleteStreamProcessorCommand.js +0 -25
- package/dist-cjs/commands/DescribeCollectionCommand.js +0 -29
- package/dist-cjs/commands/DescribeProjectVersionsCommand.js +0 -28
- package/dist-cjs/commands/DescribeProjectsCommand.js +0 -25
- package/dist-cjs/commands/DescribeStreamProcessorCommand.js +0 -25
- package/dist-cjs/commands/DetectCustomLabelsCommand.js +0 -74
- package/dist-cjs/commands/DetectFacesCommand.js +0 -46
- package/dist-cjs/commands/DetectLabelsCommand.js +0 -96
- package/dist-cjs/commands/DetectModerationLabelsCommand.js +0 -37
- package/dist-cjs/commands/DetectProtectiveEquipmentCommand.js +0 -63
- package/dist-cjs/commands/DetectTextCommand.js +0 -45
- package/dist-cjs/commands/GetCelebrityInfoCommand.js +0 -31
- package/dist-cjs/commands/GetCelebrityRecognitionCommand.js +0 -58
- package/dist-cjs/commands/GetContentModerationCommand.js +0 -53
- package/dist-cjs/commands/GetFaceDetectionCommand.js +0 -36
- package/dist-cjs/commands/GetFaceSearchCommand.js +0 -54
- package/dist-cjs/commands/GetLabelDetectionCommand.js +0 -44
- package/dist-cjs/commands/GetPersonTrackingCommand.js +0 -53
- package/dist-cjs/commands/GetSegmentDetectionCommand.js +0 -46
- package/dist-cjs/commands/GetTextDetectionCommand.js +0 -42
- package/dist-cjs/commands/IndexFacesCommand.js +0 -123
- package/dist-cjs/commands/ListCollectionsCommand.js +0 -29
- package/dist-cjs/commands/ListFacesCommand.js +0 -31
- package/dist-cjs/commands/ListStreamProcessorsCommand.js +0 -24
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -28
- package/dist-cjs/commands/RecognizeCelebritiesCommand.js +0 -54
- package/dist-cjs/commands/SearchFacesByImageCommand.js +0 -70
- package/dist-cjs/commands/SearchFacesCommand.js +0 -44
- package/dist-cjs/commands/StartCelebrityRecognitionCommand.js +0 -35
- package/dist-cjs/commands/StartContentModerationCommand.js +0 -35
- package/dist-cjs/commands/StartFaceDetectionCommand.js +0 -36
- package/dist-cjs/commands/StartFaceSearchCommand.js +0 -33
- package/dist-cjs/commands/StartLabelDetectionCommand.js +0 -38
- package/dist-cjs/commands/StartPersonTrackingCommand.js +0 -32
- package/dist-cjs/commands/StartProjectVersionCommand.js +0 -33
- package/dist-cjs/commands/StartSegmentDetectionCommand.js +0 -39
- package/dist-cjs/commands/StartStreamProcessorCommand.js +0 -26
- package/dist-cjs/commands/StartTextDetectionCommand.js +0 -31
- package/dist-cjs/commands/StopProjectVersionCommand.js +0 -25
- package/dist-cjs/commands/StopStreamProcessorCommand.js +0 -24
- package/dist-cjs/commands/TagResourceCommand.js +0 -28
- package/dist-cjs/commands/UntagResourceCommand.js +0 -28
- package/dist-cjs/commands/index.js +54 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -69
- package/dist-cjs/models/models_0.js +0 -621
- package/dist-cjs/pagination/DescribeProjectVersionsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeProjectsPaginator.js +0 -10
- package/dist-cjs/pagination/GetCelebrityRecognitionPaginator.js +0 -10
- package/dist-cjs/pagination/GetContentModerationPaginator.js +0 -10
- package/dist-cjs/pagination/GetFaceDetectionPaginator.js +0 -10
- package/dist-cjs/pagination/GetFaceSearchPaginator.js +0 -10
- package/dist-cjs/pagination/GetLabelDetectionPaginator.js +0 -10
- package/dist-cjs/pagination/GetPersonTrackingPaginator.js +0 -10
- package/dist-cjs/pagination/GetSegmentDetectionPaginator.js +0 -10
- package/dist-cjs/pagination/GetTextDetectionPaginator.js +0 -10
- package/dist-cjs/pagination/ListCollectionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListFacesPaginator.js +0 -10
- package/dist-cjs/pagination/ListStreamProcessorsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +17 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-cjs/waiters/waitForProjectVersionRunning.js +0 -9
- package/dist-cjs/waiters/waitForProjectVersionTrainingCompleted.js +0 -9
- package/dist-es/commands/index.js +51 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -69
- package/dist-es/pagination/index.js +14 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-types/commands/index.d.ts +51 -0
- package/dist-types/index.d.ts +5 -69
- package/dist-types/pagination/index.d.ts +14 -0
- package/dist-types/ts3.4/Rekognition.d.ts +52 -1018
- package/dist-types/ts3.4/RekognitionClient.d.ts +24 -89
- package/dist-types/ts3.4/commands/CompareFacesCommand.d.ts +2 -82
- package/dist-types/ts3.4/commands/CreateCollectionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateProjectVersionCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/CreateStreamProcessorCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/DeleteCollectionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteFacesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteProjectVersionCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DeleteStreamProcessorCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeCollectionCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DescribeProjectVersionsCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribeProjectsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeStreamProcessorCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectCustomLabelsCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/DetectFacesCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/DetectLabelsCommand.d.ts +2 -92
- package/dist-types/ts3.4/commands/DetectModerationLabelsCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/DetectProtectiveEquipmentCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/DetectTextCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/GetCelebrityInfoCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/GetCelebrityRecognitionCommand.d.ts +2 -54
- package/dist-types/ts3.4/commands/GetContentModerationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetFaceDetectionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/GetFaceSearchCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/GetLabelDetectionCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetPersonTrackingCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetSegmentDetectionCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/GetTextDetectionCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/IndexFacesCommand.d.ts +2 -119
- package/dist-types/ts3.4/commands/ListCollectionsCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListFacesCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListStreamProcessorsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/RecognizeCelebritiesCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/SearchFacesByImageCommand.d.ts +2 -66
- package/dist-types/ts3.4/commands/SearchFacesCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/StartCelebrityRecognitionCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/StartContentModerationCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/StartFaceDetectionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/StartFaceSearchCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StartLabelDetectionCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/StartPersonTrackingCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/StartProjectVersionCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StartSegmentDetectionCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/StartStreamProcessorCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartTextDetectionCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/StopProjectVersionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/StopStreamProcessorCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/index.d.ts +51 -0
- package/dist-types/ts3.4/index.d.ts +5 -69
- package/dist-types/ts3.4/models/models_0.d.ts +856 -3431
- package/dist-types/ts3.4/pagination/index.d.ts +14 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForProjectVersionRunning.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForProjectVersionTrainingCompleted.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +2 -0
- package/package.json +33 -33
|
@@ -5,50 +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>Starts asynchronous detection of segment detection in a stored video.</p>
|
|
10
|
-
* <p>Amazon Rekognition Video can detect segments in a video stored in an Amazon S3 bucket. Use <a>Video</a> to specify the bucket name and
|
|
11
|
-
* the filename of the video. <code>StartSegmentDetection</code> returns a job identifier (<code>JobId</code>) which you use to get
|
|
12
|
-
* the results of the operation. When segment detection is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic
|
|
13
|
-
* that you specify in <code>NotificationChannel</code>.</p>
|
|
14
|
-
* <p>You can use the <code>Filters</code> (<a>StartSegmentDetectionFilters</a>)
|
|
15
|
-
* input parameter to specify the minimum detection confidence returned in the response.
|
|
16
|
-
* Within <code>Filters</code>, use <code>ShotFilter</code> (<a>StartShotDetectionFilter</a>)
|
|
17
|
-
* to filter detected shots. Use <code>TechnicalCueFilter</code> (<a>StartTechnicalCueDetectionFilter</a>)
|
|
18
|
-
* to filter technical cues. </p>
|
|
19
|
-
* <p>To get the results of the segment detection operation, first check that the status value published to the Amazon SNS
|
|
20
|
-
* topic is <code>SUCCEEDED</code>. if so, call <a>GetSegmentDetection</a> and pass the job identifier (<code>JobId</code>)
|
|
21
|
-
* from the initial call to <code>StartSegmentDetection</code>. </p>
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* <p>For more information, see Detecting Video Segments in Stored Video in the Amazon Rekognition Developer Guide.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { RekognitionClient, StartSegmentDetectionCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
29
|
-
* // const { RekognitionClient, StartSegmentDetectionCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
30
|
-
* const client = new RekognitionClient(config);
|
|
31
|
-
* const command = new StartSegmentDetectionCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link StartSegmentDetectionCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link StartSegmentDetectionCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
8
|
class StartSegmentDetectionCommand extends smithy_client_1.Command {
|
|
41
|
-
// Start section: command_properties
|
|
42
|
-
// End section: command_properties
|
|
43
9
|
constructor(input) {
|
|
44
|
-
// Start section: command_constructor
|
|
45
10
|
super();
|
|
46
11
|
this.input = input;
|
|
47
|
-
// End section: command_constructor
|
|
48
12
|
}
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
53
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
54
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +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>Starts processing a stream processor. You create a stream processor by calling <a>CreateStreamProcessor</a>.
|
|
10
|
-
* To tell <code>StartStreamProcessor</code> which stream processor to start, use the value of the <code>Name</code> field specified in the call to
|
|
11
|
-
* <code>CreateStreamProcessor</code>.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { RekognitionClient, StartStreamProcessorCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
16
|
-
* // const { RekognitionClient, StartStreamProcessorCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
17
|
-
* const client = new RekognitionClient(config);
|
|
18
|
-
* const command = new StartStreamProcessorCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link StartStreamProcessorCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link StartStreamProcessorCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class StartStreamProcessorCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
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>Starts asynchronous detection of text in a stored video.</p>
|
|
10
|
-
* <p>Amazon Rekognition Video can detect text in a video stored in an Amazon S3 bucket. Use <a>Video</a> to specify the bucket name and
|
|
11
|
-
* the filename of the video. <code>StartTextDetection</code> returns a job identifier (<code>JobId</code>) which you use to get
|
|
12
|
-
* the results of the operation. When text detection is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic
|
|
13
|
-
* that you specify in <code>NotificationChannel</code>.</p>
|
|
14
|
-
* <p>To get the results of the text detection operation, first check that the status value published to the Amazon SNS
|
|
15
|
-
* topic is <code>SUCCEEDED</code>. if so, call <a>GetTextDetection</a> and pass the job identifier (<code>JobId</code>)
|
|
16
|
-
* from the initial call to <code>StartTextDetection</code>. </p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { RekognitionClient, StartTextDetectionCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
21
|
-
* // const { RekognitionClient, StartTextDetectionCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
22
|
-
* const client = new RekognitionClient(config);
|
|
23
|
-
* const command = new StartTextDetectionCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link StartTextDetectionCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link StartTextDetectionCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
8
|
class StartTextDetectionCommand 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);
|
|
@@ -5,36 +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>Stops a running model. The operation might take a while to complete. To
|
|
10
|
-
* check the current status, call <a>DescribeProjectVersions</a>. </p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { RekognitionClient, StopProjectVersionCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
15
|
-
* // const { RekognitionClient, StopProjectVersionCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
16
|
-
* const client = new RekognitionClient(config);
|
|
17
|
-
* const command = new StopProjectVersionCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link StopProjectVersionCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link StopProjectVersionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class StopProjectVersionCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +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>Stops a running stream processor that was created by <a>CreateStreamProcessor</a>.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { RekognitionClient, StopStreamProcessorCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
14
|
-
* // const { RekognitionClient, StopStreamProcessorCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
15
|
-
* const client = new RekognitionClient(config);
|
|
16
|
-
* const command = new StopStreamProcessorCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link StopStreamProcessorCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link StopStreamProcessorCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class StopStreamProcessorCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,39 +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>
|
|
10
|
-
* Adds one or more key-value tags to an Amazon Rekognition collection, stream processor, or Custom Labels model. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging AWS Resources</a>.
|
|
11
|
-
* </p>
|
|
12
|
-
* <p>This operation requires permissions to perform the
|
|
13
|
-
* <code>rekognition:TagResource</code> action. </p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { RekognitionClient, TagResourceCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
18
|
-
* // const { RekognitionClient, TagResourceCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
19
|
-
* const client = new RekognitionClient(config);
|
|
20
|
-
* const command = new TagResourceCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class TagResourceCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,39 +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>
|
|
10
|
-
* Removes one or more tags from an Amazon Rekognition collection, stream processor, or Custom Labels model.
|
|
11
|
-
* </p>
|
|
12
|
-
* <p>This operation requires permissions to perform the
|
|
13
|
-
* <code>rekognition:UntagResource</code> action. </p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { RekognitionClient, UntagResourceCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
18
|
-
* // const { RekognitionClient, UntagResourceCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
19
|
-
* const client = new RekognitionClient(config);
|
|
20
|
-
* const command = new UntagResourceCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link RekognitionClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class UntagResourceCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CompareFacesCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateCollectionCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./CreateProjectCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CreateProjectVersionCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./CreateStreamProcessorCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DeleteCollectionCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DeleteFacesCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DeleteProjectCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DeleteProjectVersionCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DeleteStreamProcessorCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DescribeCollectionCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./DescribeProjectVersionsCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./DescribeProjectsCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DescribeStreamProcessorCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./DetectCustomLabelsCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./DetectFacesCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./DetectLabelsCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./DetectModerationLabelsCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./DetectProtectiveEquipmentCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./DetectTextCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./GetCelebrityInfoCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./GetCelebrityRecognitionCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./GetContentModerationCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./GetFaceDetectionCommand"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./GetFaceSearchCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./GetLabelDetectionCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./GetPersonTrackingCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./GetSegmentDetectionCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./GetTextDetectionCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./IndexFacesCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./ListCollectionsCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./ListFacesCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./ListStreamProcessorsCommand"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./RecognizeCelebritiesCommand"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./SearchFacesByImageCommand"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./SearchFacesCommand"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./StartCelebrityRecognitionCommand"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./StartContentModerationCommand"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./StartFaceDetectionCommand"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./StartFaceSearchCommand"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./StartLabelDetectionCommand"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./StartPersonTrackingCommand"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./StartProjectVersionCommand"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./StartSegmentDetectionCommand"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./StartStreamProcessorCommand"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./StartTextDetectionCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./StopProjectVersionCommand"), exports);
|
|
52
|
+
tslib_1.__exportStar(require("./StopStreamProcessorCommand"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
54
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -58,22 +58,27 @@ const partitionHash = {
|
|
|
58
58
|
"us-west-1",
|
|
59
59
|
"us-west-2",
|
|
60
60
|
],
|
|
61
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
61
62
|
hostname: "rekognition.{region}.amazonaws.com",
|
|
62
63
|
},
|
|
63
64
|
"aws-cn": {
|
|
64
65
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
66
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
65
67
|
hostname: "rekognition.{region}.amazonaws.com.cn",
|
|
66
68
|
},
|
|
67
69
|
"aws-iso": {
|
|
68
|
-
regions: ["us-iso-east-1"],
|
|
70
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
71
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
69
72
|
hostname: "rekognition.{region}.c2s.ic.gov",
|
|
70
73
|
},
|
|
71
74
|
"aws-iso-b": {
|
|
72
75
|
regions: ["us-isob-east-1"],
|
|
76
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
73
77
|
hostname: "rekognition.{region}.sc2s.sgov.gov",
|
|
74
78
|
},
|
|
75
79
|
"aws-us-gov": {
|
|
76
80
|
regions: ["rekognition-fips.us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
81
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
77
82
|
hostname: "rekognition.{region}.amazonaws.com",
|
|
78
83
|
},
|
|
79
84
|
};
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,73 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./RekognitionClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./Rekognition"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./
|
|
10
|
-
tslib_1.__exportStar(require("./
|
|
11
|
-
tslib_1.__exportStar(require("./commands/DeleteCollectionCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./commands/DeleteFacesCommand"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./commands/DeleteProjectCommand"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./commands/DeleteProjectVersionCommand"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./commands/DeleteStreamProcessorCommand"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./commands/DescribeCollectionCommand"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./commands/DescribeProjectsCommand"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./pagination/DescribeProjectsPaginator"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./commands/DescribeProjectVersionsCommand"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./pagination/DescribeProjectVersionsPaginator"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./waiters/waitForProjectVersionRunning"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./waiters/waitForProjectVersionTrainingCompleted"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./commands/DescribeStreamProcessorCommand"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./commands/DetectCustomLabelsCommand"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./commands/DetectFacesCommand"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./commands/DetectLabelsCommand"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./commands/DetectModerationLabelsCommand"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./commands/DetectProtectiveEquipmentCommand"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./commands/DetectTextCommand"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./commands/GetCelebrityInfoCommand"), exports);
|
|
31
|
-
tslib_1.__exportStar(require("./commands/GetCelebrityRecognitionCommand"), exports);
|
|
32
|
-
tslib_1.__exportStar(require("./pagination/GetCelebrityRecognitionPaginator"), exports);
|
|
33
|
-
tslib_1.__exportStar(require("./commands/GetContentModerationCommand"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./pagination/GetContentModerationPaginator"), exports);
|
|
35
|
-
tslib_1.__exportStar(require("./commands/GetFaceDetectionCommand"), exports);
|
|
36
|
-
tslib_1.__exportStar(require("./pagination/GetFaceDetectionPaginator"), exports);
|
|
37
|
-
tslib_1.__exportStar(require("./commands/GetFaceSearchCommand"), exports);
|
|
38
|
-
tslib_1.__exportStar(require("./pagination/GetFaceSearchPaginator"), exports);
|
|
39
|
-
tslib_1.__exportStar(require("./commands/GetLabelDetectionCommand"), exports);
|
|
40
|
-
tslib_1.__exportStar(require("./pagination/GetLabelDetectionPaginator"), exports);
|
|
41
|
-
tslib_1.__exportStar(require("./commands/GetPersonTrackingCommand"), exports);
|
|
42
|
-
tslib_1.__exportStar(require("./pagination/GetPersonTrackingPaginator"), exports);
|
|
43
|
-
tslib_1.__exportStar(require("./commands/GetSegmentDetectionCommand"), exports);
|
|
44
|
-
tslib_1.__exportStar(require("./pagination/GetSegmentDetectionPaginator"), exports);
|
|
45
|
-
tslib_1.__exportStar(require("./commands/GetTextDetectionCommand"), exports);
|
|
46
|
-
tslib_1.__exportStar(require("./pagination/GetTextDetectionPaginator"), exports);
|
|
47
|
-
tslib_1.__exportStar(require("./commands/IndexFacesCommand"), exports);
|
|
48
|
-
tslib_1.__exportStar(require("./commands/ListCollectionsCommand"), exports);
|
|
49
|
-
tslib_1.__exportStar(require("./pagination/ListCollectionsPaginator"), exports);
|
|
50
|
-
tslib_1.__exportStar(require("./commands/ListFacesCommand"), exports);
|
|
51
|
-
tslib_1.__exportStar(require("./pagination/ListFacesPaginator"), exports);
|
|
52
|
-
tslib_1.__exportStar(require("./commands/ListStreamProcessorsCommand"), exports);
|
|
53
|
-
tslib_1.__exportStar(require("./pagination/ListStreamProcessorsPaginator"), exports);
|
|
54
|
-
tslib_1.__exportStar(require("./commands/ListTagsForResourceCommand"), exports);
|
|
55
|
-
tslib_1.__exportStar(require("./commands/RecognizeCelebritiesCommand"), exports);
|
|
56
|
-
tslib_1.__exportStar(require("./commands/SearchFacesCommand"), exports);
|
|
57
|
-
tslib_1.__exportStar(require("./commands/SearchFacesByImageCommand"), exports);
|
|
58
|
-
tslib_1.__exportStar(require("./commands/StartCelebrityRecognitionCommand"), exports);
|
|
59
|
-
tslib_1.__exportStar(require("./commands/StartContentModerationCommand"), exports);
|
|
60
|
-
tslib_1.__exportStar(require("./commands/StartFaceDetectionCommand"), exports);
|
|
61
|
-
tslib_1.__exportStar(require("./commands/StartFaceSearchCommand"), exports);
|
|
62
|
-
tslib_1.__exportStar(require("./commands/StartLabelDetectionCommand"), exports);
|
|
63
|
-
tslib_1.__exportStar(require("./commands/StartPersonTrackingCommand"), exports);
|
|
64
|
-
tslib_1.__exportStar(require("./commands/StartProjectVersionCommand"), exports);
|
|
65
|
-
tslib_1.__exportStar(require("./commands/StartSegmentDetectionCommand"), exports);
|
|
66
|
-
tslib_1.__exportStar(require("./commands/StartStreamProcessorCommand"), exports);
|
|
67
|
-
tslib_1.__exportStar(require("./commands/StartTextDetectionCommand"), exports);
|
|
68
|
-
tslib_1.__exportStar(require("./commands/StopProjectVersionCommand"), exports);
|
|
69
|
-
tslib_1.__exportStar(require("./commands/StopStreamProcessorCommand"), exports);
|
|
70
|
-
tslib_1.__exportStar(require("./commands/TagResourceCommand"), exports);
|
|
71
|
-
tslib_1.__exportStar(require("./commands/UntagResourceCommand"), exports);
|
|
72
|
-
tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
|
|
73
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./RekognitionClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./waiters"), exports);
|