Skip to content

Commit 89baba5

Browse files
author
awstools
committed
feat(client-s3-control): Updating GetDataAccess response for S3 Access Grants to include the matched Grantee for the requested prefix
1 parent d2c9f5d commit 89baba5

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

clients/client-s3-control/src/commands/GetDataAccessCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ export interface GetDataAccessCommandOutput extends GetDataAccessResult, __Metad
6565
* // Expiration: new Date("TIMESTAMP"),
6666
* // },
6767
* // MatchedGrantTarget: "STRING_VALUE",
68+
* // Grantee: { // Grantee
69+
* // GranteeType: "DIRECTORY_USER" || "DIRECTORY_GROUP" || "IAM",
70+
* // GranteeIdentifier: "STRING_VALUE",
71+
* // },
6872
* // };
6973
*
7074
* ```

clients/client-s3-control/src/models/models_0.ts

+7
Original file line numberDiff line numberDiff line change
@@ -6043,6 +6043,13 @@ export interface GetDataAccessResult {
60436043
* @public
60446044
*/
60456045
MatchedGrantTarget?: string | undefined;
6046+
6047+
/**
6048+
* <p>The user, group, or role that was granted access to the S3 location scope. For directory identities, this API also returns the grants of the IAM role used for the identity-aware request. For more information on identity-aware sessions, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_sts-setcontext.html">Granting permissions to use identity-aware console sessions</a>.
6049+
* </p>
6050+
* @public
6051+
*/
6052+
Grantee?: Grantee | undefined;
60466053
}
60476054

60486055
/**

clients/client-s3-control/src/protocols/Aws_restXml.ts

+3
Original file line numberDiff line numberDiff line change
@@ -4714,6 +4714,9 @@ export const de_GetDataAccessCommand = async (
47144714
if (data[_Cr] != null) {
47154715
contents[_Cr] = de_Credentials(data[_Cr], context);
47164716
}
4717+
if (data[_G] != null) {
4718+
contents[_G] = de_Grantee(data[_G], context);
4719+
}
47174720
if (data[_MGT] != null) {
47184721
contents[_MGT] = __expectString(data[_MGT]);
47194722
}

codegen/sdk-codegen/aws-models/s3-control.json

+6
Original file line numberDiff line numberDiff line change
@@ -11287,6 +11287,12 @@
1128711287
"traits": {
1128811288
"smithy.api#documentation": "<p>The S3 URI path of the data to which you are being granted temporary access credentials. </p>"
1128911289
}
11290+
},
11291+
"Grantee": {
11292+
"target": "com.amazonaws.s3control#Grantee",
11293+
"traits": {
11294+
"smithy.api#documentation": "<p>The user, group, or role that was granted access to the S3 location scope. For directory identities, this API also returns the grants of the IAM role used for the identity-aware request. For more information on identity-aware sessions, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_sts-setcontext.html\">Granting permissions to use identity-aware console sessions</a>.\n </p>"
11295+
}
1129011296
}
1129111297
},
1129211298
"traits": {

0 commit comments

Comments
 (0)