@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.
Files changed (168) hide show
  1. package/README.md +232 -72
  2. package/dist-cjs/S3Control.js +40 -0
  3. package/dist-cjs/commands/AssociateAccessGrantsIdentityCenterCommand.js +58 -0
  4. package/dist-cjs/commands/CreateAccessGrantCommand.js +58 -0
  5. package/dist-cjs/commands/CreateAccessGrantsInstanceCommand.js +58 -0
  6. package/dist-cjs/commands/CreateAccessGrantsLocationCommand.js +58 -0
  7. package/dist-cjs/commands/DeleteAccessGrantCommand.js +58 -0
  8. package/dist-cjs/commands/DeleteAccessGrantsInstanceCommand.js +58 -0
  9. package/dist-cjs/commands/DeleteAccessGrantsInstanceResourcePolicyCommand.js +58 -0
  10. package/dist-cjs/commands/DeleteAccessGrantsLocationCommand.js +58 -0
  11. package/dist-cjs/commands/DissociateAccessGrantsIdentityCenterCommand.js +58 -0
  12. package/dist-cjs/commands/GetAccessGrantCommand.js +58 -0
  13. package/dist-cjs/commands/GetAccessGrantsInstanceCommand.js +58 -0
  14. package/dist-cjs/commands/GetAccessGrantsInstanceForPrefixCommand.js +58 -0
  15. package/dist-cjs/commands/GetAccessGrantsInstanceResourcePolicyCommand.js +58 -0
  16. package/dist-cjs/commands/GetAccessGrantsLocationCommand.js +58 -0
  17. package/dist-cjs/commands/GetDataAccessCommand.js +59 -0
  18. package/dist-cjs/commands/ListAccessGrantsCommand.js +58 -0
  19. package/dist-cjs/commands/ListAccessGrantsInstancesCommand.js +58 -0
  20. package/dist-cjs/commands/ListAccessGrantsLocationsCommand.js +58 -0
  21. package/dist-cjs/commands/PutAccessGrantsInstanceResourcePolicyCommand.js +58 -0
  22. package/dist-cjs/commands/UpdateAccessGrantsLocationCommand.js +58 -0
  23. package/dist-cjs/commands/index.js +20 -0
  24. package/dist-cjs/models/index.js +1 -0
  25. package/dist-cjs/models/models_0.js +32 -38
  26. package/dist-cjs/models/models_1.js +40 -0
  27. package/dist-cjs/pagination/ListAccessGrantsInstancesPaginator.js +29 -0
  28. package/dist-cjs/pagination/ListAccessGrantsLocationsPaginator.js +29 -0
  29. package/dist-cjs/pagination/ListAccessGrantsPaginator.js +29 -0
  30. package/dist-cjs/pagination/index.js +3 -0
  31. package/dist-cjs/protocols/Aws_restXml.js +1697 -156
  32. package/dist-es/S3Control.js +40 -0
  33. package/dist-es/commands/AssociateAccessGrantsIdentityCenterCommand.js +54 -0
  34. package/dist-es/commands/CreateAccessGrantCommand.js +54 -0
  35. package/dist-es/commands/CreateAccessGrantsInstanceCommand.js +54 -0
  36. package/dist-es/commands/CreateAccessGrantsLocationCommand.js +54 -0
  37. package/dist-es/commands/DeleteAccessGrantCommand.js +54 -0
  38. package/dist-es/commands/DeleteAccessGrantsInstanceCommand.js +54 -0
  39. package/dist-es/commands/DeleteAccessGrantsInstanceResourcePolicyCommand.js +54 -0
  40. package/dist-es/commands/DeleteAccessGrantsLocationCommand.js +54 -0
  41. package/dist-es/commands/DissociateAccessGrantsIdentityCenterCommand.js +54 -0
  42. package/dist-es/commands/GetAccessGrantCommand.js +54 -0
  43. package/dist-es/commands/GetAccessGrantsInstanceCommand.js +54 -0
  44. package/dist-es/commands/GetAccessGrantsInstanceForPrefixCommand.js +54 -0
  45. package/dist-es/commands/GetAccessGrantsInstanceResourcePolicyCommand.js +54 -0
  46. package/dist-es/commands/GetAccessGrantsLocationCommand.js +54 -0
  47. package/dist-es/commands/GetDataAccessCommand.js +55 -0
  48. package/dist-es/commands/ListAccessGrantsCommand.js +54 -0
  49. package/dist-es/commands/ListAccessGrantsInstancesCommand.js +54 -0
  50. package/dist-es/commands/ListAccessGrantsLocationsCommand.js +54 -0
  51. package/dist-es/commands/PutAccessGrantsInstanceResourcePolicyCommand.js +54 -0
  52. package/dist-es/commands/UpdateAccessGrantsLocationCommand.js +54 -0
  53. package/dist-es/commands/index.js +20 -0
  54. package/dist-es/models/index.js +1 -0
  55. package/dist-es/models/models_0.js +28 -34
  56. package/dist-es/models/models_1.js +35 -0
  57. package/dist-es/pagination/ListAccessGrantsInstancesPaginator.js +25 -0
  58. package/dist-es/pagination/ListAccessGrantsLocationsPaginator.js +25 -0
  59. package/dist-es/pagination/ListAccessGrantsPaginator.js +25 -0
  60. package/dist-es/pagination/index.js +3 -0
  61. package/dist-es/protocols/Aws_restXml.js +1733 -233
  62. package/dist-types/S3Control.d.ts +140 -0
  63. package/dist-types/S3ControlClient.d.ts +22 -2
  64. package/dist-types/commands/AssociateAccessGrantsIdentityCenterCommand.d.ts +82 -0
  65. package/dist-types/commands/CreateAccessGrantCommand.d.ts +118 -0
  66. package/dist-types/commands/CreateAccessGrantsInstanceCommand.d.ts +93 -0
  67. package/dist-types/commands/CreateAccessGrantsLocationCommand.d.ts +111 -0
  68. package/dist-types/commands/DeleteAccessGrantCommand.d.ts +78 -0
  69. package/dist-types/commands/DeleteAccessGrantsInstanceCommand.d.ts +77 -0
  70. package/dist-types/commands/DeleteAccessGrantsInstanceResourcePolicyCommand.d.ts +77 -0
  71. package/dist-types/commands/DeleteAccessGrantsLocationCommand.d.ts +78 -0
  72. package/dist-types/commands/DeleteStorageLensGroupCommand.d.ts +5 -4
  73. package/dist-types/commands/DissociateAccessGrantsIdentityCenterCommand.d.ts +81 -0
  74. package/dist-types/commands/GetAccessGrantCommand.d.ts +93 -0
  75. package/dist-types/commands/GetAccessGrantsInstanceCommand.d.ts +82 -0
  76. package/dist-types/commands/GetAccessGrantsInstanceForPrefixCommand.d.ts +85 -0
  77. package/dist-types/commands/GetAccessGrantsInstanceResourcePolicyCommand.d.ts +81 -0
  78. package/dist-types/commands/GetAccessGrantsLocationCommand.d.ts +84 -0
  79. package/dist-types/commands/GetDataAccessCommand.d.ts +94 -0
  80. package/dist-types/commands/GetStorageLensGroupCommand.d.ts +5 -4
  81. package/dist-types/commands/ListAccessGrantsCommand.d.ts +104 -0
  82. package/dist-types/commands/ListAccessGrantsInstancesCommand.d.ts +89 -0
  83. package/dist-types/commands/ListAccessGrantsLocationsCommand.d.ts +91 -0
  84. package/dist-types/commands/ListStorageLensGroupsCommand.d.ts +8 -5
  85. package/dist-types/commands/ListTagsForResourceCommand.d.ts +12 -10
  86. package/dist-types/commands/PutAccessGrantsInstanceResourcePolicyCommand.d.ts +83 -0
  87. package/dist-types/commands/PutAccessPointConfigurationForObjectLambdaCommand.d.ts +1 -1
  88. package/dist-types/commands/PutAccessPointPolicyCommand.d.ts +1 -1
  89. package/dist-types/commands/PutAccessPointPolicyForObjectLambdaCommand.d.ts +1 -1
  90. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
  91. package/dist-types/commands/PutBucketPolicyCommand.d.ts +1 -1
  92. package/dist-types/commands/PutBucketReplicationCommand.d.ts +1 -1
  93. package/dist-types/commands/PutBucketTaggingCommand.d.ts +1 -1
  94. package/dist-types/commands/PutBucketVersioningCommand.d.ts +1 -1
  95. package/dist-types/commands/PutJobTaggingCommand.d.ts +1 -1
  96. package/dist-types/commands/PutMultiRegionAccessPointPolicyCommand.d.ts +1 -1
  97. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  98. package/dist-types/commands/PutStorageLensConfigurationCommand.d.ts +1 -1
  99. package/dist-types/commands/PutStorageLensConfigurationTaggingCommand.d.ts +1 -1
  100. package/dist-types/commands/SubmitMultiRegionAccessPointRoutesCommand.d.ts +1 -1
  101. package/dist-types/commands/TagResourceCommand.d.ts +12 -10
  102. package/dist-types/commands/UntagResourceCommand.d.ts +12 -8
  103. package/dist-types/commands/UpdateAccessGrantsLocationCommand.d.ts +90 -0
  104. package/dist-types/commands/UpdateJobPriorityCommand.d.ts +1 -1
  105. package/dist-types/commands/UpdateJobStatusCommand.d.ts +1 -1
  106. package/dist-types/commands/UpdateStorageLensGroupCommand.d.ts +6 -5
  107. package/dist-types/commands/index.d.ts +20 -0
  108. package/dist-types/models/index.d.ts +1 -0
  109. package/dist-types/models/models_0.d.ts +1246 -854
  110. package/dist-types/models/models_1.d.ts +775 -0
  111. package/dist-types/pagination/ListAccessGrantsInstancesPaginator.d.ts +7 -0
  112. package/dist-types/pagination/ListAccessGrantsLocationsPaginator.d.ts +7 -0
  113. package/dist-types/pagination/ListAccessGrantsPaginator.d.ts +7 -0
  114. package/dist-types/pagination/index.d.ts +3 -0
  115. package/dist-types/protocols/Aws_restXml.d.ts +180 -0
  116. package/dist-types/ts3.4/S3Control.d.ts +370 -0
  117. package/dist-types/ts3.4/S3ControlClient.d.ts +120 -0
  118. package/dist-types/ts3.4/commands/AssociateAccessGrantsIdentityCenterCommand.d.ts +38 -0
  119. package/dist-types/ts3.4/commands/CreateAccessGrantCommand.d.ts +39 -0
  120. package/dist-types/ts3.4/commands/CreateAccessGrantsInstanceCommand.d.ts +42 -0
  121. package/dist-types/ts3.4/commands/CreateAccessGrantsLocationCommand.d.ts +42 -0
  122. package/dist-types/ts3.4/commands/DeleteAccessGrantCommand.d.ts +34 -0
  123. package/dist-types/ts3.4/commands/DeleteAccessGrantsInstanceCommand.d.ts +38 -0
  124. package/dist-types/ts3.4/commands/DeleteAccessGrantsInstanceResourcePolicyCommand.d.ts +38 -0
  125. package/dist-types/ts3.4/commands/DeleteAccessGrantsLocationCommand.d.ts +38 -0
  126. package/dist-types/ts3.4/commands/DissociateAccessGrantsIdentityCenterCommand.d.ts +38 -0
  127. package/dist-types/ts3.4/commands/GetAccessGrantCommand.d.ts +38 -0
  128. package/dist-types/ts3.4/commands/GetAccessGrantsInstanceCommand.d.ts +42 -0
  129. package/dist-types/ts3.4/commands/GetAccessGrantsInstanceForPrefixCommand.d.ts +42 -0
  130. package/dist-types/ts3.4/commands/GetAccessGrantsInstanceResourcePolicyCommand.d.ts +42 -0
  131. package/dist-types/ts3.4/commands/GetAccessGrantsLocationCommand.d.ts +42 -0
  132. package/dist-types/ts3.4/commands/GetDataAccessCommand.d.ts +35 -0
  133. package/dist-types/ts3.4/commands/ListAccessGrantsCommand.d.ts +38 -0
  134. package/dist-types/ts3.4/commands/ListAccessGrantsInstancesCommand.d.ts +42 -0
  135. package/dist-types/ts3.4/commands/ListAccessGrantsLocationsCommand.d.ts +42 -0
  136. package/dist-types/ts3.4/commands/ListStorageLensGroupsCommand.d.ts +2 -4
  137. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  138. package/dist-types/ts3.4/commands/PutAccessGrantsInstanceResourcePolicyCommand.d.ts +42 -0
  139. package/dist-types/ts3.4/commands/PutAccessPointConfigurationForObjectLambdaCommand.d.ts +1 -1
  140. package/dist-types/ts3.4/commands/PutAccessPointPolicyCommand.d.ts +1 -1
  141. package/dist-types/ts3.4/commands/PutAccessPointPolicyForObjectLambdaCommand.d.ts +1 -1
  142. package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
  143. package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +1 -1
  144. package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +1 -1
  145. package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +1 -1
  146. package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +1 -1
  147. package/dist-types/ts3.4/commands/PutJobTaggingCommand.d.ts +1 -1
  148. package/dist-types/ts3.4/commands/PutMultiRegionAccessPointPolicyCommand.d.ts +1 -1
  149. package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  150. package/dist-types/ts3.4/commands/PutStorageLensConfigurationCommand.d.ts +1 -1
  151. package/dist-types/ts3.4/commands/PutStorageLensConfigurationTaggingCommand.d.ts +1 -1
  152. package/dist-types/ts3.4/commands/SubmitMultiRegionAccessPointRoutesCommand.d.ts +1 -1
  153. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  154. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  155. package/dist-types/ts3.4/commands/UpdateAccessGrantsLocationCommand.d.ts +42 -0
  156. package/dist-types/ts3.4/commands/UpdateJobPriorityCommand.d.ts +1 -1
  157. package/dist-types/ts3.4/commands/UpdateJobStatusCommand.d.ts +1 -1
  158. package/dist-types/ts3.4/commands/UpdateStorageLensGroupCommand.d.ts +1 -1
  159. package/dist-types/ts3.4/commands/index.d.ts +20 -0
  160. package/dist-types/ts3.4/models/index.d.ts +1 -0
  161. package/dist-types/ts3.4/models/models_0.d.ts +228 -170
  162. package/dist-types/ts3.4/models/models_1.d.ts +205 -0
  163. package/dist-types/ts3.4/pagination/ListAccessGrantsInstancesPaginator.d.ts +11 -0
  164. package/dist-types/ts3.4/pagination/ListAccessGrantsLocationsPaginator.d.ts +11 -0
  165. package/dist-types/ts3.4/pagination/ListAccessGrantsPaginator.d.ts +11 -0
  166. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  167. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +240 -0
  168. package/package.json +3 -3
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DissociateAccessGrantsIdentityCenterCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
+ class DissociateAccessGrantsIdentityCenterCommand extends smithy_client_1.Command {
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ RequiresAccountId: { type: "staticContextParams", value: true },
16
+ AccountId: { type: "contextParams", name: "AccountId" },
17
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
+ Endpoint: { type: "builtInParams", name: "endpoint" },
20
+ Region: { type: "builtInParams", name: "region" },
21
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
+ };
23
+ }
24
+ constructor(input) {
25
+ super();
26
+ this.input = input;
27
+ }
28
+ resolveMiddleware(clientStack, configuration, options) {
29
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
30
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DissociateAccessGrantsIdentityCenterCommand.getEndpointParameterInstructions()));
31
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
32
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
33
+ const stack = clientStack.concat(this.middlewareStack);
34
+ const { logger } = configuration;
35
+ const clientName = "S3ControlClient";
36
+ const commandName = "DissociateAccessGrantsIdentityCenterCommand";
37
+ const handlerExecutionContext = {
38
+ logger,
39
+ clientName,
40
+ commandName,
41
+ inputFilterSensitiveLog: (_) => _,
42
+ outputFilterSensitiveLog: (_) => _,
43
+ [types_1.SMITHY_CONTEXT_KEY]: {
44
+ service: "AWSS3ControlServiceV20180820",
45
+ operation: "DissociateAccessGrantsIdentityCenter",
46
+ },
47
+ };
48
+ const { requestHandler } = configuration;
49
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
50
+ }
51
+ serialize(input, context) {
52
+ return (0, Aws_restXml_1.se_DissociateAccessGrantsIdentityCenterCommand)(input, context);
53
+ }
54
+ deserialize(output, context) {
55
+ return (0, Aws_restXml_1.de_DissociateAccessGrantsIdentityCenterCommand)(output, context);
56
+ }
57
+ }
58
+ exports.DissociateAccessGrantsIdentityCenterCommand = DissociateAccessGrantsIdentityCenterCommand;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAccessGrantCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
+ class GetAccessGrantCommand extends smithy_client_1.Command {
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ RequiresAccountId: { type: "staticContextParams", value: true },
16
+ AccountId: { type: "contextParams", name: "AccountId" },
17
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
+ Endpoint: { type: "builtInParams", name: "endpoint" },
20
+ Region: { type: "builtInParams", name: "region" },
21
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
+ };
23
+ }
24
+ constructor(input) {
25
+ super();
26
+ this.input = input;
27
+ }
28
+ resolveMiddleware(clientStack, configuration, options) {
29
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
30
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccessGrantCommand.getEndpointParameterInstructions()));
31
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
32
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
33
+ const stack = clientStack.concat(this.middlewareStack);
34
+ const { logger } = configuration;
35
+ const clientName = "S3ControlClient";
36
+ const commandName = "GetAccessGrantCommand";
37
+ const handlerExecutionContext = {
38
+ logger,
39
+ clientName,
40
+ commandName,
41
+ inputFilterSensitiveLog: (_) => _,
42
+ outputFilterSensitiveLog: (_) => _,
43
+ [types_1.SMITHY_CONTEXT_KEY]: {
44
+ service: "AWSS3ControlServiceV20180820",
45
+ operation: "GetAccessGrant",
46
+ },
47
+ };
48
+ const { requestHandler } = configuration;
49
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
50
+ }
51
+ serialize(input, context) {
52
+ return (0, Aws_restXml_1.se_GetAccessGrantCommand)(input, context);
53
+ }
54
+ deserialize(output, context) {
55
+ return (0, Aws_restXml_1.de_GetAccessGrantCommand)(output, context);
56
+ }
57
+ }
58
+ exports.GetAccessGrantCommand = GetAccessGrantCommand;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAccessGrantsInstanceCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
+ class GetAccessGrantsInstanceCommand extends smithy_client_1.Command {
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ RequiresAccountId: { type: "staticContextParams", value: true },
16
+ AccountId: { type: "contextParams", name: "AccountId" },
17
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
+ Endpoint: { type: "builtInParams", name: "endpoint" },
20
+ Region: { type: "builtInParams", name: "region" },
21
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
+ };
23
+ }
24
+ constructor(input) {
25
+ super();
26
+ this.input = input;
27
+ }
28
+ resolveMiddleware(clientStack, configuration, options) {
29
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
30
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccessGrantsInstanceCommand.getEndpointParameterInstructions()));
31
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
32
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
33
+ const stack = clientStack.concat(this.middlewareStack);
34
+ const { logger } = configuration;
35
+ const clientName = "S3ControlClient";
36
+ const commandName = "GetAccessGrantsInstanceCommand";
37
+ const handlerExecutionContext = {
38
+ logger,
39
+ clientName,
40
+ commandName,
41
+ inputFilterSensitiveLog: (_) => _,
42
+ outputFilterSensitiveLog: (_) => _,
43
+ [types_1.SMITHY_CONTEXT_KEY]: {
44
+ service: "AWSS3ControlServiceV20180820",
45
+ operation: "GetAccessGrantsInstance",
46
+ },
47
+ };
48
+ const { requestHandler } = configuration;
49
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
50
+ }
51
+ serialize(input, context) {
52
+ return (0, Aws_restXml_1.se_GetAccessGrantsInstanceCommand)(input, context);
53
+ }
54
+ deserialize(output, context) {
55
+ return (0, Aws_restXml_1.de_GetAccessGrantsInstanceCommand)(output, context);
56
+ }
57
+ }
58
+ exports.GetAccessGrantsInstanceCommand = GetAccessGrantsInstanceCommand;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAccessGrantsInstanceForPrefixCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
+ class GetAccessGrantsInstanceForPrefixCommand extends smithy_client_1.Command {
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ RequiresAccountId: { type: "staticContextParams", value: true },
16
+ AccountId: { type: "contextParams", name: "AccountId" },
17
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
+ Endpoint: { type: "builtInParams", name: "endpoint" },
20
+ Region: { type: "builtInParams", name: "region" },
21
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
+ };
23
+ }
24
+ constructor(input) {
25
+ super();
26
+ this.input = input;
27
+ }
28
+ resolveMiddleware(clientStack, configuration, options) {
29
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
30
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccessGrantsInstanceForPrefixCommand.getEndpointParameterInstructions()));
31
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
32
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
33
+ const stack = clientStack.concat(this.middlewareStack);
34
+ const { logger } = configuration;
35
+ const clientName = "S3ControlClient";
36
+ const commandName = "GetAccessGrantsInstanceForPrefixCommand";
37
+ const handlerExecutionContext = {
38
+ logger,
39
+ clientName,
40
+ commandName,
41
+ inputFilterSensitiveLog: (_) => _,
42
+ outputFilterSensitiveLog: (_) => _,
43
+ [types_1.SMITHY_CONTEXT_KEY]: {
44
+ service: "AWSS3ControlServiceV20180820",
45
+ operation: "GetAccessGrantsInstanceForPrefix",
46
+ },
47
+ };
48
+ const { requestHandler } = configuration;
49
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
50
+ }
51
+ serialize(input, context) {
52
+ return (0, Aws_restXml_1.se_GetAccessGrantsInstanceForPrefixCommand)(input, context);
53
+ }
54
+ deserialize(output, context) {
55
+ return (0, Aws_restXml_1.de_GetAccessGrantsInstanceForPrefixCommand)(output, context);
56
+ }
57
+ }
58
+ exports.GetAccessGrantsInstanceForPrefixCommand = GetAccessGrantsInstanceForPrefixCommand;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAccessGrantsInstanceResourcePolicyCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
+ class GetAccessGrantsInstanceResourcePolicyCommand extends smithy_client_1.Command {
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ RequiresAccountId: { type: "staticContextParams", value: true },
16
+ AccountId: { type: "contextParams", name: "AccountId" },
17
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
+ Endpoint: { type: "builtInParams", name: "endpoint" },
20
+ Region: { type: "builtInParams", name: "region" },
21
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
+ };
23
+ }
24
+ constructor(input) {
25
+ super();
26
+ this.input = input;
27
+ }
28
+ resolveMiddleware(clientStack, configuration, options) {
29
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
30
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccessGrantsInstanceResourcePolicyCommand.getEndpointParameterInstructions()));
31
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
32
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
33
+ const stack = clientStack.concat(this.middlewareStack);
34
+ const { logger } = configuration;
35
+ const clientName = "S3ControlClient";
36
+ const commandName = "GetAccessGrantsInstanceResourcePolicyCommand";
37
+ const handlerExecutionContext = {
38
+ logger,
39
+ clientName,
40
+ commandName,
41
+ inputFilterSensitiveLog: (_) => _,
42
+ outputFilterSensitiveLog: (_) => _,
43
+ [types_1.SMITHY_CONTEXT_KEY]: {
44
+ service: "AWSS3ControlServiceV20180820",
45
+ operation: "GetAccessGrantsInstanceResourcePolicy",
46
+ },
47
+ };
48
+ const { requestHandler } = configuration;
49
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
50
+ }
51
+ serialize(input, context) {
52
+ return (0, Aws_restXml_1.se_GetAccessGrantsInstanceResourcePolicyCommand)(input, context);
53
+ }
54
+ deserialize(output, context) {
55
+ return (0, Aws_restXml_1.de_GetAccessGrantsInstanceResourcePolicyCommand)(output, context);
56
+ }
57
+ }
58
+ exports.GetAccessGrantsInstanceResourcePolicyCommand = GetAccessGrantsInstanceResourcePolicyCommand;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAccessGrantsLocationCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
+ class GetAccessGrantsLocationCommand extends smithy_client_1.Command {
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ RequiresAccountId: { type: "staticContextParams", value: true },
16
+ AccountId: { type: "contextParams", name: "AccountId" },
17
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
+ Endpoint: { type: "builtInParams", name: "endpoint" },
20
+ Region: { type: "builtInParams", name: "region" },
21
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
+ };
23
+ }
24
+ constructor(input) {
25
+ super();
26
+ this.input = input;
27
+ }
28
+ resolveMiddleware(clientStack, configuration, options) {
29
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
30
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccessGrantsLocationCommand.getEndpointParameterInstructions()));
31
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
32
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
33
+ const stack = clientStack.concat(this.middlewareStack);
34
+ const { logger } = configuration;
35
+ const clientName = "S3ControlClient";
36
+ const commandName = "GetAccessGrantsLocationCommand";
37
+ const handlerExecutionContext = {
38
+ logger,
39
+ clientName,
40
+ commandName,
41
+ inputFilterSensitiveLog: (_) => _,
42
+ outputFilterSensitiveLog: (_) => _,
43
+ [types_1.SMITHY_CONTEXT_KEY]: {
44
+ service: "AWSS3ControlServiceV20180820",
45
+ operation: "GetAccessGrantsLocation",
46
+ },
47
+ };
48
+ const { requestHandler } = configuration;
49
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
50
+ }
51
+ serialize(input, context) {
52
+ return (0, Aws_restXml_1.se_GetAccessGrantsLocationCommand)(input, context);
53
+ }
54
+ deserialize(output, context) {
55
+ return (0, Aws_restXml_1.de_GetAccessGrantsLocationCommand)(output, context);
56
+ }
57
+ }
58
+ exports.GetAccessGrantsLocationCommand = GetAccessGrantsLocationCommand;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDataAccessCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const models_0_1 = require("../models/models_0");
12
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
13
+ class GetDataAccessCommand extends smithy_client_1.Command {
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ RequiresAccountId: { type: "staticContextParams", value: true },
17
+ AccountId: { type: "contextParams", name: "AccountId" },
18
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
19
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
20
+ Endpoint: { type: "builtInParams", name: "endpoint" },
21
+ Region: { type: "builtInParams", name: "region" },
22
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
23
+ };
24
+ }
25
+ constructor(input) {
26
+ super();
27
+ this.input = input;
28
+ }
29
+ resolveMiddleware(clientStack, configuration, options) {
30
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
31
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDataAccessCommand.getEndpointParameterInstructions()));
32
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
33
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
34
+ const stack = clientStack.concat(this.middlewareStack);
35
+ const { logger } = configuration;
36
+ const clientName = "S3ControlClient";
37
+ const commandName = "GetDataAccessCommand";
38
+ const handlerExecutionContext = {
39
+ logger,
40
+ clientName,
41
+ commandName,
42
+ inputFilterSensitiveLog: (_) => _,
43
+ outputFilterSensitiveLog: models_0_1.GetDataAccessResultFilterSensitiveLog,
44
+ [types_1.SMITHY_CONTEXT_KEY]: {
45
+ service: "AWSS3ControlServiceV20180820",
46
+ operation: "GetDataAccess",
47
+ },
48
+ };
49
+ const { requestHandler } = configuration;
50
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
51
+ }
52
+ serialize(input, context) {
53
+ return (0, Aws_restXml_1.se_GetDataAccessCommand)(input, context);
54
+ }
55
+ deserialize(output, context) {
56
+ return (0, Aws_restXml_1.de_GetDataAccessCommand)(output, context);
57
+ }
58
+ }
59
+ exports.GetDataAccessCommand = GetDataAccessCommand;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListAccessGrantsCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
+ class ListAccessGrantsCommand extends smithy_client_1.Command {
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ RequiresAccountId: { type: "staticContextParams", value: true },
16
+ AccountId: { type: "contextParams", name: "AccountId" },
17
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
+ Endpoint: { type: "builtInParams", name: "endpoint" },
20
+ Region: { type: "builtInParams", name: "region" },
21
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
+ };
23
+ }
24
+ constructor(input) {
25
+ super();
26
+ this.input = input;
27
+ }
28
+ resolveMiddleware(clientStack, configuration, options) {
29
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
30
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccessGrantsCommand.getEndpointParameterInstructions()));
31
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
32
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
33
+ const stack = clientStack.concat(this.middlewareStack);
34
+ const { logger } = configuration;
35
+ const clientName = "S3ControlClient";
36
+ const commandName = "ListAccessGrantsCommand";
37
+ const handlerExecutionContext = {
38
+ logger,
39
+ clientName,
40
+ commandName,
41
+ inputFilterSensitiveLog: (_) => _,
42
+ outputFilterSensitiveLog: (_) => _,
43
+ [types_1.SMITHY_CONTEXT_KEY]: {
44
+ service: "AWSS3ControlServiceV20180820",
45
+ operation: "ListAccessGrants",
46
+ },
47
+ };
48
+ const { requestHandler } = configuration;
49
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
50
+ }
51
+ serialize(input, context) {
52
+ return (0, Aws_restXml_1.se_ListAccessGrantsCommand)(input, context);
53
+ }
54
+ deserialize(output, context) {
55
+ return (0, Aws_restXml_1.de_ListAccessGrantsCommand)(output, context);
56
+ }
57
+ }
58
+ exports.ListAccessGrantsCommand = ListAccessGrantsCommand;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListAccessGrantsInstancesCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
+ class ListAccessGrantsInstancesCommand extends smithy_client_1.Command {
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ RequiresAccountId: { type: "staticContextParams", value: true },
16
+ AccountId: { type: "contextParams", name: "AccountId" },
17
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
+ Endpoint: { type: "builtInParams", name: "endpoint" },
20
+ Region: { type: "builtInParams", name: "region" },
21
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
+ };
23
+ }
24
+ constructor(input) {
25
+ super();
26
+ this.input = input;
27
+ }
28
+ resolveMiddleware(clientStack, configuration, options) {
29
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
30
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccessGrantsInstancesCommand.getEndpointParameterInstructions()));
31
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
32
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
33
+ const stack = clientStack.concat(this.middlewareStack);
34
+ const { logger } = configuration;
35
+ const clientName = "S3ControlClient";
36
+ const commandName = "ListAccessGrantsInstancesCommand";
37
+ const handlerExecutionContext = {
38
+ logger,
39
+ clientName,
40
+ commandName,
41
+ inputFilterSensitiveLog: (_) => _,
42
+ outputFilterSensitiveLog: (_) => _,
43
+ [types_1.SMITHY_CONTEXT_KEY]: {
44
+ service: "AWSS3ControlServiceV20180820",
45
+ operation: "ListAccessGrantsInstances",
46
+ },
47
+ };
48
+ const { requestHandler } = configuration;
49
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
50
+ }
51
+ serialize(input, context) {
52
+ return (0, Aws_restXml_1.se_ListAccessGrantsInstancesCommand)(input, context);
53
+ }
54
+ deserialize(output, context) {
55
+ return (0, Aws_restXml_1.de_ListAccessGrantsInstancesCommand)(output, context);
56
+ }
57
+ }
58
+ exports.ListAccessGrantsInstancesCommand = ListAccessGrantsInstancesCommand;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListAccessGrantsLocationsCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
+ class ListAccessGrantsLocationsCommand extends smithy_client_1.Command {
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ RequiresAccountId: { type: "staticContextParams", value: true },
16
+ AccountId: { type: "contextParams", name: "AccountId" },
17
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
+ Endpoint: { type: "builtInParams", name: "endpoint" },
20
+ Region: { type: "builtInParams", name: "region" },
21
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
+ };
23
+ }
24
+ constructor(input) {
25
+ super();
26
+ this.input = input;
27
+ }
28
+ resolveMiddleware(clientStack, configuration, options) {
29
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
30
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccessGrantsLocationsCommand.getEndpointParameterInstructions()));
31
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
32
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
33
+ const stack = clientStack.concat(this.middlewareStack);
34
+ const { logger } = configuration;
35
+ const clientName = "S3ControlClient";
36
+ const commandName = "ListAccessGrantsLocationsCommand";
37
+ const handlerExecutionContext = {
38
+ logger,
39
+ clientName,
40
+ commandName,
41
+ inputFilterSensitiveLog: (_) => _,
42
+ outputFilterSensitiveLog: (_) => _,
43
+ [types_1.SMITHY_CONTEXT_KEY]: {
44
+ service: "AWSS3ControlServiceV20180820",
45
+ operation: "ListAccessGrantsLocations",
46
+ },
47
+ };
48
+ const { requestHandler } = configuration;
49
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
50
+ }
51
+ serialize(input, context) {
52
+ return (0, Aws_restXml_1.se_ListAccessGrantsLocationsCommand)(input, context);
53
+ }
54
+ deserialize(output, context) {
55
+ return (0, Aws_restXml_1.de_ListAccessGrantsLocationsCommand)(output, context);
56
+ }
57
+ }
58
+ exports.ListAccessGrantsLocationsCommand = ListAccessGrantsLocationsCommand;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutAccessGrantsInstanceResourcePolicyCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_apply_body_checksum_1 = require("@smithy/middleware-apply-body-checksum");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const middleware_serde_1 = require("@smithy/middleware-serde");
8
+ const smithy_client_1 = require("@smithy/smithy-client");
9
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
+ const types_1 = require("@smithy/types");
11
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
+ class PutAccessGrantsInstanceResourcePolicyCommand extends smithy_client_1.Command {
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ RequiresAccountId: { type: "staticContextParams", value: true },
16
+ AccountId: { type: "contextParams", name: "AccountId" },
17
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
+ Endpoint: { type: "builtInParams", name: "endpoint" },
20
+ Region: { type: "builtInParams", name: "region" },
21
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
+ };
23
+ }
24
+ constructor(input) {
25
+ super();
26
+ this.input = input;
27
+ }
28
+ resolveMiddleware(clientStack, configuration, options) {
29
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
30
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutAccessGrantsInstanceResourcePolicyCommand.getEndpointParameterInstructions()));
31
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
32
+ this.middlewareStack.use((0, middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin)(configuration));
33
+ const stack = clientStack.concat(this.middlewareStack);
34
+ const { logger } = configuration;
35
+ const clientName = "S3ControlClient";
36
+ const commandName = "PutAccessGrantsInstanceResourcePolicyCommand";
37
+ const handlerExecutionContext = {
38
+ logger,
39
+ clientName,
40
+ commandName,
41
+ inputFilterSensitiveLog: (_) => _,
42
+ outputFilterSensitiveLog: (_) => _,
43
+ [types_1.SMITHY_CONTEXT_KEY]: {
44
+ service: "AWSS3ControlServiceV20180820",
45
+ operation: "PutAccessGrantsInstanceResourcePolicy",
46
+ },
47
+ };
48
+ const { requestHandler } = configuration;
49
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
50
+ }
51
+ serialize(input, context) {
52
+ return (0, Aws_restXml_1.se_PutAccessGrantsInstanceResourcePolicyCommand)(input, context);
53
+ }
54
+ deserialize(output, context) {
55
+ return (0, Aws_restXml_1.de_PutAccessGrantsInstanceResourcePolicyCommand)(output, context);
56
+ }
57
+ }
58
+ exports.PutAccessGrantsInstanceResourcePolicyCommand = PutAccessGrantsInstanceResourcePolicyCommand;