@aws-sdk/client-rekognition 3.150.0 → 3.159.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 +27 -0
- package/README.md +25 -0
- package/dist-cjs/Rekognition.js +60 -0
- package/dist-cjs/commands/CopyProjectVersionCommand.js +36 -0
- package/dist-cjs/commands/DeleteProjectPolicyCommand.js +36 -0
- package/dist-cjs/commands/ListProjectPoliciesCommand.js +36 -0
- package/dist-cjs/commands/PutProjectPolicyCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +111 -40
- package/dist-cjs/pagination/ListProjectPoliciesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +381 -3
- package/dist-es/Rekognition.js +60 -0
- package/dist-es/commands/CopyProjectVersionCommand.js +39 -0
- package/dist-es/commands/DeleteProjectPolicyCommand.js +39 -0
- package/dist-es/commands/ListProjectPoliciesCommand.js +39 -0
- package/dist-es/commands/PutProjectPolicyCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +86 -44
- package/dist-es/pagination/ListProjectPoliciesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +460 -1
- package/dist-types/Rekognition.d.ts +97 -4
- package/dist-types/RekognitionClient.d.ts +31 -2
- package/dist-types/commands/CopyProjectVersionCommand.d.ts +56 -0
- package/dist-types/commands/DeleteProjectCommand.d.ts +5 -4
- package/dist-types/commands/DeleteProjectPolicyCommand.d.ts +36 -0
- package/dist-types/commands/ListProjectPoliciesCommand.d.ts +36 -0
- package/dist-types/commands/PutProjectPolicyCommand.d.ts +51 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +329 -88
- package/dist-types/pagination/ListProjectPoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/Rekognition.d.ts +20 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/CopyProjectVersionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteProjectPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListProjectPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutProjectPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +169 -51
- package/dist-types/ts3.4/pagination/ListProjectPoliciesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +28 -28
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { CompareFacesCommandInput, CompareFacesCommandOutput } from "./commands/CompareFacesCommand";
|
|
3
|
+
import { CopyProjectVersionCommandInput, CopyProjectVersionCommandOutput } from "./commands/CopyProjectVersionCommand";
|
|
3
4
|
import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
|
|
4
5
|
import { CreateDatasetCommandInput, CreateDatasetCommandOutput } from "./commands/CreateDatasetCommand";
|
|
5
6
|
import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
|
|
@@ -9,6 +10,7 @@ import { DeleteCollectionCommandInput, DeleteCollectionCommandOutput } from "./c
|
|
|
9
10
|
import { DeleteDatasetCommandInput, DeleteDatasetCommandOutput } from "./commands/DeleteDatasetCommand";
|
|
10
11
|
import { DeleteFacesCommandInput, DeleteFacesCommandOutput } from "./commands/DeleteFacesCommand";
|
|
11
12
|
import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./commands/DeleteProjectCommand";
|
|
13
|
+
import { DeleteProjectPolicyCommandInput, DeleteProjectPolicyCommandOutput } from "./commands/DeleteProjectPolicyCommand";
|
|
12
14
|
import { DeleteProjectVersionCommandInput, DeleteProjectVersionCommandOutput } from "./commands/DeleteProjectVersionCommand";
|
|
13
15
|
import { DeleteStreamProcessorCommandInput, DeleteStreamProcessorCommandOutput } from "./commands/DeleteStreamProcessorCommand";
|
|
14
16
|
import { DescribeCollectionCommandInput, DescribeCollectionCommandOutput } from "./commands/DescribeCollectionCommand";
|
|
@@ -37,8 +39,10 @@ import { ListCollectionsCommandInput, ListCollectionsCommandOutput } from "./com
|
|
|
37
39
|
import { ListDatasetEntriesCommandInput, ListDatasetEntriesCommandOutput } from "./commands/ListDatasetEntriesCommand";
|
|
38
40
|
import { ListDatasetLabelsCommandInput, ListDatasetLabelsCommandOutput } from "./commands/ListDatasetLabelsCommand";
|
|
39
41
|
import { ListFacesCommandInput, ListFacesCommandOutput } from "./commands/ListFacesCommand";
|
|
42
|
+
import { ListProjectPoliciesCommandInput, ListProjectPoliciesCommandOutput } from "./commands/ListProjectPoliciesCommand";
|
|
40
43
|
import { ListStreamProcessorsCommandInput, ListStreamProcessorsCommandOutput } from "./commands/ListStreamProcessorsCommand";
|
|
41
44
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
45
|
+
import { PutProjectPolicyCommandInput, PutProjectPolicyCommandOutput } from "./commands/PutProjectPolicyCommand";
|
|
42
46
|
import { RecognizeCelebritiesCommandInput, RecognizeCelebritiesCommandOutput } from "./commands/RecognizeCelebritiesCommand";
|
|
43
47
|
import { SearchFacesByImageCommandInput, SearchFacesByImageCommandOutput } from "./commands/SearchFacesByImageCommand";
|
|
44
48
|
import { SearchFacesCommandInput, SearchFacesCommandOutput } from "./commands/SearchFacesCommand";
|
|
@@ -168,6 +172,11 @@ import { RekognitionClient } from "./RekognitionClient";
|
|
|
168
172
|
* <ul>
|
|
169
173
|
* <li>
|
|
170
174
|
* <p>
|
|
175
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CopyProjectVersion.html">CopyProjectVersion</a>
|
|
176
|
+
* </p>
|
|
177
|
+
* </li>
|
|
178
|
+
* <li>
|
|
179
|
+
* <p>
|
|
171
180
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateDataset.html">CreateDataset</a>
|
|
172
181
|
* </p>
|
|
173
182
|
* </li>
|
|
@@ -193,6 +202,11 @@ import { RekognitionClient } from "./RekognitionClient";
|
|
|
193
202
|
* </li>
|
|
194
203
|
* <li>
|
|
195
204
|
* <p>
|
|
205
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteProjectPolicy.html">DeleteProjectPolicy</a>
|
|
206
|
+
* </p>
|
|
207
|
+
* </li>
|
|
208
|
+
* <li>
|
|
209
|
+
* <p>
|
|
196
210
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteProjectVersion.html">DeleteProjectVersion</a>
|
|
197
211
|
* </p>
|
|
198
212
|
* </li>
|
|
@@ -233,6 +247,16 @@ import { RekognitionClient } from "./RekognitionClient";
|
|
|
233
247
|
* </li>
|
|
234
248
|
* <li>
|
|
235
249
|
* <p>
|
|
250
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListProjectPolicies.html">ListProjectPolicies</a>
|
|
251
|
+
* </p>
|
|
252
|
+
* </li>
|
|
253
|
+
* <li>
|
|
254
|
+
* <p>
|
|
255
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_PutProjectPolicy.html">PutProjectPolicy</a>
|
|
256
|
+
* </p>
|
|
257
|
+
* </li>
|
|
258
|
+
* <li>
|
|
259
|
+
* <p>
|
|
236
260
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartProjectVersion.html">StartProjectVersion</a>
|
|
237
261
|
* </p>
|
|
238
262
|
* </li>
|
|
@@ -371,6 +395,11 @@ import { RekognitionClient } from "./RekognitionClient";
|
|
|
371
395
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StopStreamProcessor.html">StopStreamProcessor</a>
|
|
372
396
|
* </p>
|
|
373
397
|
* </li>
|
|
398
|
+
* <li>
|
|
399
|
+
* <p>
|
|
400
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_UpdateStreamProcessor.html">UpdateStreamProcessor</a>
|
|
401
|
+
* </p>
|
|
402
|
+
* </li>
|
|
374
403
|
* </ul>
|
|
375
404
|
*/
|
|
376
405
|
export declare class Rekognition extends RekognitionClient {
|
|
@@ -442,6 +471,33 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
442
471
|
compareFaces(args: CompareFacesCommandInput, options?: __HttpHandlerOptions): Promise<CompareFacesCommandOutput>;
|
|
443
472
|
compareFaces(args: CompareFacesCommandInput, cb: (err: any, data?: CompareFacesCommandOutput) => void): void;
|
|
444
473
|
compareFaces(args: CompareFacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompareFacesCommandOutput) => void): void;
|
|
474
|
+
/**
|
|
475
|
+
* <p>Copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination project. The source and
|
|
476
|
+
* destination projects can be in different AWS accounts but must be in the same AWS Region.
|
|
477
|
+
* You can't copy a model to another AWS service.
|
|
478
|
+
*
|
|
479
|
+
* </p>
|
|
480
|
+
* <p>To copy a model version to a different AWS account, you need to create a resource-based policy known as a
|
|
481
|
+
* <i>project policy</i>. You attach the project policy to the
|
|
482
|
+
* source project by calling <a>PutProjectPolicy</a>. The project policy
|
|
483
|
+
* gives permission to copy the model version from a trusting AWS account to a trusted account.</p>
|
|
484
|
+
*
|
|
485
|
+
*
|
|
486
|
+
* <p>For more information creating and attaching a project policy, see Attaching a project policy (SDK)
|
|
487
|
+
* in the <i>Amazon Rekognition Custom Labels Developer Guide</i>.
|
|
488
|
+
* </p>
|
|
489
|
+
* <p>If you are copying a model version to a project in the same AWS account, you don't need to create a project policy.</p>
|
|
490
|
+
* <note>
|
|
491
|
+
* <p>To copy a model, the destination project, source project, and source model version must already exist.</p>
|
|
492
|
+
* </note>
|
|
493
|
+
*
|
|
494
|
+
* <p>Copying a model version takes a while to complete. To get the current status, call <a>DescribeProjectVersions</a> and check the value of <code>Status</code> in the
|
|
495
|
+
* <a>ProjectVersionDescription</a> object. The copy operation has finished when
|
|
496
|
+
* the value of <code>Status</code> is <code>COPYING_COMPLETED</code>.</p>
|
|
497
|
+
*/
|
|
498
|
+
copyProjectVersion(args: CopyProjectVersionCommandInput, options?: __HttpHandlerOptions): Promise<CopyProjectVersionCommandOutput>;
|
|
499
|
+
copyProjectVersion(args: CopyProjectVersionCommandInput, cb: (err: any, data?: CopyProjectVersionCommandOutput) => void): void;
|
|
500
|
+
copyProjectVersion(args: CopyProjectVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CopyProjectVersionCommandOutput) => void): void;
|
|
445
501
|
/**
|
|
446
502
|
* <p>Creates a collection in an AWS Region. You can add faces to the collection using the
|
|
447
503
|
* <a>IndexFaces</a> operation. </p>
|
|
@@ -608,15 +664,23 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
608
664
|
* <p>Deletes an Amazon Rekognition Custom Labels project. To delete a project you must first delete all models associated
|
|
609
665
|
* with the project. To delete a model, see <a>DeleteProjectVersion</a>.</p>
|
|
610
666
|
* <p>
|
|
611
|
-
* <code>DeleteProject</code> is an asynchronous operation. To check if the project is
|
|
612
|
-
*
|
|
613
|
-
*
|
|
667
|
+
* <code>DeleteProject</code> is an asynchronous operation. To check if the project is
|
|
668
|
+
* deleted, call <a>DescribeProjects</a>. The project is deleted when the project
|
|
669
|
+
* no longer appears in the response. Be aware that deleting a given project will also delete
|
|
670
|
+
* any <code>ProjectPolicies</code> associated with that project.</p>
|
|
614
671
|
* <p>This operation requires permissions to perform the
|
|
615
|
-
*
|
|
672
|
+
* <code>rekognition:DeleteProject</code> action. </p>
|
|
616
673
|
*/
|
|
617
674
|
deleteProject(args: DeleteProjectCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProjectCommandOutput>;
|
|
618
675
|
deleteProject(args: DeleteProjectCommandInput, cb: (err: any, data?: DeleteProjectCommandOutput) => void): void;
|
|
619
676
|
deleteProject(args: DeleteProjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProjectCommandOutput) => void): void;
|
|
677
|
+
/**
|
|
678
|
+
* <p>Deletes an existing project policy.</p>
|
|
679
|
+
* <p>To get a list of project policies attached to a project, call <a>ListProjectPolicies</a>. To attach a project policy to a project, call <a>PutProjectPolicy</a>.</p>
|
|
680
|
+
*/
|
|
681
|
+
deleteProjectPolicy(args: DeleteProjectPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProjectPolicyCommandOutput>;
|
|
682
|
+
deleteProjectPolicy(args: DeleteProjectPolicyCommandInput, cb: (err: any, data?: DeleteProjectPolicyCommandOutput) => void): void;
|
|
683
|
+
deleteProjectPolicy(args: DeleteProjectPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProjectPolicyCommandOutput) => void): void;
|
|
620
684
|
/**
|
|
621
685
|
* <p>Deletes an Amazon Rekognition Custom Labels model. </p>
|
|
622
686
|
* <p>You can't delete a model if it is running or if it is training.
|
|
@@ -1372,6 +1436,13 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
1372
1436
|
listFaces(args: ListFacesCommandInput, options?: __HttpHandlerOptions): Promise<ListFacesCommandOutput>;
|
|
1373
1437
|
listFaces(args: ListFacesCommandInput, cb: (err: any, data?: ListFacesCommandOutput) => void): void;
|
|
1374
1438
|
listFaces(args: ListFacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFacesCommandOutput) => void): void;
|
|
1439
|
+
/**
|
|
1440
|
+
* <p>Gets a list of the project policies attached to a project.</p>
|
|
1441
|
+
* <p>To attach a project policy to a project, call <a>PutProjectPolicy</a>. To remove a project policy from a project, call <a>DeleteProjectPolicy</a>.</p>
|
|
1442
|
+
*/
|
|
1443
|
+
listProjectPolicies(args: ListProjectPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListProjectPoliciesCommandOutput>;
|
|
1444
|
+
listProjectPolicies(args: ListProjectPoliciesCommandInput, cb: (err: any, data?: ListProjectPoliciesCommandOutput) => void): void;
|
|
1445
|
+
listProjectPolicies(args: ListProjectPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProjectPoliciesCommandOutput) => void): void;
|
|
1375
1446
|
/**
|
|
1376
1447
|
* <p>Gets a list of stream processors that you have created with <a>CreateStreamProcessor</a>. </p>
|
|
1377
1448
|
*/
|
|
@@ -1388,6 +1459,28 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
1388
1459
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
1389
1460
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
1390
1461
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
1462
|
+
/**
|
|
1463
|
+
* <p>Attaches a project policy to a Amazon Rekognition Custom Labels project in a trusting AWS account. A
|
|
1464
|
+
* project policy specifies that a trusted AWS account can copy a model version from a
|
|
1465
|
+
* trusting AWS account to a project in the trusted AWS account. To copy a model version you use
|
|
1466
|
+
* the <a>CopyProjectVersion</a> operation.</p>
|
|
1467
|
+
*
|
|
1468
|
+
*
|
|
1469
|
+
* <p>For more information about the format of a project policy document, see Attaching a project policy (SDK)
|
|
1470
|
+
* in the <i>Amazon Rekognition Custom Labels Developer Guide</i>.
|
|
1471
|
+
* </p>
|
|
1472
|
+
*
|
|
1473
|
+
* <p>The response from <code>PutProjectPolicy</code> is a revision ID for the project policy.
|
|
1474
|
+
* You can attach multiple project policies to a project. You can also update an existing
|
|
1475
|
+
* project policy by specifying the policy revision ID of the existing policy.</p>
|
|
1476
|
+
* <p>To remove a project policy from a project, call <a>DeleteProjectPolicy</a>.
|
|
1477
|
+
* To get a list of project policies attached to a project, call <a>ListProjectPolicies</a>. </p>
|
|
1478
|
+
*
|
|
1479
|
+
* <p>You copy a model version by calling <a>CopyProjectVersion</a>.</p>
|
|
1480
|
+
*/
|
|
1481
|
+
putProjectPolicy(args: PutProjectPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutProjectPolicyCommandOutput>;
|
|
1482
|
+
putProjectPolicy(args: PutProjectPolicyCommandInput, cb: (err: any, data?: PutProjectPolicyCommandOutput) => void): void;
|
|
1483
|
+
putProjectPolicy(args: PutProjectPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutProjectPolicyCommandOutput) => void): void;
|
|
1391
1484
|
/**
|
|
1392
1485
|
* <p>Returns an array of celebrities recognized in the input image. For more information, see Recognizing celebrities
|
|
1393
1486
|
* in the Amazon Rekognition Developer Guide. </p>
|
|
@@ -7,6 +7,7 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CompareFacesCommandInput, CompareFacesCommandOutput } from "./commands/CompareFacesCommand";
|
|
10
|
+
import { CopyProjectVersionCommandInput, CopyProjectVersionCommandOutput } from "./commands/CopyProjectVersionCommand";
|
|
10
11
|
import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
|
|
11
12
|
import { CreateDatasetCommandInput, CreateDatasetCommandOutput } from "./commands/CreateDatasetCommand";
|
|
12
13
|
import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
|
|
@@ -16,6 +17,7 @@ import { DeleteCollectionCommandInput, DeleteCollectionCommandOutput } from "./c
|
|
|
16
17
|
import { DeleteDatasetCommandInput, DeleteDatasetCommandOutput } from "./commands/DeleteDatasetCommand";
|
|
17
18
|
import { DeleteFacesCommandInput, DeleteFacesCommandOutput } from "./commands/DeleteFacesCommand";
|
|
18
19
|
import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./commands/DeleteProjectCommand";
|
|
20
|
+
import { DeleteProjectPolicyCommandInput, DeleteProjectPolicyCommandOutput } from "./commands/DeleteProjectPolicyCommand";
|
|
19
21
|
import { DeleteProjectVersionCommandInput, DeleteProjectVersionCommandOutput } from "./commands/DeleteProjectVersionCommand";
|
|
20
22
|
import { DeleteStreamProcessorCommandInput, DeleteStreamProcessorCommandOutput } from "./commands/DeleteStreamProcessorCommand";
|
|
21
23
|
import { DescribeCollectionCommandInput, DescribeCollectionCommandOutput } from "./commands/DescribeCollectionCommand";
|
|
@@ -44,8 +46,10 @@ import { ListCollectionsCommandInput, ListCollectionsCommandOutput } from "./com
|
|
|
44
46
|
import { ListDatasetEntriesCommandInput, ListDatasetEntriesCommandOutput } from "./commands/ListDatasetEntriesCommand";
|
|
45
47
|
import { ListDatasetLabelsCommandInput, ListDatasetLabelsCommandOutput } from "./commands/ListDatasetLabelsCommand";
|
|
46
48
|
import { ListFacesCommandInput, ListFacesCommandOutput } from "./commands/ListFacesCommand";
|
|
49
|
+
import { ListProjectPoliciesCommandInput, ListProjectPoliciesCommandOutput } from "./commands/ListProjectPoliciesCommand";
|
|
47
50
|
import { ListStreamProcessorsCommandInput, ListStreamProcessorsCommandOutput } from "./commands/ListStreamProcessorsCommand";
|
|
48
51
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
52
|
+
import { PutProjectPolicyCommandInput, PutProjectPolicyCommandOutput } from "./commands/PutProjectPolicyCommand";
|
|
49
53
|
import { RecognizeCelebritiesCommandInput, RecognizeCelebritiesCommandOutput } from "./commands/RecognizeCelebritiesCommand";
|
|
50
54
|
import { SearchFacesByImageCommandInput, SearchFacesByImageCommandOutput } from "./commands/SearchFacesByImageCommand";
|
|
51
55
|
import { SearchFacesCommandInput, SearchFacesCommandOutput } from "./commands/SearchFacesCommand";
|
|
@@ -65,8 +69,8 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
65
69
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
66
70
|
import { UpdateDatasetEntriesCommandInput, UpdateDatasetEntriesCommandOutput } from "./commands/UpdateDatasetEntriesCommand";
|
|
67
71
|
import { UpdateStreamProcessorCommandInput, UpdateStreamProcessorCommandOutput } from "./commands/UpdateStreamProcessorCommand";
|
|
68
|
-
export declare type ServiceInputTypes = CompareFacesCommandInput | CreateCollectionCommandInput | CreateDatasetCommandInput | CreateProjectCommandInput | CreateProjectVersionCommandInput | CreateStreamProcessorCommandInput | DeleteCollectionCommandInput | DeleteDatasetCommandInput | DeleteFacesCommandInput | DeleteProjectCommandInput | DeleteProjectVersionCommandInput | DeleteStreamProcessorCommandInput | DescribeCollectionCommandInput | DescribeDatasetCommandInput | DescribeProjectVersionsCommandInput | DescribeProjectsCommandInput | DescribeStreamProcessorCommandInput | DetectCustomLabelsCommandInput | DetectFacesCommandInput | DetectLabelsCommandInput | DetectModerationLabelsCommandInput | DetectProtectiveEquipmentCommandInput | DetectTextCommandInput | DistributeDatasetEntriesCommandInput | GetCelebrityInfoCommandInput | GetCelebrityRecognitionCommandInput | GetContentModerationCommandInput | GetFaceDetectionCommandInput | GetFaceSearchCommandInput | GetLabelDetectionCommandInput | GetPersonTrackingCommandInput | GetSegmentDetectionCommandInput | GetTextDetectionCommandInput | IndexFacesCommandInput | ListCollectionsCommandInput | ListDatasetEntriesCommandInput | ListDatasetLabelsCommandInput | ListFacesCommandInput | ListStreamProcessorsCommandInput | ListTagsForResourceCommandInput | RecognizeCelebritiesCommandInput | SearchFacesByImageCommandInput | SearchFacesCommandInput | StartCelebrityRecognitionCommandInput | StartContentModerationCommandInput | StartFaceDetectionCommandInput | StartFaceSearchCommandInput | StartLabelDetectionCommandInput | StartPersonTrackingCommandInput | StartProjectVersionCommandInput | StartSegmentDetectionCommandInput | StartStreamProcessorCommandInput | StartTextDetectionCommandInput | StopProjectVersionCommandInput | StopStreamProcessorCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDatasetEntriesCommandInput | UpdateStreamProcessorCommandInput;
|
|
69
|
-
export declare type ServiceOutputTypes = CompareFacesCommandOutput | CreateCollectionCommandOutput | CreateDatasetCommandOutput | CreateProjectCommandOutput | CreateProjectVersionCommandOutput | CreateStreamProcessorCommandOutput | DeleteCollectionCommandOutput | DeleteDatasetCommandOutput | DeleteFacesCommandOutput | DeleteProjectCommandOutput | DeleteProjectVersionCommandOutput | DeleteStreamProcessorCommandOutput | DescribeCollectionCommandOutput | DescribeDatasetCommandOutput | DescribeProjectVersionsCommandOutput | DescribeProjectsCommandOutput | DescribeStreamProcessorCommandOutput | DetectCustomLabelsCommandOutput | DetectFacesCommandOutput | DetectLabelsCommandOutput | DetectModerationLabelsCommandOutput | DetectProtectiveEquipmentCommandOutput | DetectTextCommandOutput | DistributeDatasetEntriesCommandOutput | GetCelebrityInfoCommandOutput | GetCelebrityRecognitionCommandOutput | GetContentModerationCommandOutput | GetFaceDetectionCommandOutput | GetFaceSearchCommandOutput | GetLabelDetectionCommandOutput | GetPersonTrackingCommandOutput | GetSegmentDetectionCommandOutput | GetTextDetectionCommandOutput | IndexFacesCommandOutput | ListCollectionsCommandOutput | ListDatasetEntriesCommandOutput | ListDatasetLabelsCommandOutput | ListFacesCommandOutput | ListStreamProcessorsCommandOutput | ListTagsForResourceCommandOutput | RecognizeCelebritiesCommandOutput | SearchFacesByImageCommandOutput | SearchFacesCommandOutput | StartCelebrityRecognitionCommandOutput | StartContentModerationCommandOutput | StartFaceDetectionCommandOutput | StartFaceSearchCommandOutput | StartLabelDetectionCommandOutput | StartPersonTrackingCommandOutput | StartProjectVersionCommandOutput | StartSegmentDetectionCommandOutput | StartStreamProcessorCommandOutput | StartTextDetectionCommandOutput | StopProjectVersionCommandOutput | StopStreamProcessorCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDatasetEntriesCommandOutput | UpdateStreamProcessorCommandOutput;
|
|
72
|
+
export declare type ServiceInputTypes = CompareFacesCommandInput | CopyProjectVersionCommandInput | CreateCollectionCommandInput | CreateDatasetCommandInput | CreateProjectCommandInput | CreateProjectVersionCommandInput | CreateStreamProcessorCommandInput | DeleteCollectionCommandInput | DeleteDatasetCommandInput | DeleteFacesCommandInput | DeleteProjectCommandInput | DeleteProjectPolicyCommandInput | DeleteProjectVersionCommandInput | DeleteStreamProcessorCommandInput | DescribeCollectionCommandInput | DescribeDatasetCommandInput | DescribeProjectVersionsCommandInput | DescribeProjectsCommandInput | DescribeStreamProcessorCommandInput | DetectCustomLabelsCommandInput | DetectFacesCommandInput | DetectLabelsCommandInput | DetectModerationLabelsCommandInput | DetectProtectiveEquipmentCommandInput | DetectTextCommandInput | DistributeDatasetEntriesCommandInput | GetCelebrityInfoCommandInput | GetCelebrityRecognitionCommandInput | GetContentModerationCommandInput | GetFaceDetectionCommandInput | GetFaceSearchCommandInput | GetLabelDetectionCommandInput | GetPersonTrackingCommandInput | GetSegmentDetectionCommandInput | GetTextDetectionCommandInput | IndexFacesCommandInput | ListCollectionsCommandInput | ListDatasetEntriesCommandInput | ListDatasetLabelsCommandInput | ListFacesCommandInput | ListProjectPoliciesCommandInput | ListStreamProcessorsCommandInput | ListTagsForResourceCommandInput | PutProjectPolicyCommandInput | RecognizeCelebritiesCommandInput | SearchFacesByImageCommandInput | SearchFacesCommandInput | StartCelebrityRecognitionCommandInput | StartContentModerationCommandInput | StartFaceDetectionCommandInput | StartFaceSearchCommandInput | StartLabelDetectionCommandInput | StartPersonTrackingCommandInput | StartProjectVersionCommandInput | StartSegmentDetectionCommandInput | StartStreamProcessorCommandInput | StartTextDetectionCommandInput | StopProjectVersionCommandInput | StopStreamProcessorCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDatasetEntriesCommandInput | UpdateStreamProcessorCommandInput;
|
|
73
|
+
export declare type ServiceOutputTypes = CompareFacesCommandOutput | CopyProjectVersionCommandOutput | CreateCollectionCommandOutput | CreateDatasetCommandOutput | CreateProjectCommandOutput | CreateProjectVersionCommandOutput | CreateStreamProcessorCommandOutput | DeleteCollectionCommandOutput | DeleteDatasetCommandOutput | DeleteFacesCommandOutput | DeleteProjectCommandOutput | DeleteProjectPolicyCommandOutput | DeleteProjectVersionCommandOutput | DeleteStreamProcessorCommandOutput | DescribeCollectionCommandOutput | DescribeDatasetCommandOutput | DescribeProjectVersionsCommandOutput | DescribeProjectsCommandOutput | DescribeStreamProcessorCommandOutput | DetectCustomLabelsCommandOutput | DetectFacesCommandOutput | DetectLabelsCommandOutput | DetectModerationLabelsCommandOutput | DetectProtectiveEquipmentCommandOutput | DetectTextCommandOutput | DistributeDatasetEntriesCommandOutput | GetCelebrityInfoCommandOutput | GetCelebrityRecognitionCommandOutput | GetContentModerationCommandOutput | GetFaceDetectionCommandOutput | GetFaceSearchCommandOutput | GetLabelDetectionCommandOutput | GetPersonTrackingCommandOutput | GetSegmentDetectionCommandOutput | GetTextDetectionCommandOutput | IndexFacesCommandOutput | ListCollectionsCommandOutput | ListDatasetEntriesCommandOutput | ListDatasetLabelsCommandOutput | ListFacesCommandOutput | ListProjectPoliciesCommandOutput | ListStreamProcessorsCommandOutput | ListTagsForResourceCommandOutput | PutProjectPolicyCommandOutput | RecognizeCelebritiesCommandOutput | SearchFacesByImageCommandOutput | SearchFacesCommandOutput | StartCelebrityRecognitionCommandOutput | StartContentModerationCommandOutput | StartFaceDetectionCommandOutput | StartFaceSearchCommandOutput | StartLabelDetectionCommandOutput | StartPersonTrackingCommandOutput | StartProjectVersionCommandOutput | StartSegmentDetectionCommandOutput | StartStreamProcessorCommandOutput | StartTextDetectionCommandOutput | StopProjectVersionCommandOutput | StopStreamProcessorCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDatasetEntriesCommandOutput | UpdateStreamProcessorCommandOutput;
|
|
70
74
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
71
75
|
/**
|
|
72
76
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -293,6 +297,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
|
|
|
293
297
|
* <ul>
|
|
294
298
|
* <li>
|
|
295
299
|
* <p>
|
|
300
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CopyProjectVersion.html">CopyProjectVersion</a>
|
|
301
|
+
* </p>
|
|
302
|
+
* </li>
|
|
303
|
+
* <li>
|
|
304
|
+
* <p>
|
|
296
305
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateDataset.html">CreateDataset</a>
|
|
297
306
|
* </p>
|
|
298
307
|
* </li>
|
|
@@ -318,6 +327,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
|
|
|
318
327
|
* </li>
|
|
319
328
|
* <li>
|
|
320
329
|
* <p>
|
|
330
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteProjectPolicy.html">DeleteProjectPolicy</a>
|
|
331
|
+
* </p>
|
|
332
|
+
* </li>
|
|
333
|
+
* <li>
|
|
334
|
+
* <p>
|
|
321
335
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DeleteProjectVersion.html">DeleteProjectVersion</a>
|
|
322
336
|
* </p>
|
|
323
337
|
* </li>
|
|
@@ -358,6 +372,16 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
|
|
|
358
372
|
* </li>
|
|
359
373
|
* <li>
|
|
360
374
|
* <p>
|
|
375
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_ListProjectPolicies.html">ListProjectPolicies</a>
|
|
376
|
+
* </p>
|
|
377
|
+
* </li>
|
|
378
|
+
* <li>
|
|
379
|
+
* <p>
|
|
380
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_PutProjectPolicy.html">PutProjectPolicy</a>
|
|
381
|
+
* </p>
|
|
382
|
+
* </li>
|
|
383
|
+
* <li>
|
|
384
|
+
* <p>
|
|
361
385
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StartProjectVersion.html">StartProjectVersion</a>
|
|
362
386
|
* </p>
|
|
363
387
|
* </li>
|
|
@@ -496,6 +520,11 @@ export interface RekognitionClientResolvedConfig extends RekognitionClientResolv
|
|
|
496
520
|
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StopStreamProcessor.html">StopStreamProcessor</a>
|
|
497
521
|
* </p>
|
|
498
522
|
* </li>
|
|
523
|
+
* <li>
|
|
524
|
+
* <p>
|
|
525
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/API_UpdateStreamProcessor.html">UpdateStreamProcessor</a>
|
|
526
|
+
* </p>
|
|
527
|
+
* </li>
|
|
499
528
|
* </ul>
|
|
500
529
|
*/
|
|
501
530
|
export declare class RekognitionClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, RekognitionClientResolvedConfig> {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { CopyProjectVersionRequest, CopyProjectVersionResponse } from "../models/models_0";
|
|
4
|
+
import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient";
|
|
5
|
+
export interface CopyProjectVersionCommandInput extends CopyProjectVersionRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CopyProjectVersionCommandOutput extends CopyProjectVersionResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination project. The source and
|
|
11
|
+
* destination projects can be in different AWS accounts but must be in the same AWS Region.
|
|
12
|
+
* You can't copy a model to another AWS service.
|
|
13
|
+
*
|
|
14
|
+
* </p>
|
|
15
|
+
* <p>To copy a model version to a different AWS account, you need to create a resource-based policy known as a
|
|
16
|
+
* <i>project policy</i>. You attach the project policy to the
|
|
17
|
+
* source project by calling <a>PutProjectPolicy</a>. The project policy
|
|
18
|
+
* gives permission to copy the model version from a trusting AWS account to a trusted account.</p>
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
* <p>For more information creating and attaching a project policy, see Attaching a project policy (SDK)
|
|
22
|
+
* in the <i>Amazon Rekognition Custom Labels Developer Guide</i>.
|
|
23
|
+
* </p>
|
|
24
|
+
* <p>If you are copying a model version to a project in the same AWS account, you don't need to create a project policy.</p>
|
|
25
|
+
* <note>
|
|
26
|
+
* <p>To copy a model, the destination project, source project, and source model version must already exist.</p>
|
|
27
|
+
* </note>
|
|
28
|
+
*
|
|
29
|
+
* <p>Copying a model version takes a while to complete. To get the current status, call <a>DescribeProjectVersions</a> and check the value of <code>Status</code> in the
|
|
30
|
+
* <a>ProjectVersionDescription</a> object. The copy operation has finished when
|
|
31
|
+
* the value of <code>Status</code> is <code>COPYING_COMPLETED</code>.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { RekognitionClient, CopyProjectVersionCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
36
|
+
* // const { RekognitionClient, CopyProjectVersionCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
37
|
+
* const client = new RekognitionClient(config);
|
|
38
|
+
* const command = new CopyProjectVersionCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @see {@link CopyProjectVersionCommandInput} for command's `input` shape.
|
|
43
|
+
* @see {@link CopyProjectVersionCommandOutput} for command's `response` shape.
|
|
44
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export declare class CopyProjectVersionCommand extends $Command<CopyProjectVersionCommandInput, CopyProjectVersionCommandOutput, RekognitionClientResolvedConfig> {
|
|
48
|
+
readonly input: CopyProjectVersionCommandInput;
|
|
49
|
+
constructor(input: CopyProjectVersionCommandInput);
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CopyProjectVersionCommandInput, CopyProjectVersionCommandOutput>;
|
|
54
|
+
private serialize;
|
|
55
|
+
private deserialize;
|
|
56
|
+
}
|
|
@@ -10,11 +10,12 @@ export interface DeleteProjectCommandOutput extends DeleteProjectResponse, __Met
|
|
|
10
10
|
* <p>Deletes an Amazon Rekognition Custom Labels project. To delete a project you must first delete all models associated
|
|
11
11
|
* with the project. To delete a model, see <a>DeleteProjectVersion</a>.</p>
|
|
12
12
|
* <p>
|
|
13
|
-
* <code>DeleteProject</code> is an asynchronous operation. To check if the project is
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* <code>DeleteProject</code> is an asynchronous operation. To check if the project is
|
|
14
|
+
* deleted, call <a>DescribeProjects</a>. The project is deleted when the project
|
|
15
|
+
* no longer appears in the response. Be aware that deleting a given project will also delete
|
|
16
|
+
* any <code>ProjectPolicies</code> associated with that project.</p>
|
|
16
17
|
* <p>This operation requires permissions to perform the
|
|
17
|
-
*
|
|
18
|
+
* <code>rekognition:DeleteProject</code> action. </p>
|
|
18
19
|
* @example
|
|
19
20
|
* Use a bare-bones client and the command you need to make an API call.
|
|
20
21
|
* ```javascript
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { DeleteProjectPolicyRequest, DeleteProjectPolicyResponse } from "../models/models_0";
|
|
4
|
+
import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient";
|
|
5
|
+
export interface DeleteProjectPolicyCommandInput extends DeleteProjectPolicyRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteProjectPolicyCommandOutput extends DeleteProjectPolicyResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Deletes an existing project policy.</p>
|
|
11
|
+
* <p>To get a list of project policies attached to a project, call <a>ListProjectPolicies</a>. To attach a project policy to a project, call <a>PutProjectPolicy</a>.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { RekognitionClient, DeleteProjectPolicyCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
16
|
+
* // const { RekognitionClient, DeleteProjectPolicyCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
17
|
+
* const client = new RekognitionClient(config);
|
|
18
|
+
* const command = new DeleteProjectPolicyCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link DeleteProjectPolicyCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link DeleteProjectPolicyCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class DeleteProjectPolicyCommand extends $Command<DeleteProjectPolicyCommandInput, DeleteProjectPolicyCommandOutput, RekognitionClientResolvedConfig> {
|
|
28
|
+
readonly input: DeleteProjectPolicyCommandInput;
|
|
29
|
+
constructor(input: DeleteProjectPolicyCommandInput);
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteProjectPolicyCommandInput, DeleteProjectPolicyCommandOutput>;
|
|
34
|
+
private serialize;
|
|
35
|
+
private deserialize;
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ListProjectPoliciesRequest, ListProjectPoliciesResponse } from "../models/models_0";
|
|
4
|
+
import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient";
|
|
5
|
+
export interface ListProjectPoliciesCommandInput extends ListProjectPoliciesRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListProjectPoliciesCommandOutput extends ListProjectPoliciesResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Gets a list of the project policies attached to a project.</p>
|
|
11
|
+
* <p>To attach a project policy to a project, call <a>PutProjectPolicy</a>. To remove a project policy from a project, call <a>DeleteProjectPolicy</a>.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { RekognitionClient, ListProjectPoliciesCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
16
|
+
* // const { RekognitionClient, ListProjectPoliciesCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
17
|
+
* const client = new RekognitionClient(config);
|
|
18
|
+
* const command = new ListProjectPoliciesCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link ListProjectPoliciesCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link ListProjectPoliciesCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class ListProjectPoliciesCommand extends $Command<ListProjectPoliciesCommandInput, ListProjectPoliciesCommandOutput, RekognitionClientResolvedConfig> {
|
|
28
|
+
readonly input: ListProjectPoliciesCommandInput;
|
|
29
|
+
constructor(input: ListProjectPoliciesCommandInput);
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListProjectPoliciesCommandInput, ListProjectPoliciesCommandOutput>;
|
|
34
|
+
private serialize;
|
|
35
|
+
private deserialize;
|
|
36
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { PutProjectPolicyRequest, PutProjectPolicyResponse } from "../models/models_0";
|
|
4
|
+
import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient";
|
|
5
|
+
export interface PutProjectPolicyCommandInput extends PutProjectPolicyRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface PutProjectPolicyCommandOutput extends PutProjectPolicyResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Attaches a project policy to a Amazon Rekognition Custom Labels project in a trusting AWS account. A
|
|
11
|
+
* project policy specifies that a trusted AWS account can copy a model version from a
|
|
12
|
+
* trusting AWS account to a project in the trusted AWS account. To copy a model version you use
|
|
13
|
+
* the <a>CopyProjectVersion</a> operation.</p>
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* <p>For more information about the format of a project policy document, see Attaching a project policy (SDK)
|
|
17
|
+
* in the <i>Amazon Rekognition Custom Labels Developer Guide</i>.
|
|
18
|
+
* </p>
|
|
19
|
+
*
|
|
20
|
+
* <p>The response from <code>PutProjectPolicy</code> is a revision ID for the project policy.
|
|
21
|
+
* You can attach multiple project policies to a project. You can also update an existing
|
|
22
|
+
* project policy by specifying the policy revision ID of the existing policy.</p>
|
|
23
|
+
* <p>To remove a project policy from a project, call <a>DeleteProjectPolicy</a>.
|
|
24
|
+
* To get a list of project policies attached to a project, call <a>ListProjectPolicies</a>. </p>
|
|
25
|
+
*
|
|
26
|
+
* <p>You copy a model version by calling <a>CopyProjectVersion</a>.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { RekognitionClient, PutProjectPolicyCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
31
|
+
* // const { RekognitionClient, PutProjectPolicyCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
32
|
+
* const client = new RekognitionClient(config);
|
|
33
|
+
* const command = new PutProjectPolicyCommand(input);
|
|
34
|
+
* const response = await client.send(command);
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @see {@link PutProjectPolicyCommandInput} for command's `input` shape.
|
|
38
|
+
* @see {@link PutProjectPolicyCommandOutput} for command's `response` shape.
|
|
39
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export declare class PutProjectPolicyCommand extends $Command<PutProjectPolicyCommandInput, PutProjectPolicyCommandOutput, RekognitionClientResolvedConfig> {
|
|
43
|
+
readonly input: PutProjectPolicyCommandInput;
|
|
44
|
+
constructor(input: PutProjectPolicyCommandInput);
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutProjectPolicyCommandInput, PutProjectPolicyCommandOutput>;
|
|
49
|
+
private serialize;
|
|
50
|
+
private deserialize;
|
|
51
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./CompareFacesCommand";
|
|
2
|
+
export * from "./CopyProjectVersionCommand";
|
|
2
3
|
export * from "./CreateCollectionCommand";
|
|
3
4
|
export * from "./CreateDatasetCommand";
|
|
4
5
|
export * from "./CreateProjectCommand";
|
|
@@ -8,6 +9,7 @@ export * from "./DeleteCollectionCommand";
|
|
|
8
9
|
export * from "./DeleteDatasetCommand";
|
|
9
10
|
export * from "./DeleteFacesCommand";
|
|
10
11
|
export * from "./DeleteProjectCommand";
|
|
12
|
+
export * from "./DeleteProjectPolicyCommand";
|
|
11
13
|
export * from "./DeleteProjectVersionCommand";
|
|
12
14
|
export * from "./DeleteStreamProcessorCommand";
|
|
13
15
|
export * from "./DescribeCollectionCommand";
|
|
@@ -36,8 +38,10 @@ export * from "./ListCollectionsCommand";
|
|
|
36
38
|
export * from "./ListDatasetEntriesCommand";
|
|
37
39
|
export * from "./ListDatasetLabelsCommand";
|
|
38
40
|
export * from "./ListFacesCommand";
|
|
41
|
+
export * from "./ListProjectPoliciesCommand";
|
|
39
42
|
export * from "./ListStreamProcessorsCommand";
|
|
40
43
|
export * from "./ListTagsForResourceCommand";
|
|
44
|
+
export * from "./PutProjectPolicyCommand";
|
|
41
45
|
export * from "./RecognizeCelebritiesCommand";
|
|
42
46
|
export * from "./SearchFacesByImageCommand";
|
|
43
47
|
export * from "./SearchFacesCommand";
|