@aws-sdk/client-s3-control 3.218.0 → 3.219.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/dist-cjs/S3Control.js +30 -0
- package/dist-cjs/commands/GetMultiRegionAccessPointRoutesCommand.js +52 -0
- package/dist-cjs/commands/SubmitMultiRegionAccessPointRoutesCommand.js +52 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +19 -19
- package/dist-cjs/models/models_0.js +22 -2
- package/dist-cjs/protocols/Aws_restXml.js +191 -9
- package/dist-es/S3Control.js +30 -0
- package/dist-es/commands/GetMultiRegionAccessPointRoutesCommand.js +48 -0
- package/dist-es/commands/SubmitMultiRegionAccessPointRoutesCommand.js +48 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +19 -19
- package/dist-es/models/models_0.js +15 -0
- package/dist-es/protocols/Aws_restXml.js +184 -6
- package/dist-types/S3Control.d.ts +113 -16
- package/dist-types/S3ControlClient.d.ts +4 -2
- package/dist-types/commands/GetBucketVersioningCommand.d.ts +6 -5
- package/dist-types/commands/GetMultiRegionAccessPointRoutesCommand.d.ts +70 -0
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +14 -11
- package/dist-types/commands/SubmitMultiRegionAccessPointRoutesCommand.d.ts +83 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +112 -13
- package/dist-types/protocols/Aws_restXml.d.ts +6 -0
- package/dist-types/ts3.4/S3Control.d.ts +40 -0
- package/dist-types/ts3.4/S3ControlClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetMultiRegionAccessPointRoutesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/SubmitMultiRegionAccessPointRoutesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +34 -0
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +24 -0
- package/package.json +1 -1
|
@@ -305,8 +305,8 @@ export const ruleSet = {
|
|
|
305
305
|
authSchemes: [
|
|
306
306
|
{
|
|
307
307
|
name: "sigv4",
|
|
308
|
-
disableDoubleEncoding: true,
|
|
309
308
|
signingName: "s3-outposts",
|
|
309
|
+
disableDoubleEncoding: true,
|
|
310
310
|
signingRegion: "{Region}",
|
|
311
311
|
},
|
|
312
312
|
],
|
|
@@ -333,8 +333,8 @@ export const ruleSet = {
|
|
|
333
333
|
authSchemes: [
|
|
334
334
|
{
|
|
335
335
|
name: "sigv4",
|
|
336
|
-
disableDoubleEncoding: true,
|
|
337
336
|
signingName: "s3-outposts",
|
|
337
|
+
disableDoubleEncoding: true,
|
|
338
338
|
signingRegion: "{Region}",
|
|
339
339
|
},
|
|
340
340
|
],
|
|
@@ -351,8 +351,8 @@ export const ruleSet = {
|
|
|
351
351
|
authSchemes: [
|
|
352
352
|
{
|
|
353
353
|
name: "sigv4",
|
|
354
|
-
disableDoubleEncoding: true,
|
|
355
354
|
signingName: "s3-outposts",
|
|
355
|
+
disableDoubleEncoding: true,
|
|
356
356
|
signingRegion: "{Region}",
|
|
357
357
|
},
|
|
358
358
|
],
|
|
@@ -822,8 +822,8 @@ export const ruleSet = {
|
|
|
822
822
|
authSchemes: [
|
|
823
823
|
{
|
|
824
824
|
name: "sigv4",
|
|
825
|
-
disableDoubleEncoding: true,
|
|
826
825
|
signingName: "s3-outposts",
|
|
826
|
+
disableDoubleEncoding: true,
|
|
827
827
|
signingRegion: "{accessPointArn#region}",
|
|
828
828
|
},
|
|
829
829
|
],
|
|
@@ -865,8 +865,8 @@ export const ruleSet = {
|
|
|
865
865
|
authSchemes: [
|
|
866
866
|
{
|
|
867
867
|
name: "sigv4",
|
|
868
|
-
disableDoubleEncoding: true,
|
|
869
868
|
signingName: "s3-outposts",
|
|
869
|
+
disableDoubleEncoding: true,
|
|
870
870
|
signingRegion: "{accessPointArn#region}",
|
|
871
871
|
},
|
|
872
872
|
],
|
|
@@ -890,8 +890,8 @@ export const ruleSet = {
|
|
|
890
890
|
authSchemes: [
|
|
891
891
|
{
|
|
892
892
|
name: "sigv4",
|
|
893
|
-
disableDoubleEncoding: true,
|
|
894
893
|
signingName: "s3-outposts",
|
|
894
|
+
disableDoubleEncoding: true,
|
|
895
895
|
signingRegion: "{accessPointArn#region}",
|
|
896
896
|
},
|
|
897
897
|
],
|
|
@@ -1454,8 +1454,8 @@ export const ruleSet = {
|
|
|
1454
1454
|
authSchemes: [
|
|
1455
1455
|
{
|
|
1456
1456
|
name: "sigv4",
|
|
1457
|
-
disableDoubleEncoding: true,
|
|
1458
1457
|
signingName: "s3-outposts",
|
|
1458
|
+
disableDoubleEncoding: true,
|
|
1459
1459
|
signingRegion: "{bucketArn#region}",
|
|
1460
1460
|
},
|
|
1461
1461
|
],
|
|
@@ -1497,8 +1497,8 @@ export const ruleSet = {
|
|
|
1497
1497
|
authSchemes: [
|
|
1498
1498
|
{
|
|
1499
1499
|
name: "sigv4",
|
|
1500
|
-
disableDoubleEncoding: true,
|
|
1501
1500
|
signingName: "s3-outposts",
|
|
1501
|
+
disableDoubleEncoding: true,
|
|
1502
1502
|
signingRegion: "{bucketArn#region}",
|
|
1503
1503
|
},
|
|
1504
1504
|
],
|
|
@@ -1522,8 +1522,8 @@ export const ruleSet = {
|
|
|
1522
1522
|
authSchemes: [
|
|
1523
1523
|
{
|
|
1524
1524
|
name: "sigv4",
|
|
1525
|
-
disableDoubleEncoding: true,
|
|
1526
1525
|
signingName: "s3-outposts",
|
|
1526
|
+
disableDoubleEncoding: true,
|
|
1527
1527
|
signingRegion: "{bucketArn#region}",
|
|
1528
1528
|
},
|
|
1529
1529
|
],
|
|
@@ -1876,8 +1876,8 @@ export const ruleSet = {
|
|
|
1876
1876
|
authSchemes: [
|
|
1877
1877
|
{
|
|
1878
1878
|
name: "sigv4",
|
|
1879
|
-
disableDoubleEncoding: true,
|
|
1880
1879
|
signingName: "s3",
|
|
1880
|
+
disableDoubleEncoding: true,
|
|
1881
1881
|
signingRegion: "{Region}",
|
|
1882
1882
|
},
|
|
1883
1883
|
],
|
|
@@ -1894,8 +1894,8 @@ export const ruleSet = {
|
|
|
1894
1894
|
authSchemes: [
|
|
1895
1895
|
{
|
|
1896
1896
|
name: "sigv4",
|
|
1897
|
-
disableDoubleEncoding: true,
|
|
1898
1897
|
signingName: "s3",
|
|
1898
|
+
disableDoubleEncoding: true,
|
|
1899
1899
|
signingRegion: "{Region}",
|
|
1900
1900
|
},
|
|
1901
1901
|
],
|
|
@@ -1964,8 +1964,8 @@ export const ruleSet = {
|
|
|
1964
1964
|
authSchemes: [
|
|
1965
1965
|
{
|
|
1966
1966
|
name: "sigv4",
|
|
1967
|
-
disableDoubleEncoding: true,
|
|
1968
1967
|
signingName: "s3",
|
|
1968
|
+
disableDoubleEncoding: true,
|
|
1969
1969
|
signingRegion: "{Region}",
|
|
1970
1970
|
},
|
|
1971
1971
|
],
|
|
@@ -2001,8 +2001,8 @@ export const ruleSet = {
|
|
|
2001
2001
|
authSchemes: [
|
|
2002
2002
|
{
|
|
2003
2003
|
name: "sigv4",
|
|
2004
|
-
disableDoubleEncoding: true,
|
|
2005
2004
|
signingName: "s3",
|
|
2005
|
+
disableDoubleEncoding: true,
|
|
2006
2006
|
signingRegion: "{Region}",
|
|
2007
2007
|
},
|
|
2008
2008
|
],
|
|
@@ -2063,8 +2063,8 @@ export const ruleSet = {
|
|
|
2063
2063
|
authSchemes: [
|
|
2064
2064
|
{
|
|
2065
2065
|
name: "sigv4",
|
|
2066
|
-
disableDoubleEncoding: true,
|
|
2067
2066
|
signingName: "s3",
|
|
2067
|
+
disableDoubleEncoding: true,
|
|
2068
2068
|
signingRegion: "{Region}",
|
|
2069
2069
|
},
|
|
2070
2070
|
],
|
|
@@ -2100,8 +2100,8 @@ export const ruleSet = {
|
|
|
2100
2100
|
authSchemes: [
|
|
2101
2101
|
{
|
|
2102
2102
|
name: "sigv4",
|
|
2103
|
-
disableDoubleEncoding: true,
|
|
2104
2103
|
signingName: "s3",
|
|
2104
|
+
disableDoubleEncoding: true,
|
|
2105
2105
|
signingRegion: "{Region}",
|
|
2106
2106
|
},
|
|
2107
2107
|
],
|
|
@@ -2162,8 +2162,8 @@ export const ruleSet = {
|
|
|
2162
2162
|
authSchemes: [
|
|
2163
2163
|
{
|
|
2164
2164
|
name: "sigv4",
|
|
2165
|
-
disableDoubleEncoding: true,
|
|
2166
2165
|
signingName: "s3",
|
|
2166
|
+
disableDoubleEncoding: true,
|
|
2167
2167
|
signingRegion: "{Region}",
|
|
2168
2168
|
},
|
|
2169
2169
|
],
|
|
@@ -2199,8 +2199,8 @@ export const ruleSet = {
|
|
|
2199
2199
|
authSchemes: [
|
|
2200
2200
|
{
|
|
2201
2201
|
name: "sigv4",
|
|
2202
|
-
disableDoubleEncoding: true,
|
|
2203
2202
|
signingName: "s3",
|
|
2203
|
+
disableDoubleEncoding: true,
|
|
2204
2204
|
signingRegion: "{Region}",
|
|
2205
2205
|
},
|
|
2206
2206
|
],
|
|
@@ -2261,8 +2261,8 @@ export const ruleSet = {
|
|
|
2261
2261
|
authSchemes: [
|
|
2262
2262
|
{
|
|
2263
2263
|
name: "sigv4",
|
|
2264
|
-
disableDoubleEncoding: true,
|
|
2265
2264
|
signingName: "s3",
|
|
2265
|
+
disableDoubleEncoding: true,
|
|
2266
2266
|
signingRegion: "{Region}",
|
|
2267
2267
|
},
|
|
2268
2268
|
],
|
|
@@ -2298,8 +2298,8 @@ export const ruleSet = {
|
|
|
2298
2298
|
authSchemes: [
|
|
2299
2299
|
{
|
|
2300
2300
|
name: "sigv4",
|
|
2301
|
-
disableDoubleEncoding: true,
|
|
2302
2301
|
signingName: "s3",
|
|
2302
|
+
disableDoubleEncoding: true,
|
|
2303
2303
|
signingRegion: "{Region}",
|
|
2304
2304
|
},
|
|
2305
2305
|
],
|
|
@@ -828,6 +828,15 @@ export const GetMultiRegionAccessPointPolicyStatusRequestFilterSensitiveLog = (o
|
|
|
828
828
|
export const GetMultiRegionAccessPointPolicyStatusResultFilterSensitiveLog = (obj) => ({
|
|
829
829
|
...obj,
|
|
830
830
|
});
|
|
831
|
+
export const GetMultiRegionAccessPointRoutesRequestFilterSensitiveLog = (obj) => ({
|
|
832
|
+
...obj,
|
|
833
|
+
});
|
|
834
|
+
export const MultiRegionAccessPointRouteFilterSensitiveLog = (obj) => ({
|
|
835
|
+
...obj,
|
|
836
|
+
});
|
|
837
|
+
export const GetMultiRegionAccessPointRoutesResultFilterSensitiveLog = (obj) => ({
|
|
838
|
+
...obj,
|
|
839
|
+
});
|
|
831
840
|
export const GetPublicAccessBlockOutputFilterSensitiveLog = (obj) => ({
|
|
832
841
|
...obj,
|
|
833
842
|
});
|
|
@@ -982,6 +991,12 @@ export const PutStorageLensConfigurationTaggingRequestFilterSensitiveLog = (obj)
|
|
|
982
991
|
export const PutStorageLensConfigurationTaggingResultFilterSensitiveLog = (obj) => ({
|
|
983
992
|
...obj,
|
|
984
993
|
});
|
|
994
|
+
export const SubmitMultiRegionAccessPointRoutesRequestFilterSensitiveLog = (obj) => ({
|
|
995
|
+
...obj,
|
|
996
|
+
});
|
|
997
|
+
export const SubmitMultiRegionAccessPointRoutesResultFilterSensitiveLog = (obj) => ({
|
|
998
|
+
...obj,
|
|
999
|
+
});
|
|
985
1000
|
export const UpdateJobPriorityRequestFilterSensitiveLog = (obj) => ({
|
|
986
1001
|
...obj,
|
|
987
1002
|
});
|
|
@@ -1097,8 +1097,8 @@ export const serializeAws_restXmlGetMultiRegionAccessPointCommand = async (input
|
|
|
1097
1097
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1098
1098
|
"x-amz-account-id": input.AccountId,
|
|
1099
1099
|
});
|
|
1100
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name}";
|
|
1101
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}",
|
|
1100
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name+}";
|
|
1101
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name+}", true);
|
|
1102
1102
|
let body;
|
|
1103
1103
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1104
1104
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1126,8 +1126,8 @@ export const serializeAws_restXmlGetMultiRegionAccessPointPolicyCommand = async
|
|
|
1126
1126
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1127
1127
|
"x-amz-account-id": input.AccountId,
|
|
1128
1128
|
});
|
|
1129
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name}/policy";
|
|
1130
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}",
|
|
1129
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name+}/policy";
|
|
1130
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name+}", true);
|
|
1131
1131
|
let body;
|
|
1132
1132
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1133
1133
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1156,8 +1156,37 @@ export const serializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand =
|
|
|
1156
1156
|
"x-amz-account-id": input.AccountId,
|
|
1157
1157
|
});
|
|
1158
1158
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1159
|
-
"/v20180820/mrap/instances/{Name}/policystatus";
|
|
1160
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}",
|
|
1159
|
+
"/v20180820/mrap/instances/{Name+}/policystatus";
|
|
1160
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name+}", true);
|
|
1161
|
+
let body;
|
|
1162
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1163
|
+
if (context.disableHostPrefix !== true) {
|
|
1164
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
1165
|
+
if (input.AccountId === undefined) {
|
|
1166
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
1167
|
+
}
|
|
1168
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
1169
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
1170
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
return new __HttpRequest({
|
|
1174
|
+
protocol,
|
|
1175
|
+
hostname: resolvedHostname,
|
|
1176
|
+
port,
|
|
1177
|
+
method: "GET",
|
|
1178
|
+
headers,
|
|
1179
|
+
path: resolvedPath,
|
|
1180
|
+
body,
|
|
1181
|
+
});
|
|
1182
|
+
};
|
|
1183
|
+
export const serializeAws_restXmlGetMultiRegionAccessPointRoutesCommand = async (input, context) => {
|
|
1184
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1185
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1186
|
+
"x-amz-account-id": input.AccountId,
|
|
1187
|
+
});
|
|
1188
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Mrap+}/routes";
|
|
1189
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Mrap", () => input.Mrap, "{Mrap+}", true);
|
|
1161
1190
|
let body;
|
|
1162
1191
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1163
1192
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1961,6 +1990,48 @@ export const serializeAws_restXmlPutStorageLensConfigurationTaggingCommand = asy
|
|
|
1961
1990
|
body,
|
|
1962
1991
|
});
|
|
1963
1992
|
};
|
|
1993
|
+
export const serializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand = async (input, context) => {
|
|
1994
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1995
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1996
|
+
"content-type": "application/xml",
|
|
1997
|
+
"x-amz-account-id": input.AccountId,
|
|
1998
|
+
});
|
|
1999
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Mrap+}/routes";
|
|
2000
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Mrap", () => input.Mrap, "{Mrap+}", true);
|
|
2001
|
+
let body;
|
|
2002
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2003
|
+
const bodyNode = new __XmlNode("SubmitMultiRegionAccessPointRoutesRequest");
|
|
2004
|
+
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
2005
|
+
if (input.RouteUpdates !== undefined) {
|
|
2006
|
+
const nodes = serializeAws_restXmlRouteList(input.RouteUpdates, context);
|
|
2007
|
+
const containerNode = new __XmlNode("RouteUpdates");
|
|
2008
|
+
nodes.map((node) => {
|
|
2009
|
+
containerNode.addChildNode(node);
|
|
2010
|
+
});
|
|
2011
|
+
bodyNode.addChildNode(containerNode);
|
|
2012
|
+
}
|
|
2013
|
+
body += bodyNode.toString();
|
|
2014
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2015
|
+
if (context.disableHostPrefix !== true) {
|
|
2016
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
2017
|
+
if (input.AccountId === undefined) {
|
|
2018
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
2019
|
+
}
|
|
2020
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
2021
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
2022
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
return new __HttpRequest({
|
|
2026
|
+
protocol,
|
|
2027
|
+
hostname: resolvedHostname,
|
|
2028
|
+
port,
|
|
2029
|
+
method: "PATCH",
|
|
2030
|
+
headers,
|
|
2031
|
+
path: resolvedPath,
|
|
2032
|
+
body,
|
|
2033
|
+
});
|
|
2034
|
+
};
|
|
1964
2035
|
export const serializeAws_restXmlUpdateJobPriorityCommand = async (input, context) => {
|
|
1965
2036
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1966
2037
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -3082,6 +3153,39 @@ const deserializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommandError =
|
|
|
3082
3153
|
errorCode,
|
|
3083
3154
|
});
|
|
3084
3155
|
};
|
|
3156
|
+
export const deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommand = async (output, context) => {
|
|
3157
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3158
|
+
return deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommandError(output, context);
|
|
3159
|
+
}
|
|
3160
|
+
const contents = map({
|
|
3161
|
+
$metadata: deserializeMetadata(output),
|
|
3162
|
+
});
|
|
3163
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3164
|
+
if (data["Mrap"] !== undefined) {
|
|
3165
|
+
contents.Mrap = __expectString(data["Mrap"]);
|
|
3166
|
+
}
|
|
3167
|
+
if (data.Routes === "") {
|
|
3168
|
+
contents.Routes = [];
|
|
3169
|
+
}
|
|
3170
|
+
else if (data["Routes"] !== undefined && data["Routes"]["Route"] !== undefined) {
|
|
3171
|
+
contents.Routes = deserializeAws_restXmlRouteList(__getArrayIfSingleItem(data["Routes"]["Route"]), context);
|
|
3172
|
+
}
|
|
3173
|
+
return contents;
|
|
3174
|
+
};
|
|
3175
|
+
const deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommandError = async (output, context) => {
|
|
3176
|
+
const parsedOutput = {
|
|
3177
|
+
...output,
|
|
3178
|
+
body: await parseErrorBody(output.body, context),
|
|
3179
|
+
};
|
|
3180
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3181
|
+
const parsedBody = parsedOutput.body;
|
|
3182
|
+
throwDefaultError({
|
|
3183
|
+
output,
|
|
3184
|
+
parsedBody: parsedBody.Error,
|
|
3185
|
+
exceptionCtor: __BaseException,
|
|
3186
|
+
errorCode,
|
|
3187
|
+
});
|
|
3188
|
+
};
|
|
3085
3189
|
export const deserializeAws_restXmlGetPublicAccessBlockCommand = async (output, context) => {
|
|
3086
3190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3087
3191
|
return deserializeAws_restXmlGetPublicAccessBlockCommandError(output, context);
|
|
@@ -3685,6 +3789,30 @@ const deserializeAws_restXmlPutStorageLensConfigurationTaggingCommandError = asy
|
|
|
3685
3789
|
errorCode,
|
|
3686
3790
|
});
|
|
3687
3791
|
};
|
|
3792
|
+
export const deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand = async (output, context) => {
|
|
3793
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3794
|
+
return deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommandError(output, context);
|
|
3795
|
+
}
|
|
3796
|
+
const contents = map({
|
|
3797
|
+
$metadata: deserializeMetadata(output),
|
|
3798
|
+
});
|
|
3799
|
+
await collectBody(output.body, context);
|
|
3800
|
+
return contents;
|
|
3801
|
+
};
|
|
3802
|
+
const deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommandError = async (output, context) => {
|
|
3803
|
+
const parsedOutput = {
|
|
3804
|
+
...output,
|
|
3805
|
+
body: await parseErrorBody(output.body, context),
|
|
3806
|
+
};
|
|
3807
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3808
|
+
const parsedBody = parsedOutput.body;
|
|
3809
|
+
throwDefaultError({
|
|
3810
|
+
output,
|
|
3811
|
+
parsedBody: parsedBody.Error,
|
|
3812
|
+
exceptionCtor: __BaseException,
|
|
3813
|
+
errorCode,
|
|
3814
|
+
});
|
|
3815
|
+
};
|
|
3688
3816
|
export const deserializeAws_restXmlUpdateJobPriorityCommand = async (output, context) => {
|
|
3689
3817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3690
3818
|
return deserializeAws_restXmlUpdateJobPriorityCommandError(output, context);
|
|
@@ -4430,6 +4558,24 @@ const serializeAws_restXmlLifecycleRules = (input, context) => {
|
|
|
4430
4558
|
return node.withName("Rule");
|
|
4431
4559
|
});
|
|
4432
4560
|
};
|
|
4561
|
+
const serializeAws_restXmlMultiRegionAccessPointRoute = (input, context) => {
|
|
4562
|
+
const bodyNode = new __XmlNode("MultiRegionAccessPointRoute");
|
|
4563
|
+
if (input.Bucket != null) {
|
|
4564
|
+
const node = __XmlNode.of("BucketName", input.Bucket).withName("Bucket");
|
|
4565
|
+
bodyNode.addChildNode(node);
|
|
4566
|
+
}
|
|
4567
|
+
if (input.Region != null) {
|
|
4568
|
+
const node = __XmlNode.of("RegionName", input.Region).withName("Region");
|
|
4569
|
+
bodyNode.addChildNode(node);
|
|
4570
|
+
}
|
|
4571
|
+
if (input.TrafficDialPercentage != null) {
|
|
4572
|
+
const node = __XmlNode
|
|
4573
|
+
.of("TrafficDialPercentage", String(input.TrafficDialPercentage))
|
|
4574
|
+
.withName("TrafficDialPercentage");
|
|
4575
|
+
bodyNode.addChildNode(node);
|
|
4576
|
+
}
|
|
4577
|
+
return bodyNode;
|
|
4578
|
+
};
|
|
4433
4579
|
const serializeAws_restXmlNoncurrentVersionExpiration = (input, context) => {
|
|
4434
4580
|
const bodyNode = new __XmlNode("NoncurrentVersionExpiration");
|
|
4435
4581
|
if (input.NoncurrentDays != null) {
|
|
@@ -4634,6 +4780,14 @@ const serializeAws_restXmlReplicationStatusFilterList = (input, context) => {
|
|
|
4634
4780
|
return node.withName("member");
|
|
4635
4781
|
});
|
|
4636
4782
|
};
|
|
4783
|
+
const serializeAws_restXmlRouteList = (input, context) => {
|
|
4784
|
+
return input
|
|
4785
|
+
.filter((e) => e != null)
|
|
4786
|
+
.map((entry) => {
|
|
4787
|
+
const node = serializeAws_restXmlMultiRegionAccessPointRoute(entry, context);
|
|
4788
|
+
return node.withName("Route");
|
|
4789
|
+
});
|
|
4790
|
+
};
|
|
4637
4791
|
const serializeAws_restXmlS3AccessControlList = (input, context) => {
|
|
4638
4792
|
const bodyNode = new __XmlNode("S3AccessControlList");
|
|
4639
4793
|
if (input.Owner != null) {
|
|
@@ -6126,6 +6280,23 @@ const deserializeAws_restXmlMultiRegionAccessPointReportList = (output, context)
|
|
|
6126
6280
|
return deserializeAws_restXmlMultiRegionAccessPointReport(entry, context);
|
|
6127
6281
|
});
|
|
6128
6282
|
};
|
|
6283
|
+
const deserializeAws_restXmlMultiRegionAccessPointRoute = (output, context) => {
|
|
6284
|
+
const contents = {
|
|
6285
|
+
Bucket: undefined,
|
|
6286
|
+
Region: undefined,
|
|
6287
|
+
TrafficDialPercentage: undefined,
|
|
6288
|
+
};
|
|
6289
|
+
if (output["Bucket"] !== undefined) {
|
|
6290
|
+
contents.Bucket = __expectString(output["Bucket"]);
|
|
6291
|
+
}
|
|
6292
|
+
if (output["Region"] !== undefined) {
|
|
6293
|
+
contents.Region = __expectString(output["Region"]);
|
|
6294
|
+
}
|
|
6295
|
+
if (output["TrafficDialPercentage"] !== undefined) {
|
|
6296
|
+
contents.TrafficDialPercentage = __strictParseInt32(output["TrafficDialPercentage"]);
|
|
6297
|
+
}
|
|
6298
|
+
return contents;
|
|
6299
|
+
};
|
|
6129
6300
|
const deserializeAws_restXmlMultiRegionAccessPointsAsyncResponse = (output, context) => {
|
|
6130
6301
|
const contents = {
|
|
6131
6302
|
Regions: undefined,
|
|
@@ -6422,6 +6593,13 @@ const deserializeAws_restXmlReplicationStatusFilterList = (output, context) => {
|
|
|
6422
6593
|
return __expectString(entry);
|
|
6423
6594
|
});
|
|
6424
6595
|
};
|
|
6596
|
+
const deserializeAws_restXmlRouteList = (output, context) => {
|
|
6597
|
+
return (output || [])
|
|
6598
|
+
.filter((e) => e != null)
|
|
6599
|
+
.map((entry) => {
|
|
6600
|
+
return deserializeAws_restXmlMultiRegionAccessPointRoute(entry, context);
|
|
6601
|
+
});
|
|
6602
|
+
};
|
|
6425
6603
|
const deserializeAws_restXmlS3AccessControlList = (output, context) => {
|
|
6426
6604
|
const contents = {
|
|
6427
6605
|
Owner: undefined,
|