Skip to content

Commit

Permalink
Updates SDK to v2.1196.0
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Aug 16, 2022
1 parent 9cca4f9 commit 7699526
Show file tree
Hide file tree
Showing 16 changed files with 1,322 additions and 435 deletions.
7 changes: 7 additions & 0 deletions .changes/2.1196.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"type": "feature",
"category": "Rekognition",
"description": "This release adds APIs which support copying an Amazon Rekognition Custom Labels model and managing project policies across AWS account."
}
]
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Changelog for AWS SDK for JavaScript
<!--LATEST=2.1195.0-->
<!--LATEST=2.1196.0-->
<!--ENTRYINSERT-->

## 2.1196.0
* feature: Rekognition: This release adds APIs which support copying an Amazon Rekognition Custom Labels model and managing project policies across AWS account.

## 2.1195.0
* feature: CloudFront: Adds Http 3 support to distributions
* feature: Wisdom: This release introduces a new API PutFeedback that allows submitting feedback to Wisdom on content relevance.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ For release notes, see the [CHANGELOG](https://github.com/aws/aws-sdk-js/blob/ma
To use the SDK in the browser, simply add the following script tag to your
HTML pages:

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1195.0.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1196.0.min.js"></script>

You can also build a custom browser SDK with your specified set of AWS services.
This can allow you to reduce the SDK's size, specify different API versions of
Expand Down
103 changes: 103 additions & 0 deletions apis/rekognition-2016-06-27.examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,36 @@
"title": "To compare two images"
}
],
"CopyProjectVersion": [
{
"input": {
"DestinationProjectArn": "arn:aws:rekognition:us-east-1:555555555555:project/DestinationProject/1656705098765",
"KmsKeyId": "arn:1234abcd-12ab-34cd-56ef-1234567890ab",
"OutputConfig": {
"S3Bucket": "bucket-name",
"S3KeyPrefix": "path_to_folder"
},
"SourceProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/16565123456",
"SourceProjectVersionArn": "arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/version/model_1/1656611123456",
"Tags": {
"key1": "val1"
},
"VersionName": "DestinationVersionName_cross_account"
},
"output": {
"ProjectVersionArn": "arn:aws:rekognition:us-east-1:555555555555:project/DestinationProject/version/DestinationVersionName_cross_account/16567050987651"
},
"comments": {
"input": {
},
"output": {
}
},
"description": "This operation copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination project.",
"id": "copyprojectversion-1658203943815",
"title": "CopyProjectVersion"
}
],
"CreateCollection": [
{
"input": {
Expand Down Expand Up @@ -117,6 +147,26 @@
"title": "To delete a face"
}
],
"DeleteProjectPolicy": [
{
"input": {
"PolicyName": "testPolicy1",
"PolicyRevisionId": "3b274c25e9203a56a99e00e3ff205fbc",
"ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/1656557123456"
},
"output": {
},
"comments": {
"input": {
},
"output": {
}
},
"description": "This operation deletes a revision of an existing project policy from an Amazon Rekognition Custom Labels project.",
"id": "deleteprojectpolicy-1658204413810",
"title": "DeleteProjectPolicy"
}
],
"DetectFaces": [
{
"input": {
Expand Down Expand Up @@ -532,6 +582,59 @@
"title": "To list the faces in a collection"
}
],
"ListProjectPolicies": [
{
"input": {
"MaxResults": 5,
"NextToken": "",
"ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929"
},
"output": {
"NextToken": "",
"ProjectPolicies": [
{
"CreationTimestamp": "2022-07-01T11:51:27.086000-07:00",
"LastUpdatedTimestamp": "2022-07-01T11:51:27.086000-07:00",
"PolicyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Statemented1\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::111122223333:root\"},\"Action\":\"rekognition:CopyProjectVersion\",\"Resource\":\"*\"}]}",
"PolicyName": "testPolicy",
"PolicyRevisionId": "3b274c25e9203a56a99e00e3ff205fbc",
"ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929"
}
]
},
"comments": {
"input": {
},
"output": {
}
},
"description": "This operation lists the project policies that are attached to an Amazon Rekognition Custom Labels project.",
"id": "listprojectpolicies-1658202290173",
"title": "ListProjectPolicies"
}
],
"PutProjectPolicy": [
{
"input": {
"PolicyDocument": "'{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"ALLOW\",\"Principal\":{\"AWS\":\"principal\"},\"Action\":\"rekognition:CopyProjectVersion\",\"Resource\":\"arn:aws:rekognition:us-east-1:123456789012:project/my-sdk-project/version/DestinationVersionName/1627045542080\"}]}'",
"PolicyName": "SamplePolicy",
"PolicyRevisionId": "0123456789abcdef",
"ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929"
},
"output": {
"PolicyRevisionId": "0123456789abcdef"
},
"comments": {
"input": {
},
"output": {
}
},
"description": "This operation attaches a project policy to a Amazon Rekognition Custom Labels project in a trusting AWS account.",
"id": "putprojectpolicy-1658201727623",
"title": "PutProjectPolicy"
}
],
"SearchFaces": [
{
"input": {
Expand Down
Loading

0 comments on commit 7699526

Please sign in to comment.