@aws-sdk/client-s3-control 3.454.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 +41 -47
- 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 +1777 -117
- 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 +37 -43
- 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 +1731 -112
- 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/CreateJobCommand.d.ts +16 -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/DescribeJobCommand.d.ts +16 -0
- 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/GetBucketReplicationCommand.d.ts +2 -1
- package/dist-types/commands/GetDataAccessCommand.d.ts +94 -0
- 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 +2 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +12 -9
- 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 +10 -9
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +6 -6
- 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 +3 -2
- package/dist-types/commands/TagResourceCommand.d.ts +12 -8
- 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 +1 -1
- 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 +1211 -831
- 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 +248 -181
- 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, {
|
|
@@ -411,9 +737,190 @@ const se_DeleteAccessPointPolicyForObjectLambdaCommand = async (input, context)
|
|
|
411
737
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
412
738
|
"x-amz-account-id": input.AccountId,
|
|
413
739
|
});
|
|
414
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
415
|
-
"/v20180820/accesspointforobjectlambda/{Name}/policy";
|
|
416
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
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) => {
|
|
918
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
919
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
920
|
+
"x-amz-account-id": input.AccountId,
|
|
921
|
+
});
|
|
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, {
|
|
@@ -1240,6 +1750,44 @@ const se_GetBucketVersioningCommand = async (input, context) => {
|
|
|
1240
1750
|
});
|
|
1241
1751
|
};
|
|
1242
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;
|
|
1243
1791
|
const se_GetJobTaggingCommand = async (input, context) => {
|
|
1244
1792
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1245
1793
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
@@ -1486,8 +2034,115 @@ const se_GetStorageLensGroupCommand = async (input, context) => {
|
|
|
1486
2034
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1487
2035
|
"x-amz-account-id": input.AccountId,
|
|
1488
2036
|
});
|
|
1489
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}";
|
|
1490
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
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);
|
|
2039
|
+
let body;
|
|
2040
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2041
|
+
if (context.disableHostPrefix !== true) {
|
|
2042
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
2043
|
+
if (input.AccountId === undefined) {
|
|
2044
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
2045
|
+
}
|
|
2046
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
2047
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2048
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
return new protocol_http_1.HttpRequest({
|
|
2052
|
+
protocol,
|
|
2053
|
+
hostname: resolvedHostname,
|
|
2054
|
+
port,
|
|
2055
|
+
method: "GET",
|
|
2056
|
+
headers,
|
|
2057
|
+
path: resolvedPath,
|
|
2058
|
+
body,
|
|
2059
|
+
});
|
|
2060
|
+
};
|
|
2061
|
+
exports.se_GetStorageLensGroupCommand = se_GetStorageLensGroupCommand;
|
|
2062
|
+
const se_ListAccessGrantsCommand = async (input, context) => {
|
|
2063
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2064
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
2065
|
+
"x-amz-account-id": input.AccountId,
|
|
2066
|
+
});
|
|
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
|
+
});
|
|
2077
|
+
let body;
|
|
2078
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2079
|
+
if (context.disableHostPrefix !== true) {
|
|
2080
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
2081
|
+
if (input.AccountId === undefined) {
|
|
2082
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
2083
|
+
}
|
|
2084
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
2085
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2086
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
return new protocol_http_1.HttpRequest({
|
|
2090
|
+
protocol,
|
|
2091
|
+
hostname: resolvedHostname,
|
|
2092
|
+
port,
|
|
2093
|
+
method: "GET",
|
|
2094
|
+
headers,
|
|
2095
|
+
path: resolvedPath,
|
|
2096
|
+
query,
|
|
2097
|
+
body,
|
|
2098
|
+
});
|
|
2099
|
+
};
|
|
2100
|
+
exports.se_ListAccessGrantsCommand = se_ListAccessGrantsCommand;
|
|
2101
|
+
const se_ListAccessGrantsInstancesCommand = async (input, context) => {
|
|
2102
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2103
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
2104
|
+
"x-amz-account-id": input.AccountId,
|
|
2105
|
+
});
|
|
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
|
+
});
|
|
2111
|
+
let body;
|
|
2112
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2113
|
+
if (context.disableHostPrefix !== true) {
|
|
2114
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
2115
|
+
if (input.AccountId === undefined) {
|
|
2116
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
2117
|
+
}
|
|
2118
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
2119
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2120
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
return new protocol_http_1.HttpRequest({
|
|
2124
|
+
protocol,
|
|
2125
|
+
hostname: resolvedHostname,
|
|
2126
|
+
port,
|
|
2127
|
+
method: "GET",
|
|
2128
|
+
headers,
|
|
2129
|
+
path: resolvedPath,
|
|
2130
|
+
query,
|
|
2131
|
+
body,
|
|
2132
|
+
});
|
|
2133
|
+
};
|
|
2134
|
+
exports.se_ListAccessGrantsInstancesCommand = se_ListAccessGrantsInstancesCommand;
|
|
2135
|
+
const se_ListAccessGrantsLocationsCommand = async (input, context) => {
|
|
2136
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2137
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
2138
|
+
"x-amz-account-id": input.AccountId,
|
|
2139
|
+
});
|
|
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, {
|
|
@@ -2558,6 +3297,156 @@ const se_UpdateStorageLensGroupCommand = async (input, context) => {
|
|
|
2558
3297
|
});
|
|
2559
3298
|
};
|
|
2560
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"]);
|
|
3421
|
+
}
|
|
3422
|
+
if (data["AccessGrantsLocationId"] !== undefined) {
|
|
3423
|
+
contents.AccessGrantsLocationId = (0, smithy_client_1.expectString)(data["AccessGrantsLocationId"]);
|
|
3424
|
+
}
|
|
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,
|
|
3448
|
+
});
|
|
3449
|
+
};
|
|
2561
3450
|
const de_CreateAccessPointCommand = async (output, context) => {
|
|
2562
3451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2563
3452
|
return de_CreateAccessPointCommandError(output, context);
|
|
@@ -2697,21 +3586,117 @@ const de_CreateJobCommandError = async (output, context) => {
|
|
|
2697
3586
|
});
|
|
2698
3587
|
}
|
|
2699
3588
|
};
|
|
2700
|
-
const de_CreateMultiRegionAccessPointCommand = async (output, context) => {
|
|
3589
|
+
const de_CreateMultiRegionAccessPointCommand = async (output, context) => {
|
|
3590
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3591
|
+
return de_CreateMultiRegionAccessPointCommandError(output, context);
|
|
3592
|
+
}
|
|
3593
|
+
const contents = (0, smithy_client_1.map)({
|
|
3594
|
+
$metadata: deserializeMetadata(output),
|
|
3595
|
+
});
|
|
3596
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3597
|
+
if (data["RequestTokenARN"] !== undefined) {
|
|
3598
|
+
contents.RequestTokenARN = (0, smithy_client_1.expectString)(data["RequestTokenARN"]);
|
|
3599
|
+
}
|
|
3600
|
+
return contents;
|
|
3601
|
+
};
|
|
3602
|
+
exports.de_CreateMultiRegionAccessPointCommand = de_CreateMultiRegionAccessPointCommand;
|
|
3603
|
+
const de_CreateMultiRegionAccessPointCommandError = async (output, context) => {
|
|
3604
|
+
const parsedOutput = {
|
|
3605
|
+
...output,
|
|
3606
|
+
body: await parseErrorBody(output.body, context),
|
|
3607
|
+
};
|
|
3608
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3609
|
+
const parsedBody = parsedOutput.body;
|
|
3610
|
+
return throwDefaultError({
|
|
3611
|
+
output,
|
|
3612
|
+
parsedBody: parsedBody.Error,
|
|
3613
|
+
errorCode,
|
|
3614
|
+
});
|
|
3615
|
+
};
|
|
3616
|
+
const de_CreateStorageLensGroupCommand = async (output, context) => {
|
|
3617
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3618
|
+
return de_CreateStorageLensGroupCommandError(output, context);
|
|
3619
|
+
}
|
|
3620
|
+
const contents = (0, smithy_client_1.map)({
|
|
3621
|
+
$metadata: deserializeMetadata(output),
|
|
3622
|
+
});
|
|
3623
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3624
|
+
return contents;
|
|
3625
|
+
};
|
|
3626
|
+
exports.de_CreateStorageLensGroupCommand = de_CreateStorageLensGroupCommand;
|
|
3627
|
+
const de_CreateStorageLensGroupCommandError = async (output, context) => {
|
|
3628
|
+
const parsedOutput = {
|
|
3629
|
+
...output,
|
|
3630
|
+
body: await parseErrorBody(output.body, context),
|
|
3631
|
+
};
|
|
3632
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3633
|
+
const parsedBody = parsedOutput.body;
|
|
3634
|
+
return throwDefaultError({
|
|
3635
|
+
output,
|
|
3636
|
+
parsedBody: parsedBody.Error,
|
|
3637
|
+
errorCode,
|
|
3638
|
+
});
|
|
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) => {
|
|
2701
3689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2702
|
-
return
|
|
3690
|
+
return de_DeleteAccessGrantsInstanceResourcePolicyCommandError(output, context);
|
|
2703
3691
|
}
|
|
2704
3692
|
const contents = (0, smithy_client_1.map)({
|
|
2705
3693
|
$metadata: deserializeMetadata(output),
|
|
2706
3694
|
});
|
|
2707
|
-
|
|
2708
|
-
if (data["RequestTokenARN"] !== undefined) {
|
|
2709
|
-
contents.RequestTokenARN = (0, smithy_client_1.expectString)(data["RequestTokenARN"]);
|
|
2710
|
-
}
|
|
3695
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2711
3696
|
return contents;
|
|
2712
3697
|
};
|
|
2713
|
-
exports.
|
|
2714
|
-
const
|
|
3698
|
+
exports.de_DeleteAccessGrantsInstanceResourcePolicyCommand = de_DeleteAccessGrantsInstanceResourcePolicyCommand;
|
|
3699
|
+
const de_DeleteAccessGrantsInstanceResourcePolicyCommandError = async (output, context) => {
|
|
2715
3700
|
const parsedOutput = {
|
|
2716
3701
|
...output,
|
|
2717
3702
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2724,9 +3709,9 @@ const de_CreateMultiRegionAccessPointCommandError = async (output, context) => {
|
|
|
2724
3709
|
errorCode,
|
|
2725
3710
|
});
|
|
2726
3711
|
};
|
|
2727
|
-
const
|
|
2728
|
-
if (output.statusCode !==
|
|
2729
|
-
return
|
|
3712
|
+
const de_DeleteAccessGrantsLocationCommand = async (output, context) => {
|
|
3713
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3714
|
+
return de_DeleteAccessGrantsLocationCommandError(output, context);
|
|
2730
3715
|
}
|
|
2731
3716
|
const contents = (0, smithy_client_1.map)({
|
|
2732
3717
|
$metadata: deserializeMetadata(output),
|
|
@@ -2734,8 +3719,8 @@ const de_CreateStorageLensGroupCommand = async (output, context) => {
|
|
|
2734
3719
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2735
3720
|
return contents;
|
|
2736
3721
|
};
|
|
2737
|
-
exports.
|
|
2738
|
-
const
|
|
3722
|
+
exports.de_DeleteAccessGrantsLocationCommand = de_DeleteAccessGrantsLocationCommand;
|
|
3723
|
+
const de_DeleteAccessGrantsLocationCommandError = async (output, context) => {
|
|
2739
3724
|
const parsedOutput = {
|
|
2740
3725
|
...output,
|
|
2741
3726
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3192,6 +4177,219 @@ const de_DescribeMultiRegionAccessPointOperationCommandError = async (output, co
|
|
|
3192
4177
|
errorCode,
|
|
3193
4178
|
});
|
|
3194
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) => {
|
|
4355
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4356
|
+
return de_GetAccessGrantsLocationCommandError(output, context);
|
|
4357
|
+
}
|
|
4358
|
+
const contents = (0, smithy_client_1.map)({
|
|
4359
|
+
$metadata: deserializeMetadata(output),
|
|
4360
|
+
});
|
|
4361
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
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"]);
|
|
4376
|
+
}
|
|
4377
|
+
return contents;
|
|
4378
|
+
};
|
|
4379
|
+
exports.de_GetAccessGrantsLocationCommand = de_GetAccessGrantsLocationCommand;
|
|
4380
|
+
const de_GetAccessGrantsLocationCommandError = async (output, context) => {
|
|
4381
|
+
const parsedOutput = {
|
|
4382
|
+
...output,
|
|
4383
|
+
body: await parseErrorBody(output.body, context),
|
|
4384
|
+
};
|
|
4385
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4386
|
+
const parsedBody = parsedOutput.body;
|
|
4387
|
+
return throwDefaultError({
|
|
4388
|
+
output,
|
|
4389
|
+
parsedBody: parsedBody.Error,
|
|
4390
|
+
errorCode,
|
|
4391
|
+
});
|
|
4392
|
+
};
|
|
3195
4393
|
const de_GetAccessPointCommand = async (output, context) => {
|
|
3196
4394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3197
4395
|
return de_GetAccessPointCommandError(output, 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);
|
|
@@ -3784,19 +5012,107 @@ const de_GetPublicAccessBlockCommandError = async (output, context) => {
|
|
|
3784
5012
|
});
|
|
3785
5013
|
}
|
|
3786
5014
|
};
|
|
3787
|
-
const de_GetStorageLensConfigurationCommand = async (output, context) => {
|
|
5015
|
+
const de_GetStorageLensConfigurationCommand = async (output, context) => {
|
|
5016
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5017
|
+
return de_GetStorageLensConfigurationCommandError(output, context);
|
|
5018
|
+
}
|
|
5019
|
+
const contents = (0, smithy_client_1.map)({
|
|
5020
|
+
$metadata: deserializeMetadata(output),
|
|
5021
|
+
});
|
|
5022
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
5023
|
+
contents.StorageLensConfiguration = de_StorageLensConfiguration(data, context);
|
|
5024
|
+
return contents;
|
|
5025
|
+
};
|
|
5026
|
+
exports.de_GetStorageLensConfigurationCommand = de_GetStorageLensConfigurationCommand;
|
|
5027
|
+
const de_GetStorageLensConfigurationCommandError = async (output, context) => {
|
|
5028
|
+
const parsedOutput = {
|
|
5029
|
+
...output,
|
|
5030
|
+
body: await parseErrorBody(output.body, context),
|
|
5031
|
+
};
|
|
5032
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5033
|
+
const parsedBody = parsedOutput.body;
|
|
5034
|
+
return throwDefaultError({
|
|
5035
|
+
output,
|
|
5036
|
+
parsedBody: parsedBody.Error,
|
|
5037
|
+
errorCode,
|
|
5038
|
+
});
|
|
5039
|
+
};
|
|
5040
|
+
const de_GetStorageLensConfigurationTaggingCommand = async (output, context) => {
|
|
5041
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5042
|
+
return de_GetStorageLensConfigurationTaggingCommandError(output, context);
|
|
5043
|
+
}
|
|
5044
|
+
const contents = (0, smithy_client_1.map)({
|
|
5045
|
+
$metadata: deserializeMetadata(output),
|
|
5046
|
+
});
|
|
5047
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5048
|
+
if (data.Tags === "") {
|
|
5049
|
+
contents.Tags = [];
|
|
5050
|
+
}
|
|
5051
|
+
else if (data["Tags"] !== undefined && data["Tags"]["Tag"] !== undefined) {
|
|
5052
|
+
contents.Tags = de_StorageLensTags((0, smithy_client_1.getArrayIfSingleItem)(data["Tags"]["Tag"]), context);
|
|
5053
|
+
}
|
|
5054
|
+
return contents;
|
|
5055
|
+
};
|
|
5056
|
+
exports.de_GetStorageLensConfigurationTaggingCommand = de_GetStorageLensConfigurationTaggingCommand;
|
|
5057
|
+
const de_GetStorageLensConfigurationTaggingCommandError = async (output, context) => {
|
|
5058
|
+
const parsedOutput = {
|
|
5059
|
+
...output,
|
|
5060
|
+
body: await parseErrorBody(output.body, context),
|
|
5061
|
+
};
|
|
5062
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5063
|
+
const parsedBody = parsedOutput.body;
|
|
5064
|
+
return throwDefaultError({
|
|
5065
|
+
output,
|
|
5066
|
+
parsedBody: parsedBody.Error,
|
|
5067
|
+
errorCode,
|
|
5068
|
+
});
|
|
5069
|
+
};
|
|
5070
|
+
const de_GetStorageLensGroupCommand = async (output, context) => {
|
|
5071
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5072
|
+
return de_GetStorageLensGroupCommandError(output, context);
|
|
5073
|
+
}
|
|
5074
|
+
const contents = (0, smithy_client_1.map)({
|
|
5075
|
+
$metadata: deserializeMetadata(output),
|
|
5076
|
+
});
|
|
5077
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
5078
|
+
contents.StorageLensGroup = de_StorageLensGroup(data, context);
|
|
5079
|
+
return contents;
|
|
5080
|
+
};
|
|
5081
|
+
exports.de_GetStorageLensGroupCommand = de_GetStorageLensGroupCommand;
|
|
5082
|
+
const de_GetStorageLensGroupCommandError = async (output, context) => {
|
|
5083
|
+
const parsedOutput = {
|
|
5084
|
+
...output,
|
|
5085
|
+
body: await parseErrorBody(output.body, context),
|
|
5086
|
+
};
|
|
5087
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5088
|
+
const parsedBody = parsedOutput.body;
|
|
5089
|
+
return throwDefaultError({
|
|
5090
|
+
output,
|
|
5091
|
+
parsedBody: parsedBody.Error,
|
|
5092
|
+
errorCode,
|
|
5093
|
+
});
|
|
5094
|
+
};
|
|
5095
|
+
const de_ListAccessGrantsCommand = async (output, context) => {
|
|
3788
5096
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3789
|
-
return
|
|
5097
|
+
return de_ListAccessGrantsCommandError(output, context);
|
|
3790
5098
|
}
|
|
3791
5099
|
const contents = (0, smithy_client_1.map)({
|
|
3792
5100
|
$metadata: deserializeMetadata(output),
|
|
3793
5101
|
});
|
|
3794
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
3795
|
-
|
|
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
|
+
}
|
|
3796
5112
|
return contents;
|
|
3797
5113
|
};
|
|
3798
|
-
exports.
|
|
3799
|
-
const
|
|
5114
|
+
exports.de_ListAccessGrantsCommand = de_ListAccessGrantsCommand;
|
|
5115
|
+
const de_ListAccessGrantsCommandError = async (output, context) => {
|
|
3800
5116
|
const parsedOutput = {
|
|
3801
5117
|
...output,
|
|
3802
5118
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3809,24 +5125,28 @@ const de_GetStorageLensConfigurationCommandError = async (output, context) => {
|
|
|
3809
5125
|
errorCode,
|
|
3810
5126
|
});
|
|
3811
5127
|
};
|
|
3812
|
-
const
|
|
5128
|
+
const de_ListAccessGrantsInstancesCommand = async (output, context) => {
|
|
3813
5129
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3814
|
-
return
|
|
5130
|
+
return de_ListAccessGrantsInstancesCommandError(output, context);
|
|
3815
5131
|
}
|
|
3816
5132
|
const contents = (0, smithy_client_1.map)({
|
|
3817
5133
|
$metadata: deserializeMetadata(output),
|
|
3818
5134
|
});
|
|
3819
5135
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3820
|
-
if (data.
|
|
3821
|
-
contents.
|
|
5136
|
+
if (data.AccessGrantsInstancesList === "") {
|
|
5137
|
+
contents.AccessGrantsInstancesList = [];
|
|
3822
5138
|
}
|
|
3823
|
-
else if (data["
|
|
3824
|
-
|
|
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"]);
|
|
3825
5145
|
}
|
|
3826
5146
|
return contents;
|
|
3827
5147
|
};
|
|
3828
|
-
exports.
|
|
3829
|
-
const
|
|
5148
|
+
exports.de_ListAccessGrantsInstancesCommand = de_ListAccessGrantsInstancesCommand;
|
|
5149
|
+
const de_ListAccessGrantsInstancesCommandError = async (output, context) => {
|
|
3830
5150
|
const parsedOutput = {
|
|
3831
5151
|
...output,
|
|
3832
5152
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3839,19 +5159,28 @@ const de_GetStorageLensConfigurationTaggingCommandError = async (output, context
|
|
|
3839
5159
|
errorCode,
|
|
3840
5160
|
});
|
|
3841
5161
|
};
|
|
3842
|
-
const
|
|
5162
|
+
const de_ListAccessGrantsLocationsCommand = async (output, context) => {
|
|
3843
5163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3844
|
-
return
|
|
5164
|
+
return de_ListAccessGrantsLocationsCommandError(output, context);
|
|
3845
5165
|
}
|
|
3846
5166
|
const contents = (0, smithy_client_1.map)({
|
|
3847
5167
|
$metadata: deserializeMetadata(output),
|
|
3848
5168
|
});
|
|
3849
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
3850
|
-
|
|
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
|
+
}
|
|
3851
5180
|
return contents;
|
|
3852
5181
|
};
|
|
3853
|
-
exports.
|
|
3854
|
-
const
|
|
5182
|
+
exports.de_ListAccessGrantsLocationsCommand = de_ListAccessGrantsLocationsCommand;
|
|
5183
|
+
const de_ListAccessGrantsLocationsCommandError = async (output, context) => {
|
|
3855
5184
|
const parsedOutput = {
|
|
3856
5185
|
...output,
|
|
3857
5186
|
body: await parseErrorBody(output.body, 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) {
|
|
@@ -5133,6 +6554,30 @@ const se_JobManifestGeneratorFilter = (input, context) => {
|
|
|
5133
6554
|
});
|
|
5134
6555
|
bodyNode.addChildNode(containerNode);
|
|
5135
6556
|
}
|
|
6557
|
+
if (input.KeyNameConstraint != null) {
|
|
6558
|
+
const node = se_KeyNameConstraint(input.KeyNameConstraint, context).withName("KeyNameConstraint");
|
|
6559
|
+
bodyNode.addChildNode(node);
|
|
6560
|
+
}
|
|
6561
|
+
if (input.ObjectSizeGreaterThanBytes != null) {
|
|
6562
|
+
const node = xml_builder_1.XmlNode
|
|
6563
|
+
.of("ObjectSizeGreaterThanBytes", String(input.ObjectSizeGreaterThanBytes))
|
|
6564
|
+
.withName("ObjectSizeGreaterThanBytes");
|
|
6565
|
+
bodyNode.addChildNode(node);
|
|
6566
|
+
}
|
|
6567
|
+
if (input.ObjectSizeLessThanBytes != null) {
|
|
6568
|
+
const node = xml_builder_1.XmlNode
|
|
6569
|
+
.of("ObjectSizeLessThanBytes", String(input.ObjectSizeLessThanBytes))
|
|
6570
|
+
.withName("ObjectSizeLessThanBytes");
|
|
6571
|
+
bodyNode.addChildNode(node);
|
|
6572
|
+
}
|
|
6573
|
+
if (input.MatchAnyStorageClass != null) {
|
|
6574
|
+
const nodes = se_StorageClassList(input.MatchAnyStorageClass, context);
|
|
6575
|
+
const containerNode = new xml_builder_1.XmlNode("MatchAnyStorageClass");
|
|
6576
|
+
nodes.map((node) => {
|
|
6577
|
+
containerNode.addChildNode(node);
|
|
6578
|
+
});
|
|
6579
|
+
bodyNode.addChildNode(containerNode);
|
|
6580
|
+
}
|
|
5136
6581
|
return bodyNode;
|
|
5137
6582
|
};
|
|
5138
6583
|
const se_JobManifestLocation = (input, context) => {
|
|
@@ -5231,6 +6676,34 @@ const se_JobReport = (input, context) => {
|
|
|
5231
6676
|
}
|
|
5232
6677
|
return bodyNode;
|
|
5233
6678
|
};
|
|
6679
|
+
const se_KeyNameConstraint = (input, context) => {
|
|
6680
|
+
const bodyNode = new xml_builder_1.XmlNode("KeyNameConstraint");
|
|
6681
|
+
if (input.MatchAnyPrefix != null) {
|
|
6682
|
+
const nodes = se_NonEmptyMaxLength1024StringList(input.MatchAnyPrefix, context);
|
|
6683
|
+
const containerNode = new xml_builder_1.XmlNode("MatchAnyPrefix");
|
|
6684
|
+
nodes.map((node) => {
|
|
6685
|
+
containerNode.addChildNode(node);
|
|
6686
|
+
});
|
|
6687
|
+
bodyNode.addChildNode(containerNode);
|
|
6688
|
+
}
|
|
6689
|
+
if (input.MatchAnySuffix != null) {
|
|
6690
|
+
const nodes = se_NonEmptyMaxLength1024StringList(input.MatchAnySuffix, context);
|
|
6691
|
+
const containerNode = new xml_builder_1.XmlNode("MatchAnySuffix");
|
|
6692
|
+
nodes.map((node) => {
|
|
6693
|
+
containerNode.addChildNode(node);
|
|
6694
|
+
});
|
|
6695
|
+
bodyNode.addChildNode(containerNode);
|
|
6696
|
+
}
|
|
6697
|
+
if (input.MatchAnySubstring != null) {
|
|
6698
|
+
const nodes = se_NonEmptyMaxLength1024StringList(input.MatchAnySubstring, context);
|
|
6699
|
+
const containerNode = new xml_builder_1.XmlNode("MatchAnySubstring");
|
|
6700
|
+
nodes.map((node) => {
|
|
6701
|
+
containerNode.addChildNode(node);
|
|
6702
|
+
});
|
|
6703
|
+
bodyNode.addChildNode(containerNode);
|
|
6704
|
+
}
|
|
6705
|
+
return bodyNode;
|
|
6706
|
+
};
|
|
5234
6707
|
const se_LambdaInvokeOperation = (input, context) => {
|
|
5235
6708
|
const bodyNode = new xml_builder_1.XmlNode("LambdaInvokeOperation");
|
|
5236
6709
|
if (input.FunctionArn != null) {
|
|
@@ -5489,6 +6962,14 @@ const se_NoncurrentVersionTransitionList = (input, context) => {
|
|
|
5489
6962
|
return node.withName("NoncurrentVersionTransition");
|
|
5490
6963
|
});
|
|
5491
6964
|
};
|
|
6965
|
+
const se_NonEmptyMaxLength1024StringList = (input, context) => {
|
|
6966
|
+
return input
|
|
6967
|
+
.filter((e) => e != null)
|
|
6968
|
+
.map((entry) => {
|
|
6969
|
+
const node = xml_builder_1.XmlNode.of("NonEmptyMaxLength1024String", entry);
|
|
6970
|
+
return node.withName("member");
|
|
6971
|
+
});
|
|
6972
|
+
};
|
|
5492
6973
|
const se_ObjectLambdaAllowedFeaturesList = (input, context) => {
|
|
5493
6974
|
return input
|
|
5494
6975
|
.filter((e) => e != null)
|
|
@@ -6278,6 +7759,14 @@ const se_SSES3Encryption = (input, context) => {
|
|
|
6278
7759
|
const bodyNode = new xml_builder_1.XmlNode("SSE-S3");
|
|
6279
7760
|
return bodyNode;
|
|
6280
7761
|
};
|
|
7762
|
+
const se_StorageClassList = (input, context) => {
|
|
7763
|
+
return input
|
|
7764
|
+
.filter((e) => e != null)
|
|
7765
|
+
.map((entry) => {
|
|
7766
|
+
const node = xml_builder_1.XmlNode.of("S3StorageClass", entry);
|
|
7767
|
+
return node.withName("member");
|
|
7768
|
+
});
|
|
7769
|
+
};
|
|
6281
7770
|
const se_StorageLensAwsOrg = (input, context) => {
|
|
6282
7771
|
const bodyNode = new xml_builder_1.XmlNode("StorageLensAwsOrg");
|
|
6283
7772
|
if (input.Arn != null) {
|
|
@@ -6632,6 +8121,34 @@ const de_AccessControlTranslation = (output, context) => {
|
|
|
6632
8121
|
}
|
|
6633
8122
|
return contents;
|
|
6634
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
|
+
};
|
|
6635
8152
|
const de_AccessPoint = (output, context) => {
|
|
6636
8153
|
const contents = {};
|
|
6637
8154
|
if (output["Name"] !== undefined) {
|
|
@@ -6827,6 +8344,22 @@ const de_CreateMultiRegionAccessPointInput = (output, context) => {
|
|
|
6827
8344
|
}
|
|
6828
8345
|
return contents;
|
|
6829
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
|
+
};
|
|
6830
8363
|
const de_DeleteMarkerReplication = (output, context) => {
|
|
6831
8364
|
const contents = {};
|
|
6832
8365
|
if (output["Status"] !== undefined) {
|
|
@@ -6929,6 +8462,16 @@ const de_GeneratedManifestEncryption = (output, context) => {
|
|
|
6929
8462
|
}
|
|
6930
8463
|
return contents;
|
|
6931
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
|
+
};
|
|
6932
8475
|
const de_Include = (output, context) => {
|
|
6933
8476
|
const contents = {};
|
|
6934
8477
|
if (output.Buckets === "") {
|
|
@@ -7106,6 +8649,21 @@ const de_JobManifestGeneratorFilter = (output, context) => {
|
|
|
7106
8649
|
output["ObjectReplicationStatuses"]["member"] !== undefined) {
|
|
7107
8650
|
contents.ObjectReplicationStatuses = de_ReplicationStatusFilterList((0, smithy_client_1.getArrayIfSingleItem)(output["ObjectReplicationStatuses"]["member"]), context);
|
|
7108
8651
|
}
|
|
8652
|
+
if (output["KeyNameConstraint"] !== undefined) {
|
|
8653
|
+
contents.KeyNameConstraint = de_KeyNameConstraint(output["KeyNameConstraint"], context);
|
|
8654
|
+
}
|
|
8655
|
+
if (output["ObjectSizeGreaterThanBytes"] !== undefined) {
|
|
8656
|
+
contents.ObjectSizeGreaterThanBytes = (0, smithy_client_1.strictParseLong)(output["ObjectSizeGreaterThanBytes"]);
|
|
8657
|
+
}
|
|
8658
|
+
if (output["ObjectSizeLessThanBytes"] !== undefined) {
|
|
8659
|
+
contents.ObjectSizeLessThanBytes = (0, smithy_client_1.strictParseLong)(output["ObjectSizeLessThanBytes"]);
|
|
8660
|
+
}
|
|
8661
|
+
if (output.MatchAnyStorageClass === "") {
|
|
8662
|
+
contents.MatchAnyStorageClass = [];
|
|
8663
|
+
}
|
|
8664
|
+
else if (output["MatchAnyStorageClass"] !== undefined && output["MatchAnyStorageClass"]["member"] !== undefined) {
|
|
8665
|
+
contents.MatchAnyStorageClass = de_StorageClassList((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnyStorageClass"]["member"]), context);
|
|
8666
|
+
}
|
|
7109
8667
|
return contents;
|
|
7110
8668
|
};
|
|
7111
8669
|
const de_JobManifestLocation = (output, context) => {
|
|
@@ -7207,6 +8765,28 @@ const de_JobTimers = (output, context) => {
|
|
|
7207
8765
|
}
|
|
7208
8766
|
return contents;
|
|
7209
8767
|
};
|
|
8768
|
+
const de_KeyNameConstraint = (output, context) => {
|
|
8769
|
+
const contents = {};
|
|
8770
|
+
if (output.MatchAnyPrefix === "") {
|
|
8771
|
+
contents.MatchAnyPrefix = [];
|
|
8772
|
+
}
|
|
8773
|
+
else if (output["MatchAnyPrefix"] !== undefined && output["MatchAnyPrefix"]["member"] !== undefined) {
|
|
8774
|
+
contents.MatchAnyPrefix = de_NonEmptyMaxLength1024StringList((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnyPrefix"]["member"]), context);
|
|
8775
|
+
}
|
|
8776
|
+
if (output.MatchAnySuffix === "") {
|
|
8777
|
+
contents.MatchAnySuffix = [];
|
|
8778
|
+
}
|
|
8779
|
+
else if (output["MatchAnySuffix"] !== undefined && output["MatchAnySuffix"]["member"] !== undefined) {
|
|
8780
|
+
contents.MatchAnySuffix = de_NonEmptyMaxLength1024StringList((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnySuffix"]["member"]), context);
|
|
8781
|
+
}
|
|
8782
|
+
if (output.MatchAnySubstring === "") {
|
|
8783
|
+
contents.MatchAnySubstring = [];
|
|
8784
|
+
}
|
|
8785
|
+
else if (output["MatchAnySubstring"] !== undefined && output["MatchAnySubstring"]["member"] !== undefined) {
|
|
8786
|
+
contents.MatchAnySubstring = de_NonEmptyMaxLength1024StringList((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnySubstring"]["member"]), context);
|
|
8787
|
+
}
|
|
8788
|
+
return contents;
|
|
8789
|
+
};
|
|
7210
8790
|
const de_LambdaInvokeOperation = (output, context) => {
|
|
7211
8791
|
const contents = {};
|
|
7212
8792
|
if (output["FunctionArn"] !== undefined) {
|
|
@@ -7307,6 +8887,72 @@ const de_LifecycleRules = (output, context) => {
|
|
|
7307
8887
|
return de_LifecycleRule(entry, context);
|
|
7308
8888
|
});
|
|
7309
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
|
+
};
|
|
7310
8956
|
const de_ListStorageLensConfigurationEntry = (output, context) => {
|
|
7311
8957
|
const contents = {};
|
|
7312
8958
|
if (output["Id"] !== undefined) {
|
|
@@ -7496,6 +9142,13 @@ const de_NoncurrentVersionTransitionList = (output, context) => {
|
|
|
7496
9142
|
return de_NoncurrentVersionTransition(entry, context);
|
|
7497
9143
|
});
|
|
7498
9144
|
};
|
|
9145
|
+
const de_NonEmptyMaxLength1024StringList = (output, context) => {
|
|
9146
|
+
return (output || [])
|
|
9147
|
+
.filter((e) => e != null)
|
|
9148
|
+
.map((entry) => {
|
|
9149
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
9150
|
+
});
|
|
9151
|
+
};
|
|
7499
9152
|
const de_ObjectLambdaAccessPoint = (output, context) => {
|
|
7500
9153
|
const contents = {};
|
|
7501
9154
|
if (output["Name"] !== undefined) {
|
|
@@ -8222,6 +9875,13 @@ const de_SSES3Encryption = (output, context) => {
|
|
|
8222
9875
|
const contents = {};
|
|
8223
9876
|
return contents;
|
|
8224
9877
|
};
|
|
9878
|
+
const de_StorageClassList = (output, context) => {
|
|
9879
|
+
return (output || [])
|
|
9880
|
+
.filter((e) => e != null)
|
|
9881
|
+
.map((entry) => {
|
|
9882
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
9883
|
+
});
|
|
9884
|
+
};
|
|
8225
9885
|
const de_StorageLensAwsOrg = (output, context) => {
|
|
8226
9886
|
const contents = {};
|
|
8227
9887
|
if (output["Arn"] !== undefined) {
|