@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restXmlUpdateJobStatusCommand = exports.deserializeAws_restXmlUpdateJobPriorityCommand = exports.deserializeAws_restXmlPutStorageLensConfigurationTaggingCommand = exports.deserializeAws_restXmlPutStorageLensConfigurationCommand = exports.deserializeAws_restXmlPutPublicAccessBlockCommand = exports.deserializeAws_restXmlPutMultiRegionAccessPointPolicyCommand = exports.deserializeAws_restXmlPutJobTaggingCommand = exports.deserializeAws_restXmlPutBucketVersioningCommand = exports.deserializeAws_restXmlPutBucketTaggingCommand = exports.deserializeAws_restXmlPutBucketPolicyCommand = exports.deserializeAws_restXmlPutBucketLifecycleConfigurationCommand = exports.deserializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommand = exports.deserializeAws_restXmlPutAccessPointPolicyCommand = exports.deserializeAws_restXmlPutAccessPointConfigurationForObjectLambdaCommand = exports.deserializeAws_restXmlListStorageLensConfigurationsCommand = exports.deserializeAws_restXmlListRegionalBucketsCommand = exports.deserializeAws_restXmlListMultiRegionAccessPointsCommand = exports.deserializeAws_restXmlListJobsCommand = void 0;
|
|
3
|
+
exports.serializeAws_restXmlPutBucketLifecycleConfigurationCommand = exports.serializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommand = exports.serializeAws_restXmlPutAccessPointPolicyCommand = exports.serializeAws_restXmlPutAccessPointConfigurationForObjectLambdaCommand = exports.serializeAws_restXmlListStorageLensConfigurationsCommand = exports.serializeAws_restXmlListRegionalBucketsCommand = exports.serializeAws_restXmlListMultiRegionAccessPointsCommand = exports.serializeAws_restXmlListJobsCommand = exports.serializeAws_restXmlListAccessPointsForObjectLambdaCommand = exports.serializeAws_restXmlListAccessPointsCommand = exports.serializeAws_restXmlGetStorageLensConfigurationTaggingCommand = exports.serializeAws_restXmlGetStorageLensConfigurationCommand = exports.serializeAws_restXmlGetPublicAccessBlockCommand = exports.serializeAws_restXmlGetMultiRegionAccessPointRoutesCommand = exports.serializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand = exports.serializeAws_restXmlGetMultiRegionAccessPointPolicyCommand = exports.serializeAws_restXmlGetMultiRegionAccessPointCommand = exports.serializeAws_restXmlGetJobTaggingCommand = exports.serializeAws_restXmlGetBucketVersioningCommand = exports.serializeAws_restXmlGetBucketTaggingCommand = exports.serializeAws_restXmlGetBucketPolicyCommand = exports.serializeAws_restXmlGetBucketLifecycleConfigurationCommand = exports.serializeAws_restXmlGetBucketCommand = exports.serializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaCommand = exports.serializeAws_restXmlGetAccessPointPolicyStatusCommand = exports.serializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommand = exports.serializeAws_restXmlGetAccessPointPolicyCommand = exports.serializeAws_restXmlGetAccessPointForObjectLambdaCommand = exports.serializeAws_restXmlGetAccessPointConfigurationForObjectLambdaCommand = exports.serializeAws_restXmlGetAccessPointCommand = exports.serializeAws_restXmlDescribeMultiRegionAccessPointOperationCommand = exports.serializeAws_restXmlDescribeJobCommand = exports.serializeAws_restXmlDeleteStorageLensConfigurationTaggingCommand = exports.serializeAws_restXmlDeleteStorageLensConfigurationCommand = exports.serializeAws_restXmlDeletePublicAccessBlockCommand = exports.serializeAws_restXmlDeleteMultiRegionAccessPointCommand = exports.serializeAws_restXmlDeleteJobTaggingCommand = exports.serializeAws_restXmlDeleteBucketTaggingCommand = exports.serializeAws_restXmlDeleteBucketPolicyCommand = exports.serializeAws_restXmlDeleteBucketLifecycleConfigurationCommand = exports.serializeAws_restXmlDeleteBucketCommand = exports.serializeAws_restXmlDeleteAccessPointPolicyForObjectLambdaCommand = exports.serializeAws_restXmlDeleteAccessPointPolicyCommand = exports.serializeAws_restXmlDeleteAccessPointForObjectLambdaCommand = exports.serializeAws_restXmlDeleteAccessPointCommand = exports.serializeAws_restXmlCreateMultiRegionAccessPointCommand = exports.serializeAws_restXmlCreateJobCommand = exports.serializeAws_restXmlCreateBucketCommand = exports.serializeAws_restXmlCreateAccessPointForObjectLambdaCommand = exports.serializeAws_restXmlCreateAccessPointCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restXmlGetStorageLensConfigurationCommand = exports.deserializeAws_restXmlGetPublicAccessBlockCommand = exports.deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommand = exports.deserializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand = exports.deserializeAws_restXmlGetMultiRegionAccessPointPolicyCommand = exports.deserializeAws_restXmlGetMultiRegionAccessPointCommand = exports.deserializeAws_restXmlGetJobTaggingCommand = exports.deserializeAws_restXmlGetBucketVersioningCommand = exports.deserializeAws_restXmlGetBucketTaggingCommand = exports.deserializeAws_restXmlGetBucketPolicyCommand = exports.deserializeAws_restXmlGetBucketLifecycleConfigurationCommand = exports.deserializeAws_restXmlGetBucketCommand = exports.deserializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaCommand = exports.deserializeAws_restXmlGetAccessPointPolicyStatusCommand = exports.deserializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommand = exports.deserializeAws_restXmlGetAccessPointPolicyCommand = exports.deserializeAws_restXmlGetAccessPointForObjectLambdaCommand = exports.deserializeAws_restXmlGetAccessPointConfigurationForObjectLambdaCommand = exports.deserializeAws_restXmlGetAccessPointCommand = exports.deserializeAws_restXmlDescribeMultiRegionAccessPointOperationCommand = exports.deserializeAws_restXmlDescribeJobCommand = exports.deserializeAws_restXmlDeleteStorageLensConfigurationTaggingCommand = exports.deserializeAws_restXmlDeleteStorageLensConfigurationCommand = exports.deserializeAws_restXmlDeletePublicAccessBlockCommand = exports.deserializeAws_restXmlDeleteMultiRegionAccessPointCommand = exports.deserializeAws_restXmlDeleteJobTaggingCommand = exports.deserializeAws_restXmlDeleteBucketTaggingCommand = exports.deserializeAws_restXmlDeleteBucketPolicyCommand = exports.deserializeAws_restXmlDeleteBucketLifecycleConfigurationCommand = exports.deserializeAws_restXmlDeleteBucketCommand = exports.deserializeAws_restXmlDeleteAccessPointPolicyForObjectLambdaCommand = exports.deserializeAws_restXmlDeleteAccessPointPolicyCommand = exports.deserializeAws_restXmlDeleteAccessPointForObjectLambdaCommand = exports.deserializeAws_restXmlDeleteAccessPointCommand = exports.deserializeAws_restXmlCreateMultiRegionAccessPointCommand = exports.deserializeAws_restXmlCreateJobCommand = exports.deserializeAws_restXmlCreateBucketCommand = exports.deserializeAws_restXmlCreateAccessPointForObjectLambdaCommand = exports.deserializeAws_restXmlCreateAccessPointCommand = exports.serializeAws_restXmlUpdateJobStatusCommand = exports.serializeAws_restXmlUpdateJobPriorityCommand = exports.serializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand = exports.serializeAws_restXmlPutStorageLensConfigurationTaggingCommand = exports.serializeAws_restXmlPutStorageLensConfigurationCommand = exports.serializeAws_restXmlPutPublicAccessBlockCommand = exports.serializeAws_restXmlPutMultiRegionAccessPointPolicyCommand = exports.serializeAws_restXmlPutJobTaggingCommand = exports.serializeAws_restXmlPutBucketVersioningCommand = exports.serializeAws_restXmlPutBucketTaggingCommand = exports.serializeAws_restXmlPutBucketPolicyCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restXmlUpdateJobStatusCommand = exports.deserializeAws_restXmlUpdateJobPriorityCommand = exports.deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand = exports.deserializeAws_restXmlPutStorageLensConfigurationTaggingCommand = exports.deserializeAws_restXmlPutStorageLensConfigurationCommand = exports.deserializeAws_restXmlPutPublicAccessBlockCommand = exports.deserializeAws_restXmlPutMultiRegionAccessPointPolicyCommand = exports.deserializeAws_restXmlPutJobTaggingCommand = exports.deserializeAws_restXmlPutBucketVersioningCommand = exports.deserializeAws_restXmlPutBucketTaggingCommand = exports.deserializeAws_restXmlPutBucketPolicyCommand = exports.deserializeAws_restXmlPutBucketLifecycleConfigurationCommand = exports.deserializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommand = exports.deserializeAws_restXmlPutAccessPointPolicyCommand = exports.deserializeAws_restXmlPutAccessPointConfigurationForObjectLambdaCommand = exports.deserializeAws_restXmlListStorageLensConfigurationsCommand = exports.deserializeAws_restXmlListRegionalBucketsCommand = exports.deserializeAws_restXmlListMultiRegionAccessPointsCommand = exports.deserializeAws_restXmlListJobsCommand = exports.deserializeAws_restXmlListAccessPointsForObjectLambdaCommand = exports.deserializeAws_restXmlListAccessPointsCommand = exports.deserializeAws_restXmlGetStorageLensConfigurationTaggingCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const xml_builder_1 = require("@aws-sdk/xml-builder");
|
|
@@ -1135,8 +1135,8 @@ const serializeAws_restXmlGetMultiRegionAccessPointCommand = async (input, conte
|
|
|
1135
1135
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1136
1136
|
"x-amz-account-id": input.AccountId,
|
|
1137
1137
|
});
|
|
1138
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name}";
|
|
1139
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}",
|
|
1138
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name+}";
|
|
1139
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name+}", true);
|
|
1140
1140
|
let body;
|
|
1141
1141
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1142
1142
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1165,8 +1165,8 @@ const serializeAws_restXmlGetMultiRegionAccessPointPolicyCommand = async (input,
|
|
|
1165
1165
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1166
1166
|
"x-amz-account-id": input.AccountId,
|
|
1167
1167
|
});
|
|
1168
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name}/policy";
|
|
1169
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}",
|
|
1168
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name+}/policy";
|
|
1169
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name+}", true);
|
|
1170
1170
|
let body;
|
|
1171
1171
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1172
1172
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1196,8 +1196,8 @@ const serializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand = async (
|
|
|
1196
1196
|
"x-amz-account-id": input.AccountId,
|
|
1197
1197
|
});
|
|
1198
1198
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1199
|
-
"/v20180820/mrap/instances/{Name}/policystatus";
|
|
1200
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}",
|
|
1199
|
+
"/v20180820/mrap/instances/{Name+}/policystatus";
|
|
1200
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name+}", true);
|
|
1201
1201
|
let body;
|
|
1202
1202
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1203
1203
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1221,6 +1221,36 @@ const serializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand = async (
|
|
|
1221
1221
|
});
|
|
1222
1222
|
};
|
|
1223
1223
|
exports.serializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand = serializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommand;
|
|
1224
|
+
const serializeAws_restXmlGetMultiRegionAccessPointRoutesCommand = async (input, context) => {
|
|
1225
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1226
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1227
|
+
"x-amz-account-id": input.AccountId,
|
|
1228
|
+
});
|
|
1229
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Mrap+}/routes";
|
|
1230
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Mrap", () => input.Mrap, "{Mrap+}", true);
|
|
1231
|
+
let body;
|
|
1232
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1233
|
+
if (context.disableHostPrefix !== true) {
|
|
1234
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
1235
|
+
if (input.AccountId === undefined) {
|
|
1236
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
1237
|
+
}
|
|
1238
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
1239
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1240
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
return new protocol_http_1.HttpRequest({
|
|
1244
|
+
protocol,
|
|
1245
|
+
hostname: resolvedHostname,
|
|
1246
|
+
port,
|
|
1247
|
+
method: "GET",
|
|
1248
|
+
headers,
|
|
1249
|
+
path: resolvedPath,
|
|
1250
|
+
body,
|
|
1251
|
+
});
|
|
1252
|
+
};
|
|
1253
|
+
exports.serializeAws_restXmlGetMultiRegionAccessPointRoutesCommand = serializeAws_restXmlGetMultiRegionAccessPointRoutesCommand;
|
|
1224
1254
|
const serializeAws_restXmlGetPublicAccessBlockCommand = async (input, context) => {
|
|
1225
1255
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1226
1256
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -2023,6 +2053,49 @@ const serializeAws_restXmlPutStorageLensConfigurationTaggingCommand = async (inp
|
|
|
2023
2053
|
});
|
|
2024
2054
|
};
|
|
2025
2055
|
exports.serializeAws_restXmlPutStorageLensConfigurationTaggingCommand = serializeAws_restXmlPutStorageLensConfigurationTaggingCommand;
|
|
2056
|
+
const serializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand = async (input, context) => {
|
|
2057
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2058
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
2059
|
+
"content-type": "application/xml",
|
|
2060
|
+
"x-amz-account-id": input.AccountId,
|
|
2061
|
+
});
|
|
2062
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Mrap+}/routes";
|
|
2063
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Mrap", () => input.Mrap, "{Mrap+}", true);
|
|
2064
|
+
let body;
|
|
2065
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2066
|
+
const bodyNode = new xml_builder_1.XmlNode("SubmitMultiRegionAccessPointRoutesRequest");
|
|
2067
|
+
bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
|
|
2068
|
+
if (input.RouteUpdates !== undefined) {
|
|
2069
|
+
const nodes = serializeAws_restXmlRouteList(input.RouteUpdates, context);
|
|
2070
|
+
const containerNode = new xml_builder_1.XmlNode("RouteUpdates");
|
|
2071
|
+
nodes.map((node) => {
|
|
2072
|
+
containerNode.addChildNode(node);
|
|
2073
|
+
});
|
|
2074
|
+
bodyNode.addChildNode(containerNode);
|
|
2075
|
+
}
|
|
2076
|
+
body += bodyNode.toString();
|
|
2077
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2078
|
+
if (context.disableHostPrefix !== true) {
|
|
2079
|
+
resolvedHostname = "{AccountId}." + resolvedHostname;
|
|
2080
|
+
if (input.AccountId === undefined) {
|
|
2081
|
+
throw new Error("Empty value provided for input host prefix: AccountId.");
|
|
2082
|
+
}
|
|
2083
|
+
resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
|
|
2084
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2085
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
return new protocol_http_1.HttpRequest({
|
|
2089
|
+
protocol,
|
|
2090
|
+
hostname: resolvedHostname,
|
|
2091
|
+
port,
|
|
2092
|
+
method: "PATCH",
|
|
2093
|
+
headers,
|
|
2094
|
+
path: resolvedPath,
|
|
2095
|
+
body,
|
|
2096
|
+
});
|
|
2097
|
+
};
|
|
2098
|
+
exports.serializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand = serializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand;
|
|
2026
2099
|
const serializeAws_restXmlUpdateJobPriorityCommand = async (input, context) => {
|
|
2027
2100
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2028
2101
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -3182,6 +3255,40 @@ const deserializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommandError =
|
|
|
3182
3255
|
errorCode,
|
|
3183
3256
|
});
|
|
3184
3257
|
};
|
|
3258
|
+
const deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommand = async (output, context) => {
|
|
3259
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3260
|
+
return deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommandError(output, context);
|
|
3261
|
+
}
|
|
3262
|
+
const contents = map({
|
|
3263
|
+
$metadata: deserializeMetadata(output),
|
|
3264
|
+
});
|
|
3265
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3266
|
+
if (data["Mrap"] !== undefined) {
|
|
3267
|
+
contents.Mrap = (0, smithy_client_1.expectString)(data["Mrap"]);
|
|
3268
|
+
}
|
|
3269
|
+
if (data.Routes === "") {
|
|
3270
|
+
contents.Routes = [];
|
|
3271
|
+
}
|
|
3272
|
+
else if (data["Routes"] !== undefined && data["Routes"]["Route"] !== undefined) {
|
|
3273
|
+
contents.Routes = deserializeAws_restXmlRouteList((0, smithy_client_1.getArrayIfSingleItem)(data["Routes"]["Route"]), context);
|
|
3274
|
+
}
|
|
3275
|
+
return contents;
|
|
3276
|
+
};
|
|
3277
|
+
exports.deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommand = deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommand;
|
|
3278
|
+
const deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommandError = async (output, context) => {
|
|
3279
|
+
const parsedOutput = {
|
|
3280
|
+
...output,
|
|
3281
|
+
body: await parseErrorBody(output.body, context),
|
|
3282
|
+
};
|
|
3283
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3284
|
+
const parsedBody = parsedOutput.body;
|
|
3285
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3286
|
+
output,
|
|
3287
|
+
parsedBody: parsedBody.Error,
|
|
3288
|
+
exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
|
|
3289
|
+
errorCode,
|
|
3290
|
+
});
|
|
3291
|
+
};
|
|
3185
3292
|
const deserializeAws_restXmlGetPublicAccessBlockCommand = async (output, context) => {
|
|
3186
3293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3187
3294
|
return deserializeAws_restXmlGetPublicAccessBlockCommandError(output, context);
|
|
@@ -3806,6 +3913,31 @@ const deserializeAws_restXmlPutStorageLensConfigurationTaggingCommandError = asy
|
|
|
3806
3913
|
errorCode,
|
|
3807
3914
|
});
|
|
3808
3915
|
};
|
|
3916
|
+
const deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand = async (output, context) => {
|
|
3917
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3918
|
+
return deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommandError(output, context);
|
|
3919
|
+
}
|
|
3920
|
+
const contents = map({
|
|
3921
|
+
$metadata: deserializeMetadata(output),
|
|
3922
|
+
});
|
|
3923
|
+
await collectBody(output.body, context);
|
|
3924
|
+
return contents;
|
|
3925
|
+
};
|
|
3926
|
+
exports.deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand = deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand;
|
|
3927
|
+
const deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommandError = async (output, context) => {
|
|
3928
|
+
const parsedOutput = {
|
|
3929
|
+
...output,
|
|
3930
|
+
body: await parseErrorBody(output.body, context),
|
|
3931
|
+
};
|
|
3932
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3933
|
+
const parsedBody = parsedOutput.body;
|
|
3934
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3935
|
+
output,
|
|
3936
|
+
parsedBody: parsedBody.Error,
|
|
3937
|
+
exceptionCtor: S3ControlServiceException_1.S3ControlServiceException,
|
|
3938
|
+
errorCode,
|
|
3939
|
+
});
|
|
3940
|
+
};
|
|
3809
3941
|
const deserializeAws_restXmlUpdateJobPriorityCommand = async (output, context) => {
|
|
3810
3942
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3811
3943
|
return deserializeAws_restXmlUpdateJobPriorityCommandError(output, context);
|
|
@@ -4553,6 +4685,24 @@ const serializeAws_restXmlLifecycleRules = (input, context) => {
|
|
|
4553
4685
|
return node.withName("Rule");
|
|
4554
4686
|
});
|
|
4555
4687
|
};
|
|
4688
|
+
const serializeAws_restXmlMultiRegionAccessPointRoute = (input, context) => {
|
|
4689
|
+
const bodyNode = new xml_builder_1.XmlNode("MultiRegionAccessPointRoute");
|
|
4690
|
+
if (input.Bucket != null) {
|
|
4691
|
+
const node = xml_builder_1.XmlNode.of("BucketName", input.Bucket).withName("Bucket");
|
|
4692
|
+
bodyNode.addChildNode(node);
|
|
4693
|
+
}
|
|
4694
|
+
if (input.Region != null) {
|
|
4695
|
+
const node = xml_builder_1.XmlNode.of("RegionName", input.Region).withName("Region");
|
|
4696
|
+
bodyNode.addChildNode(node);
|
|
4697
|
+
}
|
|
4698
|
+
if (input.TrafficDialPercentage != null) {
|
|
4699
|
+
const node = xml_builder_1.XmlNode
|
|
4700
|
+
.of("TrafficDialPercentage", String(input.TrafficDialPercentage))
|
|
4701
|
+
.withName("TrafficDialPercentage");
|
|
4702
|
+
bodyNode.addChildNode(node);
|
|
4703
|
+
}
|
|
4704
|
+
return bodyNode;
|
|
4705
|
+
};
|
|
4556
4706
|
const serializeAws_restXmlNoncurrentVersionExpiration = (input, context) => {
|
|
4557
4707
|
const bodyNode = new xml_builder_1.XmlNode("NoncurrentVersionExpiration");
|
|
4558
4708
|
if (input.NoncurrentDays != null) {
|
|
@@ -4757,6 +4907,14 @@ const serializeAws_restXmlReplicationStatusFilterList = (input, context) => {
|
|
|
4757
4907
|
return node.withName("member");
|
|
4758
4908
|
});
|
|
4759
4909
|
};
|
|
4910
|
+
const serializeAws_restXmlRouteList = (input, context) => {
|
|
4911
|
+
return input
|
|
4912
|
+
.filter((e) => e != null)
|
|
4913
|
+
.map((entry) => {
|
|
4914
|
+
const node = serializeAws_restXmlMultiRegionAccessPointRoute(entry, context);
|
|
4915
|
+
return node.withName("Route");
|
|
4916
|
+
});
|
|
4917
|
+
};
|
|
4760
4918
|
const serializeAws_restXmlS3AccessControlList = (input, context) => {
|
|
4761
4919
|
const bodyNode = new xml_builder_1.XmlNode("S3AccessControlList");
|
|
4762
4920
|
if (input.Owner != null) {
|
|
@@ -6249,6 +6407,23 @@ const deserializeAws_restXmlMultiRegionAccessPointReportList = (output, context)
|
|
|
6249
6407
|
return deserializeAws_restXmlMultiRegionAccessPointReport(entry, context);
|
|
6250
6408
|
});
|
|
6251
6409
|
};
|
|
6410
|
+
const deserializeAws_restXmlMultiRegionAccessPointRoute = (output, context) => {
|
|
6411
|
+
const contents = {
|
|
6412
|
+
Bucket: undefined,
|
|
6413
|
+
Region: undefined,
|
|
6414
|
+
TrafficDialPercentage: undefined,
|
|
6415
|
+
};
|
|
6416
|
+
if (output["Bucket"] !== undefined) {
|
|
6417
|
+
contents.Bucket = (0, smithy_client_1.expectString)(output["Bucket"]);
|
|
6418
|
+
}
|
|
6419
|
+
if (output["Region"] !== undefined) {
|
|
6420
|
+
contents.Region = (0, smithy_client_1.expectString)(output["Region"]);
|
|
6421
|
+
}
|
|
6422
|
+
if (output["TrafficDialPercentage"] !== undefined) {
|
|
6423
|
+
contents.TrafficDialPercentage = (0, smithy_client_1.strictParseInt32)(output["TrafficDialPercentage"]);
|
|
6424
|
+
}
|
|
6425
|
+
return contents;
|
|
6426
|
+
};
|
|
6252
6427
|
const deserializeAws_restXmlMultiRegionAccessPointsAsyncResponse = (output, context) => {
|
|
6253
6428
|
const contents = {
|
|
6254
6429
|
Regions: undefined,
|
|
@@ -6545,6 +6720,13 @@ const deserializeAws_restXmlReplicationStatusFilterList = (output, context) => {
|
|
|
6545
6720
|
return (0, smithy_client_1.expectString)(entry);
|
|
6546
6721
|
});
|
|
6547
6722
|
};
|
|
6723
|
+
const deserializeAws_restXmlRouteList = (output, context) => {
|
|
6724
|
+
return (output || [])
|
|
6725
|
+
.filter((e) => e != null)
|
|
6726
|
+
.map((entry) => {
|
|
6727
|
+
return deserializeAws_restXmlMultiRegionAccessPointRoute(entry, context);
|
|
6728
|
+
});
|
|
6729
|
+
};
|
|
6548
6730
|
const deserializeAws_restXmlS3AccessControlList = (output, context) => {
|
|
6549
6731
|
const contents = {
|
|
6550
6732
|
Owner: undefined,
|
package/dist-es/S3Control.js
CHANGED
|
@@ -34,6 +34,7 @@ import { GetJobTaggingCommand, } from "./commands/GetJobTaggingCommand";
|
|
|
34
34
|
import { GetMultiRegionAccessPointCommand, } from "./commands/GetMultiRegionAccessPointCommand";
|
|
35
35
|
import { GetMultiRegionAccessPointPolicyCommand, } from "./commands/GetMultiRegionAccessPointPolicyCommand";
|
|
36
36
|
import { GetMultiRegionAccessPointPolicyStatusCommand, } from "./commands/GetMultiRegionAccessPointPolicyStatusCommand";
|
|
37
|
+
import { GetMultiRegionAccessPointRoutesCommand, } from "./commands/GetMultiRegionAccessPointRoutesCommand";
|
|
37
38
|
import { GetPublicAccessBlockCommand, } from "./commands/GetPublicAccessBlockCommand";
|
|
38
39
|
import { GetStorageLensConfigurationCommand, } from "./commands/GetStorageLensConfigurationCommand";
|
|
39
40
|
import { GetStorageLensConfigurationTaggingCommand, } from "./commands/GetStorageLensConfigurationTaggingCommand";
|
|
@@ -55,6 +56,7 @@ import { PutMultiRegionAccessPointPolicyCommand, } from "./commands/PutMultiRegi
|
|
|
55
56
|
import { PutPublicAccessBlockCommand, } from "./commands/PutPublicAccessBlockCommand";
|
|
56
57
|
import { PutStorageLensConfigurationCommand, } from "./commands/PutStorageLensConfigurationCommand";
|
|
57
58
|
import { PutStorageLensConfigurationTaggingCommand, } from "./commands/PutStorageLensConfigurationTaggingCommand";
|
|
59
|
+
import { SubmitMultiRegionAccessPointRoutesCommand, } from "./commands/SubmitMultiRegionAccessPointRoutesCommand";
|
|
58
60
|
import { UpdateJobPriorityCommand, } from "./commands/UpdateJobPriorityCommand";
|
|
59
61
|
import { UpdateJobStatusCommand, } from "./commands/UpdateJobStatusCommand";
|
|
60
62
|
import { S3ControlClient } from "./S3ControlClient";
|
|
@@ -563,6 +565,20 @@ export class S3Control extends S3ControlClient {
|
|
|
563
565
|
return this.send(command, optionsOrCb);
|
|
564
566
|
}
|
|
565
567
|
}
|
|
568
|
+
getMultiRegionAccessPointRoutes(args, optionsOrCb, cb) {
|
|
569
|
+
const command = new GetMultiRegionAccessPointRoutesCommand(args);
|
|
570
|
+
if (typeof optionsOrCb === "function") {
|
|
571
|
+
this.send(command, optionsOrCb);
|
|
572
|
+
}
|
|
573
|
+
else if (typeof cb === "function") {
|
|
574
|
+
if (typeof optionsOrCb !== "object")
|
|
575
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
576
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
577
|
+
}
|
|
578
|
+
else {
|
|
579
|
+
return this.send(command, optionsOrCb);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
566
582
|
getPublicAccessBlock(args, optionsOrCb, cb) {
|
|
567
583
|
const command = new GetPublicAccessBlockCommand(args);
|
|
568
584
|
if (typeof optionsOrCb === "function") {
|
|
@@ -857,6 +873,20 @@ export class S3Control extends S3ControlClient {
|
|
|
857
873
|
return this.send(command, optionsOrCb);
|
|
858
874
|
}
|
|
859
875
|
}
|
|
876
|
+
submitMultiRegionAccessPointRoutes(args, optionsOrCb, cb) {
|
|
877
|
+
const command = new SubmitMultiRegionAccessPointRoutesCommand(args);
|
|
878
|
+
if (typeof optionsOrCb === "function") {
|
|
879
|
+
this.send(command, optionsOrCb);
|
|
880
|
+
}
|
|
881
|
+
else if (typeof cb === "function") {
|
|
882
|
+
if (typeof optionsOrCb !== "object")
|
|
883
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
884
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
885
|
+
}
|
|
886
|
+
else {
|
|
887
|
+
return this.send(command, optionsOrCb);
|
|
888
|
+
}
|
|
889
|
+
}
|
|
860
890
|
updateJobPriority(args, optionsOrCb, cb) {
|
|
861
891
|
const command = new UpdateJobPriorityCommand(args);
|
|
862
892
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getApplyMd5BodyChecksumPlugin } from "@aws-sdk/middleware-apply-body-checksum";
|
|
2
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
3
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
4
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
+
import { GetMultiRegionAccessPointRoutesRequestFilterSensitiveLog, GetMultiRegionAccessPointRoutesResultFilterSensitiveLog, } from "../models/models_0";
|
|
7
|
+
import { deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommand, serializeAws_restXmlGetMultiRegionAccessPointRoutesCommand, } from "../protocols/Aws_restXml";
|
|
8
|
+
export class GetMultiRegionAccessPointRoutesCommand extends $Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
static getEndpointParameterInstructions() {
|
|
14
|
+
return {
|
|
15
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
16
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
17
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
18
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
19
|
+
Region: { type: "builtInParams", name: "region" },
|
|
20
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetMultiRegionAccessPointRoutesCommand.getEndpointParameterInstructions()));
|
|
26
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
27
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
28
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
29
|
+
const { logger } = configuration;
|
|
30
|
+
const clientName = "S3ControlClient";
|
|
31
|
+
const commandName = "GetMultiRegionAccessPointRoutesCommand";
|
|
32
|
+
const handlerExecutionContext = {
|
|
33
|
+
logger,
|
|
34
|
+
clientName,
|
|
35
|
+
commandName,
|
|
36
|
+
inputFilterSensitiveLog: GetMultiRegionAccessPointRoutesRequestFilterSensitiveLog,
|
|
37
|
+
outputFilterSensitiveLog: GetMultiRegionAccessPointRoutesResultFilterSensitiveLog,
|
|
38
|
+
};
|
|
39
|
+
const { requestHandler } = configuration;
|
|
40
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
+
}
|
|
42
|
+
serialize(input, context) {
|
|
43
|
+
return serializeAws_restXmlGetMultiRegionAccessPointRoutesCommand(input, context);
|
|
44
|
+
}
|
|
45
|
+
deserialize(output, context) {
|
|
46
|
+
return deserializeAws_restXmlGetMultiRegionAccessPointRoutesCommand(output, context);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getApplyMd5BodyChecksumPlugin } from "@aws-sdk/middleware-apply-body-checksum";
|
|
2
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
3
|
+
import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
|
|
4
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
+
import { SubmitMultiRegionAccessPointRoutesRequestFilterSensitiveLog, SubmitMultiRegionAccessPointRoutesResultFilterSensitiveLog, } from "../models/models_0";
|
|
7
|
+
import { deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand, serializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand, } from "../protocols/Aws_restXml";
|
|
8
|
+
export class SubmitMultiRegionAccessPointRoutesCommand extends $Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
static getEndpointParameterInstructions() {
|
|
14
|
+
return {
|
|
15
|
+
AccountId: { type: "contextParams", name: "AccountId" },
|
|
16
|
+
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
17
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
18
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
19
|
+
Region: { type: "builtInParams", name: "region" },
|
|
20
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, SubmitMultiRegionAccessPointRoutesCommand.getEndpointParameterInstructions()));
|
|
26
|
+
this.middlewareStack.use(getProcessArnablesPlugin(configuration));
|
|
27
|
+
this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
|
|
28
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
29
|
+
const { logger } = configuration;
|
|
30
|
+
const clientName = "S3ControlClient";
|
|
31
|
+
const commandName = "SubmitMultiRegionAccessPointRoutesCommand";
|
|
32
|
+
const handlerExecutionContext = {
|
|
33
|
+
logger,
|
|
34
|
+
clientName,
|
|
35
|
+
commandName,
|
|
36
|
+
inputFilterSensitiveLog: SubmitMultiRegionAccessPointRoutesRequestFilterSensitiveLog,
|
|
37
|
+
outputFilterSensitiveLog: SubmitMultiRegionAccessPointRoutesResultFilterSensitiveLog,
|
|
38
|
+
};
|
|
39
|
+
const { requestHandler } = configuration;
|
|
40
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
+
}
|
|
42
|
+
serialize(input, context) {
|
|
43
|
+
return serializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand(input, context);
|
|
44
|
+
}
|
|
45
|
+
deserialize(output, context) {
|
|
46
|
+
return deserializeAws_restXmlSubmitMultiRegionAccessPointRoutesCommand(output, context);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -34,6 +34,7 @@ export * from "./GetJobTaggingCommand";
|
|
|
34
34
|
export * from "./GetMultiRegionAccessPointCommand";
|
|
35
35
|
export * from "./GetMultiRegionAccessPointPolicyCommand";
|
|
36
36
|
export * from "./GetMultiRegionAccessPointPolicyStatusCommand";
|
|
37
|
+
export * from "./GetMultiRegionAccessPointRoutesCommand";
|
|
37
38
|
export * from "./GetPublicAccessBlockCommand";
|
|
38
39
|
export * from "./GetStorageLensConfigurationCommand";
|
|
39
40
|
export * from "./GetStorageLensConfigurationTaggingCommand";
|
|
@@ -55,5 +56,6 @@ export * from "./PutMultiRegionAccessPointPolicyCommand";
|
|
|
55
56
|
export * from "./PutPublicAccessBlockCommand";
|
|
56
57
|
export * from "./PutStorageLensConfigurationCommand";
|
|
57
58
|
export * from "./PutStorageLensConfigurationTaggingCommand";
|
|
59
|
+
export * from "./SubmitMultiRegionAccessPointRoutesCommand";
|
|
58
60
|
export * from "./UpdateJobPriorityCommand";
|
|
59
61
|
export * from "./UpdateJobStatusCommand";
|