@aws-sdk/client-s3-control 3.457.0 → 3.458.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/README.md +232 -72
- package/dist-cjs/S3Control.js +40 -0
- package/dist-cjs/commands/AssociateAccessGrantsIdentityCenterCommand.js +58 -0
- package/dist-cjs/commands/CreateAccessGrantCommand.js +58 -0
- package/dist-cjs/commands/CreateAccessGrantsInstanceCommand.js +58 -0
- package/dist-cjs/commands/CreateAccessGrantsLocationCommand.js +58 -0
- package/dist-cjs/commands/DeleteAccessGrantCommand.js +58 -0
- package/dist-cjs/commands/DeleteAccessGrantsInstanceCommand.js +58 -0
- package/dist-cjs/commands/DeleteAccessGrantsInstanceResourcePolicyCommand.js +58 -0
- package/dist-cjs/commands/DeleteAccessGrantsLocationCommand.js +58 -0
- package/dist-cjs/commands/DissociateAccessGrantsIdentityCenterCommand.js +58 -0
- package/dist-cjs/commands/GetAccessGrantCommand.js +58 -0
- package/dist-cjs/commands/GetAccessGrantsInstanceCommand.js +58 -0
- package/dist-cjs/commands/GetAccessGrantsInstanceForPrefixCommand.js +58 -0
- package/dist-cjs/commands/GetAccessGrantsInstanceResourcePolicyCommand.js +58 -0
- package/dist-cjs/commands/GetAccessGrantsLocationCommand.js +58 -0
- package/dist-cjs/commands/GetDataAccessCommand.js +59 -0
- package/dist-cjs/commands/ListAccessGrantsCommand.js +58 -0
- package/dist-cjs/commands/ListAccessGrantsInstancesCommand.js +58 -0
- package/dist-cjs/commands/ListAccessGrantsLocationsCommand.js +58 -0
- package/dist-cjs/commands/PutAccessGrantsInstanceResourcePolicyCommand.js +58 -0
- package/dist-cjs/commands/UpdateAccessGrantsLocationCommand.js +58 -0
- package/dist-cjs/commands/index.js +20 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +32 -38
- package/dist-cjs/models/models_1.js +40 -0
- package/dist-cjs/pagination/ListAccessGrantsInstancesPaginator.js +29 -0
- package/dist-cjs/pagination/ListAccessGrantsLocationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListAccessGrantsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restXml.js +1697 -156
- package/dist-es/S3Control.js +40 -0
- package/dist-es/commands/AssociateAccessGrantsIdentityCenterCommand.js +54 -0
- package/dist-es/commands/CreateAccessGrantCommand.js +54 -0
- package/dist-es/commands/CreateAccessGrantsInstanceCommand.js +54 -0
- package/dist-es/commands/CreateAccessGrantsLocationCommand.js +54 -0
- package/dist-es/commands/DeleteAccessGrantCommand.js +54 -0
- package/dist-es/commands/DeleteAccessGrantsInstanceCommand.js +54 -0
- package/dist-es/commands/DeleteAccessGrantsInstanceResourcePolicyCommand.js +54 -0
- package/dist-es/commands/DeleteAccessGrantsLocationCommand.js +54 -0
- package/dist-es/commands/DissociateAccessGrantsIdentityCenterCommand.js +54 -0
- package/dist-es/commands/GetAccessGrantCommand.js +54 -0
- package/dist-es/commands/GetAccessGrantsInstanceCommand.js +54 -0
- package/dist-es/commands/GetAccessGrantsInstanceForPrefixCommand.js +54 -0
- package/dist-es/commands/GetAccessGrantsInstanceResourcePolicyCommand.js +54 -0
- package/dist-es/commands/GetAccessGrantsLocationCommand.js +54 -0
- package/dist-es/commands/GetDataAccessCommand.js +55 -0
- package/dist-es/commands/ListAccessGrantsCommand.js +54 -0
- package/dist-es/commands/ListAccessGrantsInstancesCommand.js +54 -0
- package/dist-es/commands/ListAccessGrantsLocationsCommand.js +54 -0
- package/dist-es/commands/PutAccessGrantsInstanceResourcePolicyCommand.js +54 -0
- package/dist-es/commands/UpdateAccessGrantsLocationCommand.js +54 -0
- package/dist-es/commands/index.js +20 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +28 -34
- package/dist-es/models/models_1.js +35 -0
- package/dist-es/pagination/ListAccessGrantsInstancesPaginator.js +25 -0
- package/dist-es/pagination/ListAccessGrantsLocationsPaginator.js +25 -0
- package/dist-es/pagination/ListAccessGrantsPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restXml.js +1733 -233
- package/dist-types/S3Control.d.ts +140 -0
- package/dist-types/S3ControlClient.d.ts +22 -2
- package/dist-types/commands/AssociateAccessGrantsIdentityCenterCommand.d.ts +82 -0
- package/dist-types/commands/CreateAccessGrantCommand.d.ts +118 -0
- package/dist-types/commands/CreateAccessGrantsInstanceCommand.d.ts +93 -0
- package/dist-types/commands/CreateAccessGrantsLocationCommand.d.ts +111 -0
- package/dist-types/commands/DeleteAccessGrantCommand.d.ts +78 -0
- package/dist-types/commands/DeleteAccessGrantsInstanceCommand.d.ts +77 -0
- package/dist-types/commands/DeleteAccessGrantsInstanceResourcePolicyCommand.d.ts +77 -0
- package/dist-types/commands/DeleteAccessGrantsLocationCommand.d.ts +78 -0
- package/dist-types/commands/DeleteStorageLensGroupCommand.d.ts +5 -4
- package/dist-types/commands/DissociateAccessGrantsIdentityCenterCommand.d.ts +81 -0
- package/dist-types/commands/GetAccessGrantCommand.d.ts +93 -0
- package/dist-types/commands/GetAccessGrantsInstanceCommand.d.ts +82 -0
- package/dist-types/commands/GetAccessGrantsInstanceForPrefixCommand.d.ts +85 -0
- package/dist-types/commands/GetAccessGrantsInstanceResourcePolicyCommand.d.ts +81 -0
- package/dist-types/commands/GetAccessGrantsLocationCommand.d.ts +84 -0
- package/dist-types/commands/GetDataAccessCommand.d.ts +94 -0
- package/dist-types/commands/GetStorageLensGroupCommand.d.ts +5 -4
- package/dist-types/commands/ListAccessGrantsCommand.d.ts +104 -0
- package/dist-types/commands/ListAccessGrantsInstancesCommand.d.ts +89 -0
- package/dist-types/commands/ListAccessGrantsLocationsCommand.d.ts +91 -0
- package/dist-types/commands/ListStorageLensGroupsCommand.d.ts +8 -5
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +12 -10
- package/dist-types/commands/PutAccessGrantsInstanceResourcePolicyCommand.d.ts +83 -0
- package/dist-types/commands/PutAccessPointConfigurationForObjectLambdaCommand.d.ts +1 -1
- package/dist-types/commands/PutAccessPointPolicyCommand.d.ts +1 -1
- package/dist-types/commands/PutAccessPointPolicyForObjectLambdaCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +1 -1
- package/dist-types/commands/PutJobTaggingCommand.d.ts +1 -1
- package/dist-types/commands/PutMultiRegionAccessPointPolicyCommand.d.ts +1 -1
- package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
- package/dist-types/commands/PutStorageLensConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutStorageLensConfigurationTaggingCommand.d.ts +1 -1
- package/dist-types/commands/SubmitMultiRegionAccessPointRoutesCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +12 -10
- package/dist-types/commands/UntagResourceCommand.d.ts +12 -8
- package/dist-types/commands/UpdateAccessGrantsLocationCommand.d.ts +90 -0
- package/dist-types/commands/UpdateJobPriorityCommand.d.ts +1 -1
- package/dist-types/commands/UpdateJobStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateStorageLensGroupCommand.d.ts +6 -5
- package/dist-types/commands/index.d.ts +20 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1246 -854
- package/dist-types/models/models_1.d.ts +775 -0
- package/dist-types/pagination/ListAccessGrantsInstancesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAccessGrantsLocationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAccessGrantsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restXml.d.ts +180 -0
- package/dist-types/ts3.4/S3Control.d.ts +370 -0
- package/dist-types/ts3.4/S3ControlClient.d.ts +120 -0
- package/dist-types/ts3.4/commands/AssociateAccessGrantsIdentityCenterCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateAccessGrantCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateAccessGrantsInstanceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateAccessGrantsLocationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteAccessGrantCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteAccessGrantsInstanceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteAccessGrantsInstanceResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteAccessGrantsLocationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DissociateAccessGrantsIdentityCenterCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetAccessGrantCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetAccessGrantsInstanceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAccessGrantsInstanceForPrefixCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAccessGrantsInstanceResourcePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAccessGrantsLocationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetDataAccessCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListAccessGrantsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAccessGrantsInstancesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAccessGrantsLocationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListStorageLensGroupsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutAccessGrantsInstanceResourcePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutAccessPointConfigurationForObjectLambdaCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutAccessPointPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutAccessPointPolicyForObjectLambdaCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutJobTaggingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutMultiRegionAccessPointPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutStorageLensConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutStorageLensConfigurationTaggingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SubmitMultiRegionAccessPointRoutesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAccessGrantsLocationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateJobPriorityCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateJobStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateStorageLensGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +20 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +228 -170
- package/dist-types/ts3.4/models/models_1.d.ts +205 -0
- package/dist-types/ts3.4/pagination/ListAccessGrantsInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAccessGrantsLocationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAccessGrantsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +240 -0
- package/package.json +3 -3
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetAccessGrantRequest, GetAccessGrantResult } from "../models/models_0";
|
|
5
|
+
import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAccessGrantCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAccessGrantCommandInput extends GetAccessGrantRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAccessGrantCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAccessGrantCommandOutput extends GetAccessGrantResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Get the details of an access grant from your S3 Access Grants instance.</p>
|
|
27
|
+
* <dl>
|
|
28
|
+
* <dt>Permissions</dt>
|
|
29
|
+
* <dd>
|
|
30
|
+
* <p>You must have the <code>s3:GetAccessGrant</code> permission to use this operation. </p>
|
|
31
|
+
* </dd>
|
|
32
|
+
* </dl>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { S3ControlClient, GetAccessGrantCommand } from "@aws-sdk/client-s3-control"; // ES Modules import
|
|
37
|
+
* // const { S3ControlClient, GetAccessGrantCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import
|
|
38
|
+
* const client = new S3ControlClient(config);
|
|
39
|
+
* const input = { // GetAccessGrantRequest
|
|
40
|
+
* AccountId: "STRING_VALUE",
|
|
41
|
+
* AccessGrantId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new GetAccessGrantCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // GetAccessGrantResult
|
|
46
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
47
|
+
* // AccessGrantId: "STRING_VALUE",
|
|
48
|
+
* // AccessGrantArn: "STRING_VALUE",
|
|
49
|
+
* // Grantee: { // Grantee
|
|
50
|
+
* // GranteeType: "DIRECTORY_USER" || "DIRECTORY_GROUP" || "IAM",
|
|
51
|
+
* // GranteeIdentifier: "STRING_VALUE",
|
|
52
|
+
* // },
|
|
53
|
+
* // Permission: "READ" || "WRITE" || "READWRITE",
|
|
54
|
+
* // AccessGrantsLocationId: "STRING_VALUE",
|
|
55
|
+
* // AccessGrantsLocationConfiguration: { // AccessGrantsLocationConfiguration
|
|
56
|
+
* // S3SubPrefix: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
58
|
+
* // GrantScope: "STRING_VALUE",
|
|
59
|
+
* // ApplicationArn: "STRING_VALUE",
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param GetAccessGrantCommandInput - {@link GetAccessGrantCommandInput}
|
|
65
|
+
* @returns {@link GetAccessGrantCommandOutput}
|
|
66
|
+
* @see {@link GetAccessGrantCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link GetAccessGrantCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link S3ControlClientResolvedConfig | config} for S3ControlClient's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link S3ControlServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from S3Control service.</p>
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
export declare class GetAccessGrantCommand extends $Command<GetAccessGrantCommandInput, GetAccessGrantCommandOutput, S3ControlClientResolvedConfig> {
|
|
75
|
+
readonly input: GetAccessGrantCommandInput;
|
|
76
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
constructor(input: GetAccessGrantCommandInput);
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAccessGrantCommandInput, GetAccessGrantCommandOutput>;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
private serialize;
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
private deserialize;
|
|
93
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetAccessGrantsInstanceRequest, GetAccessGrantsInstanceResult } from "../models/models_0";
|
|
5
|
+
import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAccessGrantsInstanceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAccessGrantsInstanceCommandInput extends GetAccessGrantsInstanceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAccessGrantsInstanceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAccessGrantsInstanceCommandOutput extends GetAccessGrantsInstanceResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves the S3 Access Grants instance for a Region in your account. </p>
|
|
27
|
+
* <dl>
|
|
28
|
+
* <dt>Permissions</dt>
|
|
29
|
+
* <dd>
|
|
30
|
+
* <p>You must have the <code>s3:GetAccessGrantsInstance</code> permission to use this operation. </p>
|
|
31
|
+
* </dd>
|
|
32
|
+
* </dl>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { S3ControlClient, GetAccessGrantsInstanceCommand } from "@aws-sdk/client-s3-control"; // ES Modules import
|
|
37
|
+
* // const { S3ControlClient, GetAccessGrantsInstanceCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import
|
|
38
|
+
* const client = new S3ControlClient(config);
|
|
39
|
+
* const input = { // GetAccessGrantsInstanceRequest
|
|
40
|
+
* AccountId: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetAccessGrantsInstanceCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetAccessGrantsInstanceResult
|
|
45
|
+
* // AccessGrantsInstanceArn: "STRING_VALUE",
|
|
46
|
+
* // AccessGrantsInstanceId: "STRING_VALUE",
|
|
47
|
+
* // IdentityCenterArn: "STRING_VALUE",
|
|
48
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param GetAccessGrantsInstanceCommandInput - {@link GetAccessGrantsInstanceCommandInput}
|
|
54
|
+
* @returns {@link GetAccessGrantsInstanceCommandOutput}
|
|
55
|
+
* @see {@link GetAccessGrantsInstanceCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link GetAccessGrantsInstanceCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link S3ControlClientResolvedConfig | config} for S3ControlClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link S3ControlServiceException}
|
|
60
|
+
* <p>Base exception class for all service exceptions from S3Control service.</p>
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export declare class GetAccessGrantsInstanceCommand extends $Command<GetAccessGrantsInstanceCommandInput, GetAccessGrantsInstanceCommandOutput, S3ControlClientResolvedConfig> {
|
|
64
|
+
readonly input: GetAccessGrantsInstanceCommandInput;
|
|
65
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
constructor(input: GetAccessGrantsInstanceCommandInput);
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAccessGrantsInstanceCommandInput, GetAccessGrantsInstanceCommandOutput>;
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
private serialize;
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
private deserialize;
|
|
82
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetAccessGrantsInstanceForPrefixRequest, GetAccessGrantsInstanceForPrefixResult } from "../models/models_0";
|
|
5
|
+
import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAccessGrantsInstanceForPrefixCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAccessGrantsInstanceForPrefixCommandInput extends GetAccessGrantsInstanceForPrefixRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAccessGrantsInstanceForPrefixCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAccessGrantsInstanceForPrefixCommandOutput extends GetAccessGrantsInstanceForPrefixResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieve the S3 Access Grants instance that contains a particular prefix. </p>
|
|
27
|
+
* <dl>
|
|
28
|
+
* <dt>Permissions</dt>
|
|
29
|
+
* <dd>
|
|
30
|
+
* <p>You must have the <code>s3:GetAccessGrantsInstanceForPrefix</code> permission for the caller account to use this operation. </p>
|
|
31
|
+
* </dd>
|
|
32
|
+
* <dt>Additional Permissions</dt>
|
|
33
|
+
* <dd>
|
|
34
|
+
* <p>The prefix owner account must grant you the following permissions to their S3 Access Grants instance: <code>s3:GetAccessGrantsInstanceForPrefix</code>. </p>
|
|
35
|
+
* </dd>
|
|
36
|
+
* </dl>
|
|
37
|
+
* @example
|
|
38
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
+
* ```javascript
|
|
40
|
+
* import { S3ControlClient, GetAccessGrantsInstanceForPrefixCommand } from "@aws-sdk/client-s3-control"; // ES Modules import
|
|
41
|
+
* // const { S3ControlClient, GetAccessGrantsInstanceForPrefixCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import
|
|
42
|
+
* const client = new S3ControlClient(config);
|
|
43
|
+
* const input = { // GetAccessGrantsInstanceForPrefixRequest
|
|
44
|
+
* AccountId: "STRING_VALUE",
|
|
45
|
+
* S3Prefix: "STRING_VALUE", // required
|
|
46
|
+
* };
|
|
47
|
+
* const command = new GetAccessGrantsInstanceForPrefixCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // GetAccessGrantsInstanceForPrefixResult
|
|
50
|
+
* // AccessGrantsInstanceArn: "STRING_VALUE",
|
|
51
|
+
* // AccessGrantsInstanceId: "STRING_VALUE",
|
|
52
|
+
* // };
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param GetAccessGrantsInstanceForPrefixCommandInput - {@link GetAccessGrantsInstanceForPrefixCommandInput}
|
|
57
|
+
* @returns {@link GetAccessGrantsInstanceForPrefixCommandOutput}
|
|
58
|
+
* @see {@link GetAccessGrantsInstanceForPrefixCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link GetAccessGrantsInstanceForPrefixCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link S3ControlClientResolvedConfig | config} for S3ControlClient's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link S3ControlServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from S3Control service.</p>
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export declare class GetAccessGrantsInstanceForPrefixCommand extends $Command<GetAccessGrantsInstanceForPrefixCommandInput, GetAccessGrantsInstanceForPrefixCommandOutput, S3ControlClientResolvedConfig> {
|
|
67
|
+
readonly input: GetAccessGrantsInstanceForPrefixCommandInput;
|
|
68
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
constructor(input: GetAccessGrantsInstanceForPrefixCommandInput);
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAccessGrantsInstanceForPrefixCommandInput, GetAccessGrantsInstanceForPrefixCommandOutput>;
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
private serialize;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
private deserialize;
|
|
85
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetAccessGrantsInstanceResourcePolicyRequest, GetAccessGrantsInstanceResourcePolicyResult } from "../models/models_0";
|
|
5
|
+
import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAccessGrantsInstanceResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAccessGrantsInstanceResourcePolicyCommandInput extends GetAccessGrantsInstanceResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAccessGrantsInstanceResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAccessGrantsInstanceResourcePolicyCommandOutput extends GetAccessGrantsInstanceResourcePolicyResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Returns the resource policy of the S3 Access Grants instance. </p>
|
|
27
|
+
* <dl>
|
|
28
|
+
* <dt>Permissions</dt>
|
|
29
|
+
* <dd>
|
|
30
|
+
* <p>You must have the <code>s3:GetAccessGrantsInstanceResourcePolicy</code> permission to use this operation. </p>
|
|
31
|
+
* </dd>
|
|
32
|
+
* </dl>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { S3ControlClient, GetAccessGrantsInstanceResourcePolicyCommand } from "@aws-sdk/client-s3-control"; // ES Modules import
|
|
37
|
+
* // const { S3ControlClient, GetAccessGrantsInstanceResourcePolicyCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import
|
|
38
|
+
* const client = new S3ControlClient(config);
|
|
39
|
+
* const input = { // GetAccessGrantsInstanceResourcePolicyRequest
|
|
40
|
+
* AccountId: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetAccessGrantsInstanceResourcePolicyCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetAccessGrantsInstanceResourcePolicyResult
|
|
45
|
+
* // Policy: "STRING_VALUE",
|
|
46
|
+
* // Organization: "STRING_VALUE",
|
|
47
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param GetAccessGrantsInstanceResourcePolicyCommandInput - {@link GetAccessGrantsInstanceResourcePolicyCommandInput}
|
|
53
|
+
* @returns {@link GetAccessGrantsInstanceResourcePolicyCommandOutput}
|
|
54
|
+
* @see {@link GetAccessGrantsInstanceResourcePolicyCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link GetAccessGrantsInstanceResourcePolicyCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link S3ControlClientResolvedConfig | config} for S3ControlClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link S3ControlServiceException}
|
|
59
|
+
* <p>Base exception class for all service exceptions from S3Control service.</p>
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export declare class GetAccessGrantsInstanceResourcePolicyCommand extends $Command<GetAccessGrantsInstanceResourcePolicyCommandInput, GetAccessGrantsInstanceResourcePolicyCommandOutput, S3ControlClientResolvedConfig> {
|
|
63
|
+
readonly input: GetAccessGrantsInstanceResourcePolicyCommandInput;
|
|
64
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
constructor(input: GetAccessGrantsInstanceResourcePolicyCommandInput);
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAccessGrantsInstanceResourcePolicyCommandInput, GetAccessGrantsInstanceResourcePolicyCommandOutput>;
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
private serialize;
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
private deserialize;
|
|
81
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetAccessGrantsLocationRequest, GetAccessGrantsLocationResult } from "../models/models_0";
|
|
5
|
+
import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAccessGrantsLocationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAccessGrantsLocationCommandInput extends GetAccessGrantsLocationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAccessGrantsLocationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAccessGrantsLocationCommandOutput extends GetAccessGrantsLocationResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves the details of a particular location registered in your S3 Access Grants instance. </p>
|
|
27
|
+
* <dl>
|
|
28
|
+
* <dt>Permissions</dt>
|
|
29
|
+
* <dd>
|
|
30
|
+
* <p>You must have the <code>s3:GetAccessGrantsLocation</code> permission to use this operation. </p>
|
|
31
|
+
* </dd>
|
|
32
|
+
* </dl>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { S3ControlClient, GetAccessGrantsLocationCommand } from "@aws-sdk/client-s3-control"; // ES Modules import
|
|
37
|
+
* // const { S3ControlClient, GetAccessGrantsLocationCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import
|
|
38
|
+
* const client = new S3ControlClient(config);
|
|
39
|
+
* const input = { // GetAccessGrantsLocationRequest
|
|
40
|
+
* AccountId: "STRING_VALUE",
|
|
41
|
+
* AccessGrantsLocationId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new GetAccessGrantsLocationCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // GetAccessGrantsLocationResult
|
|
46
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
47
|
+
* // AccessGrantsLocationId: "STRING_VALUE",
|
|
48
|
+
* // AccessGrantsLocationArn: "STRING_VALUE",
|
|
49
|
+
* // LocationScope: "STRING_VALUE",
|
|
50
|
+
* // IAMRoleArn: "STRING_VALUE",
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param GetAccessGrantsLocationCommandInput - {@link GetAccessGrantsLocationCommandInput}
|
|
56
|
+
* @returns {@link GetAccessGrantsLocationCommandOutput}
|
|
57
|
+
* @see {@link GetAccessGrantsLocationCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link GetAccessGrantsLocationCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link S3ControlClientResolvedConfig | config} for S3ControlClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link S3ControlServiceException}
|
|
62
|
+
* <p>Base exception class for all service exceptions from S3Control service.</p>
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
export declare class GetAccessGrantsLocationCommand extends $Command<GetAccessGrantsLocationCommandInput, GetAccessGrantsLocationCommandOutput, S3ControlClientResolvedConfig> {
|
|
66
|
+
readonly input: GetAccessGrantsLocationCommandInput;
|
|
67
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
constructor(input: GetAccessGrantsLocationCommandInput);
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAccessGrantsLocationCommandInput, GetAccessGrantsLocationCommandOutput>;
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
private serialize;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
private deserialize;
|
|
84
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetDataAccessRequest, GetDataAccessResult } from "../models/models_0";
|
|
5
|
+
import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetDataAccessCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetDataAccessCommandInput extends GetDataAccessRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetDataAccessCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetDataAccessCommandOutput extends GetDataAccessResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Returns a temporary access credential from S3 Access Grants to the grantee or client application. The <a href="https://docs.aws.amazon.com/STS/latest/APIReference/API_Credentials.html">temporary credential</a> is an Amazon Web Services STS token that grants them access to the S3 data. </p>
|
|
27
|
+
* <dl>
|
|
28
|
+
* <dt>Permissions</dt>
|
|
29
|
+
* <dd>
|
|
30
|
+
* <p>You must have the <code>s3:GetDataAccess</code> permission to use this operation. </p>
|
|
31
|
+
* </dd>
|
|
32
|
+
* <dt>Additional Permissions</dt>
|
|
33
|
+
* <dd>
|
|
34
|
+
* <p>The IAM role that S3 Access Grants assumes must have the following permissions specified in the trust policy when registering the location: <code>sts:AssumeRole</code>, for directory users or groups <code>sts:SetContext</code>, and for IAM users or roles <code>sts:SourceIdentity</code>. </p>
|
|
35
|
+
* </dd>
|
|
36
|
+
* </dl>
|
|
37
|
+
* @example
|
|
38
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
+
* ```javascript
|
|
40
|
+
* import { S3ControlClient, GetDataAccessCommand } from "@aws-sdk/client-s3-control"; // ES Modules import
|
|
41
|
+
* // const { S3ControlClient, GetDataAccessCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import
|
|
42
|
+
* const client = new S3ControlClient(config);
|
|
43
|
+
* const input = { // GetDataAccessRequest
|
|
44
|
+
* AccountId: "STRING_VALUE",
|
|
45
|
+
* Target: "STRING_VALUE", // required
|
|
46
|
+
* Permission: "READ" || "WRITE" || "READWRITE", // required
|
|
47
|
+
* DurationSeconds: Number("int"),
|
|
48
|
+
* Privilege: "Minimal" || "Default",
|
|
49
|
+
* TargetType: "Object",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new GetDataAccessCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // GetDataAccessResult
|
|
54
|
+
* // Credentials: { // Credentials
|
|
55
|
+
* // AccessKeyId: "STRING_VALUE",
|
|
56
|
+
* // SecretAccessKey: "STRING_VALUE",
|
|
57
|
+
* // SessionToken: "STRING_VALUE",
|
|
58
|
+
* // Expiration: new Date("TIMESTAMP"),
|
|
59
|
+
* // },
|
|
60
|
+
* // MatchedGrantTarget: "STRING_VALUE",
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param GetDataAccessCommandInput - {@link GetDataAccessCommandInput}
|
|
66
|
+
* @returns {@link GetDataAccessCommandOutput}
|
|
67
|
+
* @see {@link GetDataAccessCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link GetDataAccessCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link S3ControlClientResolvedConfig | config} for S3ControlClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link S3ControlServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from S3Control service.</p>
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
export declare class GetDataAccessCommand extends $Command<GetDataAccessCommandInput, GetDataAccessCommandOutput, S3ControlClientResolvedConfig> {
|
|
76
|
+
readonly input: GetDataAccessCommandInput;
|
|
77
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
78
|
+
/**
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
constructor(input: GetDataAccessCommandInput);
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDataAccessCommandInput, GetDataAccessCommandOutput>;
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
private serialize;
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
private deserialize;
|
|
94
|
+
}
|
|
@@ -23,12 +23,13 @@ export interface GetStorageLensGroupCommandOutput extends GetStorageLensGroupRes
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>
|
|
26
|
+
* <p>
|
|
27
|
+
* Retrieves the Storage Lens group configuration details.</p>
|
|
27
28
|
* <p>To use this operation, you must have the permission to perform the
|
|
28
|
-
*
|
|
29
|
-
*
|
|
29
|
+
* <code>s3:GetStorageLensGroup</code> action. For more information about the required Storage Lens
|
|
30
|
+
* Groups permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions">Setting account permissions to use S3 Storage Lens groups</a>.</p>
|
|
30
31
|
* <p>For information about Storage Lens groups errors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList">List of Amazon S3 Storage
|
|
31
|
-
*
|
|
32
|
+
* Lens error codes</a>.</p>
|
|
32
33
|
* @example
|
|
33
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
35
|
* ```javascript
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { ListAccessGrantsRequest, ListAccessGrantsResult } from "../models/models_0";
|
|
5
|
+
import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListAccessGrantsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAccessGrantsCommandInput extends ListAccessGrantsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAccessGrantsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAccessGrantsCommandOutput extends ListAccessGrantsResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Returns the list of access grants in your S3 Access Grants instance.</p>
|
|
27
|
+
* <dl>
|
|
28
|
+
* <dt>Permissions</dt>
|
|
29
|
+
* <dd>
|
|
30
|
+
* <p>You must have the <code>s3:ListAccessGrants</code> permission to use this operation. </p>
|
|
31
|
+
* </dd>
|
|
32
|
+
* </dl>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { S3ControlClient, ListAccessGrantsCommand } from "@aws-sdk/client-s3-control"; // ES Modules import
|
|
37
|
+
* // const { S3ControlClient, ListAccessGrantsCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import
|
|
38
|
+
* const client = new S3ControlClient(config);
|
|
39
|
+
* const input = { // ListAccessGrantsRequest
|
|
40
|
+
* AccountId: "STRING_VALUE",
|
|
41
|
+
* NextToken: "STRING_VALUE",
|
|
42
|
+
* MaxResults: Number("int"),
|
|
43
|
+
* GranteeType: "DIRECTORY_USER" || "DIRECTORY_GROUP" || "IAM",
|
|
44
|
+
* GranteeIdentifier: "STRING_VALUE",
|
|
45
|
+
* Permission: "READ" || "WRITE" || "READWRITE",
|
|
46
|
+
* GrantScope: "STRING_VALUE",
|
|
47
|
+
* ApplicationArn: "STRING_VALUE",
|
|
48
|
+
* };
|
|
49
|
+
* const command = new ListAccessGrantsCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // { // ListAccessGrantsResult
|
|
52
|
+
* // NextToken: "STRING_VALUE",
|
|
53
|
+
* // AccessGrantsList: [ // AccessGrantsList
|
|
54
|
+
* // { // ListAccessGrantEntry
|
|
55
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
56
|
+
* // AccessGrantId: "STRING_VALUE",
|
|
57
|
+
* // AccessGrantArn: "STRING_VALUE",
|
|
58
|
+
* // Grantee: { // Grantee
|
|
59
|
+
* // GranteeType: "DIRECTORY_USER" || "DIRECTORY_GROUP" || "IAM",
|
|
60
|
+
* // GranteeIdentifier: "STRING_VALUE",
|
|
61
|
+
* // },
|
|
62
|
+
* // Permission: "READ" || "WRITE" || "READWRITE",
|
|
63
|
+
* // AccessGrantsLocationId: "STRING_VALUE",
|
|
64
|
+
* // AccessGrantsLocationConfiguration: { // AccessGrantsLocationConfiguration
|
|
65
|
+
* // S3SubPrefix: "STRING_VALUE",
|
|
66
|
+
* // },
|
|
67
|
+
* // GrantScope: "STRING_VALUE",
|
|
68
|
+
* // ApplicationArn: "STRING_VALUE",
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // };
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param ListAccessGrantsCommandInput - {@link ListAccessGrantsCommandInput}
|
|
76
|
+
* @returns {@link ListAccessGrantsCommandOutput}
|
|
77
|
+
* @see {@link ListAccessGrantsCommandInput} for command's `input` shape.
|
|
78
|
+
* @see {@link ListAccessGrantsCommandOutput} for command's `response` shape.
|
|
79
|
+
* @see {@link S3ControlClientResolvedConfig | config} for S3ControlClient's `config` shape.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link S3ControlServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from S3Control service.</p>
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
export declare class ListAccessGrantsCommand extends $Command<ListAccessGrantsCommandInput, ListAccessGrantsCommandOutput, S3ControlClientResolvedConfig> {
|
|
86
|
+
readonly input: ListAccessGrantsCommandInput;
|
|
87
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
constructor(input: ListAccessGrantsCommandInput);
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ControlClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAccessGrantsCommandInput, ListAccessGrantsCommandOutput>;
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
private serialize;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
private deserialize;
|
|
104
|
+
}
|