@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,54 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { de_GetAccessGrantCommand, se_GetAccessGrantCommand } from "../protocols/Aws_restXml";
|
|
8
|
+
export { $Command };
|
|
9
|
+
export class GetAccessGrantCommand extends $Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
13
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
14
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
}
|
|
25
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
26
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetAccessGrantCommand.getEndpointParameterInstructions()));
|
|
28
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
29
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
30
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
+
const { logger } = configuration;
|
|
32
|
+
const clientName = "S3ControlClient";
|
|
33
|
+
const commandName = "GetAccessGrantCommand";
|
|
34
|
+
const handlerExecutionContext = {
|
|
35
|
+
logger,
|
|
36
|
+
clientName,
|
|
37
|
+
commandName,
|
|
38
|
+
inputFilterSensitiveLog: (_) => _,
|
|
39
|
+
outputFilterSensitiveLog: (_) => _,
|
|
40
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
+
service: "AWSS3ControlServiceV20180820",
|
|
42
|
+
operation: "GetAccessGrant",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return se_GetAccessGrantCommand(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return de_GetAccessGrantCommand(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { de_GetAccessGrantsInstanceCommand, se_GetAccessGrantsInstanceCommand } from "../protocols/Aws_restXml";
|
|
8
|
+
export { $Command };
|
|
9
|
+
export class GetAccessGrantsInstanceCommand extends $Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
13
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
14
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
}
|
|
25
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
26
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetAccessGrantsInstanceCommand.getEndpointParameterInstructions()));
|
|
28
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
29
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
30
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
+
const { logger } = configuration;
|
|
32
|
+
const clientName = "S3ControlClient";
|
|
33
|
+
const commandName = "GetAccessGrantsInstanceCommand";
|
|
34
|
+
const handlerExecutionContext = {
|
|
35
|
+
logger,
|
|
36
|
+
clientName,
|
|
37
|
+
commandName,
|
|
38
|
+
inputFilterSensitiveLog: (_) => _,
|
|
39
|
+
outputFilterSensitiveLog: (_) => _,
|
|
40
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
+
service: "AWSS3ControlServiceV20180820",
|
|
42
|
+
operation: "GetAccessGrantsInstance",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return se_GetAccessGrantsInstanceCommand(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return de_GetAccessGrantsInstanceCommand(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { de_GetAccessGrantsInstanceForPrefixCommand, se_GetAccessGrantsInstanceForPrefixCommand, } from "../protocols/Aws_restXml";
|
|
8
|
+
export { $Command };
|
|
9
|
+
export class GetAccessGrantsInstanceForPrefixCommand extends $Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
13
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
14
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
}
|
|
25
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
26
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetAccessGrantsInstanceForPrefixCommand.getEndpointParameterInstructions()));
|
|
28
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
29
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
30
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
+
const { logger } = configuration;
|
|
32
|
+
const clientName = "S3ControlClient";
|
|
33
|
+
const commandName = "GetAccessGrantsInstanceForPrefixCommand";
|
|
34
|
+
const handlerExecutionContext = {
|
|
35
|
+
logger,
|
|
36
|
+
clientName,
|
|
37
|
+
commandName,
|
|
38
|
+
inputFilterSensitiveLog: (_) => _,
|
|
39
|
+
outputFilterSensitiveLog: (_) => _,
|
|
40
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
+
service: "AWSS3ControlServiceV20180820",
|
|
42
|
+
operation: "GetAccessGrantsInstanceForPrefix",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return se_GetAccessGrantsInstanceForPrefixCommand(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return de_GetAccessGrantsInstanceForPrefixCommand(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { de_GetAccessGrantsInstanceResourcePolicyCommand, se_GetAccessGrantsInstanceResourcePolicyCommand, } from "../protocols/Aws_restXml";
|
|
8
|
+
export { $Command };
|
|
9
|
+
export class GetAccessGrantsInstanceResourcePolicyCommand extends $Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
13
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
14
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
}
|
|
25
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
26
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetAccessGrantsInstanceResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
28
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
29
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
30
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
+
const { logger } = configuration;
|
|
32
|
+
const clientName = "S3ControlClient";
|
|
33
|
+
const commandName = "GetAccessGrantsInstanceResourcePolicyCommand";
|
|
34
|
+
const handlerExecutionContext = {
|
|
35
|
+
logger,
|
|
36
|
+
clientName,
|
|
37
|
+
commandName,
|
|
38
|
+
inputFilterSensitiveLog: (_) => _,
|
|
39
|
+
outputFilterSensitiveLog: (_) => _,
|
|
40
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
+
service: "AWSS3ControlServiceV20180820",
|
|
42
|
+
operation: "GetAccessGrantsInstanceResourcePolicy",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return se_GetAccessGrantsInstanceResourcePolicyCommand(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return de_GetAccessGrantsInstanceResourcePolicyCommand(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { de_GetAccessGrantsLocationCommand, se_GetAccessGrantsLocationCommand } from "../protocols/Aws_restXml";
|
|
8
|
+
export { $Command };
|
|
9
|
+
export class GetAccessGrantsLocationCommand extends $Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
13
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
14
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
}
|
|
25
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
26
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetAccessGrantsLocationCommand.getEndpointParameterInstructions()));
|
|
28
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
29
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
30
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
+
const { logger } = configuration;
|
|
32
|
+
const clientName = "S3ControlClient";
|
|
33
|
+
const commandName = "GetAccessGrantsLocationCommand";
|
|
34
|
+
const handlerExecutionContext = {
|
|
35
|
+
logger,
|
|
36
|
+
clientName,
|
|
37
|
+
commandName,
|
|
38
|
+
inputFilterSensitiveLog: (_) => _,
|
|
39
|
+
outputFilterSensitiveLog: (_) => _,
|
|
40
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
+
service: "AWSS3ControlServiceV20180820",
|
|
42
|
+
operation: "GetAccessGrantsLocation",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return se_GetAccessGrantsLocationCommand(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return de_GetAccessGrantsLocationCommand(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { GetDataAccessResultFilterSensitiveLog } from "../models/models_0";
|
|
8
|
+
import { de_GetDataAccessCommand, se_GetDataAccessCommand } from "../protocols/Aws_restXml";
|
|
9
|
+
export { $Command };
|
|
10
|
+
export class GetDataAccessCommand extends $Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
14
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
15
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
constructor(input) {
|
|
23
|
+
super();
|
|
24
|
+
this.input = input;
|
|
25
|
+
}
|
|
26
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
27
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
28
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetDataAccessCommand.getEndpointParameterInstructions()));
|
|
29
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
30
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
31
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
32
|
+
const { logger } = configuration;
|
|
33
|
+
const clientName = "S3ControlClient";
|
|
34
|
+
const commandName = "GetDataAccessCommand";
|
|
35
|
+
const handlerExecutionContext = {
|
|
36
|
+
logger,
|
|
37
|
+
clientName,
|
|
38
|
+
commandName,
|
|
39
|
+
inputFilterSensitiveLog: (_) => _,
|
|
40
|
+
outputFilterSensitiveLog: GetDataAccessResultFilterSensitiveLog,
|
|
41
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
42
|
+
service: "AWSS3ControlServiceV20180820",
|
|
43
|
+
operation: "GetDataAccess",
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
const { requestHandler } = configuration;
|
|
47
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
48
|
+
}
|
|
49
|
+
serialize(input, context) {
|
|
50
|
+
return se_GetDataAccessCommand(input, context);
|
|
51
|
+
}
|
|
52
|
+
deserialize(output, context) {
|
|
53
|
+
return de_GetDataAccessCommand(output, context);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { de_ListAccessGrantsCommand, se_ListAccessGrantsCommand } from "../protocols/Aws_restXml";
|
|
8
|
+
export { $Command };
|
|
9
|
+
export class ListAccessGrantsCommand extends $Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
13
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
14
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
}
|
|
25
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
26
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListAccessGrantsCommand.getEndpointParameterInstructions()));
|
|
28
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
29
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
30
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
+
const { logger } = configuration;
|
|
32
|
+
const clientName = "S3ControlClient";
|
|
33
|
+
const commandName = "ListAccessGrantsCommand";
|
|
34
|
+
const handlerExecutionContext = {
|
|
35
|
+
logger,
|
|
36
|
+
clientName,
|
|
37
|
+
commandName,
|
|
38
|
+
inputFilterSensitiveLog: (_) => _,
|
|
39
|
+
outputFilterSensitiveLog: (_) => _,
|
|
40
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
+
service: "AWSS3ControlServiceV20180820",
|
|
42
|
+
operation: "ListAccessGrants",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return se_ListAccessGrantsCommand(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return de_ListAccessGrantsCommand(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { de_ListAccessGrantsInstancesCommand, se_ListAccessGrantsInstancesCommand } from "../protocols/Aws_restXml";
|
|
8
|
+
export { $Command };
|
|
9
|
+
export class ListAccessGrantsInstancesCommand extends $Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
13
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
14
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
}
|
|
25
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
26
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListAccessGrantsInstancesCommand.getEndpointParameterInstructions()));
|
|
28
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
29
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
30
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
+
const { logger } = configuration;
|
|
32
|
+
const clientName = "S3ControlClient";
|
|
33
|
+
const commandName = "ListAccessGrantsInstancesCommand";
|
|
34
|
+
const handlerExecutionContext = {
|
|
35
|
+
logger,
|
|
36
|
+
clientName,
|
|
37
|
+
commandName,
|
|
38
|
+
inputFilterSensitiveLog: (_) => _,
|
|
39
|
+
outputFilterSensitiveLog: (_) => _,
|
|
40
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
+
service: "AWSS3ControlServiceV20180820",
|
|
42
|
+
operation: "ListAccessGrantsInstances",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return se_ListAccessGrantsInstancesCommand(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return de_ListAccessGrantsInstancesCommand(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { de_ListAccessGrantsLocationsCommand, se_ListAccessGrantsLocationsCommand } from "../protocols/Aws_restXml";
|
|
8
|
+
export { $Command };
|
|
9
|
+
export class ListAccessGrantsLocationsCommand extends $Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
13
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
14
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
}
|
|
25
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
26
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListAccessGrantsLocationsCommand.getEndpointParameterInstructions()));
|
|
28
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
29
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
30
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
+
const { logger } = configuration;
|
|
32
|
+
const clientName = "S3ControlClient";
|
|
33
|
+
const commandName = "ListAccessGrantsLocationsCommand";
|
|
34
|
+
const handlerExecutionContext = {
|
|
35
|
+
logger,
|
|
36
|
+
clientName,
|
|
37
|
+
commandName,
|
|
38
|
+
inputFilterSensitiveLog: (_) => _,
|
|
39
|
+
outputFilterSensitiveLog: (_) => _,
|
|
40
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
+
service: "AWSS3ControlServiceV20180820",
|
|
42
|
+
operation: "ListAccessGrantsLocations",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return se_ListAccessGrantsLocationsCommand(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return de_ListAccessGrantsLocationsCommand(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { de_PutAccessGrantsInstanceResourcePolicyCommand, se_PutAccessGrantsInstanceResourcePolicyCommand, } from "../protocols/Aws_restXml";
|
|
8
|
+
export { $Command };
|
|
9
|
+
export class PutAccessGrantsInstanceResourcePolicyCommand extends $Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
13
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
14
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
}
|
|
25
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
26
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutAccessGrantsInstanceResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
28
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
29
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
30
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
+
const { logger } = configuration;
|
|
32
|
+
const clientName = "S3ControlClient";
|
|
33
|
+
const commandName = "PutAccessGrantsInstanceResourcePolicyCommand";
|
|
34
|
+
const handlerExecutionContext = {
|
|
35
|
+
logger,
|
|
36
|
+
clientName,
|
|
37
|
+
commandName,
|
|
38
|
+
inputFilterSensitiveLog: (_) => _,
|
|
39
|
+
outputFilterSensitiveLog: (_) => _,
|
|
40
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
+
service: "AWSS3ControlServiceV20180820",
|
|
42
|
+
operation: "PutAccessGrantsInstanceResourcePolicy",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return se_PutAccessGrantsInstanceResourcePolicyCommand(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return de_PutAccessGrantsInstanceResourcePolicyCommand(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
2
|
+
import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
|
|
3
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
7
|
+
import { de_UpdateAccessGrantsLocationCommand, se_UpdateAccessGrantsLocationCommand } from "../protocols/Aws_restXml";
|
|
8
|
+
export { $Command };
|
|
9
|
+
export class UpdateAccessGrantsLocationCommand extends $Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
RequiresAccountId: { type: "staticContextParams", value: true },
|
|
13
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
14
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
}
|
|
25
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
26
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateAccessGrantsLocationCommand.getEndpointParameterInstructions()));
|
|
28
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
29
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
30
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
31
|
+
const { logger } = configuration;
|
|
32
|
+
const clientName = "S3ControlClient";
|
|
33
|
+
const commandName = "UpdateAccessGrantsLocationCommand";
|
|
34
|
+
const handlerExecutionContext = {
|
|
35
|
+
logger,
|
|
36
|
+
clientName,
|
|
37
|
+
commandName,
|
|
38
|
+
inputFilterSensitiveLog: (_) => _,
|
|
39
|
+
outputFilterSensitiveLog: (_) => _,
|
|
40
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
41
|
+
service: "AWSS3ControlServiceV20180820",
|
|
42
|
+
operation: "UpdateAccessGrantsLocation",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return se_UpdateAccessGrantsLocationCommand(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return de_UpdateAccessGrantsLocationCommand(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|