@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
|
@@ -1,15 +1,220 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.se_GetBucketVersioningCommand = exports.se_GetBucketTaggingCommand = exports.se_GetBucketReplicationCommand = exports.se_GetBucketPolicyCommand = exports.se_GetBucketLifecycleConfigurationCommand = exports.se_GetBucketCommand = exports.se_GetAccessPointPolicyStatusForObjectLambdaCommand = exports.se_GetAccessPointPolicyStatusCommand = exports.se_GetAccessPointPolicyForObjectLambdaCommand = exports.se_GetAccessPointPolicyCommand = exports.se_GetAccessPointForObjectLambdaCommand = exports.se_GetAccessPointConfigurationForObjectLambdaCommand = exports.se_GetAccessPointCommand = exports.se_GetAccessGrantsLocationCommand = exports.se_GetAccessGrantsInstanceResourcePolicyCommand = exports.se_GetAccessGrantsInstanceForPrefixCommand = exports.se_GetAccessGrantsInstanceCommand = exports.se_GetAccessGrantCommand = exports.se_DissociateAccessGrantsIdentityCenterCommand = exports.se_DescribeMultiRegionAccessPointOperationCommand = exports.se_DescribeJobCommand = exports.se_DeleteStorageLensGroupCommand = exports.se_DeleteStorageLensConfigurationTaggingCommand = exports.se_DeleteStorageLensConfigurationCommand = exports.se_DeletePublicAccessBlockCommand = exports.se_DeleteMultiRegionAccessPointCommand = exports.se_DeleteJobTaggingCommand = exports.se_DeleteBucketTaggingCommand = exports.se_DeleteBucketReplicationCommand = exports.se_DeleteBucketPolicyCommand = exports.se_DeleteBucketLifecycleConfigurationCommand = exports.se_DeleteBucketCommand = exports.se_DeleteAccessPointPolicyForObjectLambdaCommand = exports.se_DeleteAccessPointPolicyCommand = exports.se_DeleteAccessPointForObjectLambdaCommand = exports.se_DeleteAccessPointCommand = exports.se_DeleteAccessGrantsLocationCommand = exports.se_DeleteAccessGrantsInstanceResourcePolicyCommand = exports.se_DeleteAccessGrantsInstanceCommand = exports.se_DeleteAccessGrantCommand = exports.se_CreateStorageLensGroupCommand = exports.se_CreateMultiRegionAccessPointCommand = exports.se_CreateJobCommand = exports.se_CreateBucketCommand = exports.se_CreateAccessPointForObjectLambdaCommand = exports.se_CreateAccessPointCommand = exports.se_CreateAccessGrantsLocationCommand = exports.se_CreateAccessGrantsInstanceCommand = exports.se_CreateAccessGrantCommand = exports.se_AssociateAccessGrantsIdentityCenterCommand = void 0;
|
|
4
|
+
exports.de_CreateJobCommand = exports.de_CreateBucketCommand = exports.de_CreateAccessPointForObjectLambdaCommand = exports.de_CreateAccessPointCommand = exports.de_CreateAccessGrantsLocationCommand = exports.de_CreateAccessGrantsInstanceCommand = exports.de_CreateAccessGrantCommand = exports.de_AssociateAccessGrantsIdentityCenterCommand = exports.se_UpdateStorageLensGroupCommand = exports.se_UpdateJobStatusCommand = exports.se_UpdateJobPriorityCommand = exports.se_UpdateAccessGrantsLocationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SubmitMultiRegionAccessPointRoutesCommand = exports.se_PutStorageLensConfigurationTaggingCommand = exports.se_PutStorageLensConfigurationCommand = exports.se_PutPublicAccessBlockCommand = exports.se_PutMultiRegionAccessPointPolicyCommand = exports.se_PutJobTaggingCommand = exports.se_PutBucketVersioningCommand = exports.se_PutBucketTaggingCommand = exports.se_PutBucketReplicationCommand = exports.se_PutBucketPolicyCommand = exports.se_PutBucketLifecycleConfigurationCommand = exports.se_PutAccessPointPolicyForObjectLambdaCommand = exports.se_PutAccessPointPolicyCommand = exports.se_PutAccessPointConfigurationForObjectLambdaCommand = exports.se_PutAccessGrantsInstanceResourcePolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStorageLensGroupsCommand = exports.se_ListStorageLensConfigurationsCommand = exports.se_ListRegionalBucketsCommand = exports.se_ListMultiRegionAccessPointsCommand = exports.se_ListJobsCommand = exports.se_ListAccessPointsForObjectLambdaCommand = exports.se_ListAccessPointsCommand = exports.se_ListAccessGrantsLocationsCommand = exports.se_ListAccessGrantsInstancesCommand = exports.se_ListAccessGrantsCommand = exports.se_GetStorageLensGroupCommand = exports.se_GetStorageLensConfigurationTaggingCommand = exports.se_GetStorageLensConfigurationCommand = exports.se_GetPublicAccessBlockCommand = exports.se_GetMultiRegionAccessPointRoutesCommand = exports.se_GetMultiRegionAccessPointPolicyStatusCommand = exports.se_GetMultiRegionAccessPointPolicyCommand = exports.se_GetMultiRegionAccessPointCommand = exports.se_GetJobTaggingCommand = exports.se_GetDataAccessCommand = void 0;
|
|
5
|
+
exports.de_GetStorageLensConfigurationCommand = exports.de_GetPublicAccessBlockCommand = exports.de_GetMultiRegionAccessPointRoutesCommand = exports.de_GetMultiRegionAccessPointPolicyStatusCommand = exports.de_GetMultiRegionAccessPointPolicyCommand = exports.de_GetMultiRegionAccessPointCommand = exports.de_GetJobTaggingCommand = exports.de_GetDataAccessCommand = exports.de_GetBucketVersioningCommand = exports.de_GetBucketTaggingCommand = exports.de_GetBucketReplicationCommand = exports.de_GetBucketPolicyCommand = exports.de_GetBucketLifecycleConfigurationCommand = exports.de_GetBucketCommand = exports.de_GetAccessPointPolicyStatusForObjectLambdaCommand = exports.de_GetAccessPointPolicyStatusCommand = exports.de_GetAccessPointPolicyForObjectLambdaCommand = exports.de_GetAccessPointPolicyCommand = exports.de_GetAccessPointForObjectLambdaCommand = exports.de_GetAccessPointConfigurationForObjectLambdaCommand = exports.de_GetAccessPointCommand = exports.de_GetAccessGrantsLocationCommand = exports.de_GetAccessGrantsInstanceResourcePolicyCommand = exports.de_GetAccessGrantsInstanceForPrefixCommand = exports.de_GetAccessGrantsInstanceCommand = exports.de_GetAccessGrantCommand = exports.de_DissociateAccessGrantsIdentityCenterCommand = exports.de_DescribeMultiRegionAccessPointOperationCommand = exports.de_DescribeJobCommand = exports.de_DeleteStorageLensGroupCommand = exports.de_DeleteStorageLensConfigurationTaggingCommand = exports.de_DeleteStorageLensConfigurationCommand = exports.de_DeletePublicAccessBlockCommand = exports.de_DeleteMultiRegionAccessPointCommand = exports.de_DeleteJobTaggingCommand = exports.de_DeleteBucketTaggingCommand = exports.de_DeleteBucketReplicationCommand = exports.de_DeleteBucketPolicyCommand = exports.de_DeleteBucketLifecycleConfigurationCommand = exports.de_DeleteBucketCommand = exports.de_DeleteAccessPointPolicyForObjectLambdaCommand = exports.de_DeleteAccessPointPolicyCommand = exports.de_DeleteAccessPointForObjectLambdaCommand = exports.de_DeleteAccessPointCommand = exports.de_DeleteAccessGrantsLocationCommand = exports.de_DeleteAccessGrantsInstanceResourcePolicyCommand = exports.de_DeleteAccessGrantsInstanceCommand = exports.de_DeleteAccessGrantCommand = exports.de_CreateStorageLensGroupCommand = exports.de_CreateMultiRegionAccessPointCommand = void 0;
|
|
6
|
+
exports.de_UpdateStorageLensGroupCommand = exports.de_UpdateJobStatusCommand = exports.de_UpdateJobPriorityCommand = exports.de_UpdateAccessGrantsLocationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SubmitMultiRegionAccessPointRoutesCommand = exports.de_PutStorageLensConfigurationTaggingCommand = exports.de_PutStorageLensConfigurationCommand = exports.de_PutPublicAccessBlockCommand = exports.de_PutMultiRegionAccessPointPolicyCommand = exports.de_PutJobTaggingCommand = exports.de_PutBucketVersioningCommand = exports.de_PutBucketTaggingCommand = exports.de_PutBucketReplicationCommand = exports.de_PutBucketPolicyCommand = exports.de_PutBucketLifecycleConfigurationCommand = exports.de_PutAccessPointPolicyForObjectLambdaCommand = exports.de_PutAccessPointPolicyCommand = exports.de_PutAccessPointConfigurationForObjectLambdaCommand = exports.de_PutAccessGrantsInstanceResourcePolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStorageLensGroupsCommand = exports.de_ListStorageLensConfigurationsCommand = exports.de_ListRegionalBucketsCommand = exports.de_ListMultiRegionAccessPointsCommand = exports.de_ListJobsCommand = exports.de_ListAccessPointsForObjectLambdaCommand = exports.de_ListAccessPointsCommand = exports.de_ListAccessGrantsLocationsCommand = exports.de_ListAccessGrantsInstancesCommand = exports.de_ListAccessGrantsCommand = exports.de_GetStorageLensGroupCommand = exports.de_GetStorageLensConfigurationTaggingCommand = void 0;
|
|
6
7
|
const xml_builder_1 = require("@aws-sdk/xml-builder");
|
|
7
8
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
9
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
10
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
10
11
|
const uuid_1 = require("uuid");
|
|
11
12
|
const models_0_1 = require("../models/models_0");
|
|
13
|
+
const models_1_1 = require("../models/models_1");
|
|
12
14
|
const S3ControlServiceException_1 = require("../models/S3ControlServiceException");
|
|
15
|
+
const se_AssociateAccessGrantsIdentityCenterCommand = async (input, context) => {
|
|
16
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
17
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
18
|
+
"content-type": "application/xml",
|
|
19
|
+
"x-amz-account-id": input.AccountId,
|
|
20
|
+
});
|
|
21
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
22
|
+
"/v20180820/accessgrantsinstance/identitycenter";
|
|
23
|
+
let body;
|
|
24
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
25
|
+
const bodyNode = new xml_builder_1.XmlNode("AssociateAccessGrantsIdentityCenterRequest");
|
|
26
|
+
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
27
|
+
if (input.IdentityCenterArn !== undefined) {
|
|
28
|
+
const node = xml_builder_1.XmlNode.of("IdentityCenterArn", input.IdentityCenterArn).withName("IdentityCenterArn");
|
|
29
|
+
bodyNode.addChildNode(node);
|
|
30
|
+
}
|
|
31
|
+
body += bodyNode.toString();
|
|
32
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
33
|
+
if (context.disableHostPrefix !== true) {
|
|
34
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
35
|
+
if (input.AccountId === undefined) {
|
|
36
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
37
|
+
}
|
|
38
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
39
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
40
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return new protocol_http_1.HttpRequest({
|
|
44
|
+
protocol,
|
|
45
|
+
hostname: resolvedHostname,
|
|
46
|
+
port,
|
|
47
|
+
method: "POST",
|
|
48
|
+
headers,
|
|
49
|
+
path: resolvedPath,
|
|
50
|
+
body,
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
exports.se_AssociateAccessGrantsIdentityCenterCommand = se_AssociateAccessGrantsIdentityCenterCommand;
|
|
54
|
+
const se_CreateAccessGrantCommand = async (input, context) => {
|
|
55
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
56
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
57
|
+
"content-type": "application/xml",
|
|
58
|
+
"x-amz-account-id": input.AccountId,
|
|
59
|
+
});
|
|
60
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance/grant";
|
|
61
|
+
let body;
|
|
62
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
63
|
+
const bodyNode = new xml_builder_1.XmlNode("CreateAccessGrantRequest");
|
|
64
|
+
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
65
|
+
if (input.AccessGrantsLocationConfiguration !== undefined) {
|
|
66
|
+
const node = se_AccessGrantsLocationConfiguration(input.AccessGrantsLocationConfiguration, context).withName("AccessGrantsLocationConfiguration");
|
|
67
|
+
bodyNode.addChildNode(node);
|
|
68
|
+
}
|
|
69
|
+
if (input.AccessGrantsLocationId !== undefined) {
|
|
70
|
+
const node = xml_builder_1.XmlNode
|
|
71
|
+
.of("AccessGrantsLocationId", input.AccessGrantsLocationId)
|
|
72
|
+
.withName("AccessGrantsLocationId");
|
|
73
|
+
bodyNode.addChildNode(node);
|
|
74
|
+
}
|
|
75
|
+
if (input.ApplicationArn !== undefined) {
|
|
76
|
+
const node = xml_builder_1.XmlNode.of("IdentityCenterApplicationArn", input.ApplicationArn).withName("ApplicationArn");
|
|
77
|
+
bodyNode.addChildNode(node);
|
|
78
|
+
}
|
|
79
|
+
if (input.Grantee !== undefined) {
|
|
80
|
+
const node = se_Grantee(input.Grantee, context).withName("Grantee");
|
|
81
|
+
bodyNode.addChildNode(node);
|
|
82
|
+
}
|
|
83
|
+
if (input.Permission !== undefined) {
|
|
84
|
+
const node = xml_builder_1.XmlNode.of("Permission", input.Permission).withName("Permission");
|
|
85
|
+
bodyNode.addChildNode(node);
|
|
86
|
+
}
|
|
87
|
+
if (input.S3PrefixType !== undefined) {
|
|
88
|
+
const node = xml_builder_1.XmlNode.of("S3PrefixType", input.S3PrefixType).withName("S3PrefixType");
|
|
89
|
+
bodyNode.addChildNode(node);
|
|
90
|
+
}
|
|
91
|
+
if (input.Tags !== undefined) {
|
|
92
|
+
const nodes = se_TagList(input.Tags, context);
|
|
93
|
+
const containerNode = new xml_builder_1.XmlNode("Tags");
|
|
94
|
+
nodes.map((node) => {
|
|
95
|
+
containerNode.addChildNode(node);
|
|
96
|
+
});
|
|
97
|
+
bodyNode.addChildNode(containerNode);
|
|
98
|
+
}
|
|
99
|
+
body += bodyNode.toString();
|
|
100
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
101
|
+
if (context.disableHostPrefix !== true) {
|
|
102
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
103
|
+
if (input.AccountId === undefined) {
|
|
104
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
105
|
+
}
|
|
106
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
107
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
108
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return new protocol_http_1.HttpRequest({
|
|
112
|
+
protocol,
|
|
113
|
+
hostname: resolvedHostname,
|
|
114
|
+
port,
|
|
115
|
+
method: "POST",
|
|
116
|
+
headers,
|
|
117
|
+
path: resolvedPath,
|
|
118
|
+
body,
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
exports.se_CreateAccessGrantCommand = se_CreateAccessGrantCommand;
|
|
122
|
+
const se_CreateAccessGrantsInstanceCommand = async (input, context) => {
|
|
123
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
125
|
+
"content-type": "application/xml",
|
|
126
|
+
"x-amz-account-id": input.AccountId,
|
|
127
|
+
});
|
|
128
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance";
|
|
129
|
+
let body;
|
|
130
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
131
|
+
const bodyNode = new xml_builder_1.XmlNode("CreateAccessGrantsInstanceRequest");
|
|
132
|
+
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
133
|
+
if (input.IdentityCenterArn !== undefined) {
|
|
134
|
+
const node = xml_builder_1.XmlNode.of("IdentityCenterArn", input.IdentityCenterArn).withName("IdentityCenterArn");
|
|
135
|
+
bodyNode.addChildNode(node);
|
|
136
|
+
}
|
|
137
|
+
if (input.Tags !== undefined) {
|
|
138
|
+
const nodes = se_TagList(input.Tags, context);
|
|
139
|
+
const containerNode = new xml_builder_1.XmlNode("Tags");
|
|
140
|
+
nodes.map((node) => {
|
|
141
|
+
containerNode.addChildNode(node);
|
|
142
|
+
});
|
|
143
|
+
bodyNode.addChildNode(containerNode);
|
|
144
|
+
}
|
|
145
|
+
body += bodyNode.toString();
|
|
146
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
147
|
+
if (context.disableHostPrefix !== true) {
|
|
148
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
149
|
+
if (input.AccountId === undefined) {
|
|
150
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
151
|
+
}
|
|
152
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
153
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
154
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return new protocol_http_1.HttpRequest({
|
|
158
|
+
protocol,
|
|
159
|
+
hostname: resolvedHostname,
|
|
160
|
+
port,
|
|
161
|
+
method: "POST",
|
|
162
|
+
headers,
|
|
163
|
+
path: resolvedPath,
|
|
164
|
+
body,
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
exports.se_CreateAccessGrantsInstanceCommand = se_CreateAccessGrantsInstanceCommand;
|
|
168
|
+
const se_CreateAccessGrantsLocationCommand = async (input, context) => {
|
|
169
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
170
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
171
|
+
"content-type": "application/xml",
|
|
172
|
+
"x-amz-account-id": input.AccountId,
|
|
173
|
+
});
|
|
174
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance/location";
|
|
175
|
+
let body;
|
|
176
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
177
|
+
const bodyNode = new xml_builder_1.XmlNode("CreateAccessGrantsLocationRequest");
|
|
178
|
+
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
179
|
+
if (input.IAMRoleArn !== undefined) {
|
|
180
|
+
const node = xml_builder_1.XmlNode.of("IAMRoleArn", input.IAMRoleArn).withName("IAMRoleArn");
|
|
181
|
+
bodyNode.addChildNode(node);
|
|
182
|
+
}
|
|
183
|
+
if (input.LocationScope !== undefined) {
|
|
184
|
+
const node = xml_builder_1.XmlNode.of("S3Prefix", input.LocationScope).withName("LocationScope");
|
|
185
|
+
bodyNode.addChildNode(node);
|
|
186
|
+
}
|
|
187
|
+
if (input.Tags !== undefined) {
|
|
188
|
+
const nodes = se_TagList(input.Tags, context);
|
|
189
|
+
const containerNode = new xml_builder_1.XmlNode("Tags");
|
|
190
|
+
nodes.map((node) => {
|
|
191
|
+
containerNode.addChildNode(node);
|
|
192
|
+
});
|
|
193
|
+
bodyNode.addChildNode(containerNode);
|
|
194
|
+
}
|
|
195
|
+
body += bodyNode.toString();
|
|
196
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
197
|
+
if (context.disableHostPrefix !== true) {
|
|
198
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
199
|
+
if (input.AccountId === undefined) {
|
|
200
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
201
|
+
}
|
|
202
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
203
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
204
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return new protocol_http_1.HttpRequest({
|
|
208
|
+
protocol,
|
|
209
|
+
hostname: resolvedHostname,
|
|
210
|
+
port,
|
|
211
|
+
method: "POST",
|
|
212
|
+
headers,
|
|
213
|
+
path: resolvedPath,
|
|
214
|
+
body,
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
exports.se_CreateAccessGrantsLocationCommand = se_CreateAccessGrantsLocationCommand;
|
|
13
218
|
const se_CreateAccessPointCommand = async (input, context) => {
|
|
14
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
15
220
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
@@ -315,6 +520,127 @@ const se_CreateStorageLensGroupCommand = async (input, context) => {
|
|
|
315
520
|
});
|
|
316
521
|
};
|
|
317
522
|
exports.se_CreateStorageLensGroupCommand = se_CreateStorageLensGroupCommand;
|
|
523
|
+
const se_DeleteAccessGrantCommand = async (input, context) => {
|
|
524
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
525
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
526
|
+
"x-amz-account-id": input.AccountId,
|
|
527
|
+
});
|
|
528
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
529
|
+
"/v20180820/accessgrantsinstance/grant/{AccessGrantId}";
|
|
530
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AccessGrantId", () => input.AccessGrantId, "{AccessGrantId}", false);
|
|
531
|
+
let body;
|
|
532
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
533
|
+
if (context.disableHostPrefix !== true) {
|
|
534
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
535
|
+
if (input.AccountId === undefined) {
|
|
536
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
537
|
+
}
|
|
538
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
539
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
540
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
return new protocol_http_1.HttpRequest({
|
|
544
|
+
protocol,
|
|
545
|
+
hostname: resolvedHostname,
|
|
546
|
+
port,
|
|
547
|
+
method: "DELETE",
|
|
548
|
+
headers,
|
|
549
|
+
path: resolvedPath,
|
|
550
|
+
body,
|
|
551
|
+
});
|
|
552
|
+
};
|
|
553
|
+
exports.se_DeleteAccessGrantCommand = se_DeleteAccessGrantCommand;
|
|
554
|
+
const se_DeleteAccessGrantsInstanceCommand = async (input, context) => {
|
|
555
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
556
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
557
|
+
"x-amz-account-id": input.AccountId,
|
|
558
|
+
});
|
|
559
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance";
|
|
560
|
+
let body;
|
|
561
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
562
|
+
if (context.disableHostPrefix !== true) {
|
|
563
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
564
|
+
if (input.AccountId === undefined) {
|
|
565
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
566
|
+
}
|
|
567
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
568
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
569
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
return new protocol_http_1.HttpRequest({
|
|
573
|
+
protocol,
|
|
574
|
+
hostname: resolvedHostname,
|
|
575
|
+
port,
|
|
576
|
+
method: "DELETE",
|
|
577
|
+
headers,
|
|
578
|
+
path: resolvedPath,
|
|
579
|
+
body,
|
|
580
|
+
});
|
|
581
|
+
};
|
|
582
|
+
exports.se_DeleteAccessGrantsInstanceCommand = se_DeleteAccessGrantsInstanceCommand;
|
|
583
|
+
const se_DeleteAccessGrantsInstanceResourcePolicyCommand = async (input, context) => {
|
|
584
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
585
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
586
|
+
"x-amz-account-id": input.AccountId,
|
|
587
|
+
});
|
|
588
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
589
|
+
"/v20180820/accessgrantsinstance/resourcepolicy";
|
|
590
|
+
let body;
|
|
591
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
592
|
+
if (context.disableHostPrefix !== true) {
|
|
593
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
594
|
+
if (input.AccountId === undefined) {
|
|
595
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
596
|
+
}
|
|
597
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
598
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
599
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
return new protocol_http_1.HttpRequest({
|
|
603
|
+
protocol,
|
|
604
|
+
hostname: resolvedHostname,
|
|
605
|
+
port,
|
|
606
|
+
method: "DELETE",
|
|
607
|
+
headers,
|
|
608
|
+
path: resolvedPath,
|
|
609
|
+
body,
|
|
610
|
+
});
|
|
611
|
+
};
|
|
612
|
+
exports.se_DeleteAccessGrantsInstanceResourcePolicyCommand = se_DeleteAccessGrantsInstanceResourcePolicyCommand;
|
|
613
|
+
const se_DeleteAccessGrantsLocationCommand = async (input, context) => {
|
|
614
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
615
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
616
|
+
"x-amz-account-id": input.AccountId,
|
|
617
|
+
});
|
|
618
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
619
|
+
"/v20180820/accessgrantsinstance/location/{AccessGrantsLocationId}";
|
|
620
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AccessGrantsLocationId", () => input.AccessGrantsLocationId, "{AccessGrantsLocationId}", false);
|
|
621
|
+
let body;
|
|
622
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
623
|
+
if (context.disableHostPrefix !== true) {
|
|
624
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
625
|
+
if (input.AccountId === undefined) {
|
|
626
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
627
|
+
}
|
|
628
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
629
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
630
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
return new protocol_http_1.HttpRequest({
|
|
634
|
+
protocol,
|
|
635
|
+
hostname: resolvedHostname,
|
|
636
|
+
port,
|
|
637
|
+
method: "DELETE",
|
|
638
|
+
headers,
|
|
639
|
+
path: resolvedPath,
|
|
640
|
+
body,
|
|
641
|
+
});
|
|
642
|
+
};
|
|
643
|
+
exports.se_DeleteAccessGrantsLocationCommand = se_DeleteAccessGrantsLocationCommand;
|
|
318
644
|
const se_DeleteAccessPointCommand = async (input, context) => {
|
|
319
645
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
320
646
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
@@ -405,15 +731,196 @@ const se_DeleteAccessPointPolicyCommand = async (input, context) => {
|
|
|
405
731
|
body,
|
|
406
732
|
});
|
|
407
733
|
};
|
|
408
|
-
exports.se_DeleteAccessPointPolicyCommand = se_DeleteAccessPointPolicyCommand;
|
|
409
|
-
const se_DeleteAccessPointPolicyForObjectLambdaCommand = async (input, context) => {
|
|
734
|
+
exports.se_DeleteAccessPointPolicyCommand = se_DeleteAccessPointPolicyCommand;
|
|
735
|
+
const se_DeleteAccessPointPolicyForObjectLambdaCommand = async (input, context) => {
|
|
736
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
737
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
738
|
+
"x-amz-account-id": input.AccountId,
|
|
739
|
+
});
|
|
740
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
741
|
+
"/v20180820/accesspointforobjectlambda/{Name}/policy";
|
|
742
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
743
|
+
let body;
|
|
744
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
745
|
+
if (context.disableHostPrefix !== true) {
|
|
746
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
747
|
+
if (input.AccountId === undefined) {
|
|
748
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
749
|
+
}
|
|
750
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
751
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
752
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
return new protocol_http_1.HttpRequest({
|
|
756
|
+
protocol,
|
|
757
|
+
hostname: resolvedHostname,
|
|
758
|
+
port,
|
|
759
|
+
method: "DELETE",
|
|
760
|
+
headers,
|
|
761
|
+
path: resolvedPath,
|
|
762
|
+
body,
|
|
763
|
+
});
|
|
764
|
+
};
|
|
765
|
+
exports.se_DeleteAccessPointPolicyForObjectLambdaCommand = se_DeleteAccessPointPolicyForObjectLambdaCommand;
|
|
766
|
+
const se_DeleteBucketCommand = async (input, context) => {
|
|
767
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
768
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
769
|
+
"x-amz-account-id": input.AccountId,
|
|
770
|
+
});
|
|
771
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}";
|
|
772
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
773
|
+
let body;
|
|
774
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
775
|
+
if (context.disableHostPrefix !== true) {
|
|
776
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
777
|
+
if (input.AccountId === undefined) {
|
|
778
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
779
|
+
}
|
|
780
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
781
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
782
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
return new protocol_http_1.HttpRequest({
|
|
786
|
+
protocol,
|
|
787
|
+
hostname: resolvedHostname,
|
|
788
|
+
port,
|
|
789
|
+
method: "DELETE",
|
|
790
|
+
headers,
|
|
791
|
+
path: resolvedPath,
|
|
792
|
+
body,
|
|
793
|
+
});
|
|
794
|
+
};
|
|
795
|
+
exports.se_DeleteBucketCommand = se_DeleteBucketCommand;
|
|
796
|
+
const se_DeleteBucketLifecycleConfigurationCommand = async (input, context) => {
|
|
797
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
798
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
799
|
+
"x-amz-account-id": input.AccountId,
|
|
800
|
+
});
|
|
801
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
802
|
+
"/v20180820/bucket/{Bucket}/lifecycleconfiguration";
|
|
803
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
804
|
+
let body;
|
|
805
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
806
|
+
if (context.disableHostPrefix !== true) {
|
|
807
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
808
|
+
if (input.AccountId === undefined) {
|
|
809
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
810
|
+
}
|
|
811
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
812
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
813
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
return new protocol_http_1.HttpRequest({
|
|
817
|
+
protocol,
|
|
818
|
+
hostname: resolvedHostname,
|
|
819
|
+
port,
|
|
820
|
+
method: "DELETE",
|
|
821
|
+
headers,
|
|
822
|
+
path: resolvedPath,
|
|
823
|
+
body,
|
|
824
|
+
});
|
|
825
|
+
};
|
|
826
|
+
exports.se_DeleteBucketLifecycleConfigurationCommand = se_DeleteBucketLifecycleConfigurationCommand;
|
|
827
|
+
const se_DeleteBucketPolicyCommand = async (input, context) => {
|
|
828
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
829
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
830
|
+
"x-amz-account-id": input.AccountId,
|
|
831
|
+
});
|
|
832
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/policy";
|
|
833
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
834
|
+
let body;
|
|
835
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
836
|
+
if (context.disableHostPrefix !== true) {
|
|
837
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
838
|
+
if (input.AccountId === undefined) {
|
|
839
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
840
|
+
}
|
|
841
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
842
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
843
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
return new protocol_http_1.HttpRequest({
|
|
847
|
+
protocol,
|
|
848
|
+
hostname: resolvedHostname,
|
|
849
|
+
port,
|
|
850
|
+
method: "DELETE",
|
|
851
|
+
headers,
|
|
852
|
+
path: resolvedPath,
|
|
853
|
+
body,
|
|
854
|
+
});
|
|
855
|
+
};
|
|
856
|
+
exports.se_DeleteBucketPolicyCommand = se_DeleteBucketPolicyCommand;
|
|
857
|
+
const se_DeleteBucketReplicationCommand = async (input, context) => {
|
|
858
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
859
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
860
|
+
"x-amz-account-id": input.AccountId,
|
|
861
|
+
});
|
|
862
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/replication";
|
|
863
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
864
|
+
let body;
|
|
865
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
866
|
+
if (context.disableHostPrefix !== true) {
|
|
867
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
868
|
+
if (input.AccountId === undefined) {
|
|
869
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
870
|
+
}
|
|
871
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
872
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
873
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
return new protocol_http_1.HttpRequest({
|
|
877
|
+
protocol,
|
|
878
|
+
hostname: resolvedHostname,
|
|
879
|
+
port,
|
|
880
|
+
method: "DELETE",
|
|
881
|
+
headers,
|
|
882
|
+
path: resolvedPath,
|
|
883
|
+
body,
|
|
884
|
+
});
|
|
885
|
+
};
|
|
886
|
+
exports.se_DeleteBucketReplicationCommand = se_DeleteBucketReplicationCommand;
|
|
887
|
+
const se_DeleteBucketTaggingCommand = async (input, context) => {
|
|
888
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
889
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
890
|
+
"x-amz-account-id": input.AccountId,
|
|
891
|
+
});
|
|
892
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/tagging";
|
|
893
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
894
|
+
let body;
|
|
895
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
896
|
+
if (context.disableHostPrefix !== true) {
|
|
897
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
898
|
+
if (input.AccountId === undefined) {
|
|
899
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
900
|
+
}
|
|
901
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
902
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
903
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
return new protocol_http_1.HttpRequest({
|
|
907
|
+
protocol,
|
|
908
|
+
hostname: resolvedHostname,
|
|
909
|
+
port,
|
|
910
|
+
method: "DELETE",
|
|
911
|
+
headers,
|
|
912
|
+
path: resolvedPath,
|
|
913
|
+
body,
|
|
914
|
+
});
|
|
915
|
+
};
|
|
916
|
+
exports.se_DeleteBucketTaggingCommand = se_DeleteBucketTaggingCommand;
|
|
917
|
+
const se_DeleteJobTaggingCommand = async (input, context) => {
|
|
410
918
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
411
919
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
412
920
|
"x-amz-account-id": input.AccountId,
|
|
413
921
|
});
|
|
414
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
415
|
-
|
|
416
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
922
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/tagging";
|
|
923
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
417
924
|
let body;
|
|
418
925
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
419
926
|
if (context.disableHostPrefix !== true) {
|
|
@@ -436,15 +943,30 @@ const se_DeleteAccessPointPolicyForObjectLambdaCommand = async (input, context)
|
|
|
436
943
|
body,
|
|
437
944
|
});
|
|
438
945
|
};
|
|
439
|
-
exports.
|
|
440
|
-
const
|
|
946
|
+
exports.se_DeleteJobTaggingCommand = se_DeleteJobTaggingCommand;
|
|
947
|
+
const se_DeleteMultiRegionAccessPointCommand = async (input, context) => {
|
|
441
948
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
442
949
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
950
|
+
"content-type": "application/xml",
|
|
443
951
|
"x-amz-account-id": input.AccountId,
|
|
444
952
|
});
|
|
445
|
-
|
|
446
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
953
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/async-requests/mrap/delete";
|
|
447
954
|
let body;
|
|
955
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
956
|
+
const bodyNode = new xml_builder_1.XmlNode("DeleteMultiRegionAccessPointRequest");
|
|
957
|
+
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
958
|
+
if (input.ClientToken === undefined) {
|
|
959
|
+
input.ClientToken = (0, uuid_1.v4)();
|
|
960
|
+
}
|
|
961
|
+
if (input.ClientToken !== undefined) {
|
|
962
|
+
const node = xml_builder_1.XmlNode.of("MultiRegionAccessPointClientToken", input.ClientToken).withName("ClientToken");
|
|
963
|
+
bodyNode.addChildNode(node);
|
|
964
|
+
}
|
|
965
|
+
if (input.Details !== undefined) {
|
|
966
|
+
const node = se_DeleteMultiRegionAccessPointInput(input.Details, context).withName("Details");
|
|
967
|
+
bodyNode.addChildNode(node);
|
|
968
|
+
}
|
|
969
|
+
body += bodyNode.toString();
|
|
448
970
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
449
971
|
if (context.disableHostPrefix !== true) {
|
|
450
972
|
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
@@ -460,21 +982,20 @@ const se_DeleteBucketCommand = async (input, context) => {
|
|
|
460
982
|
protocol,
|
|
461
983
|
hostname: resolvedHostname,
|
|
462
984
|
port,
|
|
463
|
-
method: "
|
|
985
|
+
method: "POST",
|
|
464
986
|
headers,
|
|
465
987
|
path: resolvedPath,
|
|
466
988
|
body,
|
|
467
989
|
});
|
|
468
990
|
};
|
|
469
|
-
exports.
|
|
470
|
-
const
|
|
991
|
+
exports.se_DeleteMultiRegionAccessPointCommand = se_DeleteMultiRegionAccessPointCommand;
|
|
992
|
+
const se_DeletePublicAccessBlockCommand = async (input, context) => {
|
|
471
993
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
472
994
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
473
995
|
"x-amz-account-id": input.AccountId,
|
|
474
996
|
});
|
|
475
|
-
|
|
476
|
-
"/v20180820/
|
|
477
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
997
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
998
|
+
"/v20180820/configuration/publicAccessBlock";
|
|
478
999
|
let body;
|
|
479
1000
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
480
1001
|
if (context.disableHostPrefix !== true) {
|
|
@@ -497,14 +1018,14 @@ const se_DeleteBucketLifecycleConfigurationCommand = async (input, context) => {
|
|
|
497
1018
|
body,
|
|
498
1019
|
});
|
|
499
1020
|
};
|
|
500
|
-
exports.
|
|
501
|
-
const
|
|
1021
|
+
exports.se_DeletePublicAccessBlockCommand = se_DeletePublicAccessBlockCommand;
|
|
1022
|
+
const se_DeleteStorageLensConfigurationCommand = async (input, context) => {
|
|
502
1023
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
503
1024
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
504
1025
|
"x-amz-account-id": input.AccountId,
|
|
505
1026
|
});
|
|
506
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/
|
|
507
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
1027
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}";
|
|
1028
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigId", () => input.ConfigId, "{ConfigId}", false);
|
|
508
1029
|
let body;
|
|
509
1030
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
510
1031
|
if (context.disableHostPrefix !== true) {
|
|
@@ -527,14 +1048,14 @@ const se_DeleteBucketPolicyCommand = async (input, context) => {
|
|
|
527
1048
|
body,
|
|
528
1049
|
});
|
|
529
1050
|
};
|
|
530
|
-
exports.
|
|
531
|
-
const
|
|
1051
|
+
exports.se_DeleteStorageLensConfigurationCommand = se_DeleteStorageLensConfigurationCommand;
|
|
1052
|
+
const se_DeleteStorageLensConfigurationTaggingCommand = async (input, context) => {
|
|
532
1053
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
533
1054
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
534
1055
|
"x-amz-account-id": input.AccountId,
|
|
535
1056
|
});
|
|
536
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/
|
|
537
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
1057
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}/tagging";
|
|
1058
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigId", () => input.ConfigId, "{ConfigId}", false);
|
|
538
1059
|
let body;
|
|
539
1060
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
540
1061
|
if (context.disableHostPrefix !== true) {
|
|
@@ -557,14 +1078,14 @@ const se_DeleteBucketReplicationCommand = async (input, context) => {
|
|
|
557
1078
|
body,
|
|
558
1079
|
});
|
|
559
1080
|
};
|
|
560
|
-
exports.
|
|
561
|
-
const
|
|
1081
|
+
exports.se_DeleteStorageLensConfigurationTaggingCommand = se_DeleteStorageLensConfigurationTaggingCommand;
|
|
1082
|
+
const se_DeleteStorageLensGroupCommand = async (input, context) => {
|
|
562
1083
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
563
1084
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
564
1085
|
"x-amz-account-id": input.AccountId,
|
|
565
1086
|
});
|
|
566
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/
|
|
567
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
1087
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}";
|
|
1088
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
568
1089
|
let body;
|
|
569
1090
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
570
1091
|
if (context.disableHostPrefix !== true) {
|
|
@@ -587,13 +1108,13 @@ const se_DeleteBucketTaggingCommand = async (input, context) => {
|
|
|
587
1108
|
body,
|
|
588
1109
|
});
|
|
589
1110
|
};
|
|
590
|
-
exports.
|
|
591
|
-
const
|
|
1111
|
+
exports.se_DeleteStorageLensGroupCommand = se_DeleteStorageLensGroupCommand;
|
|
1112
|
+
const se_DescribeJobCommand = async (input, context) => {
|
|
592
1113
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
593
1114
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
594
1115
|
"x-amz-account-id": input.AccountId,
|
|
595
1116
|
});
|
|
596
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}
|
|
1117
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}";
|
|
597
1118
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
598
1119
|
let body;
|
|
599
1120
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -611,36 +1132,22 @@ const se_DeleteJobTaggingCommand = async (input, context) => {
|
|
|
611
1132
|
protocol,
|
|
612
1133
|
hostname: resolvedHostname,
|
|
613
1134
|
port,
|
|
614
|
-
method: "
|
|
1135
|
+
method: "GET",
|
|
615
1136
|
headers,
|
|
616
1137
|
path: resolvedPath,
|
|
617
1138
|
body,
|
|
618
1139
|
});
|
|
619
1140
|
};
|
|
620
|
-
exports.
|
|
621
|
-
const
|
|
1141
|
+
exports.se_DescribeJobCommand = se_DescribeJobCommand;
|
|
1142
|
+
const se_DescribeMultiRegionAccessPointOperationCommand = async (input, context) => {
|
|
622
1143
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
623
1144
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
624
|
-
"content-type": "application/xml",
|
|
625
1145
|
"x-amz-account-id": input.AccountId,
|
|
626
1146
|
});
|
|
627
|
-
|
|
1147
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1148
|
+
"/v20180820/async-requests/mrap/{RequestTokenARN+}";
|
|
1149
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RequestTokenARN", () => input.RequestTokenARN, "{RequestTokenARN+}", true);
|
|
628
1150
|
let body;
|
|
629
|
-
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
630
|
-
const bodyNode = new xml_builder_1.XmlNode("DeleteMultiRegionAccessPointRequest");
|
|
631
|
-
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
632
|
-
if (input.ClientToken === undefined) {
|
|
633
|
-
input.ClientToken = (0, uuid_1.v4)();
|
|
634
|
-
}
|
|
635
|
-
if (input.ClientToken !== undefined) {
|
|
636
|
-
const node = xml_builder_1.XmlNode.of("MultiRegionAccessPointClientToken", input.ClientToken).withName("ClientToken");
|
|
637
|
-
bodyNode.addChildNode(node);
|
|
638
|
-
}
|
|
639
|
-
if (input.Details !== undefined) {
|
|
640
|
-
const node = se_DeleteMultiRegionAccessPointInput(input.Details, context).withName("Details");
|
|
641
|
-
bodyNode.addChildNode(node);
|
|
642
|
-
}
|
|
643
|
-
body += bodyNode.toString();
|
|
644
1151
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
645
1152
|
if (context.disableHostPrefix !== true) {
|
|
646
1153
|
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
@@ -656,20 +1163,20 @@ const se_DeleteMultiRegionAccessPointCommand = async (input, context) => {
|
|
|
656
1163
|
protocol,
|
|
657
1164
|
hostname: resolvedHostname,
|
|
658
1165
|
port,
|
|
659
|
-
method: "
|
|
1166
|
+
method: "GET",
|
|
660
1167
|
headers,
|
|
661
1168
|
path: resolvedPath,
|
|
662
1169
|
body,
|
|
663
1170
|
});
|
|
664
1171
|
};
|
|
665
|
-
exports.
|
|
666
|
-
const
|
|
1172
|
+
exports.se_DescribeMultiRegionAccessPointOperationCommand = se_DescribeMultiRegionAccessPointOperationCommand;
|
|
1173
|
+
const se_DissociateAccessGrantsIdentityCenterCommand = async (input, context) => {
|
|
667
1174
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
668
1175
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
669
1176
|
"x-amz-account-id": input.AccountId,
|
|
670
1177
|
});
|
|
671
1178
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
672
|
-
"/v20180820/
|
|
1179
|
+
"/v20180820/accessgrantsinstance/identitycenter";
|
|
673
1180
|
let body;
|
|
674
1181
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
675
1182
|
if (context.disableHostPrefix !== true) {
|
|
@@ -692,14 +1199,15 @@ const se_DeletePublicAccessBlockCommand = async (input, context) => {
|
|
|
692
1199
|
body,
|
|
693
1200
|
});
|
|
694
1201
|
};
|
|
695
|
-
exports.
|
|
696
|
-
const
|
|
1202
|
+
exports.se_DissociateAccessGrantsIdentityCenterCommand = se_DissociateAccessGrantsIdentityCenterCommand;
|
|
1203
|
+
const se_GetAccessGrantCommand = async (input, context) => {
|
|
697
1204
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
698
1205
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
699
1206
|
"x-amz-account-id": input.AccountId,
|
|
700
1207
|
});
|
|
701
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
702
|
-
|
|
1208
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1209
|
+
"/v20180820/accessgrantsinstance/grant/{AccessGrantId}";
|
|
1210
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AccessGrantId", () => input.AccessGrantId, "{AccessGrantId}", false);
|
|
703
1211
|
let body;
|
|
704
1212
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
705
1213
|
if (context.disableHostPrefix !== true) {
|
|
@@ -716,20 +1224,19 @@ const se_DeleteStorageLensConfigurationCommand = async (input, context) => {
|
|
|
716
1224
|
protocol,
|
|
717
1225
|
hostname: resolvedHostname,
|
|
718
1226
|
port,
|
|
719
|
-
method: "
|
|
1227
|
+
method: "GET",
|
|
720
1228
|
headers,
|
|
721
1229
|
path: resolvedPath,
|
|
722
1230
|
body,
|
|
723
1231
|
});
|
|
724
1232
|
};
|
|
725
|
-
exports.
|
|
726
|
-
const
|
|
1233
|
+
exports.se_GetAccessGrantCommand = se_GetAccessGrantCommand;
|
|
1234
|
+
const se_GetAccessGrantsInstanceCommand = async (input, context) => {
|
|
727
1235
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
728
1236
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
729
1237
|
"x-amz-account-id": input.AccountId,
|
|
730
1238
|
});
|
|
731
|
-
|
|
732
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigId", () => input.ConfigId, "{ConfigId}", false);
|
|
1239
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance";
|
|
733
1240
|
let body;
|
|
734
1241
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
735
1242
|
if (context.disableHostPrefix !== true) {
|
|
@@ -746,20 +1253,22 @@ const se_DeleteStorageLensConfigurationTaggingCommand = async (input, context) =
|
|
|
746
1253
|
protocol,
|
|
747
1254
|
hostname: resolvedHostname,
|
|
748
1255
|
port,
|
|
749
|
-
method: "
|
|
1256
|
+
method: "GET",
|
|
750
1257
|
headers,
|
|
751
1258
|
path: resolvedPath,
|
|
752
1259
|
body,
|
|
753
1260
|
});
|
|
754
1261
|
};
|
|
755
|
-
exports.
|
|
756
|
-
const
|
|
1262
|
+
exports.se_GetAccessGrantsInstanceCommand = se_GetAccessGrantsInstanceCommand;
|
|
1263
|
+
const se_GetAccessGrantsInstanceForPrefixCommand = async (input, context) => {
|
|
757
1264
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
758
1265
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
759
1266
|
"x-amz-account-id": input.AccountId,
|
|
760
1267
|
});
|
|
761
|
-
|
|
762
|
-
|
|
1268
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance/prefix";
|
|
1269
|
+
const query = (0, smithy_client_1.map)({
|
|
1270
|
+
s3prefix: [, (0, smithy_client_1.expectNonNull)(input.S3Prefix, `S3Prefix`)],
|
|
1271
|
+
});
|
|
763
1272
|
let body;
|
|
764
1273
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
765
1274
|
if (context.disableHostPrefix !== true) {
|
|
@@ -776,20 +1285,21 @@ const se_DeleteStorageLensGroupCommand = async (input, context) => {
|
|
|
776
1285
|
protocol,
|
|
777
1286
|
hostname: resolvedHostname,
|
|
778
1287
|
port,
|
|
779
|
-
method: "
|
|
1288
|
+
method: "GET",
|
|
780
1289
|
headers,
|
|
781
1290
|
path: resolvedPath,
|
|
1291
|
+
query,
|
|
782
1292
|
body,
|
|
783
1293
|
});
|
|
784
1294
|
};
|
|
785
|
-
exports.
|
|
786
|
-
const
|
|
1295
|
+
exports.se_GetAccessGrantsInstanceForPrefixCommand = se_GetAccessGrantsInstanceForPrefixCommand;
|
|
1296
|
+
const se_GetAccessGrantsInstanceResourcePolicyCommand = async (input, context) => {
|
|
787
1297
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
788
1298
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
789
1299
|
"x-amz-account-id": input.AccountId,
|
|
790
1300
|
});
|
|
791
|
-
|
|
792
|
-
|
|
1301
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1302
|
+
"/v20180820/accessgrantsinstance/resourcepolicy";
|
|
793
1303
|
let body;
|
|
794
1304
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
795
1305
|
if (context.disableHostPrefix !== true) {
|
|
@@ -812,15 +1322,15 @@ const se_DescribeJobCommand = async (input, context) => {
|
|
|
812
1322
|
body,
|
|
813
1323
|
});
|
|
814
1324
|
};
|
|
815
|
-
exports.
|
|
816
|
-
const
|
|
1325
|
+
exports.se_GetAccessGrantsInstanceResourcePolicyCommand = se_GetAccessGrantsInstanceResourcePolicyCommand;
|
|
1326
|
+
const se_GetAccessGrantsLocationCommand = async (input, context) => {
|
|
817
1327
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
818
1328
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
819
1329
|
"x-amz-account-id": input.AccountId,
|
|
820
1330
|
});
|
|
821
1331
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
822
|
-
"/v20180820/
|
|
823
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
1332
|
+
"/v20180820/accessgrantsinstance/location/{AccessGrantsLocationId}";
|
|
1333
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AccessGrantsLocationId", () => input.AccessGrantsLocationId, "{AccessGrantsLocationId}", false);
|
|
824
1334
|
let body;
|
|
825
1335
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
826
1336
|
if (context.disableHostPrefix !== true) {
|
|
@@ -843,7 +1353,7 @@ const se_DescribeMultiRegionAccessPointOperationCommand = async (input, context)
|
|
|
843
1353
|
body,
|
|
844
1354
|
});
|
|
845
1355
|
};
|
|
846
|
-
exports.
|
|
1356
|
+
exports.se_GetAccessGrantsLocationCommand = se_GetAccessGrantsLocationCommand;
|
|
847
1357
|
const se_GetAccessPointCommand = async (input, context) => {
|
|
848
1358
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
849
1359
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
@@ -1239,14 +1749,143 @@ const se_GetBucketVersioningCommand = async (input, context) => {
|
|
|
1239
1749
|
body,
|
|
1240
1750
|
});
|
|
1241
1751
|
};
|
|
1242
|
-
exports.se_GetBucketVersioningCommand = se_GetBucketVersioningCommand;
|
|
1243
|
-
const
|
|
1752
|
+
exports.se_GetBucketVersioningCommand = se_GetBucketVersioningCommand;
|
|
1753
|
+
const se_GetDataAccessCommand = async (input, context) => {
|
|
1754
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1755
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1756
|
+
"x-amz-account-id": input.AccountId,
|
|
1757
|
+
});
|
|
1758
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1759
|
+
"/v20180820/accessgrantsinstance/dataaccess";
|
|
1760
|
+
const query = (0, smithy_client_1.map)({
|
|
1761
|
+
target: [, (0, smithy_client_1.expectNonNull)(input.Target, `Target`)],
|
|
1762
|
+
permission: [, (0, smithy_client_1.expectNonNull)(input.Permission, `Permission`)],
|
|
1763
|
+
durationSeconds: [() => input.DurationSeconds !== void 0, () => input.DurationSeconds.toString()],
|
|
1764
|
+
privilege: [, input.Privilege],
|
|
1765
|
+
targetType: [, input.TargetType],
|
|
1766
|
+
});
|
|
1767
|
+
let body;
|
|
1768
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1769
|
+
if (context.disableHostPrefix !== true) {
|
|
1770
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
1771
|
+
if (input.AccountId === undefined) {
|
|
1772
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
1773
|
+
}
|
|
1774
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
1775
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1776
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
return new protocol_http_1.HttpRequest({
|
|
1780
|
+
protocol,
|
|
1781
|
+
hostname: resolvedHostname,
|
|
1782
|
+
port,
|
|
1783
|
+
method: "GET",
|
|
1784
|
+
headers,
|
|
1785
|
+
path: resolvedPath,
|
|
1786
|
+
query,
|
|
1787
|
+
body,
|
|
1788
|
+
});
|
|
1789
|
+
};
|
|
1790
|
+
exports.se_GetDataAccessCommand = se_GetDataAccessCommand;
|
|
1791
|
+
const se_GetJobTaggingCommand = async (input, context) => {
|
|
1792
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1793
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1794
|
+
"x-amz-account-id": input.AccountId,
|
|
1795
|
+
});
|
|
1796
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/tagging";
|
|
1797
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
1798
|
+
let body;
|
|
1799
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1800
|
+
if (context.disableHostPrefix !== true) {
|
|
1801
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
1802
|
+
if (input.AccountId === undefined) {
|
|
1803
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
1804
|
+
}
|
|
1805
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
1806
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1807
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
return new protocol_http_1.HttpRequest({
|
|
1811
|
+
protocol,
|
|
1812
|
+
hostname: resolvedHostname,
|
|
1813
|
+
port,
|
|
1814
|
+
method: "GET",
|
|
1815
|
+
headers,
|
|
1816
|
+
path: resolvedPath,
|
|
1817
|
+
body,
|
|
1818
|
+
});
|
|
1819
|
+
};
|
|
1820
|
+
exports.se_GetJobTaggingCommand = se_GetJobTaggingCommand;
|
|
1821
|
+
const se_GetMultiRegionAccessPointCommand = async (input, context) => {
|
|
1822
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1823
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1824
|
+
"x-amz-account-id": input.AccountId,
|
|
1825
|
+
});
|
|
1826
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name+}";
|
|
1827
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name+}", true);
|
|
1828
|
+
let body;
|
|
1829
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1830
|
+
if (context.disableHostPrefix !== true) {
|
|
1831
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
1832
|
+
if (input.AccountId === undefined) {
|
|
1833
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
1834
|
+
}
|
|
1835
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
1836
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1837
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
return new protocol_http_1.HttpRequest({
|
|
1841
|
+
protocol,
|
|
1842
|
+
hostname: resolvedHostname,
|
|
1843
|
+
port,
|
|
1844
|
+
method: "GET",
|
|
1845
|
+
headers,
|
|
1846
|
+
path: resolvedPath,
|
|
1847
|
+
body,
|
|
1848
|
+
});
|
|
1849
|
+
};
|
|
1850
|
+
exports.se_GetMultiRegionAccessPointCommand = se_GetMultiRegionAccessPointCommand;
|
|
1851
|
+
const se_GetMultiRegionAccessPointPolicyCommand = async (input, context) => {
|
|
1852
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1853
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1854
|
+
"x-amz-account-id": input.AccountId,
|
|
1855
|
+
});
|
|
1856
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name+}/policy";
|
|
1857
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name+}", true);
|
|
1858
|
+
let body;
|
|
1859
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1860
|
+
if (context.disableHostPrefix !== true) {
|
|
1861
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
1862
|
+
if (input.AccountId === undefined) {
|
|
1863
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
1864
|
+
}
|
|
1865
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
1866
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1867
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
return new protocol_http_1.HttpRequest({
|
|
1871
|
+
protocol,
|
|
1872
|
+
hostname: resolvedHostname,
|
|
1873
|
+
port,
|
|
1874
|
+
method: "GET",
|
|
1875
|
+
headers,
|
|
1876
|
+
path: resolvedPath,
|
|
1877
|
+
body,
|
|
1878
|
+
});
|
|
1879
|
+
};
|
|
1880
|
+
exports.se_GetMultiRegionAccessPointPolicyCommand = se_GetMultiRegionAccessPointPolicyCommand;
|
|
1881
|
+
const se_GetMultiRegionAccessPointPolicyStatusCommand = async (input, context) => {
|
|
1244
1882
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1245
1883
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1246
1884
|
"x-amz-account-id": input.AccountId,
|
|
1247
1885
|
});
|
|
1248
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1249
|
-
|
|
1886
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1887
|
+
"/v20180820/mrap/instances/{Name+}/policystatus";
|
|
1888
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name+}", true);
|
|
1250
1889
|
let body;
|
|
1251
1890
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1252
1891
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1269,14 +1908,14 @@ const se_GetJobTaggingCommand = async (input, context) => {
|
|
|
1269
1908
|
body,
|
|
1270
1909
|
});
|
|
1271
1910
|
};
|
|
1272
|
-
exports.
|
|
1273
|
-
const
|
|
1911
|
+
exports.se_GetMultiRegionAccessPointPolicyStatusCommand = se_GetMultiRegionAccessPointPolicyStatusCommand;
|
|
1912
|
+
const se_GetMultiRegionAccessPointRoutesCommand = async (input, context) => {
|
|
1274
1913
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1275
1914
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1276
1915
|
"x-amz-account-id": input.AccountId,
|
|
1277
1916
|
});
|
|
1278
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{
|
|
1279
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
1917
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Mrap+}/routes";
|
|
1918
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Mrap", () => input.Mrap, "{Mrap+}", true);
|
|
1280
1919
|
let body;
|
|
1281
1920
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1282
1921
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1299,14 +1938,14 @@ const se_GetMultiRegionAccessPointCommand = async (input, context) => {
|
|
|
1299
1938
|
body,
|
|
1300
1939
|
});
|
|
1301
1940
|
};
|
|
1302
|
-
exports.
|
|
1303
|
-
const
|
|
1941
|
+
exports.se_GetMultiRegionAccessPointRoutesCommand = se_GetMultiRegionAccessPointRoutesCommand;
|
|
1942
|
+
const se_GetPublicAccessBlockCommand = async (input, context) => {
|
|
1304
1943
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1305
1944
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1306
1945
|
"x-amz-account-id": input.AccountId,
|
|
1307
1946
|
});
|
|
1308
|
-
|
|
1309
|
-
|
|
1947
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1948
|
+
"/v20180820/configuration/publicAccessBlock";
|
|
1310
1949
|
let body;
|
|
1311
1950
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1312
1951
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1329,15 +1968,14 @@ const se_GetMultiRegionAccessPointPolicyCommand = async (input, context) => {
|
|
|
1329
1968
|
body,
|
|
1330
1969
|
});
|
|
1331
1970
|
};
|
|
1332
|
-
exports.
|
|
1333
|
-
const
|
|
1971
|
+
exports.se_GetPublicAccessBlockCommand = se_GetPublicAccessBlockCommand;
|
|
1972
|
+
const se_GetStorageLensConfigurationCommand = async (input, context) => {
|
|
1334
1973
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1335
1974
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1336
1975
|
"x-amz-account-id": input.AccountId,
|
|
1337
1976
|
});
|
|
1338
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1339
|
-
|
|
1340
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name+}", true);
|
|
1977
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}";
|
|
1978
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigId", () => input.ConfigId, "{ConfigId}", false);
|
|
1341
1979
|
let body;
|
|
1342
1980
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1343
1981
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1360,14 +1998,14 @@ const se_GetMultiRegionAccessPointPolicyStatusCommand = async (input, context) =
|
|
|
1360
1998
|
body,
|
|
1361
1999
|
});
|
|
1362
2000
|
};
|
|
1363
|
-
exports.
|
|
1364
|
-
const
|
|
2001
|
+
exports.se_GetStorageLensConfigurationCommand = se_GetStorageLensConfigurationCommand;
|
|
2002
|
+
const se_GetStorageLensConfigurationTaggingCommand = async (input, context) => {
|
|
1365
2003
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1366
2004
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1367
2005
|
"x-amz-account-id": input.AccountId,
|
|
1368
2006
|
});
|
|
1369
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/
|
|
1370
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
2007
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}/tagging";
|
|
2008
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigId", () => input.ConfigId, "{ConfigId}", false);
|
|
1371
2009
|
let body;
|
|
1372
2010
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1373
2011
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1390,14 +2028,14 @@ const se_GetMultiRegionAccessPointRoutesCommand = async (input, context) => {
|
|
|
1390
2028
|
body,
|
|
1391
2029
|
});
|
|
1392
2030
|
};
|
|
1393
|
-
exports.
|
|
1394
|
-
const
|
|
2031
|
+
exports.se_GetStorageLensConfigurationTaggingCommand = se_GetStorageLensConfigurationTaggingCommand;
|
|
2032
|
+
const se_GetStorageLensGroupCommand = async (input, context) => {
|
|
1395
2033
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1396
2034
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1397
2035
|
"x-amz-account-id": input.AccountId,
|
|
1398
2036
|
});
|
|
1399
|
-
|
|
1400
|
-
|
|
2037
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}";
|
|
2038
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
1401
2039
|
let body;
|
|
1402
2040
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1403
2041
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1420,14 +2058,22 @@ const se_GetPublicAccessBlockCommand = async (input, context) => {
|
|
|
1420
2058
|
body,
|
|
1421
2059
|
});
|
|
1422
2060
|
};
|
|
1423
|
-
exports.
|
|
1424
|
-
const
|
|
2061
|
+
exports.se_GetStorageLensGroupCommand = se_GetStorageLensGroupCommand;
|
|
2062
|
+
const se_ListAccessGrantsCommand = async (input, context) => {
|
|
1425
2063
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1426
2064
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1427
2065
|
"x-amz-account-id": input.AccountId,
|
|
1428
2066
|
});
|
|
1429
|
-
|
|
1430
|
-
|
|
2067
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance/grants";
|
|
2068
|
+
const query = (0, smithy_client_1.map)({
|
|
2069
|
+
nextToken: [, input.NextToken],
|
|
2070
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
2071
|
+
granteetype: [, input.GranteeType],
|
|
2072
|
+
granteeidentifier: [, input.GranteeIdentifier],
|
|
2073
|
+
permission: [, input.Permission],
|
|
2074
|
+
grantscope: [, input.GrantScope],
|
|
2075
|
+
application_arn: [, input.ApplicationArn],
|
|
2076
|
+
});
|
|
1431
2077
|
let body;
|
|
1432
2078
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1433
2079
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1447,17 +2093,21 @@ const se_GetStorageLensConfigurationCommand = async (input, context) => {
|
|
|
1447
2093
|
method: "GET",
|
|
1448
2094
|
headers,
|
|
1449
2095
|
path: resolvedPath,
|
|
2096
|
+
query,
|
|
1450
2097
|
body,
|
|
1451
2098
|
});
|
|
1452
2099
|
};
|
|
1453
|
-
exports.
|
|
1454
|
-
const
|
|
2100
|
+
exports.se_ListAccessGrantsCommand = se_ListAccessGrantsCommand;
|
|
2101
|
+
const se_ListAccessGrantsInstancesCommand = async (input, context) => {
|
|
1455
2102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1456
2103
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1457
2104
|
"x-amz-account-id": input.AccountId,
|
|
1458
2105
|
});
|
|
1459
|
-
|
|
1460
|
-
|
|
2106
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstances";
|
|
2107
|
+
const query = (0, smithy_client_1.map)({
|
|
2108
|
+
nextToken: [, input.NextToken],
|
|
2109
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
2110
|
+
});
|
|
1461
2111
|
let body;
|
|
1462
2112
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1463
2113
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1477,17 +2127,22 @@ const se_GetStorageLensConfigurationTaggingCommand = async (input, context) => {
|
|
|
1477
2127
|
method: "GET",
|
|
1478
2128
|
headers,
|
|
1479
2129
|
path: resolvedPath,
|
|
2130
|
+
query,
|
|
1480
2131
|
body,
|
|
1481
2132
|
});
|
|
1482
2133
|
};
|
|
1483
|
-
exports.
|
|
1484
|
-
const
|
|
2134
|
+
exports.se_ListAccessGrantsInstancesCommand = se_ListAccessGrantsInstancesCommand;
|
|
2135
|
+
const se_ListAccessGrantsLocationsCommand = async (input, context) => {
|
|
1485
2136
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1486
2137
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1487
2138
|
"x-amz-account-id": input.AccountId,
|
|
1488
2139
|
});
|
|
1489
|
-
|
|
1490
|
-
|
|
2140
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance/locations";
|
|
2141
|
+
const query = (0, smithy_client_1.map)({
|
|
2142
|
+
nextToken: [, input.NextToken],
|
|
2143
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
2144
|
+
locationscope: [, input.LocationScope],
|
|
2145
|
+
});
|
|
1491
2146
|
let body;
|
|
1492
2147
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1493
2148
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1507,10 +2162,11 @@ const se_GetStorageLensGroupCommand = async (input, context) => {
|
|
|
1507
2162
|
method: "GET",
|
|
1508
2163
|
headers,
|
|
1509
2164
|
path: resolvedPath,
|
|
2165
|
+
query,
|
|
1510
2166
|
body,
|
|
1511
2167
|
});
|
|
1512
2168
|
};
|
|
1513
|
-
exports.
|
|
2169
|
+
exports.se_ListAccessGrantsLocationsCommand = se_ListAccessGrantsLocationsCommand;
|
|
1514
2170
|
const se_ListAccessPointsCommand = async (input, context) => {
|
|
1515
2171
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1516
2172
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
@@ -1780,6 +2436,49 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
1780
2436
|
});
|
|
1781
2437
|
};
|
|
1782
2438
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
2439
|
+
const se_PutAccessGrantsInstanceResourcePolicyCommand = async (input, context) => {
|
|
2440
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2441
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
2442
|
+
"content-type": "application/xml",
|
|
2443
|
+
"x-amz-account-id": input.AccountId,
|
|
2444
|
+
});
|
|
2445
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2446
|
+
"/v20180820/accessgrantsinstance/resourcepolicy";
|
|
2447
|
+
let body;
|
|
2448
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2449
|
+
const bodyNode = new xml_builder_1.XmlNode("PutAccessGrantsInstanceResourcePolicyRequest");
|
|
2450
|
+
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
2451
|
+
if (input.Organization !== undefined) {
|
|
2452
|
+
const node = xml_builder_1.XmlNode.of("Organization", input.Organization).withName("Organization");
|
|
2453
|
+
bodyNode.addChildNode(node);
|
|
2454
|
+
}
|
|
2455
|
+
if (input.Policy !== undefined) {
|
|
2456
|
+
const node = xml_builder_1.XmlNode.of("PolicyDocument", input.Policy).withName("Policy");
|
|
2457
|
+
bodyNode.addChildNode(node);
|
|
2458
|
+
}
|
|
2459
|
+
body += bodyNode.toString();
|
|
2460
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2461
|
+
if (context.disableHostPrefix !== true) {
|
|
2462
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
2463
|
+
if (input.AccountId === undefined) {
|
|
2464
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
2465
|
+
}
|
|
2466
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
2467
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2468
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
return new protocol_http_1.HttpRequest({
|
|
2472
|
+
protocol,
|
|
2473
|
+
hostname: resolvedHostname,
|
|
2474
|
+
port,
|
|
2475
|
+
method: "PUT",
|
|
2476
|
+
headers,
|
|
2477
|
+
path: resolvedPath,
|
|
2478
|
+
body,
|
|
2479
|
+
});
|
|
2480
|
+
};
|
|
2481
|
+
exports.se_PutAccessGrantsInstanceResourcePolicyCommand = se_PutAccessGrantsInstanceResourcePolicyCommand;
|
|
1783
2482
|
const se_PutAccessPointConfigurationForObjectLambdaCommand = async (input, context) => {
|
|
1784
2483
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1785
2484
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
@@ -2450,6 +3149,46 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
2450
3149
|
});
|
|
2451
3150
|
};
|
|
2452
3151
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
3152
|
+
const se_UpdateAccessGrantsLocationCommand = async (input, context) => {
|
|
3153
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3154
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
3155
|
+
"content-type": "application/xml",
|
|
3156
|
+
"x-amz-account-id": input.AccountId,
|
|
3157
|
+
});
|
|
3158
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
3159
|
+
"/v20180820/accessgrantsinstance/location/{AccessGrantsLocationId}";
|
|
3160
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AccessGrantsLocationId", () => input.AccessGrantsLocationId, "{AccessGrantsLocationId}", false);
|
|
3161
|
+
let body;
|
|
3162
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
3163
|
+
const bodyNode = new xml_builder_1.XmlNode("UpdateAccessGrantsLocationRequest");
|
|
3164
|
+
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
3165
|
+
if (input.IAMRoleArn !== undefined) {
|
|
3166
|
+
const node = xml_builder_1.XmlNode.of("IAMRoleArn", input.IAMRoleArn).withName("IAMRoleArn");
|
|
3167
|
+
bodyNode.addChildNode(node);
|
|
3168
|
+
}
|
|
3169
|
+
body += bodyNode.toString();
|
|
3170
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
3171
|
+
if (context.disableHostPrefix !== true) {
|
|
3172
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
3173
|
+
if (input.AccountId === undefined) {
|
|
3174
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
3175
|
+
}
|
|
3176
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
3177
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
3178
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
return new protocol_http_1.HttpRequest({
|
|
3182
|
+
protocol,
|
|
3183
|
+
hostname: resolvedHostname,
|
|
3184
|
+
port,
|
|
3185
|
+
method: "PUT",
|
|
3186
|
+
headers,
|
|
3187
|
+
path: resolvedPath,
|
|
3188
|
+
body,
|
|
3189
|
+
});
|
|
3190
|
+
};
|
|
3191
|
+
exports.se_UpdateAccessGrantsLocationCommand = se_UpdateAccessGrantsLocationCommand;
|
|
2453
3192
|
const se_UpdateJobPriorityCommand = async (input, context) => {
|
|
2454
3193
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2455
3194
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
@@ -2525,39 +3264,189 @@ const se_UpdateStorageLensGroupCommand = async (input, context) => {
|
|
|
2525
3264
|
"content-type": "application/xml",
|
|
2526
3265
|
"x-amz-account-id": input.AccountId,
|
|
2527
3266
|
});
|
|
2528
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}";
|
|
2529
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
2530
|
-
let body;
|
|
2531
|
-
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2532
|
-
const bodyNode = new xml_builder_1.XmlNode("UpdateStorageLensGroupRequest");
|
|
2533
|
-
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
2534
|
-
if (input.StorageLensGroup !== undefined) {
|
|
2535
|
-
const node = se_StorageLensGroup(input.StorageLensGroup, context).withName("StorageLensGroup");
|
|
2536
|
-
bodyNode.addChildNode(node);
|
|
3267
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}";
|
|
3268
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
3269
|
+
let body;
|
|
3270
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
3271
|
+
const bodyNode = new xml_builder_1.XmlNode("UpdateStorageLensGroupRequest");
|
|
3272
|
+
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
3273
|
+
if (input.StorageLensGroup !== undefined) {
|
|
3274
|
+
const node = se_StorageLensGroup(input.StorageLensGroup, context).withName("StorageLensGroup");
|
|
3275
|
+
bodyNode.addChildNode(node);
|
|
3276
|
+
}
|
|
3277
|
+
body += bodyNode.toString();
|
|
3278
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
3279
|
+
if (context.disableHostPrefix !== true) {
|
|
3280
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
3281
|
+
if (input.AccountId === undefined) {
|
|
3282
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
3283
|
+
}
|
|
3284
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
3285
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
3286
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
3287
|
+
}
|
|
3288
|
+
}
|
|
3289
|
+
return new protocol_http_1.HttpRequest({
|
|
3290
|
+
protocol,
|
|
3291
|
+
hostname: resolvedHostname,
|
|
3292
|
+
port,
|
|
3293
|
+
method: "PUT",
|
|
3294
|
+
headers,
|
|
3295
|
+
path: resolvedPath,
|
|
3296
|
+
body,
|
|
3297
|
+
});
|
|
3298
|
+
};
|
|
3299
|
+
exports.se_UpdateStorageLensGroupCommand = se_UpdateStorageLensGroupCommand;
|
|
3300
|
+
const de_AssociateAccessGrantsIdentityCenterCommand = async (output, context) => {
|
|
3301
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3302
|
+
return de_AssociateAccessGrantsIdentityCenterCommandError(output, context);
|
|
3303
|
+
}
|
|
3304
|
+
const contents = (0, smithy_client_1.map)({
|
|
3305
|
+
$metadata: deserializeMetadata(output),
|
|
3306
|
+
});
|
|
3307
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3308
|
+
return contents;
|
|
3309
|
+
};
|
|
3310
|
+
exports.de_AssociateAccessGrantsIdentityCenterCommand = de_AssociateAccessGrantsIdentityCenterCommand;
|
|
3311
|
+
const de_AssociateAccessGrantsIdentityCenterCommandError = async (output, context) => {
|
|
3312
|
+
const parsedOutput = {
|
|
3313
|
+
...output,
|
|
3314
|
+
body: await parseErrorBody(output.body, context),
|
|
3315
|
+
};
|
|
3316
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3317
|
+
const parsedBody = parsedOutput.body;
|
|
3318
|
+
return throwDefaultError({
|
|
3319
|
+
output,
|
|
3320
|
+
parsedBody: parsedBody.Error,
|
|
3321
|
+
errorCode,
|
|
3322
|
+
});
|
|
3323
|
+
};
|
|
3324
|
+
const de_CreateAccessGrantCommand = async (output, context) => {
|
|
3325
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3326
|
+
return de_CreateAccessGrantCommandError(output, context);
|
|
3327
|
+
}
|
|
3328
|
+
const contents = (0, smithy_client_1.map)({
|
|
3329
|
+
$metadata: deserializeMetadata(output),
|
|
3330
|
+
});
|
|
3331
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3332
|
+
if (data["AccessGrantArn"] !== undefined) {
|
|
3333
|
+
contents.AccessGrantArn = (0, smithy_client_1.expectString)(data["AccessGrantArn"]);
|
|
3334
|
+
}
|
|
3335
|
+
if (data["AccessGrantId"] !== undefined) {
|
|
3336
|
+
contents.AccessGrantId = (0, smithy_client_1.expectString)(data["AccessGrantId"]);
|
|
3337
|
+
}
|
|
3338
|
+
if (data["AccessGrantsLocationConfiguration"] !== undefined) {
|
|
3339
|
+
contents.AccessGrantsLocationConfiguration = de_AccessGrantsLocationConfiguration(data["AccessGrantsLocationConfiguration"], context);
|
|
3340
|
+
}
|
|
3341
|
+
if (data["AccessGrantsLocationId"] !== undefined) {
|
|
3342
|
+
contents.AccessGrantsLocationId = (0, smithy_client_1.expectString)(data["AccessGrantsLocationId"]);
|
|
3343
|
+
}
|
|
3344
|
+
if (data["ApplicationArn"] !== undefined) {
|
|
3345
|
+
contents.ApplicationArn = (0, smithy_client_1.expectString)(data["ApplicationArn"]);
|
|
3346
|
+
}
|
|
3347
|
+
if (data["CreatedAt"] !== undefined) {
|
|
3348
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data["CreatedAt"]));
|
|
3349
|
+
}
|
|
3350
|
+
if (data["GrantScope"] !== undefined) {
|
|
3351
|
+
contents.GrantScope = (0, smithy_client_1.expectString)(data["GrantScope"]);
|
|
3352
|
+
}
|
|
3353
|
+
if (data["Grantee"] !== undefined) {
|
|
3354
|
+
contents.Grantee = de_Grantee(data["Grantee"], context);
|
|
3355
|
+
}
|
|
3356
|
+
if (data["Permission"] !== undefined) {
|
|
3357
|
+
contents.Permission = (0, smithy_client_1.expectString)(data["Permission"]);
|
|
3358
|
+
}
|
|
3359
|
+
return contents;
|
|
3360
|
+
};
|
|
3361
|
+
exports.de_CreateAccessGrantCommand = de_CreateAccessGrantCommand;
|
|
3362
|
+
const de_CreateAccessGrantCommandError = async (output, context) => {
|
|
3363
|
+
const parsedOutput = {
|
|
3364
|
+
...output,
|
|
3365
|
+
body: await parseErrorBody(output.body, context),
|
|
3366
|
+
};
|
|
3367
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3368
|
+
const parsedBody = parsedOutput.body;
|
|
3369
|
+
return throwDefaultError({
|
|
3370
|
+
output,
|
|
3371
|
+
parsedBody: parsedBody.Error,
|
|
3372
|
+
errorCode,
|
|
3373
|
+
});
|
|
3374
|
+
};
|
|
3375
|
+
const de_CreateAccessGrantsInstanceCommand = async (output, context) => {
|
|
3376
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3377
|
+
return de_CreateAccessGrantsInstanceCommandError(output, context);
|
|
3378
|
+
}
|
|
3379
|
+
const contents = (0, smithy_client_1.map)({
|
|
3380
|
+
$metadata: deserializeMetadata(output),
|
|
3381
|
+
});
|
|
3382
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3383
|
+
if (data["AccessGrantsInstanceArn"] !== undefined) {
|
|
3384
|
+
contents.AccessGrantsInstanceArn = (0, smithy_client_1.expectString)(data["AccessGrantsInstanceArn"]);
|
|
3385
|
+
}
|
|
3386
|
+
if (data["AccessGrantsInstanceId"] !== undefined) {
|
|
3387
|
+
contents.AccessGrantsInstanceId = (0, smithy_client_1.expectString)(data["AccessGrantsInstanceId"]);
|
|
3388
|
+
}
|
|
3389
|
+
if (data["CreatedAt"] !== undefined) {
|
|
3390
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data["CreatedAt"]));
|
|
3391
|
+
}
|
|
3392
|
+
if (data["IdentityCenterArn"] !== undefined) {
|
|
3393
|
+
contents.IdentityCenterArn = (0, smithy_client_1.expectString)(data["IdentityCenterArn"]);
|
|
3394
|
+
}
|
|
3395
|
+
return contents;
|
|
3396
|
+
};
|
|
3397
|
+
exports.de_CreateAccessGrantsInstanceCommand = de_CreateAccessGrantsInstanceCommand;
|
|
3398
|
+
const de_CreateAccessGrantsInstanceCommandError = async (output, context) => {
|
|
3399
|
+
const parsedOutput = {
|
|
3400
|
+
...output,
|
|
3401
|
+
body: await parseErrorBody(output.body, context),
|
|
3402
|
+
};
|
|
3403
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3404
|
+
const parsedBody = parsedOutput.body;
|
|
3405
|
+
return throwDefaultError({
|
|
3406
|
+
output,
|
|
3407
|
+
parsedBody: parsedBody.Error,
|
|
3408
|
+
errorCode,
|
|
3409
|
+
});
|
|
3410
|
+
};
|
|
3411
|
+
const de_CreateAccessGrantsLocationCommand = async (output, context) => {
|
|
3412
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3413
|
+
return de_CreateAccessGrantsLocationCommandError(output, context);
|
|
3414
|
+
}
|
|
3415
|
+
const contents = (0, smithy_client_1.map)({
|
|
3416
|
+
$metadata: deserializeMetadata(output),
|
|
3417
|
+
});
|
|
3418
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3419
|
+
if (data["AccessGrantsLocationArn"] !== undefined) {
|
|
3420
|
+
contents.AccessGrantsLocationArn = (0, smithy_client_1.expectString)(data["AccessGrantsLocationArn"]);
|
|
2537
3421
|
}
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
if (context.disableHostPrefix !== true) {
|
|
2541
|
-
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
2542
|
-
if (input.AccountId === undefined) {
|
|
2543
|
-
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
2544
|
-
}
|
|
2545
|
-
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
2546
|
-
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2547
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2548
|
-
}
|
|
3422
|
+
if (data["AccessGrantsLocationId"] !== undefined) {
|
|
3423
|
+
contents.AccessGrantsLocationId = (0, smithy_client_1.expectString)(data["AccessGrantsLocationId"]);
|
|
2549
3424
|
}
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
3425
|
+
if (data["CreatedAt"] !== undefined) {
|
|
3426
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data["CreatedAt"]));
|
|
3427
|
+
}
|
|
3428
|
+
if (data["IAMRoleArn"] !== undefined) {
|
|
3429
|
+
contents.IAMRoleArn = (0, smithy_client_1.expectString)(data["IAMRoleArn"]);
|
|
3430
|
+
}
|
|
3431
|
+
if (data["LocationScope"] !== undefined) {
|
|
3432
|
+
contents.LocationScope = (0, smithy_client_1.expectString)(data["LocationScope"]);
|
|
3433
|
+
}
|
|
3434
|
+
return contents;
|
|
3435
|
+
};
|
|
3436
|
+
exports.de_CreateAccessGrantsLocationCommand = de_CreateAccessGrantsLocationCommand;
|
|
3437
|
+
const de_CreateAccessGrantsLocationCommandError = async (output, context) => {
|
|
3438
|
+
const parsedOutput = {
|
|
3439
|
+
...output,
|
|
3440
|
+
body: await parseErrorBody(output.body, context),
|
|
3441
|
+
};
|
|
3442
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3443
|
+
const parsedBody = parsedOutput.body;
|
|
3444
|
+
return throwDefaultError({
|
|
3445
|
+
output,
|
|
3446
|
+
parsedBody: parsedBody.Error,
|
|
3447
|
+
errorCode,
|
|
2558
3448
|
});
|
|
2559
3449
|
};
|
|
2560
|
-
exports.se_UpdateStorageLensGroupCommand = se_UpdateStorageLensGroupCommand;
|
|
2561
3450
|
const de_CreateAccessPointCommand = async (output, context) => {
|
|
2562
3451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2563
3452
|
return de_CreateAccessPointCommandError(output, context);
|
|
@@ -2748,6 +3637,102 @@ const de_CreateStorageLensGroupCommandError = async (output, context) => {
|
|
|
2748
3637
|
errorCode,
|
|
2749
3638
|
});
|
|
2750
3639
|
};
|
|
3640
|
+
const de_DeleteAccessGrantCommand = async (output, context) => {
|
|
3641
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3642
|
+
return de_DeleteAccessGrantCommandError(output, context);
|
|
3643
|
+
}
|
|
3644
|
+
const contents = (0, smithy_client_1.map)({
|
|
3645
|
+
$metadata: deserializeMetadata(output),
|
|
3646
|
+
});
|
|
3647
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3648
|
+
return contents;
|
|
3649
|
+
};
|
|
3650
|
+
exports.de_DeleteAccessGrantCommand = de_DeleteAccessGrantCommand;
|
|
3651
|
+
const de_DeleteAccessGrantCommandError = async (output, context) => {
|
|
3652
|
+
const parsedOutput = {
|
|
3653
|
+
...output,
|
|
3654
|
+
body: await parseErrorBody(output.body, context),
|
|
3655
|
+
};
|
|
3656
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3657
|
+
const parsedBody = parsedOutput.body;
|
|
3658
|
+
return throwDefaultError({
|
|
3659
|
+
output,
|
|
3660
|
+
parsedBody: parsedBody.Error,
|
|
3661
|
+
errorCode,
|
|
3662
|
+
});
|
|
3663
|
+
};
|
|
3664
|
+
const de_DeleteAccessGrantsInstanceCommand = async (output, context) => {
|
|
3665
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3666
|
+
return de_DeleteAccessGrantsInstanceCommandError(output, context);
|
|
3667
|
+
}
|
|
3668
|
+
const contents = (0, smithy_client_1.map)({
|
|
3669
|
+
$metadata: deserializeMetadata(output),
|
|
3670
|
+
});
|
|
3671
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3672
|
+
return contents;
|
|
3673
|
+
};
|
|
3674
|
+
exports.de_DeleteAccessGrantsInstanceCommand = de_DeleteAccessGrantsInstanceCommand;
|
|
3675
|
+
const de_DeleteAccessGrantsInstanceCommandError = async (output, context) => {
|
|
3676
|
+
const parsedOutput = {
|
|
3677
|
+
...output,
|
|
3678
|
+
body: await parseErrorBody(output.body, context),
|
|
3679
|
+
};
|
|
3680
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3681
|
+
const parsedBody = parsedOutput.body;
|
|
3682
|
+
return throwDefaultError({
|
|
3683
|
+
output,
|
|
3684
|
+
parsedBody: parsedBody.Error,
|
|
3685
|
+
errorCode,
|
|
3686
|
+
});
|
|
3687
|
+
};
|
|
3688
|
+
const de_DeleteAccessGrantsInstanceResourcePolicyCommand = async (output, context) => {
|
|
3689
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3690
|
+
return de_DeleteAccessGrantsInstanceResourcePolicyCommandError(output, context);
|
|
3691
|
+
}
|
|
3692
|
+
const contents = (0, smithy_client_1.map)({
|
|
3693
|
+
$metadata: deserializeMetadata(output),
|
|
3694
|
+
});
|
|
3695
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3696
|
+
return contents;
|
|
3697
|
+
};
|
|
3698
|
+
exports.de_DeleteAccessGrantsInstanceResourcePolicyCommand = de_DeleteAccessGrantsInstanceResourcePolicyCommand;
|
|
3699
|
+
const de_DeleteAccessGrantsInstanceResourcePolicyCommandError = async (output, context) => {
|
|
3700
|
+
const parsedOutput = {
|
|
3701
|
+
...output,
|
|
3702
|
+
body: await parseErrorBody(output.body, context),
|
|
3703
|
+
};
|
|
3704
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3705
|
+
const parsedBody = parsedOutput.body;
|
|
3706
|
+
return throwDefaultError({
|
|
3707
|
+
output,
|
|
3708
|
+
parsedBody: parsedBody.Error,
|
|
3709
|
+
errorCode,
|
|
3710
|
+
});
|
|
3711
|
+
};
|
|
3712
|
+
const de_DeleteAccessGrantsLocationCommand = async (output, context) => {
|
|
3713
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3714
|
+
return de_DeleteAccessGrantsLocationCommandError(output, context);
|
|
3715
|
+
}
|
|
3716
|
+
const contents = (0, smithy_client_1.map)({
|
|
3717
|
+
$metadata: deserializeMetadata(output),
|
|
3718
|
+
});
|
|
3719
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3720
|
+
return contents;
|
|
3721
|
+
};
|
|
3722
|
+
exports.de_DeleteAccessGrantsLocationCommand = de_DeleteAccessGrantsLocationCommand;
|
|
3723
|
+
const de_DeleteAccessGrantsLocationCommandError = async (output, context) => {
|
|
3724
|
+
const parsedOutput = {
|
|
3725
|
+
...output,
|
|
3726
|
+
body: await parseErrorBody(output.body, context),
|
|
3727
|
+
};
|
|
3728
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3729
|
+
const parsedBody = parsedOutput.body;
|
|
3730
|
+
return throwDefaultError({
|
|
3731
|
+
output,
|
|
3732
|
+
parsedBody: parsedBody.Error,
|
|
3733
|
+
errorCode,
|
|
3734
|
+
});
|
|
3735
|
+
};
|
|
2751
3736
|
const de_DeleteAccessPointCommand = async (output, context) => {
|
|
2752
3737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2753
3738
|
return de_DeleteAccessPointCommandError(output, context);
|
|
@@ -3165,21 +4150,234 @@ const de_DescribeJobCommandError = async (output, context) => {
|
|
|
3165
4150
|
});
|
|
3166
4151
|
}
|
|
3167
4152
|
};
|
|
3168
|
-
const de_DescribeMultiRegionAccessPointOperationCommand = async (output, context) => {
|
|
4153
|
+
const de_DescribeMultiRegionAccessPointOperationCommand = async (output, context) => {
|
|
4154
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4155
|
+
return de_DescribeMultiRegionAccessPointOperationCommandError(output, context);
|
|
4156
|
+
}
|
|
4157
|
+
const contents = (0, smithy_client_1.map)({
|
|
4158
|
+
$metadata: deserializeMetadata(output),
|
|
4159
|
+
});
|
|
4160
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4161
|
+
if (data["AsyncOperation"] !== undefined) {
|
|
4162
|
+
contents.AsyncOperation = de_AsyncOperation(data["AsyncOperation"], context);
|
|
4163
|
+
}
|
|
4164
|
+
return contents;
|
|
4165
|
+
};
|
|
4166
|
+
exports.de_DescribeMultiRegionAccessPointOperationCommand = de_DescribeMultiRegionAccessPointOperationCommand;
|
|
4167
|
+
const de_DescribeMultiRegionAccessPointOperationCommandError = async (output, context) => {
|
|
4168
|
+
const parsedOutput = {
|
|
4169
|
+
...output,
|
|
4170
|
+
body: await parseErrorBody(output.body, context),
|
|
4171
|
+
};
|
|
4172
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4173
|
+
const parsedBody = parsedOutput.body;
|
|
4174
|
+
return throwDefaultError({
|
|
4175
|
+
output,
|
|
4176
|
+
parsedBody: parsedBody.Error,
|
|
4177
|
+
errorCode,
|
|
4178
|
+
});
|
|
4179
|
+
};
|
|
4180
|
+
const de_DissociateAccessGrantsIdentityCenterCommand = async (output, context) => {
|
|
4181
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4182
|
+
return de_DissociateAccessGrantsIdentityCenterCommandError(output, context);
|
|
4183
|
+
}
|
|
4184
|
+
const contents = (0, smithy_client_1.map)({
|
|
4185
|
+
$metadata: deserializeMetadata(output),
|
|
4186
|
+
});
|
|
4187
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
4188
|
+
return contents;
|
|
4189
|
+
};
|
|
4190
|
+
exports.de_DissociateAccessGrantsIdentityCenterCommand = de_DissociateAccessGrantsIdentityCenterCommand;
|
|
4191
|
+
const de_DissociateAccessGrantsIdentityCenterCommandError = async (output, context) => {
|
|
4192
|
+
const parsedOutput = {
|
|
4193
|
+
...output,
|
|
4194
|
+
body: await parseErrorBody(output.body, context),
|
|
4195
|
+
};
|
|
4196
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4197
|
+
const parsedBody = parsedOutput.body;
|
|
4198
|
+
return throwDefaultError({
|
|
4199
|
+
output,
|
|
4200
|
+
parsedBody: parsedBody.Error,
|
|
4201
|
+
errorCode,
|
|
4202
|
+
});
|
|
4203
|
+
};
|
|
4204
|
+
const de_GetAccessGrantCommand = async (output, context) => {
|
|
4205
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4206
|
+
return de_GetAccessGrantCommandError(output, context);
|
|
4207
|
+
}
|
|
4208
|
+
const contents = (0, smithy_client_1.map)({
|
|
4209
|
+
$metadata: deserializeMetadata(output),
|
|
4210
|
+
});
|
|
4211
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4212
|
+
if (data["AccessGrantArn"] !== undefined) {
|
|
4213
|
+
contents.AccessGrantArn = (0, smithy_client_1.expectString)(data["AccessGrantArn"]);
|
|
4214
|
+
}
|
|
4215
|
+
if (data["AccessGrantId"] !== undefined) {
|
|
4216
|
+
contents.AccessGrantId = (0, smithy_client_1.expectString)(data["AccessGrantId"]);
|
|
4217
|
+
}
|
|
4218
|
+
if (data["AccessGrantsLocationConfiguration"] !== undefined) {
|
|
4219
|
+
contents.AccessGrantsLocationConfiguration = de_AccessGrantsLocationConfiguration(data["AccessGrantsLocationConfiguration"], context);
|
|
4220
|
+
}
|
|
4221
|
+
if (data["AccessGrantsLocationId"] !== undefined) {
|
|
4222
|
+
contents.AccessGrantsLocationId = (0, smithy_client_1.expectString)(data["AccessGrantsLocationId"]);
|
|
4223
|
+
}
|
|
4224
|
+
if (data["ApplicationArn"] !== undefined) {
|
|
4225
|
+
contents.ApplicationArn = (0, smithy_client_1.expectString)(data["ApplicationArn"]);
|
|
4226
|
+
}
|
|
4227
|
+
if (data["CreatedAt"] !== undefined) {
|
|
4228
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data["CreatedAt"]));
|
|
4229
|
+
}
|
|
4230
|
+
if (data["GrantScope"] !== undefined) {
|
|
4231
|
+
contents.GrantScope = (0, smithy_client_1.expectString)(data["GrantScope"]);
|
|
4232
|
+
}
|
|
4233
|
+
if (data["Grantee"] !== undefined) {
|
|
4234
|
+
contents.Grantee = de_Grantee(data["Grantee"], context);
|
|
4235
|
+
}
|
|
4236
|
+
if (data["Permission"] !== undefined) {
|
|
4237
|
+
contents.Permission = (0, smithy_client_1.expectString)(data["Permission"]);
|
|
4238
|
+
}
|
|
4239
|
+
return contents;
|
|
4240
|
+
};
|
|
4241
|
+
exports.de_GetAccessGrantCommand = de_GetAccessGrantCommand;
|
|
4242
|
+
const de_GetAccessGrantCommandError = async (output, context) => {
|
|
4243
|
+
const parsedOutput = {
|
|
4244
|
+
...output,
|
|
4245
|
+
body: await parseErrorBody(output.body, context),
|
|
4246
|
+
};
|
|
4247
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4248
|
+
const parsedBody = parsedOutput.body;
|
|
4249
|
+
return throwDefaultError({
|
|
4250
|
+
output,
|
|
4251
|
+
parsedBody: parsedBody.Error,
|
|
4252
|
+
errorCode,
|
|
4253
|
+
});
|
|
4254
|
+
};
|
|
4255
|
+
const de_GetAccessGrantsInstanceCommand = async (output, context) => {
|
|
4256
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4257
|
+
return de_GetAccessGrantsInstanceCommandError(output, context);
|
|
4258
|
+
}
|
|
4259
|
+
const contents = (0, smithy_client_1.map)({
|
|
4260
|
+
$metadata: deserializeMetadata(output),
|
|
4261
|
+
});
|
|
4262
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4263
|
+
if (data["AccessGrantsInstanceArn"] !== undefined) {
|
|
4264
|
+
contents.AccessGrantsInstanceArn = (0, smithy_client_1.expectString)(data["AccessGrantsInstanceArn"]);
|
|
4265
|
+
}
|
|
4266
|
+
if (data["AccessGrantsInstanceId"] !== undefined) {
|
|
4267
|
+
contents.AccessGrantsInstanceId = (0, smithy_client_1.expectString)(data["AccessGrantsInstanceId"]);
|
|
4268
|
+
}
|
|
4269
|
+
if (data["CreatedAt"] !== undefined) {
|
|
4270
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data["CreatedAt"]));
|
|
4271
|
+
}
|
|
4272
|
+
if (data["IdentityCenterArn"] !== undefined) {
|
|
4273
|
+
contents.IdentityCenterArn = (0, smithy_client_1.expectString)(data["IdentityCenterArn"]);
|
|
4274
|
+
}
|
|
4275
|
+
return contents;
|
|
4276
|
+
};
|
|
4277
|
+
exports.de_GetAccessGrantsInstanceCommand = de_GetAccessGrantsInstanceCommand;
|
|
4278
|
+
const de_GetAccessGrantsInstanceCommandError = async (output, context) => {
|
|
4279
|
+
const parsedOutput = {
|
|
4280
|
+
...output,
|
|
4281
|
+
body: await parseErrorBody(output.body, context),
|
|
4282
|
+
};
|
|
4283
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4284
|
+
const parsedBody = parsedOutput.body;
|
|
4285
|
+
return throwDefaultError({
|
|
4286
|
+
output,
|
|
4287
|
+
parsedBody: parsedBody.Error,
|
|
4288
|
+
errorCode,
|
|
4289
|
+
});
|
|
4290
|
+
};
|
|
4291
|
+
const de_GetAccessGrantsInstanceForPrefixCommand = async (output, context) => {
|
|
4292
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4293
|
+
return de_GetAccessGrantsInstanceForPrefixCommandError(output, context);
|
|
4294
|
+
}
|
|
4295
|
+
const contents = (0, smithy_client_1.map)({
|
|
4296
|
+
$metadata: deserializeMetadata(output),
|
|
4297
|
+
});
|
|
4298
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4299
|
+
if (data["AccessGrantsInstanceArn"] !== undefined) {
|
|
4300
|
+
contents.AccessGrantsInstanceArn = (0, smithy_client_1.expectString)(data["AccessGrantsInstanceArn"]);
|
|
4301
|
+
}
|
|
4302
|
+
if (data["AccessGrantsInstanceId"] !== undefined) {
|
|
4303
|
+
contents.AccessGrantsInstanceId = (0, smithy_client_1.expectString)(data["AccessGrantsInstanceId"]);
|
|
4304
|
+
}
|
|
4305
|
+
return contents;
|
|
4306
|
+
};
|
|
4307
|
+
exports.de_GetAccessGrantsInstanceForPrefixCommand = de_GetAccessGrantsInstanceForPrefixCommand;
|
|
4308
|
+
const de_GetAccessGrantsInstanceForPrefixCommandError = async (output, context) => {
|
|
4309
|
+
const parsedOutput = {
|
|
4310
|
+
...output,
|
|
4311
|
+
body: await parseErrorBody(output.body, context),
|
|
4312
|
+
};
|
|
4313
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4314
|
+
const parsedBody = parsedOutput.body;
|
|
4315
|
+
return throwDefaultError({
|
|
4316
|
+
output,
|
|
4317
|
+
parsedBody: parsedBody.Error,
|
|
4318
|
+
errorCode,
|
|
4319
|
+
});
|
|
4320
|
+
};
|
|
4321
|
+
const de_GetAccessGrantsInstanceResourcePolicyCommand = async (output, context) => {
|
|
4322
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4323
|
+
return de_GetAccessGrantsInstanceResourcePolicyCommandError(output, context);
|
|
4324
|
+
}
|
|
4325
|
+
const contents = (0, smithy_client_1.map)({
|
|
4326
|
+
$metadata: deserializeMetadata(output),
|
|
4327
|
+
});
|
|
4328
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4329
|
+
if (data["CreatedAt"] !== undefined) {
|
|
4330
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data["CreatedAt"]));
|
|
4331
|
+
}
|
|
4332
|
+
if (data["Organization"] !== undefined) {
|
|
4333
|
+
contents.Organization = (0, smithy_client_1.expectString)(data["Organization"]);
|
|
4334
|
+
}
|
|
4335
|
+
if (data["Policy"] !== undefined) {
|
|
4336
|
+
contents.Policy = (0, smithy_client_1.expectString)(data["Policy"]);
|
|
4337
|
+
}
|
|
4338
|
+
return contents;
|
|
4339
|
+
};
|
|
4340
|
+
exports.de_GetAccessGrantsInstanceResourcePolicyCommand = de_GetAccessGrantsInstanceResourcePolicyCommand;
|
|
4341
|
+
const de_GetAccessGrantsInstanceResourcePolicyCommandError = async (output, context) => {
|
|
4342
|
+
const parsedOutput = {
|
|
4343
|
+
...output,
|
|
4344
|
+
body: await parseErrorBody(output.body, context),
|
|
4345
|
+
};
|
|
4346
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4347
|
+
const parsedBody = parsedOutput.body;
|
|
4348
|
+
return throwDefaultError({
|
|
4349
|
+
output,
|
|
4350
|
+
parsedBody: parsedBody.Error,
|
|
4351
|
+
errorCode,
|
|
4352
|
+
});
|
|
4353
|
+
};
|
|
4354
|
+
const de_GetAccessGrantsLocationCommand = async (output, context) => {
|
|
3169
4355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3170
|
-
return
|
|
4356
|
+
return de_GetAccessGrantsLocationCommandError(output, context);
|
|
3171
4357
|
}
|
|
3172
4358
|
const contents = (0, smithy_client_1.map)({
|
|
3173
4359
|
$metadata: deserializeMetadata(output),
|
|
3174
4360
|
});
|
|
3175
4361
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3176
|
-
if (data["
|
|
3177
|
-
contents.
|
|
4362
|
+
if (data["AccessGrantsLocationArn"] !== undefined) {
|
|
4363
|
+
contents.AccessGrantsLocationArn = (0, smithy_client_1.expectString)(data["AccessGrantsLocationArn"]);
|
|
4364
|
+
}
|
|
4365
|
+
if (data["AccessGrantsLocationId"] !== undefined) {
|
|
4366
|
+
contents.AccessGrantsLocationId = (0, smithy_client_1.expectString)(data["AccessGrantsLocationId"]);
|
|
4367
|
+
}
|
|
4368
|
+
if (data["CreatedAt"] !== undefined) {
|
|
4369
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data["CreatedAt"]));
|
|
4370
|
+
}
|
|
4371
|
+
if (data["IAMRoleArn"] !== undefined) {
|
|
4372
|
+
contents.IAMRoleArn = (0, smithy_client_1.expectString)(data["IAMRoleArn"]);
|
|
4373
|
+
}
|
|
4374
|
+
if (data["LocationScope"] !== undefined) {
|
|
4375
|
+
contents.LocationScope = (0, smithy_client_1.expectString)(data["LocationScope"]);
|
|
3178
4376
|
}
|
|
3179
4377
|
return contents;
|
|
3180
4378
|
};
|
|
3181
|
-
exports.
|
|
3182
|
-
const
|
|
4379
|
+
exports.de_GetAccessGrantsLocationCommand = de_GetAccessGrantsLocationCommand;
|
|
4380
|
+
const de_GetAccessGrantsLocationCommandError = async (output, context) => {
|
|
3183
4381
|
const parsedOutput = {
|
|
3184
4382
|
...output,
|
|
3185
4383
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3597,6 +4795,36 @@ const de_GetBucketVersioningCommandError = async (output, context) => {
|
|
|
3597
4795
|
errorCode,
|
|
3598
4796
|
});
|
|
3599
4797
|
};
|
|
4798
|
+
const de_GetDataAccessCommand = async (output, context) => {
|
|
4799
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4800
|
+
return de_GetDataAccessCommandError(output, context);
|
|
4801
|
+
}
|
|
4802
|
+
const contents = (0, smithy_client_1.map)({
|
|
4803
|
+
$metadata: deserializeMetadata(output),
|
|
4804
|
+
});
|
|
4805
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4806
|
+
if (data["Credentials"] !== undefined) {
|
|
4807
|
+
contents.Credentials = de_Credentials(data["Credentials"], context);
|
|
4808
|
+
}
|
|
4809
|
+
if (data["MatchedGrantTarget"] !== undefined) {
|
|
4810
|
+
contents.MatchedGrantTarget = (0, smithy_client_1.expectString)(data["MatchedGrantTarget"]);
|
|
4811
|
+
}
|
|
4812
|
+
return contents;
|
|
4813
|
+
};
|
|
4814
|
+
exports.de_GetDataAccessCommand = de_GetDataAccessCommand;
|
|
4815
|
+
const de_GetDataAccessCommandError = async (output, context) => {
|
|
4816
|
+
const parsedOutput = {
|
|
4817
|
+
...output,
|
|
4818
|
+
body: await parseErrorBody(output.body, context),
|
|
4819
|
+
};
|
|
4820
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4821
|
+
const parsedBody = parsedOutput.body;
|
|
4822
|
+
return throwDefaultError({
|
|
4823
|
+
output,
|
|
4824
|
+
parsedBody: parsedBody.Error,
|
|
4825
|
+
errorCode,
|
|
4826
|
+
});
|
|
4827
|
+
};
|
|
3600
4828
|
const de_GetJobTaggingCommand = async (output, context) => {
|
|
3601
4829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3602
4830
|
return de_GetJobTaggingCommandError(output, context);
|
|
@@ -3864,6 +5092,107 @@ const de_GetStorageLensGroupCommandError = async (output, context) => {
|
|
|
3864
5092
|
errorCode,
|
|
3865
5093
|
});
|
|
3866
5094
|
};
|
|
5095
|
+
const de_ListAccessGrantsCommand = async (output, context) => {
|
|
5096
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5097
|
+
return de_ListAccessGrantsCommandError(output, context);
|
|
5098
|
+
}
|
|
5099
|
+
const contents = (0, smithy_client_1.map)({
|
|
5100
|
+
$metadata: deserializeMetadata(output),
|
|
5101
|
+
});
|
|
5102
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5103
|
+
if (data.AccessGrantsList === "") {
|
|
5104
|
+
contents.AccessGrantsList = [];
|
|
5105
|
+
}
|
|
5106
|
+
else if (data["AccessGrantsList"] !== undefined && data["AccessGrantsList"]["AccessGrant"] !== undefined) {
|
|
5107
|
+
contents.AccessGrantsList = de_AccessGrantsList((0, smithy_client_1.getArrayIfSingleItem)(data["AccessGrantsList"]["AccessGrant"]), context);
|
|
5108
|
+
}
|
|
5109
|
+
if (data["NextToken"] !== undefined) {
|
|
5110
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data["NextToken"]);
|
|
5111
|
+
}
|
|
5112
|
+
return contents;
|
|
5113
|
+
};
|
|
5114
|
+
exports.de_ListAccessGrantsCommand = de_ListAccessGrantsCommand;
|
|
5115
|
+
const de_ListAccessGrantsCommandError = async (output, context) => {
|
|
5116
|
+
const parsedOutput = {
|
|
5117
|
+
...output,
|
|
5118
|
+
body: await parseErrorBody(output.body, context),
|
|
5119
|
+
};
|
|
5120
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5121
|
+
const parsedBody = parsedOutput.body;
|
|
5122
|
+
return throwDefaultError({
|
|
5123
|
+
output,
|
|
5124
|
+
parsedBody: parsedBody.Error,
|
|
5125
|
+
errorCode,
|
|
5126
|
+
});
|
|
5127
|
+
};
|
|
5128
|
+
const de_ListAccessGrantsInstancesCommand = async (output, context) => {
|
|
5129
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5130
|
+
return de_ListAccessGrantsInstancesCommandError(output, context);
|
|
5131
|
+
}
|
|
5132
|
+
const contents = (0, smithy_client_1.map)({
|
|
5133
|
+
$metadata: deserializeMetadata(output),
|
|
5134
|
+
});
|
|
5135
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5136
|
+
if (data.AccessGrantsInstancesList === "") {
|
|
5137
|
+
contents.AccessGrantsInstancesList = [];
|
|
5138
|
+
}
|
|
5139
|
+
else if (data["AccessGrantsInstancesList"] !== undefined &&
|
|
5140
|
+
data["AccessGrantsInstancesList"]["AccessGrantsInstance"] !== undefined) {
|
|
5141
|
+
contents.AccessGrantsInstancesList = de_AccessGrantsInstancesList((0, smithy_client_1.getArrayIfSingleItem)(data["AccessGrantsInstancesList"]["AccessGrantsInstance"]), context);
|
|
5142
|
+
}
|
|
5143
|
+
if (data["NextToken"] !== undefined) {
|
|
5144
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data["NextToken"]);
|
|
5145
|
+
}
|
|
5146
|
+
return contents;
|
|
5147
|
+
};
|
|
5148
|
+
exports.de_ListAccessGrantsInstancesCommand = de_ListAccessGrantsInstancesCommand;
|
|
5149
|
+
const de_ListAccessGrantsInstancesCommandError = async (output, context) => {
|
|
5150
|
+
const parsedOutput = {
|
|
5151
|
+
...output,
|
|
5152
|
+
body: await parseErrorBody(output.body, context),
|
|
5153
|
+
};
|
|
5154
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5155
|
+
const parsedBody = parsedOutput.body;
|
|
5156
|
+
return throwDefaultError({
|
|
5157
|
+
output,
|
|
5158
|
+
parsedBody: parsedBody.Error,
|
|
5159
|
+
errorCode,
|
|
5160
|
+
});
|
|
5161
|
+
};
|
|
5162
|
+
const de_ListAccessGrantsLocationsCommand = async (output, context) => {
|
|
5163
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5164
|
+
return de_ListAccessGrantsLocationsCommandError(output, context);
|
|
5165
|
+
}
|
|
5166
|
+
const contents = (0, smithy_client_1.map)({
|
|
5167
|
+
$metadata: deserializeMetadata(output),
|
|
5168
|
+
});
|
|
5169
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5170
|
+
if (data.AccessGrantsLocationsList === "") {
|
|
5171
|
+
contents.AccessGrantsLocationsList = [];
|
|
5172
|
+
}
|
|
5173
|
+
else if (data["AccessGrantsLocationsList"] !== undefined &&
|
|
5174
|
+
data["AccessGrantsLocationsList"]["AccessGrantsLocation"] !== undefined) {
|
|
5175
|
+
contents.AccessGrantsLocationsList = de_AccessGrantsLocationsList((0, smithy_client_1.getArrayIfSingleItem)(data["AccessGrantsLocationsList"]["AccessGrantsLocation"]), context);
|
|
5176
|
+
}
|
|
5177
|
+
if (data["NextToken"] !== undefined) {
|
|
5178
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data["NextToken"]);
|
|
5179
|
+
}
|
|
5180
|
+
return contents;
|
|
5181
|
+
};
|
|
5182
|
+
exports.de_ListAccessGrantsLocationsCommand = de_ListAccessGrantsLocationsCommand;
|
|
5183
|
+
const de_ListAccessGrantsLocationsCommandError = async (output, context) => {
|
|
5184
|
+
const parsedOutput = {
|
|
5185
|
+
...output,
|
|
5186
|
+
body: await parseErrorBody(output.body, context),
|
|
5187
|
+
};
|
|
5188
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5189
|
+
const parsedBody = parsedOutput.body;
|
|
5190
|
+
return throwDefaultError({
|
|
5191
|
+
output,
|
|
5192
|
+
parsedBody: parsedBody.Error,
|
|
5193
|
+
errorCode,
|
|
5194
|
+
});
|
|
5195
|
+
};
|
|
3867
5196
|
const de_ListAccessPointsCommand = async (output, context) => {
|
|
3868
5197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3869
5198
|
return de_ListAccessPointsCommandError(output, context);
|
|
@@ -4138,6 +5467,39 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
4138
5467
|
errorCode,
|
|
4139
5468
|
});
|
|
4140
5469
|
};
|
|
5470
|
+
const de_PutAccessGrantsInstanceResourcePolicyCommand = async (output, context) => {
|
|
5471
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5472
|
+
return de_PutAccessGrantsInstanceResourcePolicyCommandError(output, context);
|
|
5473
|
+
}
|
|
5474
|
+
const contents = (0, smithy_client_1.map)({
|
|
5475
|
+
$metadata: deserializeMetadata(output),
|
|
5476
|
+
});
|
|
5477
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5478
|
+
if (data["CreatedAt"] !== undefined) {
|
|
5479
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data["CreatedAt"]));
|
|
5480
|
+
}
|
|
5481
|
+
if (data["Organization"] !== undefined) {
|
|
5482
|
+
contents.Organization = (0, smithy_client_1.expectString)(data["Organization"]);
|
|
5483
|
+
}
|
|
5484
|
+
if (data["Policy"] !== undefined) {
|
|
5485
|
+
contents.Policy = (0, smithy_client_1.expectString)(data["Policy"]);
|
|
5486
|
+
}
|
|
5487
|
+
return contents;
|
|
5488
|
+
};
|
|
5489
|
+
exports.de_PutAccessGrantsInstanceResourcePolicyCommand = de_PutAccessGrantsInstanceResourcePolicyCommand;
|
|
5490
|
+
const de_PutAccessGrantsInstanceResourcePolicyCommandError = async (output, context) => {
|
|
5491
|
+
const parsedOutput = {
|
|
5492
|
+
...output,
|
|
5493
|
+
body: await parseErrorBody(output.body, context),
|
|
5494
|
+
};
|
|
5495
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5496
|
+
const parsedBody = parsedOutput.body;
|
|
5497
|
+
return throwDefaultError({
|
|
5498
|
+
output,
|
|
5499
|
+
parsedBody: parsedBody.Error,
|
|
5500
|
+
errorCode,
|
|
5501
|
+
});
|
|
5502
|
+
};
|
|
4141
5503
|
const de_PutAccessPointConfigurationForObjectLambdaCommand = async (output, context) => {
|
|
4142
5504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4143
5505
|
return de_PutAccessPointConfigurationForObjectLambdaCommandError(output, context);
|
|
@@ -4540,6 +5902,45 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
4540
5902
|
errorCode,
|
|
4541
5903
|
});
|
|
4542
5904
|
};
|
|
5905
|
+
const de_UpdateAccessGrantsLocationCommand = async (output, context) => {
|
|
5906
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5907
|
+
return de_UpdateAccessGrantsLocationCommandError(output, context);
|
|
5908
|
+
}
|
|
5909
|
+
const contents = (0, smithy_client_1.map)({
|
|
5910
|
+
$metadata: deserializeMetadata(output),
|
|
5911
|
+
});
|
|
5912
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5913
|
+
if (data["AccessGrantsLocationArn"] !== undefined) {
|
|
5914
|
+
contents.AccessGrantsLocationArn = (0, smithy_client_1.expectString)(data["AccessGrantsLocationArn"]);
|
|
5915
|
+
}
|
|
5916
|
+
if (data["AccessGrantsLocationId"] !== undefined) {
|
|
5917
|
+
contents.AccessGrantsLocationId = (0, smithy_client_1.expectString)(data["AccessGrantsLocationId"]);
|
|
5918
|
+
}
|
|
5919
|
+
if (data["CreatedAt"] !== undefined) {
|
|
5920
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data["CreatedAt"]));
|
|
5921
|
+
}
|
|
5922
|
+
if (data["IAMRoleArn"] !== undefined) {
|
|
5923
|
+
contents.IAMRoleArn = (0, smithy_client_1.expectString)(data["IAMRoleArn"]);
|
|
5924
|
+
}
|
|
5925
|
+
if (data["LocationScope"] !== undefined) {
|
|
5926
|
+
contents.LocationScope = (0, smithy_client_1.expectString)(data["LocationScope"]);
|
|
5927
|
+
}
|
|
5928
|
+
return contents;
|
|
5929
|
+
};
|
|
5930
|
+
exports.de_UpdateAccessGrantsLocationCommand = de_UpdateAccessGrantsLocationCommand;
|
|
5931
|
+
const de_UpdateAccessGrantsLocationCommandError = async (output, context) => {
|
|
5932
|
+
const parsedOutput = {
|
|
5933
|
+
...output,
|
|
5934
|
+
body: await parseErrorBody(output.body, context),
|
|
5935
|
+
};
|
|
5936
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5937
|
+
const parsedBody = parsedOutput.body;
|
|
5938
|
+
return throwDefaultError({
|
|
5939
|
+
output,
|
|
5940
|
+
parsedBody: parsedBody.Error,
|
|
5941
|
+
errorCode,
|
|
5942
|
+
});
|
|
5943
|
+
};
|
|
4543
5944
|
const de_UpdateJobPriorityCommand = async (output, context) => {
|
|
4544
5945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4545
5946
|
return de_UpdateJobPriorityCommandError(output, context);
|
|
@@ -4745,7 +6146,7 @@ const de_JobStatusExceptionRes = async (parsedOutput, context) => {
|
|
|
4745
6146
|
if (data["Message"] !== undefined) {
|
|
4746
6147
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
4747
6148
|
}
|
|
4748
|
-
const exception = new
|
|
6149
|
+
const exception = new models_1_1.JobStatusException({
|
|
4749
6150
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4750
6151
|
...contents,
|
|
4751
6152
|
});
|
|
@@ -4793,7 +6194,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
4793
6194
|
if (data["Message"] !== undefined) {
|
|
4794
6195
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
4795
6196
|
}
|
|
4796
|
-
const exception = new
|
|
6197
|
+
const exception = new models_1_1.TooManyTagsException({
|
|
4797
6198
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4798
6199
|
...contents,
|
|
4799
6200
|
});
|
|
@@ -4815,6 +6216,14 @@ const se_AccessControlTranslation = (input, context) => {
|
|
|
4815
6216
|
}
|
|
4816
6217
|
return bodyNode;
|
|
4817
6218
|
};
|
|
6219
|
+
const se_AccessGrantsLocationConfiguration = (input, context) => {
|
|
6220
|
+
const bodyNode = new xml_builder_1.XmlNode("AccessGrantsLocationConfiguration");
|
|
6221
|
+
if (input.S3SubPrefix != null) {
|
|
6222
|
+
const node = xml_builder_1.XmlNode.of("S3Prefix", input.S3SubPrefix).withName("S3SubPrefix");
|
|
6223
|
+
bodyNode.addChildNode(node);
|
|
6224
|
+
}
|
|
6225
|
+
return bodyNode;
|
|
6226
|
+
};
|
|
4818
6227
|
const se_AccountLevel = (input, context) => {
|
|
4819
6228
|
const bodyNode = new xml_builder_1.XmlNode("AccountLevel");
|
|
4820
6229
|
if (input.ActivityMetrics != null) {
|
|
@@ -5051,6 +6460,18 @@ const se_GeneratedManifestEncryption = (input, context) => {
|
|
|
5051
6460
|
}
|
|
5052
6461
|
return bodyNode;
|
|
5053
6462
|
};
|
|
6463
|
+
const se_Grantee = (input, context) => {
|
|
6464
|
+
const bodyNode = new xml_builder_1.XmlNode("Grantee");
|
|
6465
|
+
if (input.GranteeType != null) {
|
|
6466
|
+
const node = xml_builder_1.XmlNode.of("GranteeType", input.GranteeType).withName("GranteeType");
|
|
6467
|
+
bodyNode.addChildNode(node);
|
|
6468
|
+
}
|
|
6469
|
+
if (input.GranteeIdentifier != null) {
|
|
6470
|
+
const node = xml_builder_1.XmlNode.of("GranteeIdentifier", input.GranteeIdentifier).withName("GranteeIdentifier");
|
|
6471
|
+
bodyNode.addChildNode(node);
|
|
6472
|
+
}
|
|
6473
|
+
return bodyNode;
|
|
6474
|
+
};
|
|
5054
6475
|
const se_Include = (input, context) => {
|
|
5055
6476
|
const bodyNode = new xml_builder_1.XmlNode("Include");
|
|
5056
6477
|
if (input.Buckets != null) {
|
|
@@ -6700,6 +8121,34 @@ const de_AccessControlTranslation = (output, context) => {
|
|
|
6700
8121
|
}
|
|
6701
8122
|
return contents;
|
|
6702
8123
|
};
|
|
8124
|
+
const de_AccessGrantsInstancesList = (output, context) => {
|
|
8125
|
+
return (output || [])
|
|
8126
|
+
.filter((e) => e != null)
|
|
8127
|
+
.map((entry) => {
|
|
8128
|
+
return de_ListAccessGrantsInstanceEntry(entry, context);
|
|
8129
|
+
});
|
|
8130
|
+
};
|
|
8131
|
+
const de_AccessGrantsList = (output, context) => {
|
|
8132
|
+
return (output || [])
|
|
8133
|
+
.filter((e) => e != null)
|
|
8134
|
+
.map((entry) => {
|
|
8135
|
+
return de_ListAccessGrantEntry(entry, context);
|
|
8136
|
+
});
|
|
8137
|
+
};
|
|
8138
|
+
const de_AccessGrantsLocationConfiguration = (output, context) => {
|
|
8139
|
+
const contents = {};
|
|
8140
|
+
if (output["S3SubPrefix"] !== undefined) {
|
|
8141
|
+
contents.S3SubPrefix = (0, smithy_client_1.expectString)(output["S3SubPrefix"]);
|
|
8142
|
+
}
|
|
8143
|
+
return contents;
|
|
8144
|
+
};
|
|
8145
|
+
const de_AccessGrantsLocationsList = (output, context) => {
|
|
8146
|
+
return (output || [])
|
|
8147
|
+
.filter((e) => e != null)
|
|
8148
|
+
.map((entry) => {
|
|
8149
|
+
return de_ListAccessGrantsLocationsEntry(entry, context);
|
|
8150
|
+
});
|
|
8151
|
+
};
|
|
6703
8152
|
const de_AccessPoint = (output, context) => {
|
|
6704
8153
|
const contents = {};
|
|
6705
8154
|
if (output["Name"] !== undefined) {
|
|
@@ -6895,6 +8344,22 @@ const de_CreateMultiRegionAccessPointInput = (output, context) => {
|
|
|
6895
8344
|
}
|
|
6896
8345
|
return contents;
|
|
6897
8346
|
};
|
|
8347
|
+
const de_Credentials = (output, context) => {
|
|
8348
|
+
const contents = {};
|
|
8349
|
+
if (output["AccessKeyId"] !== undefined) {
|
|
8350
|
+
contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]);
|
|
8351
|
+
}
|
|
8352
|
+
if (output["SecretAccessKey"] !== undefined) {
|
|
8353
|
+
contents.SecretAccessKey = (0, smithy_client_1.expectString)(output["SecretAccessKey"]);
|
|
8354
|
+
}
|
|
8355
|
+
if (output["SessionToken"] !== undefined) {
|
|
8356
|
+
contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]);
|
|
8357
|
+
}
|
|
8358
|
+
if (output["Expiration"] !== undefined) {
|
|
8359
|
+
contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Expiration"]));
|
|
8360
|
+
}
|
|
8361
|
+
return contents;
|
|
8362
|
+
};
|
|
6898
8363
|
const de_DeleteMarkerReplication = (output, context) => {
|
|
6899
8364
|
const contents = {};
|
|
6900
8365
|
if (output["Status"] !== undefined) {
|
|
@@ -6997,6 +8462,16 @@ const de_GeneratedManifestEncryption = (output, context) => {
|
|
|
6997
8462
|
}
|
|
6998
8463
|
return contents;
|
|
6999
8464
|
};
|
|
8465
|
+
const de_Grantee = (output, context) => {
|
|
8466
|
+
const contents = {};
|
|
8467
|
+
if (output["GranteeType"] !== undefined) {
|
|
8468
|
+
contents.GranteeType = (0, smithy_client_1.expectString)(output["GranteeType"]);
|
|
8469
|
+
}
|
|
8470
|
+
if (output["GranteeIdentifier"] !== undefined) {
|
|
8471
|
+
contents.GranteeIdentifier = (0, smithy_client_1.expectString)(output["GranteeIdentifier"]);
|
|
8472
|
+
}
|
|
8473
|
+
return contents;
|
|
8474
|
+
};
|
|
7000
8475
|
const de_Include = (output, context) => {
|
|
7001
8476
|
const contents = {};
|
|
7002
8477
|
if (output.Buckets === "") {
|
|
@@ -7412,6 +8887,72 @@ const de_LifecycleRules = (output, context) => {
|
|
|
7412
8887
|
return de_LifecycleRule(entry, context);
|
|
7413
8888
|
});
|
|
7414
8889
|
};
|
|
8890
|
+
const de_ListAccessGrantEntry = (output, context) => {
|
|
8891
|
+
const contents = {};
|
|
8892
|
+
if (output["CreatedAt"] !== undefined) {
|
|
8893
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CreatedAt"]));
|
|
8894
|
+
}
|
|
8895
|
+
if (output["AccessGrantId"] !== undefined) {
|
|
8896
|
+
contents.AccessGrantId = (0, smithy_client_1.expectString)(output["AccessGrantId"]);
|
|
8897
|
+
}
|
|
8898
|
+
if (output["AccessGrantArn"] !== undefined) {
|
|
8899
|
+
contents.AccessGrantArn = (0, smithy_client_1.expectString)(output["AccessGrantArn"]);
|
|
8900
|
+
}
|
|
8901
|
+
if (output["Grantee"] !== undefined) {
|
|
8902
|
+
contents.Grantee = de_Grantee(output["Grantee"], context);
|
|
8903
|
+
}
|
|
8904
|
+
if (output["Permission"] !== undefined) {
|
|
8905
|
+
contents.Permission = (0, smithy_client_1.expectString)(output["Permission"]);
|
|
8906
|
+
}
|
|
8907
|
+
if (output["AccessGrantsLocationId"] !== undefined) {
|
|
8908
|
+
contents.AccessGrantsLocationId = (0, smithy_client_1.expectString)(output["AccessGrantsLocationId"]);
|
|
8909
|
+
}
|
|
8910
|
+
if (output["AccessGrantsLocationConfiguration"] !== undefined) {
|
|
8911
|
+
contents.AccessGrantsLocationConfiguration = de_AccessGrantsLocationConfiguration(output["AccessGrantsLocationConfiguration"], context);
|
|
8912
|
+
}
|
|
8913
|
+
if (output["GrantScope"] !== undefined) {
|
|
8914
|
+
contents.GrantScope = (0, smithy_client_1.expectString)(output["GrantScope"]);
|
|
8915
|
+
}
|
|
8916
|
+
if (output["ApplicationArn"] !== undefined) {
|
|
8917
|
+
contents.ApplicationArn = (0, smithy_client_1.expectString)(output["ApplicationArn"]);
|
|
8918
|
+
}
|
|
8919
|
+
return contents;
|
|
8920
|
+
};
|
|
8921
|
+
const de_ListAccessGrantsInstanceEntry = (output, context) => {
|
|
8922
|
+
const contents = {};
|
|
8923
|
+
if (output["AccessGrantsInstanceId"] !== undefined) {
|
|
8924
|
+
contents.AccessGrantsInstanceId = (0, smithy_client_1.expectString)(output["AccessGrantsInstanceId"]);
|
|
8925
|
+
}
|
|
8926
|
+
if (output["AccessGrantsInstanceArn"] !== undefined) {
|
|
8927
|
+
contents.AccessGrantsInstanceArn = (0, smithy_client_1.expectString)(output["AccessGrantsInstanceArn"]);
|
|
8928
|
+
}
|
|
8929
|
+
if (output["CreatedAt"] !== undefined) {
|
|
8930
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CreatedAt"]));
|
|
8931
|
+
}
|
|
8932
|
+
if (output["IdentityCenterArn"] !== undefined) {
|
|
8933
|
+
contents.IdentityCenterArn = (0, smithy_client_1.expectString)(output["IdentityCenterArn"]);
|
|
8934
|
+
}
|
|
8935
|
+
return contents;
|
|
8936
|
+
};
|
|
8937
|
+
const de_ListAccessGrantsLocationsEntry = (output, context) => {
|
|
8938
|
+
const contents = {};
|
|
8939
|
+
if (output["CreatedAt"] !== undefined) {
|
|
8940
|
+
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CreatedAt"]));
|
|
8941
|
+
}
|
|
8942
|
+
if (output["AccessGrantsLocationId"] !== undefined) {
|
|
8943
|
+
contents.AccessGrantsLocationId = (0, smithy_client_1.expectString)(output["AccessGrantsLocationId"]);
|
|
8944
|
+
}
|
|
8945
|
+
if (output["AccessGrantsLocationArn"] !== undefined) {
|
|
8946
|
+
contents.AccessGrantsLocationArn = (0, smithy_client_1.expectString)(output["AccessGrantsLocationArn"]);
|
|
8947
|
+
}
|
|
8948
|
+
if (output["LocationScope"] !== undefined) {
|
|
8949
|
+
contents.LocationScope = (0, smithy_client_1.expectString)(output["LocationScope"]);
|
|
8950
|
+
}
|
|
8951
|
+
if (output["IAMRoleArn"] !== undefined) {
|
|
8952
|
+
contents.IAMRoleArn = (0, smithy_client_1.expectString)(output["IAMRoleArn"]);
|
|
8953
|
+
}
|
|
8954
|
+
return contents;
|
|
8955
|
+
};
|
|
7415
8956
|
const de_ListStorageLensConfigurationEntry = (output, context) => {
|
|
7416
8957
|
const contents = {};
|
|
7417
8958
|
if (output["Id"] !== undefined) {
|