diff --git a/dist/index.js b/dist/index.js
index 5111463f..7ffa95af 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -239,11 +239,11 @@ const cloud_runner_guid_1 = __importDefault(__nccwpck_require__(32285));
const input_1 = __importDefault(__nccwpck_require__(91933));
const platform_1 = __importDefault(__nccwpck_require__(9707));
const unity_versioning_1 = __importDefault(__nccwpck_require__(17146));
-const versioning_1 = __importDefault(__nccwpck_require__(93901));
+const versioning_1 = __importDefault(__nccwpck_require__(88729));
const git_repo_1 = __nccwpck_require__(24271);
const github_cli_1 = __nccwpck_require__(44990);
const cli_1 = __nccwpck_require__(55651);
-const github_1 = __importDefault(__nccwpck_require__(39789));
+const github_1 = __importDefault(__nccwpck_require__(83654));
const cloud_runner_options_1 = __importDefault(__nccwpck_require__(66965));
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
const core = __importStar(__nccwpck_require__(42186));
@@ -556,7 +556,7 @@ const caching_1 = __nccwpck_require__(32885);
const lfs_hashing_1 = __nccwpck_require__(16785);
const remote_client_1 = __nccwpck_require__(48135);
const cloud_runner_options_reader_1 = __importDefault(__nccwpck_require__(96879));
-const github_1 = __importDefault(__nccwpck_require__(39789));
+const github_1 = __importDefault(__nccwpck_require__(83654));
class Cli {
static get isCliMode() {
return Cli.options !== undefined && Cli.options.mode !== undefined && Cli.options.mode !== '';
@@ -751,7 +751,7 @@ const core = __importStar(__nccwpck_require__(42186));
const test_1 = __importDefault(__nccwpck_require__(63007));
const local_1 = __importDefault(__nccwpck_require__(66575));
const docker_1 = __importDefault(__nccwpck_require__(42802));
-const github_1 = __importDefault(__nccwpck_require__(39789));
+const github_1 = __importDefault(__nccwpck_require__(83654));
const shared_workspace_locking_1 = __importDefault(__nccwpck_require__(71372));
const follow_log_stream_service_1 = __nccwpck_require__(40266);
const cloud_runner_result_1 = __importDefault(__nccwpck_require__(69567));
@@ -1111,7 +1111,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
const cli_1 = __nccwpck_require__(55651);
const cloud_runner_query_override_1 = __importDefault(__nccwpck_require__(52207));
-const github_1 = __importDefault(__nccwpck_require__(39789));
+const github_1 = __importDefault(__nccwpck_require__(83654));
const core = __importStar(__nccwpck_require__(42186));
class CloudRunnerOptions {
// ### ### ###
@@ -1469,6 +1469,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.AWSBaseStack = void 0;
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
const core = __importStar(__nccwpck_require__(42186));
+const client_cloudformation_1 = __nccwpck_require__(15650);
const base_stack_formation_1 = __nccwpck_require__(29643);
const node_crypto_1 = __importDefault(__nccwpck_require__(6005));
class AWSBaseStack {
@@ -1482,9 +1483,7 @@ class AWSBaseStack {
const describeStackInput = {
StackName: baseStackName,
};
- const parametersWithoutHash = [
- { ParameterKey: 'EnvironmentName', ParameterValue: baseStackName },
- ];
+ const parametersWithoutHash = [{ ParameterKey: 'EnvironmentName', ParameterValue: baseStackName }];
const parametersHash = node_crypto_1.default
.createHash('md5')
.update(baseStack + JSON.stringify(parametersWithoutHash))
@@ -1505,18 +1504,16 @@ class AWSBaseStack {
Parameters: parameters,
Capabilities: ['CAPABILITY_IAM'],
};
- const stacks = await CF.listStacks({
- StackStatusFilter: ['UPDATE_COMPLETE', 'CREATE_COMPLETE', 'ROLLBACK_COMPLETE'],
- }).promise();
+ const stacks = await CF.send(new client_cloudformation_1.ListStacksCommand({ StackStatusFilter: ['UPDATE_COMPLETE', 'CREATE_COMPLETE', 'ROLLBACK_COMPLETE'] }));
const stackNames = stacks.StackSummaries?.map((x) => x.StackName) || [];
const stackExists = stackNames.includes(baseStackName) || false;
const describeStack = async () => {
- return await CF.describeStacks(describeStackInput).promise();
+ return await CF.send(new client_cloudformation_1.DescribeStacksCommand(describeStackInput));
};
try {
if (!stackExists) {
cloud_runner_logger_1.default.log(`${baseStackName} stack does not exist (${JSON.stringify(stackNames)})`);
- await CF.createStack(createStackInput).promise();
+ await CF.send(new client_cloudformation_1.CreateStackCommand(createStackInput));
cloud_runner_logger_1.default.log(`created stack (version: ${parametersHash})`);
}
const CFState = await describeStack();
@@ -1526,14 +1523,17 @@ class AWSBaseStack {
}
const stackVersion = stack.Parameters?.find((x) => x.ParameterKey === 'Version')?.ParameterValue;
if (stack.StackStatus === 'CREATE_IN_PROGRESS') {
- await CF.waitFor('stackCreateComplete', describeStackInput).promise();
+ await (0, client_cloudformation_1.waitUntilStackCreateComplete)({
+ client: CF,
+ maxWaitTime: 200,
+ }, describeStackInput);
}
if (stackExists) {
cloud_runner_logger_1.default.log(`Base stack exists (version: ${stackVersion}, local version: ${parametersHash})`);
if (parametersHash !== stackVersion) {
cloud_runner_logger_1.default.log(`Attempting update of base stack`);
try {
- await CF.updateStack(updateInput).promise();
+ await CF.send(new client_cloudformation_1.UpdateStackCommand(updateInput));
}
catch (error) {
if (error['message'].includes('No updates are to be performed')) {
@@ -1554,7 +1554,10 @@ class AWSBaseStack {
throw new Error(`Base stack doesn't exist, even after updating and creation, stackExists check: ${stackExists}`);
}
if (stack.StackStatus === 'UPDATE_IN_PROGRESS') {
- await CF.waitFor('stackUpdateComplete', describeStackInput).promise();
+ await (0, client_cloudformation_1.waitUntilStackUpdateComplete)({
+ client: CF,
+ maxWaitTime: 200,
+ }, describeStackInput);
}
}
cloud_runner_logger_1.default.log('base stack is now ready');
@@ -1649,6 +1652,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.AWSError = void 0;
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
+const client_cloudformation_1 = __nccwpck_require__(15650);
const core = __importStar(__nccwpck_require__(42186));
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
class AWSError {
@@ -1657,7 +1661,7 @@ class AWSError {
core.error(JSON.stringify(error, undefined, 4));
if (cloud_runner_1.default.buildParameters.cloudRunnerDebug) {
cloud_runner_logger_1.default.log('Getting events and resources for task stack');
- const events = (await CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents;
+ const events = (await CF.send(new client_cloudformation_1.DescribeStackEventsCommand({ StackName: taskDefStackName }))).StackEvents;
cloud_runner_logger_1.default.log(JSON.stringify(events, undefined, 4));
}
}
@@ -1677,6 +1681,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.AWSJobStack = void 0;
+const client_cloudformation_1 = __nccwpck_require__(15650);
const aws_cloud_formation_templates_1 = __nccwpck_require__(54837);
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
const aws_error_1 = __nccwpck_require__(94669);
@@ -1756,7 +1761,7 @@ class AWSJobStack {
let previousStackExists = true;
while (previousStackExists) {
previousStackExists = false;
- const stacks = await CF.listStacks().promise();
+ const stacks = await CF.send(new client_cloudformation_1.ListStacksCommand({}));
if (!stacks.StackSummaries) {
throw new Error('Faild to get stacks');
}
@@ -1777,9 +1782,12 @@ class AWSJobStack {
};
try {
cloud_runner_logger_1.default.log(`Creating job aws formation ${taskDefStackName}`);
- await CF.createStack(createStackInput).promise();
- await CF.waitFor('stackCreateComplete', { StackName: taskDefStackName }).promise();
- const describeStack = await CF.describeStacks({ StackName: taskDefStackName }).promise();
+ await CF.send(new client_cloudformation_1.CreateStackCommand(createStackInput));
+ await (0, client_cloudformation_1.waitUntilStackCreateComplete)({
+ client: CF,
+ maxWaitTime: 200,
+ }, { StackName: taskDefStackName });
+ const describeStack = await CF.send(new client_cloudformation_1.DescribeStacksCommand({ StackName: taskDefStackName }));
for (const parameter of parameters) {
if (!describeStack.Stacks?.[0].Parameters?.some((x) => x.ParameterKey === parameter.ParameterKey)) {
throw new Error(`Parameter ${parameter.ParameterKey} not found in stack`);
@@ -1820,7 +1828,7 @@ class AWSJobStack {
if (cloud_runner_options_1.default.useCleanupCron) {
try {
cloud_runner_logger_1.default.log(`Creating job cleanup formation`);
- await CF.createStack(createCleanupStackInput).promise();
+ await CF.send(new client_cloudformation_1.CreateStackCommand(createCleanupStackInput));
// await CF.waitFor('stackCreateComplete', { StackName: createCleanupStackInput.StackName }).promise();
}
catch (error) {
@@ -1828,10 +1836,11 @@ class AWSJobStack {
throw error;
}
}
- const taskDefResources = (await CF.describeStackResources({
+ const taskDefResources = (await CF.send(new client_cloudformation_1.DescribeStackResourcesCommand({
StackName: taskDefStackName,
- }).promise()).StackResources;
- const baseResources = (await CF.describeStackResources({ StackName: this.baseStackName }).promise()).StackResources;
+ }))).StackResources;
+ const baseResources = (await CF.send(new client_cloudformation_1.DescribeStackResourcesCommand({ StackName: this.baseStackName })))
+ .StackResources;
return {
taskDefStackName,
taskDefCloudFormation,
@@ -1877,6 +1886,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
+const client_ecs_1 = __nccwpck_require__(18209);
+const client_kinesis_1 = __nccwpck_require__(25474);
const core = __importStar(__nccwpck_require__(42186));
const zlib = __importStar(__nccwpck_require__(65628));
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
@@ -1885,7 +1896,7 @@ const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
const command_hook_service_1 = __nccwpck_require__(96159);
const follow_log_stream_service_1 = __nccwpck_require__(40266);
const cloud_runner_options_1 = __importDefault(__nccwpck_require__(66965));
-const github_1 = __importDefault(__nccwpck_require__(39789));
+const github_1 = __importDefault(__nccwpck_require__(83654));
class AWSTaskRunner {
static async runTask(taskDef, environment, commands) {
const cluster = taskDef.baseResources?.find((x) => x.LogicalResourceId === 'ECSCluster')?.PhysicalResourceId || '';
@@ -1920,7 +1931,7 @@ class AWSTaskRunner {
cloud_runner_logger_1.default.log(JSON.stringify(runParameters.overrides.containerOverrides, undefined, 4));
throw new Error(`Container Overrides length must be at most 8192`);
}
- const task = await AWSTaskRunner.ECS.runTask(runParameters).promise();
+ const task = await AWSTaskRunner.ECS.send(new client_ecs_1.RunTaskCommand(runParameters));
const taskArn = task.tasks?.[0].taskArn || '';
cloud_runner_logger_1.default.log('Cloud runner job is starting');
await AWSTaskRunner.waitUntilTaskRunning(taskArn, cluster);
@@ -1958,7 +1969,10 @@ class AWSTaskRunner {
}
static async waitUntilTaskRunning(taskArn, cluster) {
try {
- await AWSTaskRunner.ECS.waitFor('tasksRunning', { tasks: [taskArn], cluster }).promise();
+ await (0, client_ecs_1.waitUntilTasksRunning)({
+ client: AWSTaskRunner.ECS,
+ maxWaitTime: 120,
+ }, { tasks: [taskArn], cluster });
}
catch (error_) {
const error = error_;
@@ -1969,10 +1983,7 @@ class AWSTaskRunner {
}
}
static async describeTasks(clusterName, taskArn) {
- const tasks = await AWSTaskRunner.ECS.describeTasks({
- cluster: clusterName,
- tasks: [taskArn],
- }).promise();
+ const tasks = await AWSTaskRunner.ECS.send(new client_ecs_1.DescribeTasksCommand({ cluster: clusterName, tasks: [taskArn] }));
if (tasks.tasks?.[0]) {
return tasks.tasks?.[0];
}
@@ -2001,9 +2012,7 @@ class AWSTaskRunner {
return { output, shouldCleanup };
}
static async handleLogStreamIteration(iterator, shouldReadLogs, output, shouldCleanup) {
- const records = await AWSTaskRunner.Kinesis.getRecords({
- ShardIterator: iterator,
- }).promise();
+ const records = await AWSTaskRunner.Kinesis.send(new client_kinesis_1.GetRecordsCommand({ ShardIterator: iterator }));
iterator = records.NextShardIterator || '';
({ shouldReadLogs, output, shouldCleanup } = AWSTaskRunner.logRecords(records, iterator, shouldReadLogs, output, shouldCleanup));
return { iterator, shouldReadLogs, output, shouldCleanup };
@@ -2026,8 +2035,8 @@ class AWSTaskRunner {
return { timestamp, shouldReadLogs };
}
static logRecords(records, iterator, shouldReadLogs, output, shouldCleanup) {
- if (records.Records.length > 0 && iterator) {
- for (const record of records.Records) {
+ if ((records.Records ?? []).length > 0 && iterator) {
+ for (const record of records.Records ?? []) {
const json = JSON.parse(zlib.gunzipSync(Buffer.from(record.Data, 'base64')).toString('utf8'));
if (json.messageType === 'DATA_MESSAGE') {
for (const logEvent of json.logEvents) {
@@ -2039,16 +2048,14 @@ class AWSTaskRunner {
return { shouldReadLogs, output, shouldCleanup };
}
static async getLogStream(kinesisStreamName) {
- return await AWSTaskRunner.Kinesis.describeStream({
- StreamName: kinesisStreamName,
- }).promise();
+ return await AWSTaskRunner.Kinesis.send(new client_kinesis_1.DescribeStreamCommand({ StreamName: kinesisStreamName }));
}
static async getLogIterator(stream) {
- return ((await AWSTaskRunner.Kinesis.getShardIterator({
+ return ((await AWSTaskRunner.Kinesis.send(new client_kinesis_1.GetShardIteratorCommand({
ShardIteratorType: 'TRIM_HORIZON',
- StreamName: stream.StreamDescription.StreamName,
- ShardId: stream.StreamDescription.Shards[0].ShardId,
- }).promise()).ShardIterator || '');
+ StreamName: stream.StreamDescription?.StreamName ?? '',
+ ShardId: stream.StreamDescription?.Shards?.[0]?.ShardId || '',
+ }))).ShardIterator || '');
}
}
AWSTaskRunner.encodedUnderscore = `$252F`;
@@ -2812,34 +2819,13 @@ TaskDefinitionFormation.streamLogs = `
"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-const SDK = __importStar(__nccwpck_require__(71786));
+const client_cloudformation_1 = __nccwpck_require__(15650);
+const client_ecs_1 = __nccwpck_require__(18209);
+const client_kinesis_1 = __nccwpck_require__(25474);
const aws_task_runner_1 = __importDefault(__nccwpck_require__(15518));
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
const aws_job_stack_1 = __nccwpck_require__(70633);
@@ -2895,15 +2881,15 @@ class AWSBuildEnvironment {
// eslint-disable-next-line no-unused-vars
defaultSecretsArray) {
process.env.AWS_REGION = __1.Input.region;
- const CF = new SDK.CloudFormation();
+ const CF = new client_cloudformation_1.CloudFormation({ region: __1.Input.region });
await new aws_base_stack_1.AWSBaseStack(this.baseStackName).setupBaseStack(CF);
}
async runTaskInWorkflow(buildGuid, image, commands, mountdir, workingdir, environment, secrets) {
process.env.AWS_REGION = __1.Input.region;
- const ECS = new SDK.ECS();
- const CF = new SDK.CloudFormation();
+ const ECS = new client_ecs_1.ECS({ region: __1.Input.region });
+ const CF = new client_cloudformation_1.CloudFormation({ region: __1.Input.region });
aws_task_runner_1.default.ECS = ECS;
- aws_task_runner_1.default.Kinesis = new SDK.Kinesis();
+ aws_task_runner_1.default.Kinesis = new client_kinesis_1.Kinesis({ region: __1.Input.region });
cloud_runner_logger_1.default.log(`AWS Region: ${CF.config.region}`);
const entrypoint = ['/bin/sh'];
const startTimeMs = Date.now();
@@ -2931,20 +2917,22 @@ class AWSBuildEnvironment {
}
async cleanupResources(CF, taskDef) {
cloud_runner_logger_1.default.log('Cleanup starting');
- await CF.deleteStack({
- StackName: taskDef.taskDefStackName,
- }).promise();
+ await CF.send(new client_cloudformation_1.DeleteStackCommand({ StackName: taskDef.taskDefStackName }));
if (cloud_runner_options_1.default.useCleanupCron) {
- await CF.deleteStack({
- StackName: `${taskDef.taskDefStackName}-cleanup`,
- }).promise();
+ await CF.send(new client_cloudformation_1.DeleteStackCommand({ StackName: `${taskDef.taskDefStackName}-cleanup` }));
}
- await CF.waitFor('stackDeleteComplete', {
+ await (0, client_cloudformation_1.waitUntilStackDeleteComplete)({
+ client: CF,
+ maxWaitTime: 200,
+ }, {
StackName: taskDef.taskDefStackName,
- }).promise();
- await CF.waitFor('stackDeleteComplete', {
+ });
+ await (0, client_cloudformation_1.waitUntilStackDeleteComplete)({
+ client: CF,
+ maxWaitTime: 200,
+ }, {
StackName: `${taskDef.taskDefStackName}-cleanup`,
- }).promise();
+ });
cloud_runner_logger_1.default.log(`Deleted Stack: ${taskDef.taskDefStackName}`);
cloud_runner_logger_1.default.log('Cleanup complete');
}
@@ -2964,7 +2952,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.GarbageCollectionService = void 0;
-const aws_sdk_1 = __importDefault(__nccwpck_require__(71786));
+const client_cloudformation_1 = __nccwpck_require__(15650);
+const client_cloudwatch_logs_1 = __nccwpck_require__(31573);
+const client_ecs_1 = __nccwpck_require__(18209);
const input_1 = __importDefault(__nccwpck_require__(91933));
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
const task_service_1 = __nccwpck_require__(67205);
@@ -2975,9 +2965,9 @@ class GarbageCollectionService {
}
static async cleanup(deleteResources = false, OneDayOlderOnly = false) {
process.env.AWS_REGION = input_1.default.region;
- const CF = new aws_sdk_1.default.CloudFormation();
- const ecs = new aws_sdk_1.default.ECS();
- const cwl = new aws_sdk_1.default.CloudWatchLogs();
+ const CF = new client_cloudformation_1.CloudFormation({ region: input_1.default.region });
+ const ecs = new client_ecs_1.ECS({ region: input_1.default.region });
+ const cwl = new client_cloudwatch_logs_1.CloudWatchLogs({ region: input_1.default.region });
const taskDefinitionsInUse = new Array();
const tasks = await task_service_1.TaskService.getTasks();
for (const task of tasks) {
@@ -2985,23 +2975,24 @@ class GarbageCollectionService {
taskDefinitionsInUse.push(taskElement.taskDefinitionArn);
if (deleteResources && (!OneDayOlderOnly || GarbageCollectionService.isOlderThan1day(taskElement.createdAt))) {
cloud_runner_logger_1.default.log(`Stopping task ${taskElement.containers?.[0].name}`);
- await ecs.stopTask({ task: taskElement.taskArn || '', cluster: element }).promise();
+ await ecs.send(new client_ecs_1.StopTaskCommand({ task: taskElement.taskArn || '', cluster: element }));
}
}
const jobStacks = await task_service_1.TaskService.getCloudFormationJobStacks();
for (const element of jobStacks) {
- if ((await CF.describeStackResources({ StackName: element.StackName }).promise()).StackResources?.some((x) => x.ResourceType === 'AWS::ECS::TaskDefinition' && taskDefinitionsInUse.includes(x.PhysicalResourceId))) {
+ if ((await CF.send(new client_cloudformation_1.DescribeStackResourcesCommand({ StackName: element.StackName }))).StackResources?.some((x) => x.ResourceType === 'AWS::ECS::TaskDefinition' && taskDefinitionsInUse.includes(x.PhysicalResourceId))) {
cloud_runner_logger_1.default.log(`Skipping ${element.StackName} - active task was running not deleting`);
return;
}
- if (deleteResources && (!OneDayOlderOnly || GarbageCollectionService.isOlderThan1day(element.CreationTime))) {
+ if (deleteResources &&
+ (!OneDayOlderOnly || (element.CreationTime && GarbageCollectionService.isOlderThan1day(element.CreationTime)))) {
if (element.StackName === 'game-ci' || element.TemplateDescription === 'Game-CI base stack') {
cloud_runner_logger_1.default.log(`Skipping ${element.StackName} ignore list`);
return;
}
cloud_runner_logger_1.default.log(`Deleting ${element.StackName}`);
const deleteStackInput = { StackName: element.StackName };
- await CF.deleteStack(deleteStackInput).promise();
+ await CF.send(new client_cloudformation_1.DeleteStackCommand(deleteStackInput));
}
}
const logGroups = await task_service_1.TaskService.getLogGroups();
@@ -3009,7 +3000,7 @@ class GarbageCollectionService {
if (deleteResources &&
(!OneDayOlderOnly || GarbageCollectionService.isOlderThan1day(new Date(element.creationTime)))) {
cloud_runner_logger_1.default.log(`Deleting ${element.logGroupName}`);
- await cwl.deleteLogGroup({ logGroupName: element.logGroupName || '' }).promise();
+ await cwl.send(new client_cloudwatch_logs_1.DeleteLogGroupCommand({ logGroupName: element.logGroupName || '' }));
}
}
const locks = await task_service_1.TaskService.getLocks();
@@ -3033,7 +3024,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.TaskService = void 0;
-const aws_sdk_1 = __importDefault(__nccwpck_require__(71786));
+const client_cloudformation_1 = __nccwpck_require__(15650);
+const client_cloudwatch_logs_1 = __nccwpck_require__(31573);
+const client_ecs_1 = __nccwpck_require__(18209);
+const client_s3_1 = __nccwpck_require__(19250);
const input_1 = __importDefault(__nccwpck_require__(91933));
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
const base_stack_formation_1 = __nccwpck_require__(29643);
@@ -3050,20 +3044,26 @@ class TaskService {
cloud_runner_logger_1.default.log(``);
cloud_runner_logger_1.default.log(`List Cloud Formation Stacks`);
process.env.AWS_REGION = input_1.default.region;
- const CF = new aws_sdk_1.default.CloudFormation();
- const stacks = (await CF.listStacks().promise()).StackSummaries?.filter((_x) => _x.StackStatus !== 'DELETE_COMPLETE' && _x.TemplateDescription !== base_stack_formation_1.BaseStackFormation.baseStackDecription) || [];
+ const CF = new client_cloudformation_1.CloudFormation({ region: input_1.default.region });
+ const stacks = (await CF.send(new client_cloudformation_1.ListStacksCommand({}))).StackSummaries?.filter((_x) => _x.StackStatus !== 'DELETE_COMPLETE' && _x.TemplateDescription !== base_stack_formation_1.BaseStackFormation.baseStackDecription) || [];
cloud_runner_logger_1.default.log(``);
cloud_runner_logger_1.default.log(`Cloud Formation Stacks ${stacks.length}`);
for (const element of stacks) {
- const ageDate = new Date(Date.now() - element.CreationTime.getTime());
+ if (!element.CreationTime) {
+ cloud_runner_logger_1.default.log(`${element.StackName} due to undefined CreationTime`);
+ }
+ const ageDate = new Date(Date.now() - (element.CreationTime?.getTime() ?? 0));
cloud_runner_logger_1.default.log(`Task Stack ${element.StackName} - Age D${Math.floor(ageDate.getHours() / 24)} H${ageDate.getHours()} M${ageDate.getMinutes()}`);
result.push(element);
}
- const baseStacks = (await CF.listStacks().promise()).StackSummaries?.filter((_x) => _x.StackStatus !== 'DELETE_COMPLETE' && _x.TemplateDescription === base_stack_formation_1.BaseStackFormation.baseStackDecription) || [];
+ const baseStacks = (await CF.send(new client_cloudformation_1.ListStacksCommand({}))).StackSummaries?.filter((_x) => _x.StackStatus !== 'DELETE_COMPLETE' && _x.TemplateDescription === base_stack_formation_1.BaseStackFormation.baseStackDecription) || [];
cloud_runner_logger_1.default.log(``);
cloud_runner_logger_1.default.log(`Base Stacks ${baseStacks.length}`);
for (const element of baseStacks) {
- const ageDate = new Date(Date.now() - element.CreationTime.getTime());
+ if (!element.CreationTime) {
+ cloud_runner_logger_1.default.log(`${element.StackName} due to undefined CreationTime`);
+ }
+ const ageDate = new Date(Date.now() - (element.CreationTime?.getTime() ?? 0));
cloud_runner_logger_1.default.log(`Task Stack ${element.StackName} - Age D${Math.floor(ageDate.getHours() / 24)} H${ageDate.getHours()} M${ageDate.getMinutes()}`);
result.push(element);
}
@@ -3075,17 +3075,17 @@ class TaskService {
cloud_runner_logger_1.default.log(``);
cloud_runner_logger_1.default.log(`List Tasks`);
process.env.AWS_REGION = input_1.default.region;
- const ecs = new aws_sdk_1.default.ECS();
- const clusters = (await ecs.listClusters().promise()).clusterArns || [];
+ const ecs = new client_ecs_1.ECS({ region: input_1.default.region });
+ const clusters = (await ecs.send(new client_ecs_1.ListClustersCommand({}))).clusterArns || [];
cloud_runner_logger_1.default.log(`Task Clusters ${clusters.length}`);
for (const element of clusters) {
const input = {
cluster: element,
};
- const list = (await ecs.listTasks(input).promise()).taskArns || [];
+ const list = (await ecs.send(new client_ecs_1.ListTasksCommand(input))).taskArns || [];
if (list.length > 0) {
const describeInput = { tasks: list, cluster: element };
- const describeList = (await ecs.describeTasks(describeInput).promise()).tasks || [];
+ const describeList = (await ecs.send(new client_ecs_1.DescribeTasksCommand(describeInput))).tasks || [];
if (describeList.length === 0) {
cloud_runner_logger_1.default.log(`No Tasks`);
continue;
@@ -3110,36 +3110,45 @@ class TaskService {
}
static async awsDescribeJob(job) {
process.env.AWS_REGION = input_1.default.region;
- const CF = new aws_sdk_1.default.CloudFormation();
- const stack = (await CF.listStacks().promise()).StackSummaries?.find((_x) => _x.StackName === job) || undefined;
- const stackInfo = (await CF.describeStackResources({ StackName: job }).promise()) || undefined;
- const stackInfo2 = (await CF.describeStacks({ StackName: job }).promise()) || undefined;
- if (stack === undefined) {
- throw new Error('stack not defined');
- }
- const ageDate = new Date(Date.now() - stack.CreationTime.getTime());
- const message = `
+ const CF = new client_cloudformation_1.CloudFormation({ region: input_1.default.region });
+ try {
+ const stack = (await CF.send(new client_cloudformation_1.ListStacksCommand({}))).StackSummaries?.find((_x) => _x.StackName === job) || undefined;
+ const stackInfo = (await CF.send(new client_cloudformation_1.DescribeStackResourcesCommand({ StackName: job }))) || undefined;
+ const stackInfo2 = (await CF.send(new client_cloudformation_1.DescribeStacksCommand({ StackName: job }))) || undefined;
+ if (stack === undefined) {
+ throw new Error('stack not defined');
+ }
+ if (!stack.CreationTime) {
+ cloud_runner_logger_1.default.log(`${stack.StackName} due to undefined CreationTime`);
+ }
+ const ageDate = new Date(Date.now() - (stack.CreationTime?.getTime() ?? 0));
+ const message = `
Task Stack ${stack.StackName}
Age D${Math.floor(ageDate.getHours() / 24)} H${ageDate.getHours()} M${ageDate.getMinutes()}
${JSON.stringify(stack, undefined, 4)}
${JSON.stringify(stackInfo, undefined, 4)}
${JSON.stringify(stackInfo2, undefined, 4)}
`;
- cloud_runner_logger_1.default.log(message);
- return message;
+ cloud_runner_logger_1.default.log(message);
+ return message;
+ }
+ catch (error) {
+ cloud_runner_logger_1.default.error(`Failed to describe job ${job}: ${error instanceof Error ? error.message : String(error)}`);
+ throw error;
+ }
}
static async getLogGroups() {
const result = [];
process.env.AWS_REGION = input_1.default.region;
- const ecs = new aws_sdk_1.default.CloudWatchLogs();
+ const ecs = new client_cloudwatch_logs_1.CloudWatchLogs();
let logStreamInput = {
/* logGroupNamePrefix: 'game-ci' */
};
- let logGroupsDescribe = await ecs.describeLogGroups(logStreamInput).promise();
+ let logGroupsDescribe = await ecs.send(new client_cloudwatch_logs_1.DescribeLogGroupsCommand(logStreamInput));
const logGroups = logGroupsDescribe.logGroups || [];
while (logGroupsDescribe.nextToken) {
logStreamInput = { /* logGroupNamePrefix: 'game-ci',*/ nextToken: logGroupsDescribe.nextToken };
- logGroupsDescribe = await ecs.describeLogGroups(logStreamInput).promise();
+ logGroupsDescribe = await ecs.send(new client_cloudwatch_logs_1.DescribeLogGroupsCommand(logStreamInput));
logGroups.push(...(logGroupsDescribe?.logGroups || []));
}
cloud_runner_logger_1.default.log(`Log Groups ${logGroups.length}`);
@@ -3156,11 +3165,11 @@ class TaskService {
}
static async getLocks() {
process.env.AWS_REGION = input_1.default.region;
- const s3 = new aws_sdk_1.default.S3();
+ const s3 = new client_s3_1.S3({ region: input_1.default.region });
const listRequest = {
Bucket: cloud_runner_1.default.buildParameters.awsStackName,
};
- const results = await s3.listObjects(listRequest).promise();
+ const results = await s3.send(new client_s3_1.ListObjectsCommand(listRequest));
return results.Contents || [];
}
}
@@ -3951,7 +3960,7 @@ const async_wait_until_1 = __nccwpck_require__(41299);
const core = __importStar(__nccwpck_require__(42186));
const k8s = __importStar(__nccwpck_require__(89679));
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
-const github_1 = __importDefault(__nccwpck_require__(39789));
+const github_1 = __importDefault(__nccwpck_require__(83654));
class KubernetesStorage {
static async createPersistentVolumeClaim(buildParameters, pvcName, kubeClient, namespace) {
if (buildParameters.kubeVolume !== ``) {
@@ -4464,7 +4473,7 @@ const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
const cli_functions_repository_1 = __nccwpck_require__(85301);
const cloud_runner_system_1 = __nccwpck_require__(4197);
const yaml_1 = __importDefault(__nccwpck_require__(44083));
-const github_1 = __importDefault(__nccwpck_require__(39789));
+const github_1 = __importDefault(__nccwpck_require__(83654));
const build_parameters_1 = __importDefault(__nccwpck_require__(80787));
const cli_1 = __nccwpck_require__(55651);
const cloud_runner_options_1 = __importDefault(__nccwpck_require__(66965));
@@ -4924,7 +4933,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.FollowLogStreamService = void 0;
-const github_1 = __importDefault(__nccwpck_require__(39789));
+const github_1 = __importDefault(__nccwpck_require__(83654));
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
const cloud_runner_statics_1 = __nccwpck_require__(29053);
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
@@ -6157,7 +6166,7 @@ exports["default"] = ValidationError;
/***/ }),
-/***/ 39789:
+/***/ 83654:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -6671,7 +6680,7 @@ const input_1 = __importDefault(__nccwpck_require__(91933));
exports.Input = input_1.default;
const image_tag_1 = __importDefault(__nccwpck_require__(57648));
exports.ImageTag = image_tag_1.default;
-const output_1 = __importDefault(__nccwpck_require__(85487));
+const output_1 = __importDefault(__nccwpck_require__(36280));
exports.Output = output_1.default;
const platform_1 = __importDefault(__nccwpck_require__(9707));
exports.Platform = platform_1.default;
@@ -6679,7 +6688,7 @@ const project_1 = __importDefault(__nccwpck_require__(88666));
exports.Project = project_1.default;
const unity_1 = __importDefault(__nccwpck_require__(70498));
exports.Unity = unity_1.default;
-const versioning_1 = __importDefault(__nccwpck_require__(93901));
+const versioning_1 = __importDefault(__nccwpck_require__(88729));
exports.Versioning = versioning_1.default;
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
exports.CloudRunner = cloud_runner_1.default;
@@ -6884,7 +6893,7 @@ const node_path_1 = __importDefault(__nccwpck_require__(49411));
const cli_1 = __nccwpck_require__(55651);
const cloud_runner_query_override_1 = __importDefault(__nccwpck_require__(52207));
const platform_1 = __importDefault(__nccwpck_require__(9707));
-const github_1 = __importDefault(__nccwpck_require__(39789));
+const github_1 = __importDefault(__nccwpck_require__(83654));
const node_os_1 = __importDefault(__nccwpck_require__(70612));
const core = __importStar(__nccwpck_require__(42186));
/**
@@ -7135,7 +7144,7 @@ exports["default"] = MacBuilder;
/***/ }),
-/***/ 85487:
+/***/ 36280:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -7810,7 +7819,7 @@ exports["default"] = Unity;
/***/ }),
-/***/ 93901:
+/***/ 88729:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -19721,6 +19730,47765 @@ function copyFile(srcFile, destFile, force) {
}
//# sourceMappingURL=io.js.map
+/***/ }),
+
+/***/ 75025:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AwsCrc32 = void 0;
+var tslib_1 = __nccwpck_require__(4351);
+var util_1 = __nccwpck_require__(74871);
+var index_1 = __nccwpck_require__(48408);
+var AwsCrc32 = /** @class */ (function () {
+ function AwsCrc32() {
+ this.crc32 = new index_1.Crc32();
+ }
+ AwsCrc32.prototype.update = function (toHash) {
+ if ((0, util_1.isEmptyData)(toHash))
+ return;
+ this.crc32.update((0, util_1.convertToBuffer)(toHash));
+ };
+ AwsCrc32.prototype.digest = function () {
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
+ return tslib_1.__generator(this, function (_a) {
+ return [2 /*return*/, (0, util_1.numToUint8)(this.crc32.digest())];
+ });
+ });
+ };
+ AwsCrc32.prototype.reset = function () {
+ this.crc32 = new index_1.Crc32();
+ };
+ return AwsCrc32;
+}());
+exports.AwsCrc32 = AwsCrc32;
+//# sourceMappingURL=aws_crc32.js.map
+
+/***/ }),
+
+/***/ 48408:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AwsCrc32 = exports.Crc32 = exports.crc32 = void 0;
+var tslib_1 = __nccwpck_require__(4351);
+var util_1 = __nccwpck_require__(74871);
+function crc32(data) {
+ return new Crc32().update(data).digest();
+}
+exports.crc32 = crc32;
+var Crc32 = /** @class */ (function () {
+ function Crc32() {
+ this.checksum = 0xffffffff;
+ }
+ Crc32.prototype.update = function (data) {
+ var e_1, _a;
+ try {
+ for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
+ var byte = data_1_1.value;
+ this.checksum =
+ (this.checksum >>> 8) ^ lookupTable[(this.checksum ^ byte) & 0xff];
+ }
+ }
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
+ finally {
+ try {
+ if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);
+ }
+ finally { if (e_1) throw e_1.error; }
+ }
+ return this;
+ };
+ Crc32.prototype.digest = function () {
+ return (this.checksum ^ 0xffffffff) >>> 0;
+ };
+ return Crc32;
+}());
+exports.Crc32 = Crc32;
+// prettier-ignore
+var a_lookUpTable = [
+ 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA,
+ 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3,
+ 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988,
+ 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91,
+ 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE,
+ 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7,
+ 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC,
+ 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5,
+ 0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172,
+ 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B,
+ 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940,
+ 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59,
+ 0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116,
+ 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F,
+ 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924,
+ 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D,
+ 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A,
+ 0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433,
+ 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818,
+ 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01,
+ 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E,
+ 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457,
+ 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C,
+ 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65,
+ 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2,
+ 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB,
+ 0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0,
+ 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9,
+ 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086,
+ 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F,
+ 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4,
+ 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD,
+ 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A,
+ 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683,
+ 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8,
+ 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1,
+ 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE,
+ 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7,
+ 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC,
+ 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5,
+ 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252,
+ 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B,
+ 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60,
+ 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79,
+ 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236,
+ 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F,
+ 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04,
+ 0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D,
+ 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A,
+ 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713,
+ 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38,
+ 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21,
+ 0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E,
+ 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777,
+ 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C,
+ 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45,
+ 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2,
+ 0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB,
+ 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0,
+ 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9,
+ 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6,
+ 0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF,
+ 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94,
+ 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D,
+];
+var lookupTable = (0, util_1.uint32ArrayFrom)(a_lookUpTable);
+var aws_crc32_1 = __nccwpck_require__(75025);
+Object.defineProperty(exports, "AwsCrc32", ({ enumerable: true, get: function () { return aws_crc32_1.AwsCrc32; } }));
+//# sourceMappingURL=index.js.map
+
+/***/ }),
+
+/***/ 56287:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AwsCrc32c = void 0;
+var tslib_1 = __nccwpck_require__(4351);
+var util_1 = __nccwpck_require__(74871);
+var index_1 = __nccwpck_require__(17035);
+var AwsCrc32c = /** @class */ (function () {
+ function AwsCrc32c() {
+ this.crc32c = new index_1.Crc32c();
+ }
+ AwsCrc32c.prototype.update = function (toHash) {
+ if ((0, util_1.isEmptyData)(toHash))
+ return;
+ this.crc32c.update((0, util_1.convertToBuffer)(toHash));
+ };
+ AwsCrc32c.prototype.digest = function () {
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
+ return tslib_1.__generator(this, function (_a) {
+ return [2 /*return*/, (0, util_1.numToUint8)(this.crc32c.digest())];
+ });
+ });
+ };
+ AwsCrc32c.prototype.reset = function () {
+ this.crc32c = new index_1.Crc32c();
+ };
+ return AwsCrc32c;
+}());
+exports.AwsCrc32c = AwsCrc32c;
+//# sourceMappingURL=aws_crc32c.js.map
+
+/***/ }),
+
+/***/ 17035:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AwsCrc32c = exports.Crc32c = exports.crc32c = void 0;
+var tslib_1 = __nccwpck_require__(4351);
+var util_1 = __nccwpck_require__(74871);
+function crc32c(data) {
+ return new Crc32c().update(data).digest();
+}
+exports.crc32c = crc32c;
+var Crc32c = /** @class */ (function () {
+ function Crc32c() {
+ this.checksum = 0xffffffff;
+ }
+ Crc32c.prototype.update = function (data) {
+ var e_1, _a;
+ try {
+ for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
+ var byte = data_1_1.value;
+ this.checksum =
+ (this.checksum >>> 8) ^ lookupTable[(this.checksum ^ byte) & 0xff];
+ }
+ }
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
+ finally {
+ try {
+ if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);
+ }
+ finally { if (e_1) throw e_1.error; }
+ }
+ return this;
+ };
+ Crc32c.prototype.digest = function () {
+ return (this.checksum ^ 0xffffffff) >>> 0;
+ };
+ return Crc32c;
+}());
+exports.Crc32c = Crc32c;
+// prettier-ignore
+var a_lookupTable = [
+ 0x00000000, 0xF26B8303, 0xE13B70F7, 0x1350F3F4, 0xC79A971F, 0x35F1141C, 0x26A1E7E8, 0xD4CA64EB,
+ 0x8AD958CF, 0x78B2DBCC, 0x6BE22838, 0x9989AB3B, 0x4D43CFD0, 0xBF284CD3, 0xAC78BF27, 0x5E133C24,
+ 0x105EC76F, 0xE235446C, 0xF165B798, 0x030E349B, 0xD7C45070, 0x25AFD373, 0x36FF2087, 0xC494A384,
+ 0x9A879FA0, 0x68EC1CA3, 0x7BBCEF57, 0x89D76C54, 0x5D1D08BF, 0xAF768BBC, 0xBC267848, 0x4E4DFB4B,
+ 0x20BD8EDE, 0xD2D60DDD, 0xC186FE29, 0x33ED7D2A, 0xE72719C1, 0x154C9AC2, 0x061C6936, 0xF477EA35,
+ 0xAA64D611, 0x580F5512, 0x4B5FA6E6, 0xB93425E5, 0x6DFE410E, 0x9F95C20D, 0x8CC531F9, 0x7EAEB2FA,
+ 0x30E349B1, 0xC288CAB2, 0xD1D83946, 0x23B3BA45, 0xF779DEAE, 0x05125DAD, 0x1642AE59, 0xE4292D5A,
+ 0xBA3A117E, 0x4851927D, 0x5B016189, 0xA96AE28A, 0x7DA08661, 0x8FCB0562, 0x9C9BF696, 0x6EF07595,
+ 0x417B1DBC, 0xB3109EBF, 0xA0406D4B, 0x522BEE48, 0x86E18AA3, 0x748A09A0, 0x67DAFA54, 0x95B17957,
+ 0xCBA24573, 0x39C9C670, 0x2A993584, 0xD8F2B687, 0x0C38D26C, 0xFE53516F, 0xED03A29B, 0x1F682198,
+ 0x5125DAD3, 0xA34E59D0, 0xB01EAA24, 0x42752927, 0x96BF4DCC, 0x64D4CECF, 0x77843D3B, 0x85EFBE38,
+ 0xDBFC821C, 0x2997011F, 0x3AC7F2EB, 0xC8AC71E8, 0x1C661503, 0xEE0D9600, 0xFD5D65F4, 0x0F36E6F7,
+ 0x61C69362, 0x93AD1061, 0x80FDE395, 0x72966096, 0xA65C047D, 0x5437877E, 0x4767748A, 0xB50CF789,
+ 0xEB1FCBAD, 0x197448AE, 0x0A24BB5A, 0xF84F3859, 0x2C855CB2, 0xDEEEDFB1, 0xCDBE2C45, 0x3FD5AF46,
+ 0x7198540D, 0x83F3D70E, 0x90A324FA, 0x62C8A7F9, 0xB602C312, 0x44694011, 0x5739B3E5, 0xA55230E6,
+ 0xFB410CC2, 0x092A8FC1, 0x1A7A7C35, 0xE811FF36, 0x3CDB9BDD, 0xCEB018DE, 0xDDE0EB2A, 0x2F8B6829,
+ 0x82F63B78, 0x709DB87B, 0x63CD4B8F, 0x91A6C88C, 0x456CAC67, 0xB7072F64, 0xA457DC90, 0x563C5F93,
+ 0x082F63B7, 0xFA44E0B4, 0xE9141340, 0x1B7F9043, 0xCFB5F4A8, 0x3DDE77AB, 0x2E8E845F, 0xDCE5075C,
+ 0x92A8FC17, 0x60C37F14, 0x73938CE0, 0x81F80FE3, 0x55326B08, 0xA759E80B, 0xB4091BFF, 0x466298FC,
+ 0x1871A4D8, 0xEA1A27DB, 0xF94AD42F, 0x0B21572C, 0xDFEB33C7, 0x2D80B0C4, 0x3ED04330, 0xCCBBC033,
+ 0xA24BB5A6, 0x502036A5, 0x4370C551, 0xB11B4652, 0x65D122B9, 0x97BAA1BA, 0x84EA524E, 0x7681D14D,
+ 0x2892ED69, 0xDAF96E6A, 0xC9A99D9E, 0x3BC21E9D, 0xEF087A76, 0x1D63F975, 0x0E330A81, 0xFC588982,
+ 0xB21572C9, 0x407EF1CA, 0x532E023E, 0xA145813D, 0x758FE5D6, 0x87E466D5, 0x94B49521, 0x66DF1622,
+ 0x38CC2A06, 0xCAA7A905, 0xD9F75AF1, 0x2B9CD9F2, 0xFF56BD19, 0x0D3D3E1A, 0x1E6DCDEE, 0xEC064EED,
+ 0xC38D26C4, 0x31E6A5C7, 0x22B65633, 0xD0DDD530, 0x0417B1DB, 0xF67C32D8, 0xE52CC12C, 0x1747422F,
+ 0x49547E0B, 0xBB3FFD08, 0xA86F0EFC, 0x5A048DFF, 0x8ECEE914, 0x7CA56A17, 0x6FF599E3, 0x9D9E1AE0,
+ 0xD3D3E1AB, 0x21B862A8, 0x32E8915C, 0xC083125F, 0x144976B4, 0xE622F5B7, 0xF5720643, 0x07198540,
+ 0x590AB964, 0xAB613A67, 0xB831C993, 0x4A5A4A90, 0x9E902E7B, 0x6CFBAD78, 0x7FAB5E8C, 0x8DC0DD8F,
+ 0xE330A81A, 0x115B2B19, 0x020BD8ED, 0xF0605BEE, 0x24AA3F05, 0xD6C1BC06, 0xC5914FF2, 0x37FACCF1,
+ 0x69E9F0D5, 0x9B8273D6, 0x88D28022, 0x7AB90321, 0xAE7367CA, 0x5C18E4C9, 0x4F48173D, 0xBD23943E,
+ 0xF36E6F75, 0x0105EC76, 0x12551F82, 0xE03E9C81, 0x34F4F86A, 0xC69F7B69, 0xD5CF889D, 0x27A40B9E,
+ 0x79B737BA, 0x8BDCB4B9, 0x988C474D, 0x6AE7C44E, 0xBE2DA0A5, 0x4C4623A6, 0x5F16D052, 0xAD7D5351,
+];
+var lookupTable = (0, util_1.uint32ArrayFrom)(a_lookupTable);
+var aws_crc32c_1 = __nccwpck_require__(56287);
+Object.defineProperty(exports, "AwsCrc32c", ({ enumerable: true, get: function () { return aws_crc32c_1.AwsCrc32c; } }));
+//# sourceMappingURL=index.js.map
+
+/***/ }),
+
+/***/ 83670:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.convertToBuffer = void 0;
+var util_utf8_1 = __nccwpck_require__(74536);
+// Quick polyfill
+var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from
+ ? function (input) { return Buffer.from(input, "utf8"); }
+ : util_utf8_1.fromUtf8;
+function convertToBuffer(data) {
+ // Already a Uint8, do nothing
+ if (data instanceof Uint8Array)
+ return data;
+ if (typeof data === "string") {
+ return fromUtf8(data);
+ }
+ if (ArrayBuffer.isView(data)) {
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
+ }
+ return new Uint8Array(data);
+}
+exports.convertToBuffer = convertToBuffer;
+//# sourceMappingURL=convertToBuffer.js.map
+
+/***/ }),
+
+/***/ 74871:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.uint32ArrayFrom = exports.numToUint8 = exports.isEmptyData = exports.convertToBuffer = void 0;
+var convertToBuffer_1 = __nccwpck_require__(83670);
+Object.defineProperty(exports, "convertToBuffer", ({ enumerable: true, get: function () { return convertToBuffer_1.convertToBuffer; } }));
+var isEmptyData_1 = __nccwpck_require__(63978);
+Object.defineProperty(exports, "isEmptyData", ({ enumerable: true, get: function () { return isEmptyData_1.isEmptyData; } }));
+var numToUint8_1 = __nccwpck_require__(33906);
+Object.defineProperty(exports, "numToUint8", ({ enumerable: true, get: function () { return numToUint8_1.numToUint8; } }));
+var uint32ArrayFrom_1 = __nccwpck_require__(35733);
+Object.defineProperty(exports, "uint32ArrayFrom", ({ enumerable: true, get: function () { return uint32ArrayFrom_1.uint32ArrayFrom; } }));
+//# sourceMappingURL=index.js.map
+
+/***/ }),
+
+/***/ 63978:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isEmptyData = void 0;
+function isEmptyData(data) {
+ if (typeof data === "string") {
+ return data.length === 0;
+ }
+ return data.byteLength === 0;
+}
+exports.isEmptyData = isEmptyData;
+//# sourceMappingURL=isEmptyData.js.map
+
+/***/ }),
+
+/***/ 33906:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.numToUint8 = void 0;
+function numToUint8(num) {
+ return new Uint8Array([
+ (num & 0xff000000) >> 24,
+ (num & 0x00ff0000) >> 16,
+ (num & 0x0000ff00) >> 8,
+ num & 0x000000ff,
+ ]);
+}
+exports.numToUint8 = numToUint8;
+//# sourceMappingURL=numToUint8.js.map
+
+/***/ }),
+
+/***/ 35733:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.uint32ArrayFrom = void 0;
+// IE 11 does not support Array.from, so we do it manually
+function uint32ArrayFrom(a_lookUpTable) {
+ if (!Uint32Array.from) {
+ var return_array = new Uint32Array(a_lookUpTable.length);
+ var a_index = 0;
+ while (a_index < a_lookUpTable.length) {
+ return_array[a_index] = a_lookUpTable[a_index];
+ a_index += 1;
+ }
+ return return_array;
+ }
+ return Uint32Array.from(a_lookUpTable);
+}
+exports.uint32ArrayFrom = uint32ArrayFrom;
+//# sourceMappingURL=uint32ArrayFrom.js.map
+
+/***/ }),
+
+/***/ 3368:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ isArrayBuffer: () => isArrayBuffer
+});
+module.exports = __toCommonJS(src_exports);
+var isArrayBuffer = /* @__PURE__ */ __name((arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]", "isArrayBuffer");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 80999:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ fromArrayBuffer: () => fromArrayBuffer,
+ fromString: () => fromString
+});
+module.exports = __toCommonJS(src_exports);
+var import_is_array_buffer = __nccwpck_require__(3368);
+var import_buffer = __nccwpck_require__(14300);
+var fromArrayBuffer = /* @__PURE__ */ __name((input, offset = 0, length = input.byteLength - offset) => {
+ if (!(0, import_is_array_buffer.isArrayBuffer)(input)) {
+ throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
+ }
+ return import_buffer.Buffer.from(input, offset, length);
+}, "fromArrayBuffer");
+var fromString = /* @__PURE__ */ __name((input, encoding) => {
+ if (typeof input !== "string") {
+ throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
+ }
+ return encoding ? import_buffer.Buffer.from(input, encoding) : import_buffer.Buffer.from(input);
+}, "fromString");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 74536:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ fromUtf8: () => fromUtf8,
+ toUint8Array: () => toUint8Array,
+ toUtf8: () => toUtf8
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/fromUtf8.ts
+var import_util_buffer_from = __nccwpck_require__(80999);
+var fromUtf8 = /* @__PURE__ */ __name((input) => {
+ const buf = (0, import_util_buffer_from.fromString)(input, "utf8");
+ return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
+}, "fromUtf8");
+
+// src/toUint8Array.ts
+var toUint8Array = /* @__PURE__ */ __name((data) => {
+ if (typeof data === "string") {
+ return fromUtf8(data);
+ }
+ if (ArrayBuffer.isView(data)) {
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
+ }
+ return new Uint8Array(data);
+}, "toUint8Array");
+
+// src/toUtf8.ts
+
+var toUtf8 = /* @__PURE__ */ __name((input) => {
+ if (typeof input === "string") {
+ return input;
+ }
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
+ }
+ return (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
+}, "toUtf8");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 74292:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveHttpAuthSchemeConfig = exports.defaultCloudFormationHttpAuthSchemeProvider = exports.defaultCloudFormationHttpAuthSchemeParametersProvider = void 0;
+const core_1 = __nccwpck_require__(59963);
+const util_middleware_1 = __nccwpck_require__(2390);
+const defaultCloudFormationHttpAuthSchemeParametersProvider = async (config, context, input) => {
+ return {
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
+ (() => {
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
+ })(),
+ };
+};
+exports.defaultCloudFormationHttpAuthSchemeParametersProvider = defaultCloudFormationHttpAuthSchemeParametersProvider;
+function createAwsAuthSigv4HttpAuthOption(authParameters) {
+ return {
+ schemeId: "aws.auth#sigv4",
+ signingProperties: {
+ name: "cloudformation",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config, context) => ({
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+const defaultCloudFormationHttpAuthSchemeProvider = (authParameters) => {
+ const options = [];
+ switch (authParameters.operation) {
+ default: {
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
+ }
+ }
+ return options;
+};
+exports.defaultCloudFormationHttpAuthSchemeProvider = defaultCloudFormationHttpAuthSchemeProvider;
+const resolveHttpAuthSchemeConfig = (config) => {
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
+ return Object.assign(config_0, {});
+};
+exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
+
+
+/***/ }),
+
+/***/ 5640:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defaultEndpointResolver = void 0;
+const util_endpoints_1 = __nccwpck_require__(13350);
+const util_endpoints_2 = __nccwpck_require__(45473);
+const ruleset_1 = __nccwpck_require__(58349);
+const cache = new util_endpoints_2.EndpointCache({
+ size: 50,
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
+});
+const defaultEndpointResolver = (endpointParams, context = {}) => {
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
+ endpointParams: endpointParams,
+ logger: context.logger,
+ }));
+};
+exports.defaultEndpointResolver = defaultEndpointResolver;
+util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
+
+
+/***/ }),
+
+/***/ 58349:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ruleSet = void 0;
+const u = "required", v = "fn", w = "argv", x = "ref";
+const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
+const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://cloudformation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://cloudformation.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://cloudformation-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://cloudformation.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://cloudformation.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
+exports.ruleSet = _data;
+
+
+/***/ }),
+
+/***/ 15650:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ AccountFilterType: () => AccountFilterType,
+ AccountGateStatus: () => AccountGateStatus,
+ ActivateOrganizationsAccessCommand: () => ActivateOrganizationsAccessCommand,
+ ActivateTypeCommand: () => ActivateTypeCommand,
+ AlreadyExistsException: () => AlreadyExistsException,
+ AttributeChangeType: () => AttributeChangeType,
+ BatchDescribeTypeConfigurationsCommand: () => BatchDescribeTypeConfigurationsCommand,
+ CFNRegistryException: () => CFNRegistryException,
+ CallAs: () => CallAs,
+ CancelUpdateStackCommand: () => CancelUpdateStackCommand,
+ Capability: () => Capability,
+ Category: () => Category,
+ ChangeAction: () => ChangeAction,
+ ChangeSetHooksStatus: () => ChangeSetHooksStatus,
+ ChangeSetNotFoundException: () => ChangeSetNotFoundException,
+ ChangeSetStatus: () => ChangeSetStatus,
+ ChangeSetType: () => ChangeSetType,
+ ChangeSource: () => ChangeSource,
+ ChangeType: () => ChangeType,
+ CloudFormation: () => CloudFormation,
+ CloudFormationClient: () => CloudFormationClient,
+ CloudFormationServiceException: () => CloudFormationServiceException,
+ ConcurrencyMode: () => ConcurrencyMode,
+ ConcurrentResourcesLimitExceededException: () => ConcurrentResourcesLimitExceededException,
+ ContinueUpdateRollbackCommand: () => ContinueUpdateRollbackCommand,
+ CreateChangeSetCommand: () => CreateChangeSetCommand,
+ CreateGeneratedTemplateCommand: () => CreateGeneratedTemplateCommand,
+ CreateStackCommand: () => CreateStackCommand,
+ CreateStackInstancesCommand: () => CreateStackInstancesCommand,
+ CreateStackRefactorCommand: () => CreateStackRefactorCommand,
+ CreateStackSetCommand: () => CreateStackSetCommand,
+ CreatedButModifiedException: () => CreatedButModifiedException,
+ DeactivateOrganizationsAccessCommand: () => DeactivateOrganizationsAccessCommand,
+ DeactivateTypeCommand: () => DeactivateTypeCommand,
+ DeleteChangeSetCommand: () => DeleteChangeSetCommand,
+ DeleteGeneratedTemplateCommand: () => DeleteGeneratedTemplateCommand,
+ DeleteStackCommand: () => DeleteStackCommand,
+ DeleteStackInstancesCommand: () => DeleteStackInstancesCommand,
+ DeleteStackSetCommand: () => DeleteStackSetCommand,
+ DeletionMode: () => DeletionMode,
+ DeprecatedStatus: () => DeprecatedStatus,
+ DeregisterTypeCommand: () => DeregisterTypeCommand,
+ DescribeAccountLimitsCommand: () => DescribeAccountLimitsCommand,
+ DescribeChangeSetCommand: () => DescribeChangeSetCommand,
+ DescribeChangeSetHooksCommand: () => DescribeChangeSetHooksCommand,
+ DescribeGeneratedTemplateCommand: () => DescribeGeneratedTemplateCommand,
+ DescribeOrganizationsAccessCommand: () => DescribeOrganizationsAccessCommand,
+ DescribePublisherCommand: () => DescribePublisherCommand,
+ DescribeResourceScanCommand: () => DescribeResourceScanCommand,
+ DescribeStackDriftDetectionStatusCommand: () => DescribeStackDriftDetectionStatusCommand,
+ DescribeStackEventsCommand: () => DescribeStackEventsCommand,
+ DescribeStackInstanceCommand: () => DescribeStackInstanceCommand,
+ DescribeStackRefactorCommand: () => DescribeStackRefactorCommand,
+ DescribeStackResourceCommand: () => DescribeStackResourceCommand,
+ DescribeStackResourceDriftsCommand: () => DescribeStackResourceDriftsCommand,
+ DescribeStackResourcesCommand: () => DescribeStackResourcesCommand,
+ DescribeStackSetCommand: () => DescribeStackSetCommand,
+ DescribeStackSetOperationCommand: () => DescribeStackSetOperationCommand,
+ DescribeStacksCommand: () => DescribeStacksCommand,
+ DescribeTypeCommand: () => DescribeTypeCommand,
+ DescribeTypeRegistrationCommand: () => DescribeTypeRegistrationCommand,
+ DetailedStatus: () => DetailedStatus,
+ DetectStackDriftCommand: () => DetectStackDriftCommand,
+ DetectStackResourceDriftCommand: () => DetectStackResourceDriftCommand,
+ DetectStackSetDriftCommand: () => DetectStackSetDriftCommand,
+ DifferenceType: () => DifferenceType,
+ EstimateTemplateCostCommand: () => EstimateTemplateCostCommand,
+ EvaluationType: () => EvaluationType,
+ ExecuteChangeSetCommand: () => ExecuteChangeSetCommand,
+ ExecuteStackRefactorCommand: () => ExecuteStackRefactorCommand,
+ ExecutionStatus: () => ExecutionStatus,
+ GeneratedTemplateDeletionPolicy: () => GeneratedTemplateDeletionPolicy,
+ GeneratedTemplateNotFoundException: () => GeneratedTemplateNotFoundException,
+ GeneratedTemplateResourceStatus: () => GeneratedTemplateResourceStatus,
+ GeneratedTemplateStatus: () => GeneratedTemplateStatus,
+ GeneratedTemplateUpdateReplacePolicy: () => GeneratedTemplateUpdateReplacePolicy,
+ GetGeneratedTemplateCommand: () => GetGeneratedTemplateCommand,
+ GetStackPolicyCommand: () => GetStackPolicyCommand,
+ GetTemplateCommand: () => GetTemplateCommand,
+ GetTemplateSummaryCommand: () => GetTemplateSummaryCommand,
+ HandlerErrorCode: () => HandlerErrorCode,
+ HookFailureMode: () => HookFailureMode,
+ HookInvocationPoint: () => HookInvocationPoint,
+ HookResultNotFoundException: () => HookResultNotFoundException,
+ HookStatus: () => HookStatus,
+ HookTargetType: () => HookTargetType,
+ IdentityProvider: () => IdentityProvider,
+ ImportStacksToStackSetCommand: () => ImportStacksToStackSetCommand,
+ InsufficientCapabilitiesException: () => InsufficientCapabilitiesException,
+ InvalidChangeSetStatusException: () => InvalidChangeSetStatusException,
+ InvalidOperationException: () => InvalidOperationException,
+ InvalidStateTransitionException: () => InvalidStateTransitionException,
+ LimitExceededException: () => LimitExceededException,
+ ListChangeSetsCommand: () => ListChangeSetsCommand,
+ ListExportsCommand: () => ListExportsCommand,
+ ListGeneratedTemplatesCommand: () => ListGeneratedTemplatesCommand,
+ ListHookResultsCommand: () => ListHookResultsCommand,
+ ListHookResultsTargetType: () => ListHookResultsTargetType,
+ ListImportsCommand: () => ListImportsCommand,
+ ListResourceScanRelatedResourcesCommand: () => ListResourceScanRelatedResourcesCommand,
+ ListResourceScanResourcesCommand: () => ListResourceScanResourcesCommand,
+ ListResourceScansCommand: () => ListResourceScansCommand,
+ ListStackInstanceResourceDriftsCommand: () => ListStackInstanceResourceDriftsCommand,
+ ListStackInstancesCommand: () => ListStackInstancesCommand,
+ ListStackRefactorActionsCommand: () => ListStackRefactorActionsCommand,
+ ListStackRefactorsCommand: () => ListStackRefactorsCommand,
+ ListStackResourcesCommand: () => ListStackResourcesCommand,
+ ListStackSetAutoDeploymentTargetsCommand: () => ListStackSetAutoDeploymentTargetsCommand,
+ ListStackSetOperationResultsCommand: () => ListStackSetOperationResultsCommand,
+ ListStackSetOperationsCommand: () => ListStackSetOperationsCommand,
+ ListStackSetsCommand: () => ListStackSetsCommand,
+ ListStacksCommand: () => ListStacksCommand,
+ ListTypeRegistrationsCommand: () => ListTypeRegistrationsCommand,
+ ListTypeVersionsCommand: () => ListTypeVersionsCommand,
+ ListTypesCommand: () => ListTypesCommand,
+ NameAlreadyExistsException: () => NameAlreadyExistsException,
+ OnFailure: () => OnFailure,
+ OnStackFailure: () => OnStackFailure,
+ OperationIdAlreadyExistsException: () => OperationIdAlreadyExistsException,
+ OperationInProgressException: () => OperationInProgressException,
+ OperationNotFoundException: () => OperationNotFoundException,
+ OperationResultFilterName: () => OperationResultFilterName,
+ OperationStatus: () => OperationStatus,
+ OperationStatusCheckFailedException: () => OperationStatusCheckFailedException,
+ OrganizationStatus: () => OrganizationStatus,
+ PermissionModels: () => PermissionModels,
+ PolicyAction: () => PolicyAction,
+ ProvisioningType: () => ProvisioningType,
+ PublishTypeCommand: () => PublishTypeCommand,
+ PublisherStatus: () => PublisherStatus,
+ RecordHandlerProgressCommand: () => RecordHandlerProgressCommand,
+ RegionConcurrencyType: () => RegionConcurrencyType,
+ RegisterPublisherCommand: () => RegisterPublisherCommand,
+ RegisterTypeCommand: () => RegisterTypeCommand,
+ RegistrationStatus: () => RegistrationStatus,
+ RegistryType: () => RegistryType,
+ Replacement: () => Replacement,
+ RequiresRecreation: () => RequiresRecreation,
+ ResourceAttribute: () => ResourceAttribute,
+ ResourceScanInProgressException: () => ResourceScanInProgressException,
+ ResourceScanLimitExceededException: () => ResourceScanLimitExceededException,
+ ResourceScanNotFoundException: () => ResourceScanNotFoundException,
+ ResourceScanStatus: () => ResourceScanStatus,
+ ResourceSignalStatus: () => ResourceSignalStatus,
+ ResourceStatus: () => ResourceStatus,
+ RollbackStackCommand: () => RollbackStackCommand,
+ ScanType: () => ScanType,
+ SetStackPolicyCommand: () => SetStackPolicyCommand,
+ SetTypeConfigurationCommand: () => SetTypeConfigurationCommand,
+ SetTypeDefaultVersionCommand: () => SetTypeDefaultVersionCommand,
+ SignalResourceCommand: () => SignalResourceCommand,
+ StackDriftDetectionStatus: () => StackDriftDetectionStatus,
+ StackDriftStatus: () => StackDriftStatus,
+ StackInstanceDetailedStatus: () => StackInstanceDetailedStatus,
+ StackInstanceFilterName: () => StackInstanceFilterName,
+ StackInstanceNotFoundException: () => StackInstanceNotFoundException,
+ StackInstanceStatus: () => StackInstanceStatus,
+ StackNotFoundException: () => StackNotFoundException,
+ StackRefactorActionEntity: () => StackRefactorActionEntity,
+ StackRefactorActionType: () => StackRefactorActionType,
+ StackRefactorDetection: () => StackRefactorDetection,
+ StackRefactorExecutionStatus: () => StackRefactorExecutionStatus,
+ StackRefactorNotFoundException: () => StackRefactorNotFoundException,
+ StackRefactorStatus: () => StackRefactorStatus,
+ StackResourceDriftStatus: () => StackResourceDriftStatus,
+ StackSetDriftDetectionStatus: () => StackSetDriftDetectionStatus,
+ StackSetDriftStatus: () => StackSetDriftStatus,
+ StackSetNotEmptyException: () => StackSetNotEmptyException,
+ StackSetNotFoundException: () => StackSetNotFoundException,
+ StackSetOperationAction: () => StackSetOperationAction,
+ StackSetOperationResultStatus: () => StackSetOperationResultStatus,
+ StackSetOperationStatus: () => StackSetOperationStatus,
+ StackSetStatus: () => StackSetStatus,
+ StackStatus: () => StackStatus,
+ StaleRequestException: () => StaleRequestException,
+ StartResourceScanCommand: () => StartResourceScanCommand,
+ StopStackSetOperationCommand: () => StopStackSetOperationCommand,
+ TemplateFormat: () => TemplateFormat,
+ TemplateStage: () => TemplateStage,
+ TestTypeCommand: () => TestTypeCommand,
+ ThirdPartyType: () => ThirdPartyType,
+ TokenAlreadyExistsException: () => TokenAlreadyExistsException,
+ TypeConfigurationNotFoundException: () => TypeConfigurationNotFoundException,
+ TypeNotFoundException: () => TypeNotFoundException,
+ TypeTestsStatus: () => TypeTestsStatus,
+ UpdateGeneratedTemplateCommand: () => UpdateGeneratedTemplateCommand,
+ UpdateStackCommand: () => UpdateStackCommand,
+ UpdateStackInstancesCommand: () => UpdateStackInstancesCommand,
+ UpdateStackSetCommand: () => UpdateStackSetCommand,
+ UpdateTerminationProtectionCommand: () => UpdateTerminationProtectionCommand,
+ ValidateTemplateCommand: () => ValidateTemplateCommand,
+ VersionBump: () => VersionBump,
+ Visibility: () => Visibility,
+ WarningType: () => WarningType,
+ __Client: () => import_smithy_client.Client,
+ paginateDescribeAccountLimits: () => paginateDescribeAccountLimits,
+ paginateDescribeStackEvents: () => paginateDescribeStackEvents,
+ paginateDescribeStackResourceDrifts: () => paginateDescribeStackResourceDrifts,
+ paginateDescribeStacks: () => paginateDescribeStacks,
+ paginateListChangeSets: () => paginateListChangeSets,
+ paginateListExports: () => paginateListExports,
+ paginateListGeneratedTemplates: () => paginateListGeneratedTemplates,
+ paginateListImports: () => paginateListImports,
+ paginateListResourceScanRelatedResources: () => paginateListResourceScanRelatedResources,
+ paginateListResourceScanResources: () => paginateListResourceScanResources,
+ paginateListResourceScans: () => paginateListResourceScans,
+ paginateListStackInstances: () => paginateListStackInstances,
+ paginateListStackRefactorActions: () => paginateListStackRefactorActions,
+ paginateListStackRefactors: () => paginateListStackRefactors,
+ paginateListStackResources: () => paginateListStackResources,
+ paginateListStackSetOperationResults: () => paginateListStackSetOperationResults,
+ paginateListStackSetOperations: () => paginateListStackSetOperations,
+ paginateListStackSets: () => paginateListStackSets,
+ paginateListStacks: () => paginateListStacks,
+ paginateListTypeRegistrations: () => paginateListTypeRegistrations,
+ paginateListTypeVersions: () => paginateListTypeVersions,
+ paginateListTypes: () => paginateListTypes,
+ waitForChangeSetCreateComplete: () => waitForChangeSetCreateComplete,
+ waitForStackCreateComplete: () => waitForStackCreateComplete,
+ waitForStackDeleteComplete: () => waitForStackDeleteComplete,
+ waitForStackExists: () => waitForStackExists,
+ waitForStackImportComplete: () => waitForStackImportComplete,
+ waitForStackRefactorCreateComplete: () => waitForStackRefactorCreateComplete,
+ waitForStackRefactorExecuteComplete: () => waitForStackRefactorExecuteComplete,
+ waitForStackRollbackComplete: () => waitForStackRollbackComplete,
+ waitForStackUpdateComplete: () => waitForStackUpdateComplete,
+ waitForTypeRegistrationComplete: () => waitForTypeRegistrationComplete,
+ waitUntilChangeSetCreateComplete: () => waitUntilChangeSetCreateComplete,
+ waitUntilStackCreateComplete: () => waitUntilStackCreateComplete,
+ waitUntilStackDeleteComplete: () => waitUntilStackDeleteComplete,
+ waitUntilStackExists: () => waitUntilStackExists,
+ waitUntilStackImportComplete: () => waitUntilStackImportComplete,
+ waitUntilStackRefactorCreateComplete: () => waitUntilStackRefactorCreateComplete,
+ waitUntilStackRefactorExecuteComplete: () => waitUntilStackRefactorExecuteComplete,
+ waitUntilStackRollbackComplete: () => waitUntilStackRollbackComplete,
+ waitUntilStackUpdateComplete: () => waitUntilStackUpdateComplete,
+ waitUntilTypeRegistrationComplete: () => waitUntilTypeRegistrationComplete
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/CloudFormationClient.ts
+var import_middleware_host_header = __nccwpck_require__(22545);
+var import_middleware_logger = __nccwpck_require__(20014);
+var import_middleware_recursion_detection = __nccwpck_require__(85525);
+var import_middleware_user_agent = __nccwpck_require__(64688);
+var import_config_resolver = __nccwpck_require__(53098);
+var import_core = __nccwpck_require__(55829);
+var import_middleware_content_length = __nccwpck_require__(82800);
+var import_middleware_endpoint = __nccwpck_require__(82918);
+var import_middleware_retry = __nccwpck_require__(96039);
+
+var import_httpAuthSchemeProvider = __nccwpck_require__(74292);
+
+// src/endpoint/EndpointParameters.ts
+var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
+ return Object.assign(options, {
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
+ defaultSigningName: "cloudformation"
+ });
+}, "resolveClientEndpointParameters");
+var commonParams = {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
+};
+
+// src/CloudFormationClient.ts
+var import_runtimeConfig = __nccwpck_require__(82643);
+
+// src/runtimeExtensions.ts
+var import_region_config_resolver = __nccwpck_require__(18156);
+var import_protocol_http = __nccwpck_require__(64418);
+var import_smithy_client = __nccwpck_require__(63570);
+
+// src/auth/httpAuthExtensionConfiguration.ts
+var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
+ let _credentials = runtimeConfig.credentials;
+ return {
+ setHttpAuthScheme(httpAuthScheme) {
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
+ if (index === -1) {
+ _httpAuthSchemes.push(httpAuthScheme);
+ } else {
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
+ }
+ },
+ httpAuthSchemes() {
+ return _httpAuthSchemes;
+ },
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
+ },
+ httpAuthSchemeProvider() {
+ return _httpAuthSchemeProvider;
+ },
+ setCredentials(credentials) {
+ _credentials = credentials;
+ },
+ credentials() {
+ return _credentials;
+ }
+ };
+}, "getHttpAuthExtensionConfiguration");
+var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
+ return {
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials()
+ };
+}, "resolveHttpAuthRuntimeConfig");
+
+// src/runtimeExtensions.ts
+var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
+ const extensionConfiguration = Object.assign(
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
+ getHttpAuthExtensionConfiguration(runtimeConfig)
+ );
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
+ return Object.assign(
+ runtimeConfig,
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
+ );
+}, "resolveRuntimeExtensions");
+
+// src/CloudFormationClient.ts
+var CloudFormationClient = class extends import_smithy_client.Client {
+ static {
+ __name(this, "CloudFormationClient");
+ }
+ /**
+ * The resolved configuration of CloudFormationClient class. This is resolved and normalized from the {@link CloudFormationClientConfig | constructor configuration interface}.
+ */
+ config;
+ constructor(...[configuration]) {
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
+ super(_config_0);
+ this.initConfig = _config_0;
+ const _config_1 = resolveClientEndpointParameters(_config_0);
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
+ this.config = _config_8;
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
+ this.middlewareStack.use(
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCloudFormationHttpAuthSchemeParametersProvider,
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
+ "aws.auth#sigv4": config.credentials
+ }), "identityProviderConfigProvider")
+ })
+ );
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
+ }
+ /**
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
+ */
+ destroy() {
+ super.destroy();
+ }
+};
+
+// src/CloudFormation.ts
+
+
+// src/commands/ActivateOrganizationsAccessCommand.ts
+
+var import_middleware_serde = __nccwpck_require__(81238);
+
+
+// src/protocols/Aws_query.ts
+var import_core2 = __nccwpck_require__(59963);
+
+
+var import_uuid = __nccwpck_require__(5976);
+
+// src/models/CloudFormationServiceException.ts
+
+var CloudFormationServiceException = class _CloudFormationServiceException extends import_smithy_client.ServiceException {
+ static {
+ __name(this, "CloudFormationServiceException");
+ }
+ /**
+ * @internal
+ */
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, _CloudFormationServiceException.prototype);
+ }
+};
+
+// src/models/models_0.ts
+var AccountFilterType = {
+ DIFFERENCE: "DIFFERENCE",
+ INTERSECTION: "INTERSECTION",
+ NONE: "NONE",
+ UNION: "UNION"
+};
+var AccountGateStatus = {
+ FAILED: "FAILED",
+ SKIPPED: "SKIPPED",
+ SUCCEEDED: "SUCCEEDED"
+};
+var InvalidOperationException = class _InvalidOperationException extends CloudFormationServiceException {
+ static {
+ __name(this, "InvalidOperationException");
+ }
+ name = "InvalidOperationException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidOperationException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidOperationException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var OperationNotFoundException = class _OperationNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "OperationNotFoundException");
+ }
+ name = "OperationNotFoundException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "OperationNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _OperationNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var ThirdPartyType = {
+ HOOK: "HOOK",
+ MODULE: "MODULE",
+ RESOURCE: "RESOURCE"
+};
+var VersionBump = {
+ MAJOR: "MAJOR",
+ MINOR: "MINOR"
+};
+var CFNRegistryException = class _CFNRegistryException extends CloudFormationServiceException {
+ static {
+ __name(this, "CFNRegistryException");
+ }
+ name = "CFNRegistryException";
+ $fault = "client";
+ /**
+ *
A message with details about the error that occurred.
+ * @public
+ */
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "CFNRegistryException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _CFNRegistryException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var TypeNotFoundException = class _TypeNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "TypeNotFoundException");
+ }
+ name = "TypeNotFoundException";
+ $fault = "client";
+ /**
+ * A message with details about the error that occurred.
+ * @public
+ */
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "TypeNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _TypeNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var AlreadyExistsException = class _AlreadyExistsException extends CloudFormationServiceException {
+ static {
+ __name(this, "AlreadyExistsException");
+ }
+ name = "AlreadyExistsException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "AlreadyExistsException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _AlreadyExistsException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var AttributeChangeType = {
+ Add: "Add",
+ Modify: "Modify",
+ Remove: "Remove"
+};
+var TypeConfigurationNotFoundException = class _TypeConfigurationNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "TypeConfigurationNotFoundException");
+ }
+ name = "TypeConfigurationNotFoundException";
+ $fault = "client";
+ /**
+ * A message with details about the error that occurred.
+ * @public
+ */
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "TypeConfigurationNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _TypeConfigurationNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var CallAs = {
+ DELEGATED_ADMIN: "DELEGATED_ADMIN",
+ SELF: "SELF"
+};
+var TokenAlreadyExistsException = class _TokenAlreadyExistsException extends CloudFormationServiceException {
+ static {
+ __name(this, "TokenAlreadyExistsException");
+ }
+ name = "TokenAlreadyExistsException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "TokenAlreadyExistsException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _TokenAlreadyExistsException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var Capability = {
+ CAPABILITY_AUTO_EXPAND: "CAPABILITY_AUTO_EXPAND",
+ CAPABILITY_IAM: "CAPABILITY_IAM",
+ CAPABILITY_NAMED_IAM: "CAPABILITY_NAMED_IAM"
+};
+var Category = {
+ ACTIVATED: "ACTIVATED",
+ AWS_TYPES: "AWS_TYPES",
+ REGISTERED: "REGISTERED",
+ THIRD_PARTY: "THIRD_PARTY"
+};
+var ChangeAction = {
+ Add: "Add",
+ Dynamic: "Dynamic",
+ Import: "Import",
+ Modify: "Modify",
+ Remove: "Remove"
+};
+var ChangeSource = {
+ Automatic: "Automatic",
+ DirectModification: "DirectModification",
+ ParameterReference: "ParameterReference",
+ ResourceAttribute: "ResourceAttribute",
+ ResourceReference: "ResourceReference"
+};
+var EvaluationType = {
+ Dynamic: "Dynamic",
+ Static: "Static"
+};
+var ResourceAttribute = {
+ CreationPolicy: "CreationPolicy",
+ DeletionPolicy: "DeletionPolicy",
+ Metadata: "Metadata",
+ Properties: "Properties",
+ Tags: "Tags",
+ UpdatePolicy: "UpdatePolicy",
+ UpdateReplacePolicy: "UpdateReplacePolicy"
+};
+var RequiresRecreation = {
+ Always: "Always",
+ Conditionally: "Conditionally",
+ Never: "Never"
+};
+var PolicyAction = {
+ Delete: "Delete",
+ ReplaceAndDelete: "ReplaceAndDelete",
+ ReplaceAndRetain: "ReplaceAndRetain",
+ ReplaceAndSnapshot: "ReplaceAndSnapshot",
+ Retain: "Retain",
+ Snapshot: "Snapshot"
+};
+var Replacement = {
+ Conditional: "Conditional",
+ False: "False",
+ True: "True"
+};
+var ChangeType = {
+ Resource: "Resource"
+};
+var HookFailureMode = {
+ FAIL: "FAIL",
+ WARN: "WARN"
+};
+var HookInvocationPoint = {
+ PRE_PROVISION: "PRE_PROVISION"
+};
+var HookTargetType = {
+ RESOURCE: "RESOURCE"
+};
+var ChangeSetHooksStatus = {
+ PLANNED: "PLANNED",
+ PLANNING: "PLANNING",
+ UNAVAILABLE: "UNAVAILABLE"
+};
+var ChangeSetNotFoundException = class _ChangeSetNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "ChangeSetNotFoundException");
+ }
+ name = "ChangeSetNotFoundException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ChangeSetNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ChangeSetNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var ChangeSetStatus = {
+ CREATE_COMPLETE: "CREATE_COMPLETE",
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
+ CREATE_PENDING: "CREATE_PENDING",
+ DELETE_COMPLETE: "DELETE_COMPLETE",
+ DELETE_FAILED: "DELETE_FAILED",
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
+ DELETE_PENDING: "DELETE_PENDING",
+ FAILED: "FAILED"
+};
+var ExecutionStatus = {
+ AVAILABLE: "AVAILABLE",
+ EXECUTE_COMPLETE: "EXECUTE_COMPLETE",
+ EXECUTE_FAILED: "EXECUTE_FAILED",
+ EXECUTE_IN_PROGRESS: "EXECUTE_IN_PROGRESS",
+ OBSOLETE: "OBSOLETE",
+ UNAVAILABLE: "UNAVAILABLE"
+};
+var ChangeSetType = {
+ CREATE: "CREATE",
+ IMPORT: "IMPORT",
+ UPDATE: "UPDATE"
+};
+var OnStackFailure = {
+ DELETE: "DELETE",
+ DO_NOTHING: "DO_NOTHING",
+ ROLLBACK: "ROLLBACK"
+};
+var InsufficientCapabilitiesException = class _InsufficientCapabilitiesException extends CloudFormationServiceException {
+ static {
+ __name(this, "InsufficientCapabilitiesException");
+ }
+ name = "InsufficientCapabilitiesException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InsufficientCapabilitiesException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InsufficientCapabilitiesException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var LimitExceededException = class _LimitExceededException extends CloudFormationServiceException {
+ static {
+ __name(this, "LimitExceededException");
+ }
+ name = "LimitExceededException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "LimitExceededException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var ConcurrentResourcesLimitExceededException = class _ConcurrentResourcesLimitExceededException extends CloudFormationServiceException {
+ static {
+ __name(this, "ConcurrentResourcesLimitExceededException");
+ }
+ name = "ConcurrentResourcesLimitExceededException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ConcurrentResourcesLimitExceededException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ConcurrentResourcesLimitExceededException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var GeneratedTemplateDeletionPolicy = {
+ DELETE: "DELETE",
+ RETAIN: "RETAIN"
+};
+var GeneratedTemplateUpdateReplacePolicy = {
+ DELETE: "DELETE",
+ RETAIN: "RETAIN"
+};
+var OnFailure = {
+ DELETE: "DELETE",
+ DO_NOTHING: "DO_NOTHING",
+ ROLLBACK: "ROLLBACK"
+};
+var ConcurrencyMode = {
+ SOFT_FAILURE_TOLERANCE: "SOFT_FAILURE_TOLERANCE",
+ STRICT_FAILURE_TOLERANCE: "STRICT_FAILURE_TOLERANCE"
+};
+var RegionConcurrencyType = {
+ PARALLEL: "PARALLEL",
+ SEQUENTIAL: "SEQUENTIAL"
+};
+var OperationIdAlreadyExistsException = class _OperationIdAlreadyExistsException extends CloudFormationServiceException {
+ static {
+ __name(this, "OperationIdAlreadyExistsException");
+ }
+ name = "OperationIdAlreadyExistsException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "OperationIdAlreadyExistsException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _OperationIdAlreadyExistsException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var OperationInProgressException = class _OperationInProgressException extends CloudFormationServiceException {
+ static {
+ __name(this, "OperationInProgressException");
+ }
+ name = "OperationInProgressException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "OperationInProgressException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _OperationInProgressException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var StackSetNotFoundException = class _StackSetNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "StackSetNotFoundException");
+ }
+ name = "StackSetNotFoundException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "StackSetNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _StackSetNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var StaleRequestException = class _StaleRequestException extends CloudFormationServiceException {
+ static {
+ __name(this, "StaleRequestException");
+ }
+ name = "StaleRequestException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "StaleRequestException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _StaleRequestException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var CreatedButModifiedException = class _CreatedButModifiedException extends CloudFormationServiceException {
+ static {
+ __name(this, "CreatedButModifiedException");
+ }
+ name = "CreatedButModifiedException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "CreatedButModifiedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _CreatedButModifiedException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var PermissionModels = {
+ SELF_MANAGED: "SELF_MANAGED",
+ SERVICE_MANAGED: "SERVICE_MANAGED"
+};
+var NameAlreadyExistsException = class _NameAlreadyExistsException extends CloudFormationServiceException {
+ static {
+ __name(this, "NameAlreadyExistsException");
+ }
+ name = "NameAlreadyExistsException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "NameAlreadyExistsException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _NameAlreadyExistsException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var InvalidChangeSetStatusException = class _InvalidChangeSetStatusException extends CloudFormationServiceException {
+ static {
+ __name(this, "InvalidChangeSetStatusException");
+ }
+ name = "InvalidChangeSetStatusException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidChangeSetStatusException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidChangeSetStatusException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var GeneratedTemplateNotFoundException = class _GeneratedTemplateNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "GeneratedTemplateNotFoundException");
+ }
+ name = "GeneratedTemplateNotFoundException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "GeneratedTemplateNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _GeneratedTemplateNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var DeletionMode = {
+ FORCE_DELETE_STACK: "FORCE_DELETE_STACK",
+ STANDARD: "STANDARD"
+};
+var StackSetNotEmptyException = class _StackSetNotEmptyException extends CloudFormationServiceException {
+ static {
+ __name(this, "StackSetNotEmptyException");
+ }
+ name = "StackSetNotEmptyException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "StackSetNotEmptyException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _StackSetNotEmptyException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var RegistryType = {
+ HOOK: "HOOK",
+ MODULE: "MODULE",
+ RESOURCE: "RESOURCE"
+};
+var GeneratedTemplateResourceStatus = {
+ COMPLETE: "COMPLETE",
+ FAILED: "FAILED",
+ IN_PROGRESS: "IN_PROGRESS",
+ PENDING: "PENDING"
+};
+var WarningType = {
+ MUTUALLY_EXCLUSIVE_PROPERTIES: "MUTUALLY_EXCLUSIVE_PROPERTIES",
+ MUTUALLY_EXCLUSIVE_TYPES: "MUTUALLY_EXCLUSIVE_TYPES",
+ UNSUPPORTED_PROPERTIES: "UNSUPPORTED_PROPERTIES"
+};
+var GeneratedTemplateStatus = {
+ COMPLETE: "COMPLETE",
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
+ CREATE_PENDING: "CREATE_PENDING",
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
+ DELETE_PENDING: "DELETE_PENDING",
+ FAILED: "FAILED",
+ UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
+ UPDATE_PENDING: "UPDATE_PENDING"
+};
+var OrganizationStatus = {
+ DISABLED: "DISABLED",
+ DISABLED_PERMANENTLY: "DISABLED_PERMANENTLY",
+ ENABLED: "ENABLED"
+};
+var IdentityProvider = {
+ AWS_Marketplace: "AWS_Marketplace",
+ Bitbucket: "Bitbucket",
+ GitHub: "GitHub"
+};
+var PublisherStatus = {
+ UNVERIFIED: "UNVERIFIED",
+ VERIFIED: "VERIFIED"
+};
+var ResourceScanStatus = {
+ COMPLETE: "COMPLETE",
+ EXPIRED: "EXPIRED",
+ FAILED: "FAILED",
+ IN_PROGRESS: "IN_PROGRESS"
+};
+var ResourceScanNotFoundException = class _ResourceScanNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "ResourceScanNotFoundException");
+ }
+ name = "ResourceScanNotFoundException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ResourceScanNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ResourceScanNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var StackDriftDetectionStatus = {
+ DETECTION_COMPLETE: "DETECTION_COMPLETE",
+ DETECTION_FAILED: "DETECTION_FAILED",
+ DETECTION_IN_PROGRESS: "DETECTION_IN_PROGRESS"
+};
+var StackDriftStatus = {
+ DRIFTED: "DRIFTED",
+ IN_SYNC: "IN_SYNC",
+ NOT_CHECKED: "NOT_CHECKED",
+ UNKNOWN: "UNKNOWN"
+};
+var DetailedStatus = {
+ CONFIGURATION_COMPLETE: "CONFIGURATION_COMPLETE",
+ VALIDATION_FAILED: "VALIDATION_FAILED"
+};
+var HookStatus = {
+ HOOK_COMPLETE_FAILED: "HOOK_COMPLETE_FAILED",
+ HOOK_COMPLETE_SUCCEEDED: "HOOK_COMPLETE_SUCCEEDED",
+ HOOK_FAILED: "HOOK_FAILED",
+ HOOK_IN_PROGRESS: "HOOK_IN_PROGRESS"
+};
+var ResourceStatus = {
+ CREATE_COMPLETE: "CREATE_COMPLETE",
+ CREATE_FAILED: "CREATE_FAILED",
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
+ DELETE_COMPLETE: "DELETE_COMPLETE",
+ DELETE_FAILED: "DELETE_FAILED",
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
+ DELETE_SKIPPED: "DELETE_SKIPPED",
+ EXPORT_COMPLETE: "EXPORT_COMPLETE",
+ EXPORT_FAILED: "EXPORT_FAILED",
+ EXPORT_IN_PROGRESS: "EXPORT_IN_PROGRESS",
+ EXPORT_ROLLBACK_COMPLETE: "EXPORT_ROLLBACK_COMPLETE",
+ EXPORT_ROLLBACK_FAILED: "EXPORT_ROLLBACK_FAILED",
+ EXPORT_ROLLBACK_IN_PROGRESS: "EXPORT_ROLLBACK_IN_PROGRESS",
+ IMPORT_COMPLETE: "IMPORT_COMPLETE",
+ IMPORT_FAILED: "IMPORT_FAILED",
+ IMPORT_IN_PROGRESS: "IMPORT_IN_PROGRESS",
+ IMPORT_ROLLBACK_COMPLETE: "IMPORT_ROLLBACK_COMPLETE",
+ IMPORT_ROLLBACK_FAILED: "IMPORT_ROLLBACK_FAILED",
+ IMPORT_ROLLBACK_IN_PROGRESS: "IMPORT_ROLLBACK_IN_PROGRESS",
+ ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
+ ROLLBACK_FAILED: "ROLLBACK_FAILED",
+ ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
+ UPDATE_COMPLETE: "UPDATE_COMPLETE",
+ UPDATE_FAILED: "UPDATE_FAILED",
+ UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
+ UPDATE_ROLLBACK_COMPLETE: "UPDATE_ROLLBACK_COMPLETE",
+ UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED",
+ UPDATE_ROLLBACK_IN_PROGRESS: "UPDATE_ROLLBACK_IN_PROGRESS"
+};
+var StackInstanceDetailedStatus = {
+ CANCELLED: "CANCELLED",
+ FAILED: "FAILED",
+ FAILED_IMPORT: "FAILED_IMPORT",
+ INOPERABLE: "INOPERABLE",
+ PENDING: "PENDING",
+ RUNNING: "RUNNING",
+ SKIPPED_SUSPENDED_ACCOUNT: "SKIPPED_SUSPENDED_ACCOUNT",
+ SUCCEEDED: "SUCCEEDED"
+};
+var StackInstanceStatus = {
+ CURRENT: "CURRENT",
+ INOPERABLE: "INOPERABLE",
+ OUTDATED: "OUTDATED"
+};
+var StackInstanceNotFoundException = class _StackInstanceNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "StackInstanceNotFoundException");
+ }
+ name = "StackInstanceNotFoundException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "StackInstanceNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _StackInstanceNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var StackRefactorExecutionStatus = {
+ AVAILABLE: "AVAILABLE",
+ EXECUTE_COMPLETE: "EXECUTE_COMPLETE",
+ EXECUTE_FAILED: "EXECUTE_FAILED",
+ EXECUTE_IN_PROGRESS: "EXECUTE_IN_PROGRESS",
+ OBSOLETE: "OBSOLETE",
+ ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
+ ROLLBACK_FAILED: "ROLLBACK_FAILED",
+ ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
+ UNAVAILABLE: "UNAVAILABLE"
+};
+var StackRefactorStatus = {
+ CREATE_COMPLETE: "CREATE_COMPLETE",
+ CREATE_FAILED: "CREATE_FAILED",
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
+ DELETE_COMPLETE: "DELETE_COMPLETE",
+ DELETE_FAILED: "DELETE_FAILED",
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS"
+};
+var StackRefactorNotFoundException = class _StackRefactorNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "StackRefactorNotFoundException");
+ }
+ name = "StackRefactorNotFoundException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "StackRefactorNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _StackRefactorNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var StackResourceDriftStatus = {
+ DELETED: "DELETED",
+ IN_SYNC: "IN_SYNC",
+ MODIFIED: "MODIFIED",
+ NOT_CHECKED: "NOT_CHECKED"
+};
+var DifferenceType = {
+ ADD: "ADD",
+ NOT_EQUAL: "NOT_EQUAL",
+ REMOVE: "REMOVE"
+};
+var StackStatus = {
+ CREATE_COMPLETE: "CREATE_COMPLETE",
+ CREATE_FAILED: "CREATE_FAILED",
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
+ DELETE_COMPLETE: "DELETE_COMPLETE",
+ DELETE_FAILED: "DELETE_FAILED",
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
+ IMPORT_COMPLETE: "IMPORT_COMPLETE",
+ IMPORT_IN_PROGRESS: "IMPORT_IN_PROGRESS",
+ IMPORT_ROLLBACK_COMPLETE: "IMPORT_ROLLBACK_COMPLETE",
+ IMPORT_ROLLBACK_FAILED: "IMPORT_ROLLBACK_FAILED",
+ IMPORT_ROLLBACK_IN_PROGRESS: "IMPORT_ROLLBACK_IN_PROGRESS",
+ REVIEW_IN_PROGRESS: "REVIEW_IN_PROGRESS",
+ ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
+ ROLLBACK_FAILED: "ROLLBACK_FAILED",
+ ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
+ UPDATE_COMPLETE: "UPDATE_COMPLETE",
+ UPDATE_COMPLETE_CLEANUP_IN_PROGRESS: "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS",
+ UPDATE_FAILED: "UPDATE_FAILED",
+ UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
+ UPDATE_ROLLBACK_COMPLETE: "UPDATE_ROLLBACK_COMPLETE",
+ UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS: "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS",
+ UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED",
+ UPDATE_ROLLBACK_IN_PROGRESS: "UPDATE_ROLLBACK_IN_PROGRESS"
+};
+var StackSetDriftDetectionStatus = {
+ COMPLETED: "COMPLETED",
+ FAILED: "FAILED",
+ IN_PROGRESS: "IN_PROGRESS",
+ PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
+ STOPPED: "STOPPED"
+};
+var StackSetDriftStatus = {
+ DRIFTED: "DRIFTED",
+ IN_SYNC: "IN_SYNC",
+ NOT_CHECKED: "NOT_CHECKED"
+};
+var StackSetStatus = {
+ ACTIVE: "ACTIVE",
+ DELETED: "DELETED"
+};
+var StackSetOperationAction = {
+ CREATE: "CREATE",
+ DELETE: "DELETE",
+ DETECT_DRIFT: "DETECT_DRIFT",
+ UPDATE: "UPDATE"
+};
+var StackSetOperationStatus = {
+ FAILED: "FAILED",
+ QUEUED: "QUEUED",
+ RUNNING: "RUNNING",
+ STOPPED: "STOPPED",
+ STOPPING: "STOPPING",
+ SUCCEEDED: "SUCCEEDED"
+};
+var DeprecatedStatus = {
+ DEPRECATED: "DEPRECATED",
+ LIVE: "LIVE"
+};
+var ProvisioningType = {
+ FULLY_MUTABLE: "FULLY_MUTABLE",
+ IMMUTABLE: "IMMUTABLE",
+ NON_PROVISIONABLE: "NON_PROVISIONABLE"
+};
+var TypeTestsStatus = {
+ FAILED: "FAILED",
+ IN_PROGRESS: "IN_PROGRESS",
+ NOT_TESTED: "NOT_TESTED",
+ PASSED: "PASSED"
+};
+var Visibility = {
+ PRIVATE: "PRIVATE",
+ PUBLIC: "PUBLIC"
+};
+var RegistrationStatus = {
+ COMPLETE: "COMPLETE",
+ FAILED: "FAILED",
+ IN_PROGRESS: "IN_PROGRESS"
+};
+var TemplateFormat = {
+ JSON: "JSON",
+ YAML: "YAML"
+};
+var TemplateStage = {
+ Original: "Original",
+ Processed: "Processed"
+};
+var StackNotFoundException = class _StackNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "StackNotFoundException");
+ }
+ name = "StackNotFoundException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "StackNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _StackNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var HookResultNotFoundException = class _HookResultNotFoundException extends CloudFormationServiceException {
+ static {
+ __name(this, "HookResultNotFoundException");
+ }
+ name = "HookResultNotFoundException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "HookResultNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _HookResultNotFoundException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var ListHookResultsTargetType = {
+ CHANGE_SET: "CHANGE_SET",
+ CLOUD_CONTROL: "CLOUD_CONTROL",
+ RESOURCE: "RESOURCE",
+ STACK: "STACK"
+};
+var ResourceScanInProgressException = class _ResourceScanInProgressException extends CloudFormationServiceException {
+ static {
+ __name(this, "ResourceScanInProgressException");
+ }
+ name = "ResourceScanInProgressException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ResourceScanInProgressException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ResourceScanInProgressException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var ScanType = {
+ FULL: "FULL",
+ PARTIAL: "PARTIAL"
+};
+var StackInstanceFilterName = {
+ DETAILED_STATUS: "DETAILED_STATUS",
+ DRIFT_STATUS: "DRIFT_STATUS",
+ LAST_OPERATION_ID: "LAST_OPERATION_ID"
+};
+var StackRefactorActionType = {
+ CREATE: "CREATE",
+ MOVE: "MOVE"
+};
+var StackRefactorDetection = {
+ AUTO: "AUTO",
+ MANUAL: "MANUAL"
+};
+var StackRefactorActionEntity = {
+ RESOURCE: "RESOURCE",
+ STACK: "STACK"
+};
+var OperationResultFilterName = {
+ OPERATION_RESULT_STATUS: "OPERATION_RESULT_STATUS"
+};
+var StackSetOperationResultStatus = {
+ CANCELLED: "CANCELLED",
+ FAILED: "FAILED",
+ PENDING: "PENDING",
+ RUNNING: "RUNNING",
+ SUCCEEDED: "SUCCEEDED"
+};
+
+// src/models/models_1.ts
+var InvalidStateTransitionException = class _InvalidStateTransitionException extends CloudFormationServiceException {
+ static {
+ __name(this, "InvalidStateTransitionException");
+ }
+ name = "InvalidStateTransitionException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidStateTransitionException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidStateTransitionException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var OperationStatusCheckFailedException = class _OperationStatusCheckFailedException extends CloudFormationServiceException {
+ static {
+ __name(this, "OperationStatusCheckFailedException");
+ }
+ name = "OperationStatusCheckFailedException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "OperationStatusCheckFailedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _OperationStatusCheckFailedException.prototype);
+ this.Message = opts.Message;
+ }
+};
+var OperationStatus = {
+ FAILED: "FAILED",
+ IN_PROGRESS: "IN_PROGRESS",
+ PENDING: "PENDING",
+ SUCCESS: "SUCCESS"
+};
+var HandlerErrorCode = {
+ AccessDenied: "AccessDenied",
+ AlreadyExists: "AlreadyExists",
+ GeneralServiceException: "GeneralServiceException",
+ HandlerInternalFailure: "HandlerInternalFailure",
+ InternalFailure: "InternalFailure",
+ InvalidCredentials: "InvalidCredentials",
+ InvalidRequest: "InvalidRequest",
+ InvalidTypeConfiguration: "InvalidTypeConfiguration",
+ NetworkFailure: "NetworkFailure",
+ NonCompliant: "NonCompliant",
+ NotFound: "NotFound",
+ NotUpdatable: "NotUpdatable",
+ ResourceConflict: "ResourceConflict",
+ ServiceInternalError: "ServiceInternalError",
+ ServiceLimitExceeded: "ServiceLimitExceeded",
+ ServiceTimeout: "NotStabilized",
+ Throttling: "Throttling",
+ Unknown: "Unknown",
+ UnsupportedTarget: "UnsupportedTarget"
+};
+var ResourceSignalStatus = {
+ FAILURE: "FAILURE",
+ SUCCESS: "SUCCESS"
+};
+var ResourceScanLimitExceededException = class _ResourceScanLimitExceededException extends CloudFormationServiceException {
+ static {
+ __name(this, "ResourceScanLimitExceededException");
+ }
+ name = "ResourceScanLimitExceededException";
+ $fault = "client";
+ Message;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ResourceScanLimitExceededException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ResourceScanLimitExceededException.prototype);
+ this.Message = opts.Message;
+ }
+};
+
+// src/protocols/Aws_query.ts
+var se_ActivateOrganizationsAccessCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ActivateOrganizationsAccessInput(input, context),
+ [_A]: _AOA,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ActivateOrganizationsAccessCommand");
+var se_ActivateTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ActivateTypeInput(input, context),
+ [_A]: _AT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ActivateTypeCommand");
+var se_BatchDescribeTypeConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_BatchDescribeTypeConfigurationsInput(input, context),
+ [_A]: _BDTC,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_BatchDescribeTypeConfigurationsCommand");
+var se_CancelUpdateStackCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_CancelUpdateStackInput(input, context),
+ [_A]: _CUS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CancelUpdateStackCommand");
+var se_ContinueUpdateRollbackCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ContinueUpdateRollbackInput(input, context),
+ [_A]: _CUR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ContinueUpdateRollbackCommand");
+var se_CreateChangeSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_CreateChangeSetInput(input, context),
+ [_A]: _CCS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateChangeSetCommand");
+var se_CreateGeneratedTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_CreateGeneratedTemplateInput(input, context),
+ [_A]: _CGT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateGeneratedTemplateCommand");
+var se_CreateStackCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_CreateStackInput(input, context),
+ [_A]: _CS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateStackCommand");
+var se_CreateStackInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_CreateStackInstancesInput(input, context),
+ [_A]: _CSI,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateStackInstancesCommand");
+var se_CreateStackRefactorCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_CreateStackRefactorInput(input, context),
+ [_A]: _CSR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateStackRefactorCommand");
+var se_CreateStackSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_CreateStackSetInput(input, context),
+ [_A]: _CSS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateStackSetCommand");
+var se_DeactivateOrganizationsAccessCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DeactivateOrganizationsAccessInput(input, context),
+ [_A]: _DOA,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeactivateOrganizationsAccessCommand");
+var se_DeactivateTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DeactivateTypeInput(input, context),
+ [_A]: _DT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeactivateTypeCommand");
+var se_DeleteChangeSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DeleteChangeSetInput(input, context),
+ [_A]: _DCS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteChangeSetCommand");
+var se_DeleteGeneratedTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DeleteGeneratedTemplateInput(input, context),
+ [_A]: _DGT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteGeneratedTemplateCommand");
+var se_DeleteStackCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DeleteStackInput(input, context),
+ [_A]: _DS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteStackCommand");
+var se_DeleteStackInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DeleteStackInstancesInput(input, context),
+ [_A]: _DSI,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteStackInstancesCommand");
+var se_DeleteStackSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DeleteStackSetInput(input, context),
+ [_A]: _DSS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteStackSetCommand");
+var se_DeregisterTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DeregisterTypeInput(input, context),
+ [_A]: _DTe,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeregisterTypeCommand");
+var se_DescribeAccountLimitsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeAccountLimitsInput(input, context),
+ [_A]: _DAL,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeAccountLimitsCommand");
+var se_DescribeChangeSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeChangeSetInput(input, context),
+ [_A]: _DCSe,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeChangeSetCommand");
+var se_DescribeChangeSetHooksCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeChangeSetHooksInput(input, context),
+ [_A]: _DCSH,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeChangeSetHooksCommand");
+var se_DescribeGeneratedTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeGeneratedTemplateInput(input, context),
+ [_A]: _DGTe,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeGeneratedTemplateCommand");
+var se_DescribeOrganizationsAccessCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeOrganizationsAccessInput(input, context),
+ [_A]: _DOAe,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeOrganizationsAccessCommand");
+var se_DescribePublisherCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribePublisherInput(input, context),
+ [_A]: _DP,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribePublisherCommand");
+var se_DescribeResourceScanCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeResourceScanInput(input, context),
+ [_A]: _DRS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeResourceScanCommand");
+var se_DescribeStackDriftDetectionStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeStackDriftDetectionStatusInput(input, context),
+ [_A]: _DSDDS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStackDriftDetectionStatusCommand");
+var se_DescribeStackEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeStackEventsInput(input, context),
+ [_A]: _DSE,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStackEventsCommand");
+var se_DescribeStackInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeStackInstanceInput(input, context),
+ [_A]: _DSIe,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStackInstanceCommand");
+var se_DescribeStackRefactorCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeStackRefactorInput(input, context),
+ [_A]: _DSR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStackRefactorCommand");
+var se_DescribeStackResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeStackResourceInput(input, context),
+ [_A]: _DSRe,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStackResourceCommand");
+var se_DescribeStackResourceDriftsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeStackResourceDriftsInput(input, context),
+ [_A]: _DSRD,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStackResourceDriftsCommand");
+var se_DescribeStackResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeStackResourcesInput(input, context),
+ [_A]: _DSRes,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStackResourcesCommand");
+var se_DescribeStacksCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeStacksInput(input, context),
+ [_A]: _DSe,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStacksCommand");
+var se_DescribeStackSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeStackSetInput(input, context),
+ [_A]: _DSSe,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStackSetCommand");
+var se_DescribeStackSetOperationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeStackSetOperationInput(input, context),
+ [_A]: _DSSO,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStackSetOperationCommand");
+var se_DescribeTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeTypeInput(input, context),
+ [_A]: _DTes,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeTypeCommand");
+var se_DescribeTypeRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DescribeTypeRegistrationInput(input, context),
+ [_A]: _DTR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeTypeRegistrationCommand");
+var se_DetectStackDriftCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DetectStackDriftInput(input, context),
+ [_A]: _DSD,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DetectStackDriftCommand");
+var se_DetectStackResourceDriftCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DetectStackResourceDriftInput(input, context),
+ [_A]: _DSRDe,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DetectStackResourceDriftCommand");
+var se_DetectStackSetDriftCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_DetectStackSetDriftInput(input, context),
+ [_A]: _DSSD,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DetectStackSetDriftCommand");
+var se_EstimateTemplateCostCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_EstimateTemplateCostInput(input, context),
+ [_A]: _ETC,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_EstimateTemplateCostCommand");
+var se_ExecuteChangeSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ExecuteChangeSetInput(input, context),
+ [_A]: _ECS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ExecuteChangeSetCommand");
+var se_ExecuteStackRefactorCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ExecuteStackRefactorInput(input, context),
+ [_A]: _ESR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ExecuteStackRefactorCommand");
+var se_GetGeneratedTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_GetGeneratedTemplateInput(input, context),
+ [_A]: _GGT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetGeneratedTemplateCommand");
+var se_GetStackPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_GetStackPolicyInput(input, context),
+ [_A]: _GSP,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetStackPolicyCommand");
+var se_GetTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_GetTemplateInput(input, context),
+ [_A]: _GT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetTemplateCommand");
+var se_GetTemplateSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_GetTemplateSummaryInput(input, context),
+ [_A]: _GTS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetTemplateSummaryCommand");
+var se_ImportStacksToStackSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ImportStacksToStackSetInput(input, context),
+ [_A]: _ISTSS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ImportStacksToStackSetCommand");
+var se_ListChangeSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListChangeSetsInput(input, context),
+ [_A]: _LCS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListChangeSetsCommand");
+var se_ListExportsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListExportsInput(input, context),
+ [_A]: _LE,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListExportsCommand");
+var se_ListGeneratedTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListGeneratedTemplatesInput(input, context),
+ [_A]: _LGT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListGeneratedTemplatesCommand");
+var se_ListHookResultsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListHookResultsInput(input, context),
+ [_A]: _LHR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListHookResultsCommand");
+var se_ListImportsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListImportsInput(input, context),
+ [_A]: _LI,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListImportsCommand");
+var se_ListResourceScanRelatedResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListResourceScanRelatedResourcesInput(input, context),
+ [_A]: _LRSRR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListResourceScanRelatedResourcesCommand");
+var se_ListResourceScanResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListResourceScanResourcesInput(input, context),
+ [_A]: _LRSR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListResourceScanResourcesCommand");
+var se_ListResourceScansCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListResourceScansInput(input, context),
+ [_A]: _LRS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListResourceScansCommand");
+var se_ListStackInstanceResourceDriftsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListStackInstanceResourceDriftsInput(input, context),
+ [_A]: _LSIRD,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStackInstanceResourceDriftsCommand");
+var se_ListStackInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListStackInstancesInput(input, context),
+ [_A]: _LSI,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStackInstancesCommand");
+var se_ListStackRefactorActionsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListStackRefactorActionsInput(input, context),
+ [_A]: _LSRA,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStackRefactorActionsCommand");
+var se_ListStackRefactorsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListStackRefactorsInput(input, context),
+ [_A]: _LSR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStackRefactorsCommand");
+var se_ListStackResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListStackResourcesInput(input, context),
+ [_A]: _LSRi,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStackResourcesCommand");
+var se_ListStacksCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListStacksInput(input, context),
+ [_A]: _LS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStacksCommand");
+var se_ListStackSetAutoDeploymentTargetsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListStackSetAutoDeploymentTargetsInput(input, context),
+ [_A]: _LSSADT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStackSetAutoDeploymentTargetsCommand");
+var se_ListStackSetOperationResultsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListStackSetOperationResultsInput(input, context),
+ [_A]: _LSSOR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStackSetOperationResultsCommand");
+var se_ListStackSetOperationsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListStackSetOperationsInput(input, context),
+ [_A]: _LSSO,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStackSetOperationsCommand");
+var se_ListStackSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListStackSetsInput(input, context),
+ [_A]: _LSS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStackSetsCommand");
+var se_ListTypeRegistrationsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListTypeRegistrationsInput(input, context),
+ [_A]: _LTR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListTypeRegistrationsCommand");
+var se_ListTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListTypesInput(input, context),
+ [_A]: _LT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListTypesCommand");
+var se_ListTypeVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ListTypeVersionsInput(input, context),
+ [_A]: _LTV,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListTypeVersionsCommand");
+var se_PublishTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_PublishTypeInput(input, context),
+ [_A]: _PT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PublishTypeCommand");
+var se_RecordHandlerProgressCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_RecordHandlerProgressInput(input, context),
+ [_A]: _RHP,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_RecordHandlerProgressCommand");
+var se_RegisterPublisherCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_RegisterPublisherInput(input, context),
+ [_A]: _RP,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_RegisterPublisherCommand");
+var se_RegisterTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_RegisterTypeInput(input, context),
+ [_A]: _RT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_RegisterTypeCommand");
+var se_RollbackStackCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_RollbackStackInput(input, context),
+ [_A]: _RS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_RollbackStackCommand");
+var se_SetStackPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_SetStackPolicyInput(input, context),
+ [_A]: _SSP,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_SetStackPolicyCommand");
+var se_SetTypeConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_SetTypeConfigurationInput(input, context),
+ [_A]: _STC,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_SetTypeConfigurationCommand");
+var se_SetTypeDefaultVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_SetTypeDefaultVersionInput(input, context),
+ [_A]: _STDV,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_SetTypeDefaultVersionCommand");
+var se_SignalResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_SignalResourceInput(input, context),
+ [_A]: _SR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_SignalResourceCommand");
+var se_StartResourceScanCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_StartResourceScanInput(input, context),
+ [_A]: _SRS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_StartResourceScanCommand");
+var se_StopStackSetOperationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_StopStackSetOperationInput(input, context),
+ [_A]: _SSSO,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_StopStackSetOperationCommand");
+var se_TestTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_TestTypeInput(input, context),
+ [_A]: _TT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_TestTypeCommand");
+var se_UpdateGeneratedTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_UpdateGeneratedTemplateInput(input, context),
+ [_A]: _UGT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateGeneratedTemplateCommand");
+var se_UpdateStackCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_UpdateStackInput(input, context),
+ [_A]: _US,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateStackCommand");
+var se_UpdateStackInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_UpdateStackInstancesInput(input, context),
+ [_A]: _USI,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateStackInstancesCommand");
+var se_UpdateStackSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_UpdateStackSetInput(input, context),
+ [_A]: _USS,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateStackSetCommand");
+var se_UpdateTerminationProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_UpdateTerminationProtectionInput(input, context),
+ [_A]: _UTP,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateTerminationProtectionCommand");
+var se_ValidateTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_ValidateTemplateInput(input, context),
+ [_A]: _VT,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ValidateTemplateCommand");
+var de_ActivateOrganizationsAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ActivateOrganizationsAccessOutput(data.ActivateOrganizationsAccessResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ActivateOrganizationsAccessCommand");
+var de_ActivateTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ActivateTypeOutput(data.ActivateTypeResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ActivateTypeCommand");
+var de_BatchDescribeTypeConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_BatchDescribeTypeConfigurationsOutput(data.BatchDescribeTypeConfigurationsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_BatchDescribeTypeConfigurationsCommand");
+var de_CancelUpdateStackCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_CancelUpdateStackCommand");
+var de_ContinueUpdateRollbackCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ContinueUpdateRollbackOutput(data.ContinueUpdateRollbackResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ContinueUpdateRollbackCommand");
+var de_CreateChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_CreateChangeSetOutput(data.CreateChangeSetResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateChangeSetCommand");
+var de_CreateGeneratedTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_CreateGeneratedTemplateOutput(data.CreateGeneratedTemplateResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateGeneratedTemplateCommand");
+var de_CreateStackCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_CreateStackOutput(data.CreateStackResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateStackCommand");
+var de_CreateStackInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_CreateStackInstancesOutput(data.CreateStackInstancesResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateStackInstancesCommand");
+var de_CreateStackRefactorCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_CreateStackRefactorOutput(data.CreateStackRefactorResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateStackRefactorCommand");
+var de_CreateStackSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_CreateStackSetOutput(data.CreateStackSetResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateStackSetCommand");
+var de_DeactivateOrganizationsAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DeactivateOrganizationsAccessOutput(data.DeactivateOrganizationsAccessResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeactivateOrganizationsAccessCommand");
+var de_DeactivateTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DeactivateTypeOutput(data.DeactivateTypeResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeactivateTypeCommand");
+var de_DeleteChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DeleteChangeSetOutput(data.DeleteChangeSetResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteChangeSetCommand");
+var de_DeleteGeneratedTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteGeneratedTemplateCommand");
+var de_DeleteStackCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteStackCommand");
+var de_DeleteStackInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DeleteStackInstancesOutput(data.DeleteStackInstancesResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteStackInstancesCommand");
+var de_DeleteStackSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DeleteStackSetOutput(data.DeleteStackSetResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteStackSetCommand");
+var de_DeregisterTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DeregisterTypeOutput(data.DeregisterTypeResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeregisterTypeCommand");
+var de_DescribeAccountLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeAccountLimitsOutput(data.DescribeAccountLimitsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeAccountLimitsCommand");
+var de_DescribeChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeChangeSetOutput(data.DescribeChangeSetResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeChangeSetCommand");
+var de_DescribeChangeSetHooksCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeChangeSetHooksOutput(data.DescribeChangeSetHooksResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeChangeSetHooksCommand");
+var de_DescribeGeneratedTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeGeneratedTemplateOutput(data.DescribeGeneratedTemplateResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeGeneratedTemplateCommand");
+var de_DescribeOrganizationsAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeOrganizationsAccessOutput(data.DescribeOrganizationsAccessResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeOrganizationsAccessCommand");
+var de_DescribePublisherCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribePublisherOutput(data.DescribePublisherResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribePublisherCommand");
+var de_DescribeResourceScanCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeResourceScanOutput(data.DescribeResourceScanResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeResourceScanCommand");
+var de_DescribeStackDriftDetectionStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStackDriftDetectionStatusOutput(data.DescribeStackDriftDetectionStatusResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStackDriftDetectionStatusCommand");
+var de_DescribeStackEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStackEventsOutput(data.DescribeStackEventsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStackEventsCommand");
+var de_DescribeStackInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStackInstanceOutput(data.DescribeStackInstanceResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStackInstanceCommand");
+var de_DescribeStackRefactorCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStackRefactorOutput(data.DescribeStackRefactorResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStackRefactorCommand");
+var de_DescribeStackResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStackResourceOutput(data.DescribeStackResourceResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStackResourceCommand");
+var de_DescribeStackResourceDriftsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStackResourceDriftsOutput(data.DescribeStackResourceDriftsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStackResourceDriftsCommand");
+var de_DescribeStackResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStackResourcesOutput(data.DescribeStackResourcesResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStackResourcesCommand");
+var de_DescribeStacksCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStacksOutput(data.DescribeStacksResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStacksCommand");
+var de_DescribeStackSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStackSetOutput(data.DescribeStackSetResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStackSetCommand");
+var de_DescribeStackSetOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStackSetOperationOutput(data.DescribeStackSetOperationResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStackSetOperationCommand");
+var de_DescribeTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeTypeOutput(data.DescribeTypeResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeTypeCommand");
+var de_DescribeTypeRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeTypeRegistrationOutput(data.DescribeTypeRegistrationResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeTypeRegistrationCommand");
+var de_DetectStackDriftCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DetectStackDriftOutput(data.DetectStackDriftResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DetectStackDriftCommand");
+var de_DetectStackResourceDriftCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DetectStackResourceDriftOutput(data.DetectStackResourceDriftResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DetectStackResourceDriftCommand");
+var de_DetectStackSetDriftCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_DetectStackSetDriftOutput(data.DetectStackSetDriftResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DetectStackSetDriftCommand");
+var de_EstimateTemplateCostCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_EstimateTemplateCostOutput(data.EstimateTemplateCostResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_EstimateTemplateCostCommand");
+var de_ExecuteChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ExecuteChangeSetOutput(data.ExecuteChangeSetResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ExecuteChangeSetCommand");
+var de_ExecuteStackRefactorCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_ExecuteStackRefactorCommand");
+var de_GetGeneratedTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_GetGeneratedTemplateOutput(data.GetGeneratedTemplateResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetGeneratedTemplateCommand");
+var de_GetStackPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_GetStackPolicyOutput(data.GetStackPolicyResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetStackPolicyCommand");
+var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_GetTemplateOutput(data.GetTemplateResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetTemplateCommand");
+var de_GetTemplateSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_GetTemplateSummaryOutput(data.GetTemplateSummaryResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetTemplateSummaryCommand");
+var de_ImportStacksToStackSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ImportStacksToStackSetOutput(data.ImportStacksToStackSetResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ImportStacksToStackSetCommand");
+var de_ListChangeSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListChangeSetsOutput(data.ListChangeSetsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListChangeSetsCommand");
+var de_ListExportsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListExportsOutput(data.ListExportsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListExportsCommand");
+var de_ListGeneratedTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListGeneratedTemplatesOutput(data.ListGeneratedTemplatesResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListGeneratedTemplatesCommand");
+var de_ListHookResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListHookResultsOutput(data.ListHookResultsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListHookResultsCommand");
+var de_ListImportsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListImportsOutput(data.ListImportsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListImportsCommand");
+var de_ListResourceScanRelatedResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListResourceScanRelatedResourcesOutput(data.ListResourceScanRelatedResourcesResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListResourceScanRelatedResourcesCommand");
+var de_ListResourceScanResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListResourceScanResourcesOutput(data.ListResourceScanResourcesResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListResourceScanResourcesCommand");
+var de_ListResourceScansCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListResourceScansOutput(data.ListResourceScansResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListResourceScansCommand");
+var de_ListStackInstanceResourceDriftsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStackInstanceResourceDriftsOutput(data.ListStackInstanceResourceDriftsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStackInstanceResourceDriftsCommand");
+var de_ListStackInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStackInstancesOutput(data.ListStackInstancesResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStackInstancesCommand");
+var de_ListStackRefactorActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStackRefactorActionsOutput(data.ListStackRefactorActionsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStackRefactorActionsCommand");
+var de_ListStackRefactorsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStackRefactorsOutput(data.ListStackRefactorsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStackRefactorsCommand");
+var de_ListStackResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStackResourcesOutput(data.ListStackResourcesResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStackResourcesCommand");
+var de_ListStacksCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStacksOutput(data.ListStacksResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStacksCommand");
+var de_ListStackSetAutoDeploymentTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStackSetAutoDeploymentTargetsOutput(data.ListStackSetAutoDeploymentTargetsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStackSetAutoDeploymentTargetsCommand");
+var de_ListStackSetOperationResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStackSetOperationResultsOutput(data.ListStackSetOperationResultsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStackSetOperationResultsCommand");
+var de_ListStackSetOperationsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStackSetOperationsOutput(data.ListStackSetOperationsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStackSetOperationsCommand");
+var de_ListStackSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStackSetsOutput(data.ListStackSetsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStackSetsCommand");
+var de_ListTypeRegistrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListTypeRegistrationsOutput(data.ListTypeRegistrationsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListTypeRegistrationsCommand");
+var de_ListTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListTypesOutput(data.ListTypesResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListTypesCommand");
+var de_ListTypeVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ListTypeVersionsOutput(data.ListTypeVersionsResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListTypeVersionsCommand");
+var de_PublishTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_PublishTypeOutput(data.PublishTypeResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PublishTypeCommand");
+var de_RecordHandlerProgressCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_RecordHandlerProgressOutput(data.RecordHandlerProgressResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_RecordHandlerProgressCommand");
+var de_RegisterPublisherCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_RegisterPublisherOutput(data.RegisterPublisherResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_RegisterPublisherCommand");
+var de_RegisterTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_RegisterTypeOutput(data.RegisterTypeResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_RegisterTypeCommand");
+var de_RollbackStackCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_RollbackStackOutput(data.RollbackStackResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_RollbackStackCommand");
+var de_SetStackPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_SetStackPolicyCommand");
+var de_SetTypeConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_SetTypeConfigurationOutput(data.SetTypeConfigurationResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_SetTypeConfigurationCommand");
+var de_SetTypeDefaultVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_SetTypeDefaultVersionOutput(data.SetTypeDefaultVersionResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_SetTypeDefaultVersionCommand");
+var de_SignalResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_SignalResourceCommand");
+var de_StartResourceScanCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_StartResourceScanOutput(data.StartResourceScanResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_StartResourceScanCommand");
+var de_StopStackSetOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_StopStackSetOperationOutput(data.StopStackSetOperationResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_StopStackSetOperationCommand");
+var de_TestTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_TestTypeOutput(data.TestTypeResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_TestTypeCommand");
+var de_UpdateGeneratedTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateGeneratedTemplateOutput(data.UpdateGeneratedTemplateResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateGeneratedTemplateCommand");
+var de_UpdateStackCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateStackOutput(data.UpdateStackResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateStackCommand");
+var de_UpdateStackInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateStackInstancesOutput(data.UpdateStackInstancesResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateStackInstancesCommand");
+var de_UpdateStackSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateStackSetOutput(data.UpdateStackSetResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateStackSetCommand");
+var de_UpdateTerminationProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateTerminationProtectionOutput(data.UpdateTerminationProtectionResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateTerminationProtectionCommand");
+var de_ValidateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_ValidateTemplateOutput(data.ValidateTemplateResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ValidateTemplateCommand");
+var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseXmlErrorBody)(output.body, context)
+ };
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
+ switch (errorCode) {
+ case "InvalidOperationException":
+ case "com.amazonaws.cloudformation#InvalidOperationException":
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
+ case "OperationNotFoundException":
+ case "com.amazonaws.cloudformation#OperationNotFoundException":
+ throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
+ case "CFNRegistryException":
+ case "com.amazonaws.cloudformation#CFNRegistryException":
+ throw await de_CFNRegistryExceptionRes(parsedOutput, context);
+ case "TypeNotFoundException":
+ case "com.amazonaws.cloudformation#TypeNotFoundException":
+ throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
+ case "TypeConfigurationNotFoundException":
+ case "com.amazonaws.cloudformation#TypeConfigurationNotFoundException":
+ throw await de_TypeConfigurationNotFoundExceptionRes(parsedOutput, context);
+ case "TokenAlreadyExistsException":
+ case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
+ throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
+ case "AlreadyExistsException":
+ case "com.amazonaws.cloudformation#AlreadyExistsException":
+ throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
+ case "InsufficientCapabilitiesException":
+ case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
+ throw await de_InsufficientCapabilitiesExceptionRes(parsedOutput, context);
+ case "LimitExceededException":
+ case "com.amazonaws.cloudformation#LimitExceededException":
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
+ case "ConcurrentResourcesLimitExceeded":
+ case "com.amazonaws.cloudformation#ConcurrentResourcesLimitExceededException":
+ throw await de_ConcurrentResourcesLimitExceededExceptionRes(parsedOutput, context);
+ case "OperationIdAlreadyExistsException":
+ case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
+ throw await de_OperationIdAlreadyExistsExceptionRes(parsedOutput, context);
+ case "OperationInProgressException":
+ case "com.amazonaws.cloudformation#OperationInProgressException":
+ throw await de_OperationInProgressExceptionRes(parsedOutput, context);
+ case "StackSetNotFoundException":
+ case "com.amazonaws.cloudformation#StackSetNotFoundException":
+ throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
+ case "StaleRequestException":
+ case "com.amazonaws.cloudformation#StaleRequestException":
+ throw await de_StaleRequestExceptionRes(parsedOutput, context);
+ case "CreatedButModifiedException":
+ case "com.amazonaws.cloudformation#CreatedButModifiedException":
+ throw await de_CreatedButModifiedExceptionRes(parsedOutput, context);
+ case "NameAlreadyExistsException":
+ case "com.amazonaws.cloudformation#NameAlreadyExistsException":
+ throw await de_NameAlreadyExistsExceptionRes(parsedOutput, context);
+ case "InvalidChangeSetStatus":
+ case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
+ throw await de_InvalidChangeSetStatusExceptionRes(parsedOutput, context);
+ case "GeneratedTemplateNotFound":
+ case "com.amazonaws.cloudformation#GeneratedTemplateNotFoundException":
+ throw await de_GeneratedTemplateNotFoundExceptionRes(parsedOutput, context);
+ case "StackSetNotEmptyException":
+ case "com.amazonaws.cloudformation#StackSetNotEmptyException":
+ throw await de_StackSetNotEmptyExceptionRes(parsedOutput, context);
+ case "ChangeSetNotFound":
+ case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
+ throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
+ case "ResourceScanNotFound":
+ case "com.amazonaws.cloudformation#ResourceScanNotFoundException":
+ throw await de_ResourceScanNotFoundExceptionRes(parsedOutput, context);
+ case "StackInstanceNotFoundException":
+ case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
+ throw await de_StackInstanceNotFoundExceptionRes(parsedOutput, context);
+ case "StackRefactorNotFoundException":
+ case "com.amazonaws.cloudformation#StackRefactorNotFoundException":
+ throw await de_StackRefactorNotFoundExceptionRes(parsedOutput, context);
+ case "StackNotFoundException":
+ case "com.amazonaws.cloudformation#StackNotFoundException":
+ throw await de_StackNotFoundExceptionRes(parsedOutput, context);
+ case "HookResultNotFound":
+ case "com.amazonaws.cloudformation#HookResultNotFoundException":
+ throw await de_HookResultNotFoundExceptionRes(parsedOutput, context);
+ case "ResourceScanInProgress":
+ case "com.amazonaws.cloudformation#ResourceScanInProgressException":
+ throw await de_ResourceScanInProgressExceptionRes(parsedOutput, context);
+ case "ConditionalCheckFailed":
+ case "com.amazonaws.cloudformation#OperationStatusCheckFailedException":
+ throw await de_OperationStatusCheckFailedExceptionRes(parsedOutput, context);
+ case "InvalidStateTransition":
+ case "com.amazonaws.cloudformation#InvalidStateTransitionException":
+ throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
+ case "ResourceScanLimitExceeded":
+ case "com.amazonaws.cloudformation#ResourceScanLimitExceededException":
+ throw await de_ResourceScanLimitExceededExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody: parsedBody.Error,
+ errorCode
+ });
+ }
+}, "de_CommandError");
+var de_AlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_AlreadyExistsException(body.Error, context);
+ const exception = new AlreadyExistsException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_AlreadyExistsExceptionRes");
+var de_CFNRegistryExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_CFNRegistryException(body.Error, context);
+ const exception = new CFNRegistryException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_CFNRegistryExceptionRes");
+var de_ChangeSetNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_ChangeSetNotFoundException(body.Error, context);
+ const exception = new ChangeSetNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ChangeSetNotFoundExceptionRes");
+var de_ConcurrentResourcesLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_ConcurrentResourcesLimitExceededException(body.Error, context);
+ const exception = new ConcurrentResourcesLimitExceededException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ConcurrentResourcesLimitExceededExceptionRes");
+var de_CreatedButModifiedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_CreatedButModifiedException(body.Error, context);
+ const exception = new CreatedButModifiedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_CreatedButModifiedExceptionRes");
+var de_GeneratedTemplateNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_GeneratedTemplateNotFoundException(body.Error, context);
+ const exception = new GeneratedTemplateNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_GeneratedTemplateNotFoundExceptionRes");
+var de_HookResultNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_HookResultNotFoundException(body.Error, context);
+ const exception = new HookResultNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_HookResultNotFoundExceptionRes");
+var de_InsufficientCapabilitiesExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_InsufficientCapabilitiesException(body.Error, context);
+ const exception = new InsufficientCapabilitiesException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_InsufficientCapabilitiesExceptionRes");
+var de_InvalidChangeSetStatusExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_InvalidChangeSetStatusException(body.Error, context);
+ const exception = new InvalidChangeSetStatusException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_InvalidChangeSetStatusExceptionRes");
+var de_InvalidOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_InvalidOperationException(body.Error, context);
+ const exception = new InvalidOperationException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_InvalidOperationExceptionRes");
+var de_InvalidStateTransitionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_InvalidStateTransitionException(body.Error, context);
+ const exception = new InvalidStateTransitionException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_InvalidStateTransitionExceptionRes");
+var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_LimitExceededException(body.Error, context);
+ const exception = new LimitExceededException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_LimitExceededExceptionRes");
+var de_NameAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_NameAlreadyExistsException(body.Error, context);
+ const exception = new NameAlreadyExistsException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_NameAlreadyExistsExceptionRes");
+var de_OperationIdAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_OperationIdAlreadyExistsException(body.Error, context);
+ const exception = new OperationIdAlreadyExistsException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_OperationIdAlreadyExistsExceptionRes");
+var de_OperationInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_OperationInProgressException(body.Error, context);
+ const exception = new OperationInProgressException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_OperationInProgressExceptionRes");
+var de_OperationNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_OperationNotFoundException(body.Error, context);
+ const exception = new OperationNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_OperationNotFoundExceptionRes");
+var de_OperationStatusCheckFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_OperationStatusCheckFailedException(body.Error, context);
+ const exception = new OperationStatusCheckFailedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_OperationStatusCheckFailedExceptionRes");
+var de_ResourceScanInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_ResourceScanInProgressException(body.Error, context);
+ const exception = new ResourceScanInProgressException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ResourceScanInProgressExceptionRes");
+var de_ResourceScanLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_ResourceScanLimitExceededException(body.Error, context);
+ const exception = new ResourceScanLimitExceededException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ResourceScanLimitExceededExceptionRes");
+var de_ResourceScanNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_ResourceScanNotFoundException(body.Error, context);
+ const exception = new ResourceScanNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ResourceScanNotFoundExceptionRes");
+var de_StackInstanceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_StackInstanceNotFoundException(body.Error, context);
+ const exception = new StackInstanceNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_StackInstanceNotFoundExceptionRes");
+var de_StackNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_StackNotFoundException(body.Error, context);
+ const exception = new StackNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_StackNotFoundExceptionRes");
+var de_StackRefactorNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_StackRefactorNotFoundException(body.Error, context);
+ const exception = new StackRefactorNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_StackRefactorNotFoundExceptionRes");
+var de_StackSetNotEmptyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_StackSetNotEmptyException(body.Error, context);
+ const exception = new StackSetNotEmptyException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_StackSetNotEmptyExceptionRes");
+var de_StackSetNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_StackSetNotFoundException(body.Error, context);
+ const exception = new StackSetNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_StackSetNotFoundExceptionRes");
+var de_StaleRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_StaleRequestException(body.Error, context);
+ const exception = new StaleRequestException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_StaleRequestExceptionRes");
+var de_TokenAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_TokenAlreadyExistsException(body.Error, context);
+ const exception = new TokenAlreadyExistsException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_TokenAlreadyExistsExceptionRes");
+var de_TypeConfigurationNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_TypeConfigurationNotFoundException(body.Error, context);
+ const exception = new TypeConfigurationNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_TypeConfigurationNotFoundExceptionRes");
+var de_TypeNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_TypeNotFoundException(body.Error, context);
+ const exception = new TypeNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_TypeNotFoundExceptionRes");
+var se_AccountList = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_AccountList");
+var se_ActivateOrganizationsAccessInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ return entries;
+}, "se_ActivateOrganizationsAccessInput");
+var se_ActivateTypeInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_PTA] != null) {
+ entries[_PTA] = input[_PTA];
+ }
+ if (input[_PI] != null) {
+ entries[_PI] = input[_PI];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_TNA] != null) {
+ entries[_TNA] = input[_TNA];
+ }
+ if (input[_AU] != null) {
+ entries[_AU] = input[_AU];
+ }
+ if (input[_LC] != null) {
+ const memberEntries = se_LoggingConfig(input[_LC], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `LoggingConfig.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_ERA] != null) {
+ entries[_ERA] = input[_ERA];
+ }
+ if (input[_VB] != null) {
+ entries[_VB] = input[_VB];
+ }
+ if (input[_MV] != null) {
+ entries[_MV] = input[_MV];
+ }
+ return entries;
+}, "se_ActivateTypeInput");
+var se_AutoDeployment = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_E] != null) {
+ entries[_E] = input[_E];
+ }
+ if (input[_RSOAR] != null) {
+ entries[_RSOAR] = input[_RSOAR];
+ }
+ return entries;
+}, "se_AutoDeployment");
+var se_BatchDescribeTypeConfigurationsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_TCI] != null) {
+ const memberEntries = se_TypeConfigurationIdentifiers(input[_TCI], context);
+ if (input[_TCI]?.length === 0) {
+ entries.TypeConfigurationIdentifiers = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `TypeConfigurationIdentifiers.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_BatchDescribeTypeConfigurationsInput");
+var se_CancelUpdateStackInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ return entries;
+}, "se_CancelUpdateStackInput");
+var se_Capabilities = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_Capabilities");
+var se_ContinueUpdateRollbackInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_RARN] != null) {
+ entries[_RARN] = input[_RARN];
+ }
+ if (input[_RTS] != null) {
+ const memberEntries = se_ResourcesToSkip(input[_RTS], context);
+ if (input[_RTS]?.length === 0) {
+ entries.ResourcesToSkip = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ResourcesToSkip.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ return entries;
+}, "se_ContinueUpdateRollbackInput");
+var se_CreateChangeSetInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_TB] != null) {
+ entries[_TB] = input[_TB];
+ }
+ if (input[_TURL] != null) {
+ entries[_TURL] = input[_TURL];
+ }
+ if (input[_UPT] != null) {
+ entries[_UPT] = input[_UPT];
+ }
+ if (input[_P] != null) {
+ const memberEntries = se_Parameters(input[_P], context);
+ if (input[_P]?.length === 0) {
+ entries.Parameters = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Parameters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_C] != null) {
+ const memberEntries = se_Capabilities(input[_C], context);
+ if (input[_C]?.length === 0) {
+ entries.Capabilities = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Capabilities.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_RTe] != null) {
+ const memberEntries = se_ResourceTypes(input[_RTe], context);
+ if (input[_RTe]?.length === 0) {
+ entries.ResourceTypes = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ResourceTypes.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_RARN] != null) {
+ entries[_RARN] = input[_RARN];
+ }
+ if (input[_RC] != null) {
+ const memberEntries = se_RollbackConfiguration(input[_RC], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `RollbackConfiguration.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_NARN] != null) {
+ const memberEntries = se_NotificationARNs(input[_NARN], context);
+ if (input[_NARN]?.length === 0) {
+ entries.NotificationARNs = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `NotificationARNs.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_Ta] != null) {
+ const memberEntries = se_Tags(input[_Ta], context);
+ if (input[_Ta]?.length === 0) {
+ entries.Tags = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Tags.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_CSN] != null) {
+ entries[_CSN] = input[_CSN];
+ }
+ if (input[_CT] != null) {
+ entries[_CT] = input[_CT];
+ }
+ if (input[_D] != null) {
+ entries[_D] = input[_D];
+ }
+ if (input[_CST] != null) {
+ entries[_CST] = input[_CST];
+ }
+ if (input[_RTI] != null) {
+ const memberEntries = se_ResourcesToImport(input[_RTI], context);
+ if (input[_RTI]?.length === 0) {
+ entries.ResourcesToImport = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ResourcesToImport.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_INS] != null) {
+ entries[_INS] = input[_INS];
+ }
+ if (input[_OSF] != null) {
+ entries[_OSF] = input[_OSF];
+ }
+ if (input[_IER] != null) {
+ entries[_IER] = input[_IER];
+ }
+ return entries;
+}, "se_CreateChangeSetInput");
+var se_CreateGeneratedTemplateInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_R] != null) {
+ const memberEntries = se_ResourceDefinitions(input[_R], context);
+ if (input[_R]?.length === 0) {
+ entries.Resources = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Resources.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_GTN] != null) {
+ entries[_GTN] = input[_GTN];
+ }
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_TC] != null) {
+ const memberEntries = se_TemplateConfiguration(input[_TC], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `TemplateConfiguration.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_CreateGeneratedTemplateInput");
+var se_CreateStackInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_TB] != null) {
+ entries[_TB] = input[_TB];
+ }
+ if (input[_TURL] != null) {
+ entries[_TURL] = input[_TURL];
+ }
+ if (input[_P] != null) {
+ const memberEntries = se_Parameters(input[_P], context);
+ if (input[_P]?.length === 0) {
+ entries.Parameters = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Parameters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_DR] != null) {
+ entries[_DR] = input[_DR];
+ }
+ if (input[_RC] != null) {
+ const memberEntries = se_RollbackConfiguration(input[_RC], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `RollbackConfiguration.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_TIM] != null) {
+ entries[_TIM] = input[_TIM];
+ }
+ if (input[_NARN] != null) {
+ const memberEntries = se_NotificationARNs(input[_NARN], context);
+ if (input[_NARN]?.length === 0) {
+ entries.NotificationARNs = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `NotificationARNs.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_C] != null) {
+ const memberEntries = se_Capabilities(input[_C], context);
+ if (input[_C]?.length === 0) {
+ entries.Capabilities = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Capabilities.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_RTe] != null) {
+ const memberEntries = se_ResourceTypes(input[_RTe], context);
+ if (input[_RTe]?.length === 0) {
+ entries.ResourceTypes = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ResourceTypes.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_RARN] != null) {
+ entries[_RARN] = input[_RARN];
+ }
+ if (input[_OF] != null) {
+ entries[_OF] = input[_OF];
+ }
+ if (input[_SPB] != null) {
+ entries[_SPB] = input[_SPB];
+ }
+ if (input[_SPURL] != null) {
+ entries[_SPURL] = input[_SPURL];
+ }
+ if (input[_Ta] != null) {
+ const memberEntries = se_Tags(input[_Ta], context);
+ if (input[_Ta]?.length === 0) {
+ entries.Tags = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Tags.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ if (input[_ETP] != null) {
+ entries[_ETP] = input[_ETP];
+ }
+ if (input[_REOC] != null) {
+ entries[_REOC] = input[_REOC];
+ }
+ return entries;
+}, "se_CreateStackInput");
+var se_CreateStackInstancesInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_Ac] != null) {
+ const memberEntries = se_AccountList(input[_Ac], context);
+ if (input[_Ac]?.length === 0) {
+ entries.Accounts = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Accounts.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_DTep] != null) {
+ const memberEntries = se_DeploymentTargets(input[_DTep], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `DeploymentTargets.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_Re] != null) {
+ const memberEntries = se_RegionList(input[_Re], context);
+ if (input[_Re]?.length === 0) {
+ entries.Regions = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Regions.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_PO] != null) {
+ const memberEntries = se_Parameters(input[_PO], context);
+ if (input[_PO]?.length === 0) {
+ entries.ParameterOverrides = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ParameterOverrides.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_OP] != null) {
+ const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `OperationPreferences.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_OI] === void 0) {
+ input[_OI] = (0, import_uuid.v4)();
+ }
+ if (input[_OI] != null) {
+ entries[_OI] = input[_OI];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_CreateStackInstancesInput");
+var se_CreateStackRefactorInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_D] != null) {
+ entries[_D] = input[_D];
+ }
+ if (input[_ESC] != null) {
+ entries[_ESC] = input[_ESC];
+ }
+ if (input[_RM] != null) {
+ const memberEntries = se_ResourceMappings(input[_RM], context);
+ if (input[_RM]?.length === 0) {
+ entries.ResourceMappings = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ResourceMappings.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_SD] != null) {
+ const memberEntries = se_StackDefinitions(input[_SD], context);
+ if (input[_SD]?.length === 0) {
+ entries.StackDefinitions = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `StackDefinitions.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_CreateStackRefactorInput");
+var se_CreateStackSetInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_D] != null) {
+ entries[_D] = input[_D];
+ }
+ if (input[_TB] != null) {
+ entries[_TB] = input[_TB];
+ }
+ if (input[_TURL] != null) {
+ entries[_TURL] = input[_TURL];
+ }
+ if (input[_SI] != null) {
+ entries[_SI] = input[_SI];
+ }
+ if (input[_P] != null) {
+ const memberEntries = se_Parameters(input[_P], context);
+ if (input[_P]?.length === 0) {
+ entries.Parameters = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Parameters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_C] != null) {
+ const memberEntries = se_Capabilities(input[_C], context);
+ if (input[_C]?.length === 0) {
+ entries.Capabilities = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Capabilities.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_Ta] != null) {
+ const memberEntries = se_Tags(input[_Ta], context);
+ if (input[_Ta]?.length === 0) {
+ entries.Tags = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Tags.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_ARARN] != null) {
+ entries[_ARARN] = input[_ARARN];
+ }
+ if (input[_ERN] != null) {
+ entries[_ERN] = input[_ERN];
+ }
+ if (input[_PM] != null) {
+ entries[_PM] = input[_PM];
+ }
+ if (input[_AD] != null) {
+ const memberEntries = se_AutoDeployment(input[_AD], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `AutoDeployment.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ if (input[_CRT] === void 0) {
+ input[_CRT] = (0, import_uuid.v4)();
+ }
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ if (input[_ME] != null) {
+ const memberEntries = se_ManagedExecution(input[_ME], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ManagedExecution.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_CreateStackSetInput");
+var se_DeactivateOrganizationsAccessInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ return entries;
+}, "se_DeactivateOrganizationsAccessInput");
+var se_DeactivateTypeInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_Ar] != null) {
+ entries[_Ar] = input[_Ar];
+ }
+ return entries;
+}, "se_DeactivateTypeInput");
+var se_DeleteChangeSetInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_CSN] != null) {
+ entries[_CSN] = input[_CSN];
+ }
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ return entries;
+}, "se_DeleteChangeSetInput");
+var se_DeleteGeneratedTemplateInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_GTN] != null) {
+ entries[_GTN] = input[_GTN];
+ }
+ return entries;
+}, "se_DeleteGeneratedTemplateInput");
+var se_DeleteStackInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_RR] != null) {
+ const memberEntries = se_RetainResources(input[_RR], context);
+ if (input[_RR]?.length === 0) {
+ entries.RetainResources = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `RetainResources.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_RARN] != null) {
+ entries[_RARN] = input[_RARN];
+ }
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ if (input[_DM] != null) {
+ entries[_DM] = input[_DM];
+ }
+ return entries;
+}, "se_DeleteStackInput");
+var se_DeleteStackInstancesInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_Ac] != null) {
+ const memberEntries = se_AccountList(input[_Ac], context);
+ if (input[_Ac]?.length === 0) {
+ entries.Accounts = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Accounts.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_DTep] != null) {
+ const memberEntries = se_DeploymentTargets(input[_DTep], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `DeploymentTargets.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_Re] != null) {
+ const memberEntries = se_RegionList(input[_Re], context);
+ if (input[_Re]?.length === 0) {
+ entries.Regions = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Regions.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_OP] != null) {
+ const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `OperationPreferences.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_RSe] != null) {
+ entries[_RSe] = input[_RSe];
+ }
+ if (input[_OI] === void 0) {
+ input[_OI] = (0, import_uuid.v4)();
+ }
+ if (input[_OI] != null) {
+ entries[_OI] = input[_OI];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_DeleteStackInstancesInput");
+var se_DeleteStackSetInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_DeleteStackSetInput");
+var se_DeploymentTargets = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_Ac] != null) {
+ const memberEntries = se_AccountList(input[_Ac], context);
+ if (input[_Ac]?.length === 0) {
+ entries.Accounts = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Accounts.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_AUc] != null) {
+ entries[_AUc] = input[_AUc];
+ }
+ if (input[_OUI] != null) {
+ const memberEntries = se_OrganizationalUnitIdList(input[_OUI], context);
+ if (input[_OUI]?.length === 0) {
+ entries.OrganizationalUnitIds = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `OrganizationalUnitIds.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_AFT] != null) {
+ entries[_AFT] = input[_AFT];
+ }
+ return entries;
+}, "se_DeploymentTargets");
+var se_DeregisterTypeInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_Ar] != null) {
+ entries[_Ar] = input[_Ar];
+ }
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_VI] != null) {
+ entries[_VI] = input[_VI];
+ }
+ return entries;
+}, "se_DeregisterTypeInput");
+var se_DescribeAccountLimitsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ return entries;
+}, "se_DescribeAccountLimitsInput");
+var se_DescribeChangeSetHooksInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_CSN] != null) {
+ entries[_CSN] = input[_CSN];
+ }
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_LRI] != null) {
+ entries[_LRI] = input[_LRI];
+ }
+ return entries;
+}, "se_DescribeChangeSetHooksInput");
+var se_DescribeChangeSetInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_CSN] != null) {
+ entries[_CSN] = input[_CSN];
+ }
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_IPV] != null) {
+ entries[_IPV] = input[_IPV];
+ }
+ return entries;
+}, "se_DescribeChangeSetInput");
+var se_DescribeGeneratedTemplateInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_GTN] != null) {
+ entries[_GTN] = input[_GTN];
+ }
+ return entries;
+}, "se_DescribeGeneratedTemplateInput");
+var se_DescribeOrganizationsAccessInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_DescribeOrganizationsAccessInput");
+var se_DescribePublisherInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_PI] != null) {
+ entries[_PI] = input[_PI];
+ }
+ return entries;
+}, "se_DescribePublisherInput");
+var se_DescribeResourceScanInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RSI] != null) {
+ entries[_RSI] = input[_RSI];
+ }
+ return entries;
+}, "se_DescribeResourceScanInput");
+var se_DescribeStackDriftDetectionStatusInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SDDI] != null) {
+ entries[_SDDI] = input[_SDDI];
+ }
+ return entries;
+}, "se_DescribeStackDriftDetectionStatusInput");
+var se_DescribeStackEventsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ return entries;
+}, "se_DescribeStackEventsInput");
+var se_DescribeStackInstanceInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_SIA] != null) {
+ entries[_SIA] = input[_SIA];
+ }
+ if (input[_SIR] != null) {
+ entries[_SIR] = input[_SIR];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_DescribeStackInstanceInput");
+var se_DescribeStackRefactorInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SRI] != null) {
+ entries[_SRI] = input[_SRI];
+ }
+ return entries;
+}, "se_DescribeStackRefactorInput");
+var se_DescribeStackResourceDriftsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_SRDSF] != null) {
+ const memberEntries = se_StackResourceDriftStatusFilters(input[_SRDSF], context);
+ if (input[_SRDSF]?.length === 0) {
+ entries.StackResourceDriftStatusFilters = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `StackResourceDriftStatusFilters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ return entries;
+}, "se_DescribeStackResourceDriftsInput");
+var se_DescribeStackResourceInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_LRI] != null) {
+ entries[_LRI] = input[_LRI];
+ }
+ return entries;
+}, "se_DescribeStackResourceInput");
+var se_DescribeStackResourcesInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_LRI] != null) {
+ entries[_LRI] = input[_LRI];
+ }
+ if (input[_PRI] != null) {
+ entries[_PRI] = input[_PRI];
+ }
+ return entries;
+}, "se_DescribeStackResourcesInput");
+var se_DescribeStackSetInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_DescribeStackSetInput");
+var se_DescribeStackSetOperationInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_OI] != null) {
+ entries[_OI] = input[_OI];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_DescribeStackSetOperationInput");
+var se_DescribeStacksInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ return entries;
+}, "se_DescribeStacksInput");
+var se_DescribeTypeInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_Ar] != null) {
+ entries[_Ar] = input[_Ar];
+ }
+ if (input[_VI] != null) {
+ entries[_VI] = input[_VI];
+ }
+ if (input[_PI] != null) {
+ entries[_PI] = input[_PI];
+ }
+ if (input[_PVN] != null) {
+ entries[_PVN] = input[_PVN];
+ }
+ return entries;
+}, "se_DescribeTypeInput");
+var se_DescribeTypeRegistrationInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RTeg] != null) {
+ entries[_RTeg] = input[_RTeg];
+ }
+ return entries;
+}, "se_DescribeTypeRegistrationInput");
+var se_DetectStackDriftInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_LRIo] != null) {
+ const memberEntries = se_LogicalResourceIds(input[_LRIo], context);
+ if (input[_LRIo]?.length === 0) {
+ entries.LogicalResourceIds = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `LogicalResourceIds.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_DetectStackDriftInput");
+var se_DetectStackResourceDriftInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_LRI] != null) {
+ entries[_LRI] = input[_LRI];
+ }
+ return entries;
+}, "se_DetectStackResourceDriftInput");
+var se_DetectStackSetDriftInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_OP] != null) {
+ const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `OperationPreferences.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_OI] === void 0) {
+ input[_OI] = (0, import_uuid.v4)();
+ }
+ if (input[_OI] != null) {
+ entries[_OI] = input[_OI];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_DetectStackSetDriftInput");
+var se_EstimateTemplateCostInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_TB] != null) {
+ entries[_TB] = input[_TB];
+ }
+ if (input[_TURL] != null) {
+ entries[_TURL] = input[_TURL];
+ }
+ if (input[_P] != null) {
+ const memberEntries = se_Parameters(input[_P], context);
+ if (input[_P]?.length === 0) {
+ entries.Parameters = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Parameters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_EstimateTemplateCostInput");
+var se_ExecuteChangeSetInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_CSN] != null) {
+ entries[_CSN] = input[_CSN];
+ }
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ if (input[_DR] != null) {
+ entries[_DR] = input[_DR];
+ }
+ if (input[_REOC] != null) {
+ entries[_REOC] = input[_REOC];
+ }
+ return entries;
+}, "se_ExecuteChangeSetInput");
+var se_ExecuteStackRefactorInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SRI] != null) {
+ entries[_SRI] = input[_SRI];
+ }
+ return entries;
+}, "se_ExecuteStackRefactorInput");
+var se_GetGeneratedTemplateInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_F] != null) {
+ entries[_F] = input[_F];
+ }
+ if (input[_GTN] != null) {
+ entries[_GTN] = input[_GTN];
+ }
+ return entries;
+}, "se_GetGeneratedTemplateInput");
+var se_GetStackPolicyInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ return entries;
+}, "se_GetStackPolicyInput");
+var se_GetTemplateInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_CSN] != null) {
+ entries[_CSN] = input[_CSN];
+ }
+ if (input[_TS] != null) {
+ entries[_TS] = input[_TS];
+ }
+ return entries;
+}, "se_GetTemplateInput");
+var se_GetTemplateSummaryInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_TB] != null) {
+ entries[_TB] = input[_TB];
+ }
+ if (input[_TURL] != null) {
+ entries[_TURL] = input[_TURL];
+ }
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ if (input[_TSC] != null) {
+ const memberEntries = se_TemplateSummaryConfig(input[_TSC], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `TemplateSummaryConfig.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_GetTemplateSummaryInput");
+var se_ImportStacksToStackSetInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_SIt] != null) {
+ const memberEntries = se_StackIdList(input[_SIt], context);
+ if (input[_SIt]?.length === 0) {
+ entries.StackIds = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `StackIds.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_SIU] != null) {
+ entries[_SIU] = input[_SIU];
+ }
+ if (input[_OUI] != null) {
+ const memberEntries = se_OrganizationalUnitIdList(input[_OUI], context);
+ if (input[_OUI]?.length === 0) {
+ entries.OrganizationalUnitIds = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `OrganizationalUnitIds.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_OP] != null) {
+ const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `OperationPreferences.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_OI] === void 0) {
+ input[_OI] = (0, import_uuid.v4)();
+ }
+ if (input[_OI] != null) {
+ entries[_OI] = input[_OI];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_ImportStacksToStackSetInput");
+var se_JazzLogicalResourceIds = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_JazzLogicalResourceIds");
+var se_JazzResourceIdentifierProperties = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ Object.keys(input).filter((key) => input[key] != null).forEach((key) => {
+ entries[`entry.${counter}.key`] = key;
+ entries[`entry.${counter}.value`] = input[key];
+ counter++;
+ });
+ return entries;
+}, "se_JazzResourceIdentifierProperties");
+var se_ListChangeSetsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ return entries;
+}, "se_ListChangeSetsInput");
+var se_ListExportsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ return entries;
+}, "se_ListExportsInput");
+var se_ListGeneratedTemplatesInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ return entries;
+}, "se_ListGeneratedTemplatesInput");
+var se_ListHookResultsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_TTa] != null) {
+ entries[_TTa] = input[_TTa];
+ }
+ if (input[_TI] != null) {
+ entries[_TI] = input[_TI];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ return entries;
+}, "se_ListHookResultsInput");
+var se_ListImportsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_EN] != null) {
+ entries[_EN] = input[_EN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ return entries;
+}, "se_ListImportsInput");
+var se_ListResourceScanRelatedResourcesInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RSI] != null) {
+ entries[_RSI] = input[_RSI];
+ }
+ if (input[_R] != null) {
+ const memberEntries = se_ScannedResourceIdentifiers(input[_R], context);
+ if (input[_R]?.length === 0) {
+ entries.Resources = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Resources.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ return entries;
+}, "se_ListResourceScanRelatedResourcesInput");
+var se_ListResourceScanResourcesInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RSI] != null) {
+ entries[_RSI] = input[_RSI];
+ }
+ if (input[_RI] != null) {
+ entries[_RI] = input[_RI];
+ }
+ if (input[_RTP] != null) {
+ entries[_RTP] = input[_RTP];
+ }
+ if (input[_TK] != null) {
+ entries[_TK] = input[_TK];
+ }
+ if (input[_TV] != null) {
+ entries[_TV] = input[_TV];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ return entries;
+}, "se_ListResourceScanResourcesInput");
+var se_ListResourceScansInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ if (input[_STF] != null) {
+ entries[_STF] = input[_STF];
+ }
+ return entries;
+}, "se_ListResourceScansInput");
+var se_ListStackInstanceResourceDriftsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ if (input[_SIRDS] != null) {
+ const memberEntries = se_StackResourceDriftStatusFilters(input[_SIRDS], context);
+ if (input[_SIRDS]?.length === 0) {
+ entries.StackInstanceResourceDriftStatuses = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `StackInstanceResourceDriftStatuses.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_SIA] != null) {
+ entries[_SIA] = input[_SIA];
+ }
+ if (input[_SIR] != null) {
+ entries[_SIR] = input[_SIR];
+ }
+ if (input[_OI] != null) {
+ entries[_OI] = input[_OI];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_ListStackInstanceResourceDriftsInput");
+var se_ListStackInstancesInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ if (input[_Fi] != null) {
+ const memberEntries = se_StackInstanceFilters(input[_Fi], context);
+ if (input[_Fi]?.length === 0) {
+ entries.Filters = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Filters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_SIA] != null) {
+ entries[_SIA] = input[_SIA];
+ }
+ if (input[_SIR] != null) {
+ entries[_SIR] = input[_SIR];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_ListStackInstancesInput");
+var se_ListStackRefactorActionsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SRI] != null) {
+ entries[_SRI] = input[_SRI];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ return entries;
+}, "se_ListStackRefactorActionsInput");
+var se_ListStackRefactorsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_ESF] != null) {
+ const memberEntries = se_StackRefactorExecutionStatusFilter(input[_ESF], context);
+ if (input[_ESF]?.length === 0) {
+ entries.ExecutionStatusFilter = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ExecutionStatusFilter.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ return entries;
+}, "se_ListStackRefactorsInput");
+var se_ListStackResourcesInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ return entries;
+}, "se_ListStackResourcesInput");
+var se_ListStackSetAutoDeploymentTargetsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_ListStackSetAutoDeploymentTargetsInput");
+var se_ListStackSetOperationResultsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_OI] != null) {
+ entries[_OI] = input[_OI];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ if (input[_Fi] != null) {
+ const memberEntries = se_OperationResultFilters(input[_Fi], context);
+ if (input[_Fi]?.length === 0) {
+ entries.Filters = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Filters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_ListStackSetOperationResultsInput");
+var se_ListStackSetOperationsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_ListStackSetOperationsInput");
+var se_ListStackSetsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ if (input[_S] != null) {
+ entries[_S] = input[_S];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_ListStackSetsInput");
+var se_ListStacksInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_SSF] != null) {
+ const memberEntries = se_StackStatusFilter(input[_SSF], context);
+ if (input[_SSF]?.length === 0) {
+ entries.StackStatusFilter = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `StackStatusFilter.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_ListStacksInput");
+var se_ListTypeRegistrationsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_TA] != null) {
+ entries[_TA] = input[_TA];
+ }
+ if (input[_RSF] != null) {
+ entries[_RSF] = input[_RSF];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ return entries;
+}, "se_ListTypeRegistrationsInput");
+var se_ListTypesInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_Vi] != null) {
+ entries[_Vi] = input[_Vi];
+ }
+ if (input[_PTr] != null) {
+ entries[_PTr] = input[_PTr];
+ }
+ if (input[_DSep] != null) {
+ entries[_DSep] = input[_DSep];
+ }
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_Fi] != null) {
+ const memberEntries = se_TypeFilters(input[_Fi], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Filters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ return entries;
+}, "se_ListTypesInput");
+var se_ListTypeVersionsInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_Ar] != null) {
+ entries[_Ar] = input[_Ar];
+ }
+ if (input[_MR] != null) {
+ entries[_MR] = input[_MR];
+ }
+ if (input[_NT] != null) {
+ entries[_NT] = input[_NT];
+ }
+ if (input[_DSep] != null) {
+ entries[_DSep] = input[_DSep];
+ }
+ if (input[_PI] != null) {
+ entries[_PI] = input[_PI];
+ }
+ return entries;
+}, "se_ListTypeVersionsInput");
+var se_LoggingConfig = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_LRA] != null) {
+ entries[_LRA] = input[_LRA];
+ }
+ if (input[_LGN] != null) {
+ entries[_LGN] = input[_LGN];
+ }
+ return entries;
+}, "se_LoggingConfig");
+var se_LogicalResourceIds = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_LogicalResourceIds");
+var se_ManagedExecution = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_Act] != null) {
+ entries[_Act] = input[_Act];
+ }
+ return entries;
+}, "se_ManagedExecution");
+var se_NotificationARNs = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_NotificationARNs");
+var se_OperationResultFilter = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_N] != null) {
+ entries[_N] = input[_N];
+ }
+ if (input[_Va] != null) {
+ entries[_Va] = input[_Va];
+ }
+ return entries;
+}, "se_OperationResultFilter");
+var se_OperationResultFilters = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_OperationResultFilter(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_OperationResultFilters");
+var se_OrganizationalUnitIdList = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_OrganizationalUnitIdList");
+var se_Parameter = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_PK] != null) {
+ entries[_PK] = input[_PK];
+ }
+ if (input[_PV] != null) {
+ entries[_PV] = input[_PV];
+ }
+ if (input[_UPV] != null) {
+ entries[_UPV] = input[_UPV];
+ }
+ if (input[_RV] != null) {
+ entries[_RV] = input[_RV];
+ }
+ return entries;
+}, "se_Parameter");
+var se_Parameters = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_Parameter(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_Parameters");
+var se_PublishTypeInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_Ar] != null) {
+ entries[_Ar] = input[_Ar];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_PVN] != null) {
+ entries[_PVN] = input[_PVN];
+ }
+ return entries;
+}, "se_PublishTypeInput");
+var se_RecordHandlerProgressInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_BT] != null) {
+ entries[_BT] = input[_BT];
+ }
+ if (input[_OS] != null) {
+ entries[_OS] = input[_OS];
+ }
+ if (input[_COS] != null) {
+ entries[_COS] = input[_COS];
+ }
+ if (input[_SM] != null) {
+ entries[_SM] = input[_SM];
+ }
+ if (input[_EC] != null) {
+ entries[_EC] = input[_EC];
+ }
+ if (input[_RMe] != null) {
+ entries[_RMe] = input[_RMe];
+ }
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ return entries;
+}, "se_RecordHandlerProgressInput");
+var se_RegionList = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_RegionList");
+var se_RegisterPublisherInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_ATAC] != null) {
+ entries[_ATAC] = input[_ATAC];
+ }
+ if (input[_CAo] != null) {
+ entries[_CAo] = input[_CAo];
+ }
+ return entries;
+}, "se_RegisterPublisherInput");
+var se_RegisterTypeInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_SHP] != null) {
+ entries[_SHP] = input[_SHP];
+ }
+ if (input[_LC] != null) {
+ const memberEntries = se_LoggingConfig(input[_LC], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `LoggingConfig.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_ERA] != null) {
+ entries[_ERA] = input[_ERA];
+ }
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ return entries;
+}, "se_RegisterTypeInput");
+var se_ResourceDefinition = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RTes] != null) {
+ entries[_RTes] = input[_RTes];
+ }
+ if (input[_LRI] != null) {
+ entries[_LRI] = input[_LRI];
+ }
+ if (input[_RI] != null) {
+ const memberEntries = se_ResourceIdentifierProperties(input[_RI], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ResourceIdentifier.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_ResourceDefinition");
+var se_ResourceDefinitions = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_ResourceDefinition(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_ResourceDefinitions");
+var se_ResourceIdentifierProperties = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ Object.keys(input).filter((key) => input[key] != null).forEach((key) => {
+ entries[`entry.${counter}.key`] = key;
+ entries[`entry.${counter}.value`] = input[key];
+ counter++;
+ });
+ return entries;
+}, "se_ResourceIdentifierProperties");
+var se_ResourceLocation = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_LRI] != null) {
+ entries[_LRI] = input[_LRI];
+ }
+ return entries;
+}, "se_ResourceLocation");
+var se_ResourceMapping = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_So] != null) {
+ const memberEntries = se_ResourceLocation(input[_So], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Source.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_De] != null) {
+ const memberEntries = se_ResourceLocation(input[_De], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Destination.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_ResourceMapping");
+var se_ResourceMappings = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_ResourceMapping(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_ResourceMappings");
+var se_ResourcesToImport = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_ResourceToImport(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_ResourcesToImport");
+var se_ResourcesToSkip = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_ResourcesToSkip");
+var se_ResourceToImport = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RTes] != null) {
+ entries[_RTes] = input[_RTes];
+ }
+ if (input[_LRI] != null) {
+ entries[_LRI] = input[_LRI];
+ }
+ if (input[_RI] != null) {
+ const memberEntries = se_ResourceIdentifierProperties(input[_RI], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ResourceIdentifier.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_ResourceToImport");
+var se_ResourceTypeFilters = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_ResourceTypeFilters");
+var se_ResourceTypes = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_ResourceTypes");
+var se_RetainResources = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_RetainResources");
+var se_RollbackConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RTo] != null) {
+ const memberEntries = se_RollbackTriggers(input[_RTo], context);
+ if (input[_RTo]?.length === 0) {
+ entries.RollbackTriggers = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `RollbackTriggers.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_MTIM] != null) {
+ entries[_MTIM] = input[_MTIM];
+ }
+ return entries;
+}, "se_RollbackConfiguration");
+var se_RollbackStackInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_RARN] != null) {
+ entries[_RARN] = input[_RARN];
+ }
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ if (input[_REOC] != null) {
+ entries[_REOC] = input[_REOC];
+ }
+ return entries;
+}, "se_RollbackStackInput");
+var se_RollbackTrigger = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_Ar] != null) {
+ entries[_Ar] = input[_Ar];
+ }
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ return entries;
+}, "se_RollbackTrigger");
+var se_RollbackTriggers = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_RollbackTrigger(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_RollbackTriggers");
+var se_ScanFilter = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_Ty] != null) {
+ const memberEntries = se_ResourceTypeFilters(input[_Ty], context);
+ if (input[_Ty]?.length === 0) {
+ entries.Types = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Types.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_ScanFilter");
+var se_ScanFilters = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_ScanFilter(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_ScanFilters");
+var se_ScannedResourceIdentifier = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RTes] != null) {
+ entries[_RTes] = input[_RTes];
+ }
+ if (input[_RI] != null) {
+ const memberEntries = se_JazzResourceIdentifierProperties(input[_RI], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ResourceIdentifier.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_ScannedResourceIdentifier");
+var se_ScannedResourceIdentifiers = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_ScannedResourceIdentifier(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_ScannedResourceIdentifiers");
+var se_SetStackPolicyInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_SPB] != null) {
+ entries[_SPB] = input[_SPB];
+ }
+ if (input[_SPURL] != null) {
+ entries[_SPURL] = input[_SPURL];
+ }
+ return entries;
+}, "se_SetStackPolicyInput");
+var se_SetTypeConfigurationInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_TA] != null) {
+ entries[_TA] = input[_TA];
+ }
+ if (input[_Co] != null) {
+ entries[_Co] = input[_Co];
+ }
+ if (input[_CAon] != null) {
+ entries[_CAon] = input[_CAon];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ return entries;
+}, "se_SetTypeConfigurationInput");
+var se_SetTypeDefaultVersionInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_Ar] != null) {
+ entries[_Ar] = input[_Ar];
+ }
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_VI] != null) {
+ entries[_VI] = input[_VI];
+ }
+ return entries;
+}, "se_SetTypeDefaultVersionInput");
+var se_SignalResourceInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_LRI] != null) {
+ entries[_LRI] = input[_LRI];
+ }
+ if (input[_UI] != null) {
+ entries[_UI] = input[_UI];
+ }
+ if (input[_S] != null) {
+ entries[_S] = input[_S];
+ }
+ return entries;
+}, "se_SignalResourceInput");
+var se_StackDefinition = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_TB] != null) {
+ entries[_TB] = input[_TB];
+ }
+ if (input[_TURL] != null) {
+ entries[_TURL] = input[_TURL];
+ }
+ return entries;
+}, "se_StackDefinition");
+var se_StackDefinitions = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_StackDefinition(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_StackDefinitions");
+var se_StackIdList = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_StackIdList");
+var se_StackInstanceFilter = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_N] != null) {
+ entries[_N] = input[_N];
+ }
+ if (input[_Va] != null) {
+ entries[_Va] = input[_Va];
+ }
+ return entries;
+}, "se_StackInstanceFilter");
+var se_StackInstanceFilters = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_StackInstanceFilter(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_StackInstanceFilters");
+var se_StackRefactorExecutionStatusFilter = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_StackRefactorExecutionStatusFilter");
+var se_StackResourceDriftStatusFilters = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_StackResourceDriftStatusFilters");
+var se_StackSetOperationPreferences = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RCT] != null) {
+ entries[_RCT] = input[_RCT];
+ }
+ if (input[_RO] != null) {
+ const memberEntries = se_RegionList(input[_RO], context);
+ if (input[_RO]?.length === 0) {
+ entries.RegionOrder = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `RegionOrder.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_FTC] != null) {
+ entries[_FTC] = input[_FTC];
+ }
+ if (input[_FTP] != null) {
+ entries[_FTP] = input[_FTP];
+ }
+ if (input[_MCC] != null) {
+ entries[_MCC] = input[_MCC];
+ }
+ if (input[_MCP] != null) {
+ entries[_MCP] = input[_MCP];
+ }
+ if (input[_CM] != null) {
+ entries[_CM] = input[_CM];
+ }
+ return entries;
+}, "se_StackSetOperationPreferences");
+var se_StackStatusFilter = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_StackStatusFilter");
+var se_StartResourceScanInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ if (input[_SF] != null) {
+ const memberEntries = se_ScanFilters(input[_SF], context);
+ if (input[_SF]?.length === 0) {
+ entries.ScanFilters = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ScanFilters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_StartResourceScanInput");
+var se_StopStackSetOperationInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_OI] != null) {
+ entries[_OI] = input[_OI];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_StopStackSetOperationInput");
+var se_Tag = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_K] != null) {
+ entries[_K] = input[_K];
+ }
+ if (input[_Val] != null) {
+ entries[_Val] = input[_Val];
+ }
+ return entries;
+}, "se_Tag");
+var se_Tags = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_Tag(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_Tags");
+var se_TemplateConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_DPe] != null) {
+ entries[_DPe] = input[_DPe];
+ }
+ if (input[_URP] != null) {
+ entries[_URP] = input[_URP];
+ }
+ return entries;
+}, "se_TemplateConfiguration");
+var se_TemplateSummaryConfig = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_TURTAW] != null) {
+ entries[_TURTAW] = input[_TURTAW];
+ }
+ return entries;
+}, "se_TemplateSummaryConfig");
+var se_TestTypeInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_Ar] != null) {
+ entries[_Ar] = input[_Ar];
+ }
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ if (input[_VI] != null) {
+ entries[_VI] = input[_VI];
+ }
+ if (input[_LDB] != null) {
+ entries[_LDB] = input[_LDB];
+ }
+ return entries;
+}, "se_TestTypeInput");
+var se_TypeConfigurationIdentifier = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_TA] != null) {
+ entries[_TA] = input[_TA];
+ }
+ if (input[_TCA] != null) {
+ entries[_TCA] = input[_TCA];
+ }
+ if (input[_TCAy] != null) {
+ entries[_TCAy] = input[_TCAy];
+ }
+ if (input[_T] != null) {
+ entries[_T] = input[_T];
+ }
+ if (input[_TN] != null) {
+ entries[_TN] = input[_TN];
+ }
+ return entries;
+}, "se_TypeConfigurationIdentifier");
+var se_TypeConfigurationIdentifiers = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_TypeConfigurationIdentifier(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_TypeConfigurationIdentifiers");
+var se_TypeFilters = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_Ca] != null) {
+ entries[_Ca] = input[_Ca];
+ }
+ if (input[_PI] != null) {
+ entries[_PI] = input[_PI];
+ }
+ if (input[_TNP] != null) {
+ entries[_TNP] = input[_TNP];
+ }
+ return entries;
+}, "se_TypeFilters");
+var se_UpdateGeneratedTemplateInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_GTN] != null) {
+ entries[_GTN] = input[_GTN];
+ }
+ if (input[_NGTN] != null) {
+ entries[_NGTN] = input[_NGTN];
+ }
+ if (input[_AR] != null) {
+ const memberEntries = se_ResourceDefinitions(input[_AR], context);
+ if (input[_AR]?.length === 0) {
+ entries.AddResources = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `AddResources.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_RRe] != null) {
+ const memberEntries = se_JazzLogicalResourceIds(input[_RRe], context);
+ if (input[_RRe]?.length === 0) {
+ entries.RemoveResources = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `RemoveResources.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_RAR] != null) {
+ entries[_RAR] = input[_RAR];
+ }
+ if (input[_TC] != null) {
+ const memberEntries = se_TemplateConfiguration(input[_TC], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `TemplateConfiguration.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_UpdateGeneratedTemplateInput");
+var se_UpdateStackInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_TB] != null) {
+ entries[_TB] = input[_TB];
+ }
+ if (input[_TURL] != null) {
+ entries[_TURL] = input[_TURL];
+ }
+ if (input[_UPT] != null) {
+ entries[_UPT] = input[_UPT];
+ }
+ if (input[_SPDUB] != null) {
+ entries[_SPDUB] = input[_SPDUB];
+ }
+ if (input[_SPDUURL] != null) {
+ entries[_SPDUURL] = input[_SPDUURL];
+ }
+ if (input[_P] != null) {
+ const memberEntries = se_Parameters(input[_P], context);
+ if (input[_P]?.length === 0) {
+ entries.Parameters = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Parameters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_C] != null) {
+ const memberEntries = se_Capabilities(input[_C], context);
+ if (input[_C]?.length === 0) {
+ entries.Capabilities = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Capabilities.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_RTe] != null) {
+ const memberEntries = se_ResourceTypes(input[_RTe], context);
+ if (input[_RTe]?.length === 0) {
+ entries.ResourceTypes = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ResourceTypes.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_RARN] != null) {
+ entries[_RARN] = input[_RARN];
+ }
+ if (input[_RC] != null) {
+ const memberEntries = se_RollbackConfiguration(input[_RC], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `RollbackConfiguration.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_SPB] != null) {
+ entries[_SPB] = input[_SPB];
+ }
+ if (input[_SPURL] != null) {
+ entries[_SPURL] = input[_SPURL];
+ }
+ if (input[_NARN] != null) {
+ const memberEntries = se_NotificationARNs(input[_NARN], context);
+ if (input[_NARN]?.length === 0) {
+ entries.NotificationARNs = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `NotificationARNs.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_Ta] != null) {
+ const memberEntries = se_Tags(input[_Ta], context);
+ if (input[_Ta]?.length === 0) {
+ entries.Tags = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Tags.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_DR] != null) {
+ entries[_DR] = input[_DR];
+ }
+ if (input[_CRT] != null) {
+ entries[_CRT] = input[_CRT];
+ }
+ if (input[_REOC] != null) {
+ entries[_REOC] = input[_REOC];
+ }
+ return entries;
+}, "se_UpdateStackInput");
+var se_UpdateStackInstancesInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_Ac] != null) {
+ const memberEntries = se_AccountList(input[_Ac], context);
+ if (input[_Ac]?.length === 0) {
+ entries.Accounts = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Accounts.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_DTep] != null) {
+ const memberEntries = se_DeploymentTargets(input[_DTep], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `DeploymentTargets.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_Re] != null) {
+ const memberEntries = se_RegionList(input[_Re], context);
+ if (input[_Re]?.length === 0) {
+ entries.Regions = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Regions.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_PO] != null) {
+ const memberEntries = se_Parameters(input[_PO], context);
+ if (input[_PO]?.length === 0) {
+ entries.ParameterOverrides = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ParameterOverrides.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_OP] != null) {
+ const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `OperationPreferences.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_OI] === void 0) {
+ input[_OI] = (0, import_uuid.v4)();
+ }
+ if (input[_OI] != null) {
+ entries[_OI] = input[_OI];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_UpdateStackInstancesInput");
+var se_UpdateStackSetInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_SSN] != null) {
+ entries[_SSN] = input[_SSN];
+ }
+ if (input[_D] != null) {
+ entries[_D] = input[_D];
+ }
+ if (input[_TB] != null) {
+ entries[_TB] = input[_TB];
+ }
+ if (input[_TURL] != null) {
+ entries[_TURL] = input[_TURL];
+ }
+ if (input[_UPT] != null) {
+ entries[_UPT] = input[_UPT];
+ }
+ if (input[_P] != null) {
+ const memberEntries = se_Parameters(input[_P], context);
+ if (input[_P]?.length === 0) {
+ entries.Parameters = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Parameters.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_C] != null) {
+ const memberEntries = se_Capabilities(input[_C], context);
+ if (input[_C]?.length === 0) {
+ entries.Capabilities = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Capabilities.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_Ta] != null) {
+ const memberEntries = se_Tags(input[_Ta], context);
+ if (input[_Ta]?.length === 0) {
+ entries.Tags = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Tags.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_OP] != null) {
+ const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `OperationPreferences.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_ARARN] != null) {
+ entries[_ARARN] = input[_ARARN];
+ }
+ if (input[_ERN] != null) {
+ entries[_ERN] = input[_ERN];
+ }
+ if (input[_DTep] != null) {
+ const memberEntries = se_DeploymentTargets(input[_DTep], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `DeploymentTargets.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_PM] != null) {
+ entries[_PM] = input[_PM];
+ }
+ if (input[_AD] != null) {
+ const memberEntries = se_AutoDeployment(input[_AD], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `AutoDeployment.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_OI] === void 0) {
+ input[_OI] = (0, import_uuid.v4)();
+ }
+ if (input[_OI] != null) {
+ entries[_OI] = input[_OI];
+ }
+ if (input[_Ac] != null) {
+ const memberEntries = se_AccountList(input[_Ac], context);
+ if (input[_Ac]?.length === 0) {
+ entries.Accounts = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Accounts.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_Re] != null) {
+ const memberEntries = se_RegionList(input[_Re], context);
+ if (input[_Re]?.length === 0) {
+ entries.Regions = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Regions.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ if (input[_ME] != null) {
+ const memberEntries = se_ManagedExecution(input[_ME], context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ManagedExecution.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_UpdateStackSetInput");
+var se_UpdateTerminationProtectionInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_ETP] != null) {
+ entries[_ETP] = input[_ETP];
+ }
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ return entries;
+}, "se_UpdateTerminationProtectionInput");
+var se_ValidateTemplateInput = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_TB] != null) {
+ entries[_TB] = input[_TB];
+ }
+ if (input[_TURL] != null) {
+ entries[_TURL] = input[_TURL];
+ }
+ return entries;
+}, "se_ValidateTemplateInput");
+var de_AccountGateResult = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ return contents;
+}, "de_AccountGateResult");
+var de_AccountLimit = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_N] != null) {
+ contents[_N] = (0, import_smithy_client.expectString)(output[_N]);
+ }
+ if (output[_Val] != null) {
+ contents[_Val] = (0, import_smithy_client.strictParseInt32)(output[_Val]);
+ }
+ return contents;
+}, "de_AccountLimit");
+var de_AccountLimitList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_AccountLimit(entry, context);
+ });
+}, "de_AccountLimitList");
+var de_AccountList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_AccountList");
+var de_ActivateOrganizationsAccessOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_ActivateOrganizationsAccessOutput");
+var de_ActivateTypeOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Ar] != null) {
+ contents[_Ar] = (0, import_smithy_client.expectString)(output[_Ar]);
+ }
+ return contents;
+}, "de_ActivateTypeOutput");
+var de_AllowedValues = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_AllowedValues");
+var de_AlreadyExistsException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_AlreadyExistsException");
+var de_AutoDeployment = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_E] != null) {
+ contents[_E] = (0, import_smithy_client.parseBoolean)(output[_E]);
+ }
+ if (output[_RSOAR] != null) {
+ contents[_RSOAR] = (0, import_smithy_client.parseBoolean)(output[_RSOAR]);
+ }
+ return contents;
+}, "de_AutoDeployment");
+var de_BatchDescribeTypeConfigurationsError = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_EC] != null) {
+ contents[_EC] = (0, import_smithy_client.expectString)(output[_EC]);
+ }
+ if (output[_EM] != null) {
+ contents[_EM] = (0, import_smithy_client.expectString)(output[_EM]);
+ }
+ if (output[_TCIy] != null) {
+ contents[_TCIy] = de_TypeConfigurationIdentifier(output[_TCIy], context);
+ }
+ return contents;
+}, "de_BatchDescribeTypeConfigurationsError");
+var de_BatchDescribeTypeConfigurationsErrors = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_BatchDescribeTypeConfigurationsError(entry, context);
+ });
+}, "de_BatchDescribeTypeConfigurationsErrors");
+var de_BatchDescribeTypeConfigurationsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Errors === "") {
+ contents[_Er] = [];
+ } else if (output[_Er] != null && output[_Er][_m] != null) {
+ contents[_Er] = de_BatchDescribeTypeConfigurationsErrors((0, import_smithy_client.getArrayIfSingleItem)(output[_Er][_m]), context);
+ }
+ if (output.UnprocessedTypeConfigurations === "") {
+ contents[_UTC] = [];
+ } else if (output[_UTC] != null && output[_UTC][_m] != null) {
+ contents[_UTC] = de_UnprocessedTypeConfigurations((0, import_smithy_client.getArrayIfSingleItem)(output[_UTC][_m]), context);
+ }
+ if (output.TypeConfigurations === "") {
+ contents[_TCy] = [];
+ } else if (output[_TCy] != null && output[_TCy][_m] != null) {
+ contents[_TCy] = de_TypeConfigurationDetailsList((0, import_smithy_client.getArrayIfSingleItem)(output[_TCy][_m]), context);
+ }
+ return contents;
+}, "de_BatchDescribeTypeConfigurationsOutput");
+var de_Capabilities = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_Capabilities");
+var de_CFNRegistryException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_CFNRegistryException");
+var de_Change = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_T] != null) {
+ contents[_T] = (0, import_smithy_client.expectString)(output[_T]);
+ }
+ if (output[_HIC] != null) {
+ contents[_HIC] = (0, import_smithy_client.strictParseInt32)(output[_HIC]);
+ }
+ if (output[_RCe] != null) {
+ contents[_RCe] = de_ResourceChange(output[_RCe], context);
+ }
+ return contents;
+}, "de_Change");
+var de_Changes = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Change(entry, context);
+ });
+}, "de_Changes");
+var de_ChangeSetHook = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_IP] != null) {
+ contents[_IP] = (0, import_smithy_client.expectString)(output[_IP]);
+ }
+ if (output[_FM] != null) {
+ contents[_FM] = (0, import_smithy_client.expectString)(output[_FM]);
+ }
+ if (output[_TN] != null) {
+ contents[_TN] = (0, import_smithy_client.expectString)(output[_TN]);
+ }
+ if (output[_TVI] != null) {
+ contents[_TVI] = (0, import_smithy_client.expectString)(output[_TVI]);
+ }
+ if (output[_TCVI] != null) {
+ contents[_TCVI] = (0, import_smithy_client.expectString)(output[_TCVI]);
+ }
+ if (output[_TD] != null) {
+ contents[_TD] = de_ChangeSetHookTargetDetails(output[_TD], context);
+ }
+ return contents;
+}, "de_ChangeSetHook");
+var de_ChangeSetHookResourceTargetDetails = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_LRI] != null) {
+ contents[_LRI] = (0, import_smithy_client.expectString)(output[_LRI]);
+ }
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output[_RA] != null) {
+ contents[_RA] = (0, import_smithy_client.expectString)(output[_RA]);
+ }
+ return contents;
+}, "de_ChangeSetHookResourceTargetDetails");
+var de_ChangeSetHooks = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ChangeSetHook(entry, context);
+ });
+}, "de_ChangeSetHooks");
+var de_ChangeSetHookTargetDetails = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_TTa] != null) {
+ contents[_TTa] = (0, import_smithy_client.expectString)(output[_TTa]);
+ }
+ if (output[_RTD] != null) {
+ contents[_RTD] = de_ChangeSetHookResourceTargetDetails(output[_RTD], context);
+ }
+ return contents;
+}, "de_ChangeSetHookTargetDetails");
+var de_ChangeSetNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_ChangeSetNotFoundException");
+var de_ChangeSetSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ChangeSetSummary(entry, context);
+ });
+}, "de_ChangeSetSummaries");
+var de_ChangeSetSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_SN] != null) {
+ contents[_SN] = (0, import_smithy_client.expectString)(output[_SN]);
+ }
+ if (output[_CSIh] != null) {
+ contents[_CSIh] = (0, import_smithy_client.expectString)(output[_CSIh]);
+ }
+ if (output[_CSN] != null) {
+ contents[_CSN] = (0, import_smithy_client.expectString)(output[_CSN]);
+ }
+ if (output[_ES] != null) {
+ contents[_ES] = (0, import_smithy_client.expectString)(output[_ES]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output[_CTr] != null) {
+ contents[_CTr] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CTr]));
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_INS] != null) {
+ contents[_INS] = (0, import_smithy_client.parseBoolean)(output[_INS]);
+ }
+ if (output[_PCSI] != null) {
+ contents[_PCSI] = (0, import_smithy_client.expectString)(output[_PCSI]);
+ }
+ if (output[_RCSI] != null) {
+ contents[_RCSI] = (0, import_smithy_client.expectString)(output[_RCSI]);
+ }
+ if (output[_IER] != null) {
+ contents[_IER] = (0, import_smithy_client.parseBoolean)(output[_IER]);
+ }
+ return contents;
+}, "de_ChangeSetSummary");
+var de_ConcurrentResourcesLimitExceededException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_ConcurrentResourcesLimitExceededException");
+var de_ContinueUpdateRollbackOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_ContinueUpdateRollbackOutput");
+var de_CreateChangeSetOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_I] != null) {
+ contents[_I] = (0, import_smithy_client.expectString)(output[_I]);
+ }
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ return contents;
+}, "de_CreateChangeSetOutput");
+var de_CreatedButModifiedException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_CreatedButModifiedException");
+var de_CreateGeneratedTemplateOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_GTI] != null) {
+ contents[_GTI] = (0, import_smithy_client.expectString)(output[_GTI]);
+ }
+ return contents;
+}, "de_CreateGeneratedTemplateOutput");
+var de_CreateStackInstancesOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OI] != null) {
+ contents[_OI] = (0, import_smithy_client.expectString)(output[_OI]);
+ }
+ return contents;
+}, "de_CreateStackInstancesOutput");
+var de_CreateStackOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ return contents;
+}, "de_CreateStackOutput");
+var de_CreateStackRefactorOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SRI] != null) {
+ contents[_SRI] = (0, import_smithy_client.expectString)(output[_SRI]);
+ }
+ return contents;
+}, "de_CreateStackRefactorOutput");
+var de_CreateStackSetOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SSI] != null) {
+ contents[_SSI] = (0, import_smithy_client.expectString)(output[_SSI]);
+ }
+ return contents;
+}, "de_CreateStackSetOutput");
+var de_DeactivateOrganizationsAccessOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_DeactivateOrganizationsAccessOutput");
+var de_DeactivateTypeOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_DeactivateTypeOutput");
+var de_DeleteChangeSetOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_DeleteChangeSetOutput");
+var de_DeleteStackInstancesOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OI] != null) {
+ contents[_OI] = (0, import_smithy_client.expectString)(output[_OI]);
+ }
+ return contents;
+}, "de_DeleteStackInstancesOutput");
+var de_DeleteStackSetOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_DeleteStackSetOutput");
+var de_DeploymentTargets = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Accounts === "") {
+ contents[_Ac] = [];
+ } else if (output[_Ac] != null && output[_Ac][_m] != null) {
+ contents[_Ac] = de_AccountList((0, import_smithy_client.getArrayIfSingleItem)(output[_Ac][_m]), context);
+ }
+ if (output[_AUc] != null) {
+ contents[_AUc] = (0, import_smithy_client.expectString)(output[_AUc]);
+ }
+ if (output.OrganizationalUnitIds === "") {
+ contents[_OUI] = [];
+ } else if (output[_OUI] != null && output[_OUI][_m] != null) {
+ contents[_OUI] = de_OrganizationalUnitIdList((0, import_smithy_client.getArrayIfSingleItem)(output[_OUI][_m]), context);
+ }
+ if (output[_AFT] != null) {
+ contents[_AFT] = (0, import_smithy_client.expectString)(output[_AFT]);
+ }
+ return contents;
+}, "de_DeploymentTargets");
+var de_DeregisterTypeOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_DeregisterTypeOutput");
+var de_DescribeAccountLimitsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.AccountLimits === "") {
+ contents[_AL] = [];
+ } else if (output[_AL] != null && output[_AL][_m] != null) {
+ contents[_AL] = de_AccountLimitList((0, import_smithy_client.getArrayIfSingleItem)(output[_AL][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_DescribeAccountLimitsOutput");
+var de_DescribeChangeSetHooksOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_CSIh] != null) {
+ contents[_CSIh] = (0, import_smithy_client.expectString)(output[_CSIh]);
+ }
+ if (output[_CSN] != null) {
+ contents[_CSN] = (0, import_smithy_client.expectString)(output[_CSN]);
+ }
+ if (output.Hooks === "") {
+ contents[_H] = [];
+ } else if (output[_H] != null && output[_H][_m] != null) {
+ contents[_H] = de_ChangeSetHooks((0, import_smithy_client.getArrayIfSingleItem)(output[_H][_m]), context);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_SN] != null) {
+ contents[_SN] = (0, import_smithy_client.expectString)(output[_SN]);
+ }
+ return contents;
+}, "de_DescribeChangeSetHooksOutput");
+var de_DescribeChangeSetOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_CSN] != null) {
+ contents[_CSN] = (0, import_smithy_client.expectString)(output[_CSN]);
+ }
+ if (output[_CSIh] != null) {
+ contents[_CSIh] = (0, import_smithy_client.expectString)(output[_CSIh]);
+ }
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_SN] != null) {
+ contents[_SN] = (0, import_smithy_client.expectString)(output[_SN]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output.Parameters === "") {
+ contents[_P] = [];
+ } else if (output[_P] != null && output[_P][_m] != null) {
+ contents[_P] = de_Parameters((0, import_smithy_client.getArrayIfSingleItem)(output[_P][_m]), context);
+ }
+ if (output[_CTr] != null) {
+ contents[_CTr] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CTr]));
+ }
+ if (output[_ES] != null) {
+ contents[_ES] = (0, import_smithy_client.expectString)(output[_ES]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output.NotificationARNs === "") {
+ contents[_NARN] = [];
+ } else if (output[_NARN] != null && output[_NARN][_m] != null) {
+ contents[_NARN] = de_NotificationARNs((0, import_smithy_client.getArrayIfSingleItem)(output[_NARN][_m]), context);
+ }
+ if (output[_RC] != null) {
+ contents[_RC] = de_RollbackConfiguration(output[_RC], context);
+ }
+ if (output.Capabilities === "") {
+ contents[_C] = [];
+ } else if (output[_C] != null && output[_C][_m] != null) {
+ contents[_C] = de_Capabilities((0, import_smithy_client.getArrayIfSingleItem)(output[_C][_m]), context);
+ }
+ if (output.Tags === "") {
+ contents[_Ta] = [];
+ } else if (output[_Ta] != null && output[_Ta][_m] != null) {
+ contents[_Ta] = de_Tags((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta][_m]), context);
+ }
+ if (output.Changes === "") {
+ contents[_Ch] = [];
+ } else if (output[_Ch] != null && output[_Ch][_m] != null) {
+ contents[_Ch] = de_Changes((0, import_smithy_client.getArrayIfSingleItem)(output[_Ch][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ if (output[_INS] != null) {
+ contents[_INS] = (0, import_smithy_client.parseBoolean)(output[_INS]);
+ }
+ if (output[_PCSI] != null) {
+ contents[_PCSI] = (0, import_smithy_client.expectString)(output[_PCSI]);
+ }
+ if (output[_RCSI] != null) {
+ contents[_RCSI] = (0, import_smithy_client.expectString)(output[_RCSI]);
+ }
+ if (output[_OSF] != null) {
+ contents[_OSF] = (0, import_smithy_client.expectString)(output[_OSF]);
+ }
+ if (output[_IER] != null) {
+ contents[_IER] = (0, import_smithy_client.parseBoolean)(output[_IER]);
+ }
+ return contents;
+}, "de_DescribeChangeSetOutput");
+var de_DescribeGeneratedTemplateOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_GTI] != null) {
+ contents[_GTI] = (0, import_smithy_client.expectString)(output[_GTI]);
+ }
+ if (output[_GTN] != null) {
+ contents[_GTN] = (0, import_smithy_client.expectString)(output[_GTN]);
+ }
+ if (output.Resources === "") {
+ contents[_R] = [];
+ } else if (output[_R] != null && output[_R][_m] != null) {
+ contents[_R] = de_ResourceDetails((0, import_smithy_client.getArrayIfSingleItem)(output[_R][_m]), context);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output[_CTr] != null) {
+ contents[_CTr] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CTr]));
+ }
+ if (output[_LUT] != null) {
+ contents[_LUT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LUT]));
+ }
+ if (output[_Pr] != null) {
+ contents[_Pr] = de_TemplateProgress(output[_Pr], context);
+ }
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_TC] != null) {
+ contents[_TC] = de_TemplateConfiguration(output[_TC], context);
+ }
+ if (output[_TW] != null) {
+ contents[_TW] = (0, import_smithy_client.strictParseInt32)(output[_TW]);
+ }
+ return contents;
+}, "de_DescribeGeneratedTemplateOutput");
+var de_DescribeOrganizationsAccessOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ return contents;
+}, "de_DescribeOrganizationsAccessOutput");
+var de_DescribePublisherOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PI] != null) {
+ contents[_PI] = (0, import_smithy_client.expectString)(output[_PI]);
+ }
+ if (output[_PS] != null) {
+ contents[_PS] = (0, import_smithy_client.expectString)(output[_PS]);
+ }
+ if (output[_IPd] != null) {
+ contents[_IPd] = (0, import_smithy_client.expectString)(output[_IPd]);
+ }
+ if (output[_PP] != null) {
+ contents[_PP] = (0, import_smithy_client.expectString)(output[_PP]);
+ }
+ return contents;
+}, "de_DescribePublisherOutput");
+var de_DescribeResourceScanOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_RSI] != null) {
+ contents[_RSI] = (0, import_smithy_client.expectString)(output[_RSI]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output[_ST] != null) {
+ contents[_ST] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_ST]));
+ }
+ if (output[_ET] != null) {
+ contents[_ET] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_ET]));
+ }
+ if (output[_PC] != null) {
+ contents[_PC] = (0, import_smithy_client.strictParseFloat)(output[_PC]);
+ }
+ if (output.ResourceTypes === "") {
+ contents[_RTe] = [];
+ } else if (output[_RTe] != null && output[_RTe][_m] != null) {
+ contents[_RTe] = de_ResourceTypes((0, import_smithy_client.getArrayIfSingleItem)(output[_RTe][_m]), context);
+ }
+ if (output[_RSes] != null) {
+ contents[_RSes] = (0, import_smithy_client.strictParseInt32)(output[_RSes]);
+ }
+ if (output[_RRes] != null) {
+ contents[_RRes] = (0, import_smithy_client.strictParseInt32)(output[_RRes]);
+ }
+ if (output.ScanFilters === "") {
+ contents[_SF] = [];
+ } else if (output[_SF] != null && output[_SF][_m] != null) {
+ contents[_SF] = de_ScanFilters((0, import_smithy_client.getArrayIfSingleItem)(output[_SF][_m]), context);
+ }
+ return contents;
+}, "de_DescribeResourceScanOutput");
+var de_DescribeStackDriftDetectionStatusOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_SDDI] != null) {
+ contents[_SDDI] = (0, import_smithy_client.expectString)(output[_SDDI]);
+ }
+ if (output[_SDS] != null) {
+ contents[_SDS] = (0, import_smithy_client.expectString)(output[_SDS]);
+ }
+ if (output[_DSet] != null) {
+ contents[_DSet] = (0, import_smithy_client.expectString)(output[_DSet]);
+ }
+ if (output[_DSRet] != null) {
+ contents[_DSRet] = (0, import_smithy_client.expectString)(output[_DSRet]);
+ }
+ if (output[_DSRC] != null) {
+ contents[_DSRC] = (0, import_smithy_client.strictParseInt32)(output[_DSRC]);
+ }
+ if (output[_Ti] != null) {
+ contents[_Ti] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_Ti]));
+ }
+ return contents;
+}, "de_DescribeStackDriftDetectionStatusOutput");
+var de_DescribeStackEventsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.StackEvents === "") {
+ contents[_SE] = [];
+ } else if (output[_SE] != null && output[_SE][_m] != null) {
+ contents[_SE] = de_StackEvents((0, import_smithy_client.getArrayIfSingleItem)(output[_SE][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_DescribeStackEventsOutput");
+var de_DescribeStackInstanceOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SIta] != null) {
+ contents[_SIta] = de_StackInstance(output[_SIta], context);
+ }
+ return contents;
+}, "de_DescribeStackInstanceOutput");
+var de_DescribeStackRefactorOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_SRI] != null) {
+ contents[_SRI] = (0, import_smithy_client.expectString)(output[_SRI]);
+ }
+ if (output.StackIds === "") {
+ contents[_SIt] = [];
+ } else if (output[_SIt] != null && output[_SIt][_m] != null) {
+ contents[_SIt] = de_StackIds((0, import_smithy_client.getArrayIfSingleItem)(output[_SIt][_m]), context);
+ }
+ if (output[_ES] != null) {
+ contents[_ES] = (0, import_smithy_client.expectString)(output[_ES]);
+ }
+ if (output[_ESRx] != null) {
+ contents[_ESRx] = (0, import_smithy_client.expectString)(output[_ESRx]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ return contents;
+}, "de_DescribeStackRefactorOutput");
+var de_DescribeStackResourceDriftsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.StackResourceDrifts === "") {
+ contents[_SRD] = [];
+ } else if (output[_SRD] != null && output[_SRD][_m] != null) {
+ contents[_SRD] = de_StackResourceDrifts((0, import_smithy_client.getArrayIfSingleItem)(output[_SRD][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_DescribeStackResourceDriftsOutput");
+var de_DescribeStackResourceOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SRDt] != null) {
+ contents[_SRDt] = de_StackResourceDetail(output[_SRDt], context);
+ }
+ return contents;
+}, "de_DescribeStackResourceOutput");
+var de_DescribeStackResourcesOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.StackResources === "") {
+ contents[_SRta] = [];
+ } else if (output[_SRta] != null && output[_SRta][_m] != null) {
+ contents[_SRta] = de_StackResources((0, import_smithy_client.getArrayIfSingleItem)(output[_SRta][_m]), context);
+ }
+ return contents;
+}, "de_DescribeStackResourcesOutput");
+var de_DescribeStackSetOperationOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SSO] != null) {
+ contents[_SSO] = de_StackSetOperation(output[_SSO], context);
+ }
+ return contents;
+}, "de_DescribeStackSetOperationOutput");
+var de_DescribeStackSetOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SS] != null) {
+ contents[_SS] = de_StackSet(output[_SS], context);
+ }
+ return contents;
+}, "de_DescribeStackSetOutput");
+var de_DescribeStacksOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Stacks === "") {
+ contents[_St] = [];
+ } else if (output[_St] != null && output[_St][_m] != null) {
+ contents[_St] = de_Stacks((0, import_smithy_client.getArrayIfSingleItem)(output[_St][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_DescribeStacksOutput");
+var de_DescribeTypeOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Ar] != null) {
+ contents[_Ar] = (0, import_smithy_client.expectString)(output[_Ar]);
+ }
+ if (output[_T] != null) {
+ contents[_T] = (0, import_smithy_client.expectString)(output[_T]);
+ }
+ if (output[_TN] != null) {
+ contents[_TN] = (0, import_smithy_client.expectString)(output[_TN]);
+ }
+ if (output[_DVI] != null) {
+ contents[_DVI] = (0, import_smithy_client.expectString)(output[_DVI]);
+ }
+ if (output[_IDV] != null) {
+ contents[_IDV] = (0, import_smithy_client.parseBoolean)(output[_IDV]);
+ }
+ if (output[_TTS] != null) {
+ contents[_TTS] = (0, import_smithy_client.expectString)(output[_TTS]);
+ }
+ if (output[_TTSD] != null) {
+ contents[_TTSD] = (0, import_smithy_client.expectString)(output[_TTSD]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_Sc] != null) {
+ contents[_Sc] = (0, import_smithy_client.expectString)(output[_Sc]);
+ }
+ if (output[_PTr] != null) {
+ contents[_PTr] = (0, import_smithy_client.expectString)(output[_PTr]);
+ }
+ if (output[_DSep] != null) {
+ contents[_DSep] = (0, import_smithy_client.expectString)(output[_DSep]);
+ }
+ if (output[_LC] != null) {
+ contents[_LC] = de_LoggingConfig(output[_LC], context);
+ }
+ if (output.RequiredActivatedTypes === "") {
+ contents[_RAT] = [];
+ } else if (output[_RAT] != null && output[_RAT][_m] != null) {
+ contents[_RAT] = de_RequiredActivatedTypes((0, import_smithy_client.getArrayIfSingleItem)(output[_RAT][_m]), context);
+ }
+ if (output[_ERA] != null) {
+ contents[_ERA] = (0, import_smithy_client.expectString)(output[_ERA]);
+ }
+ if (output[_Vi] != null) {
+ contents[_Vi] = (0, import_smithy_client.expectString)(output[_Vi]);
+ }
+ if (output[_SU] != null) {
+ contents[_SU] = (0, import_smithy_client.expectString)(output[_SU]);
+ }
+ if (output[_DU] != null) {
+ contents[_DU] = (0, import_smithy_client.expectString)(output[_DU]);
+ }
+ if (output[_LU] != null) {
+ contents[_LU] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LU]));
+ }
+ if (output[_TCi] != null) {
+ contents[_TCi] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_TCi]));
+ }
+ if (output[_CSo] != null) {
+ contents[_CSo] = (0, import_smithy_client.expectString)(output[_CSo]);
+ }
+ if (output[_PI] != null) {
+ contents[_PI] = (0, import_smithy_client.expectString)(output[_PI]);
+ }
+ if (output[_OTN] != null) {
+ contents[_OTN] = (0, import_smithy_client.expectString)(output[_OTN]);
+ }
+ if (output[_OTA] != null) {
+ contents[_OTA] = (0, import_smithy_client.expectString)(output[_OTA]);
+ }
+ if (output[_PVN] != null) {
+ contents[_PVN] = (0, import_smithy_client.expectString)(output[_PVN]);
+ }
+ if (output[_LPV] != null) {
+ contents[_LPV] = (0, import_smithy_client.expectString)(output[_LPV]);
+ }
+ if (output[_IA] != null) {
+ contents[_IA] = (0, import_smithy_client.parseBoolean)(output[_IA]);
+ }
+ if (output[_AU] != null) {
+ contents[_AU] = (0, import_smithy_client.parseBoolean)(output[_AU]);
+ }
+ return contents;
+}, "de_DescribeTypeOutput");
+var de_DescribeTypeRegistrationOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PSr] != null) {
+ contents[_PSr] = (0, import_smithy_client.expectString)(output[_PSr]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_TA] != null) {
+ contents[_TA] = (0, import_smithy_client.expectString)(output[_TA]);
+ }
+ if (output[_TVA] != null) {
+ contents[_TVA] = (0, import_smithy_client.expectString)(output[_TVA]);
+ }
+ return contents;
+}, "de_DescribeTypeRegistrationOutput");
+var de_DetectStackDriftOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SDDI] != null) {
+ contents[_SDDI] = (0, import_smithy_client.expectString)(output[_SDDI]);
+ }
+ return contents;
+}, "de_DetectStackDriftOutput");
+var de_DetectStackResourceDriftOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SRDta] != null) {
+ contents[_SRDta] = de_StackResourceDrift(output[_SRDta], context);
+ }
+ return contents;
+}, "de_DetectStackResourceDriftOutput");
+var de_DetectStackSetDriftOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OI] != null) {
+ contents[_OI] = (0, import_smithy_client.expectString)(output[_OI]);
+ }
+ return contents;
+}, "de_DetectStackSetDriftOutput");
+var de_EstimateTemplateCostOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_U] != null) {
+ contents[_U] = (0, import_smithy_client.expectString)(output[_U]);
+ }
+ return contents;
+}, "de_EstimateTemplateCostOutput");
+var de_ExecuteChangeSetOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_ExecuteChangeSetOutput");
+var de_Export = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ESI] != null) {
+ contents[_ESI] = (0, import_smithy_client.expectString)(output[_ESI]);
+ }
+ if (output[_N] != null) {
+ contents[_N] = (0, import_smithy_client.expectString)(output[_N]);
+ }
+ if (output[_Val] != null) {
+ contents[_Val] = (0, import_smithy_client.expectString)(output[_Val]);
+ }
+ return contents;
+}, "de_Export");
+var de_Exports = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Export(entry, context);
+ });
+}, "de_Exports");
+var de_GeneratedTemplateNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_GeneratedTemplateNotFoundException");
+var de_GetGeneratedTemplateOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_TB] != null) {
+ contents[_TB] = (0, import_smithy_client.expectString)(output[_TB]);
+ }
+ return contents;
+}, "de_GetGeneratedTemplateOutput");
+var de_GetStackPolicyOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SPB] != null) {
+ contents[_SPB] = (0, import_smithy_client.expectString)(output[_SPB]);
+ }
+ return contents;
+}, "de_GetStackPolicyOutput");
+var de_GetTemplateOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_TB] != null) {
+ contents[_TB] = (0, import_smithy_client.expectString)(output[_TB]);
+ }
+ if (output.StagesAvailable === "") {
+ contents[_SA] = [];
+ } else if (output[_SA] != null && output[_SA][_m] != null) {
+ contents[_SA] = de_StageList((0, import_smithy_client.getArrayIfSingleItem)(output[_SA][_m]), context);
+ }
+ return contents;
+}, "de_GetTemplateOutput");
+var de_GetTemplateSummaryOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Parameters === "") {
+ contents[_P] = [];
+ } else if (output[_P] != null && output[_P][_m] != null) {
+ contents[_P] = de_ParameterDeclarations((0, import_smithy_client.getArrayIfSingleItem)(output[_P][_m]), context);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output.Capabilities === "") {
+ contents[_C] = [];
+ } else if (output[_C] != null && output[_C][_m] != null) {
+ contents[_C] = de_Capabilities((0, import_smithy_client.getArrayIfSingleItem)(output[_C][_m]), context);
+ }
+ if (output[_CR] != null) {
+ contents[_CR] = (0, import_smithy_client.expectString)(output[_CR]);
+ }
+ if (output.ResourceTypes === "") {
+ contents[_RTe] = [];
+ } else if (output[_RTe] != null && output[_RTe][_m] != null) {
+ contents[_RTe] = de_ResourceTypes((0, import_smithy_client.getArrayIfSingleItem)(output[_RTe][_m]), context);
+ }
+ if (output[_V] != null) {
+ contents[_V] = (0, import_smithy_client.expectString)(output[_V]);
+ }
+ if (output[_Me] != null) {
+ contents[_Me] = (0, import_smithy_client.expectString)(output[_Me]);
+ }
+ if (output.DeclaredTransforms === "") {
+ contents[_DTec] = [];
+ } else if (output[_DTec] != null && output[_DTec][_m] != null) {
+ contents[_DTec] = de_TransformsList((0, import_smithy_client.getArrayIfSingleItem)(output[_DTec][_m]), context);
+ }
+ if (output.ResourceIdentifierSummaries === "") {
+ contents[_RIS] = [];
+ } else if (output[_RIS] != null && output[_RIS][_m] != null) {
+ contents[_RIS] = de_ResourceIdentifierSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_RIS][_m]), context);
+ }
+ if (output[_W] != null) {
+ contents[_W] = de_Warnings(output[_W], context);
+ }
+ return contents;
+}, "de_GetTemplateSummaryOutput");
+var de_HookResultNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_HookResultNotFoundException");
+var de_HookResultSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_HookResultSummary(entry, context);
+ });
+}, "de_HookResultSummaries");
+var de_HookResultSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_IP] != null) {
+ contents[_IP] = (0, import_smithy_client.expectString)(output[_IP]);
+ }
+ if (output[_FM] != null) {
+ contents[_FM] = (0, import_smithy_client.expectString)(output[_FM]);
+ }
+ if (output[_TN] != null) {
+ contents[_TN] = (0, import_smithy_client.expectString)(output[_TN]);
+ }
+ if (output[_TVI] != null) {
+ contents[_TVI] = (0, import_smithy_client.expectString)(output[_TVI]);
+ }
+ if (output[_TCVI] != null) {
+ contents[_TCVI] = (0, import_smithy_client.expectString)(output[_TCVI]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_HSR] != null) {
+ contents[_HSR] = (0, import_smithy_client.expectString)(output[_HSR]);
+ }
+ return contents;
+}, "de_HookResultSummary");
+var de_Imports = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_Imports");
+var de_ImportStacksToStackSetOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OI] != null) {
+ contents[_OI] = (0, import_smithy_client.expectString)(output[_OI]);
+ }
+ return contents;
+}, "de_ImportStacksToStackSetOutput");
+var de_InsufficientCapabilitiesException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_InsufficientCapabilitiesException");
+var de_InvalidChangeSetStatusException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_InvalidChangeSetStatusException");
+var de_InvalidOperationException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_InvalidOperationException");
+var de_InvalidStateTransitionException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_InvalidStateTransitionException");
+var de_JazzResourceIdentifierProperties = /* @__PURE__ */ __name((output, context) => {
+ return output.reduce((acc, pair) => {
+ if (pair["value"] === null) {
+ return acc;
+ }
+ acc[pair["key"]] = (0, import_smithy_client.expectString)(pair["value"]);
+ return acc;
+ }, {});
+}, "de_JazzResourceIdentifierProperties");
+var de_LimitExceededException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_LimitExceededException");
+var de_ListChangeSetsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Summaries === "") {
+ contents[_Su] = [];
+ } else if (output[_Su] != null && output[_Su][_m] != null) {
+ contents[_Su] = de_ChangeSetSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_Su][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListChangeSetsOutput");
+var de_ListExportsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Exports === "") {
+ contents[_Ex] = [];
+ } else if (output[_Ex] != null && output[_Ex][_m] != null) {
+ contents[_Ex] = de_Exports((0, import_smithy_client.getArrayIfSingleItem)(output[_Ex][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListExportsOutput");
+var de_ListGeneratedTemplatesOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Summaries === "") {
+ contents[_Su] = [];
+ } else if (output[_Su] != null && output[_Su][_m] != null) {
+ contents[_Su] = de_TemplateSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_Su][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListGeneratedTemplatesOutput");
+var de_ListHookResultsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_TTa] != null) {
+ contents[_TTa] = (0, import_smithy_client.expectString)(output[_TTa]);
+ }
+ if (output[_TI] != null) {
+ contents[_TI] = (0, import_smithy_client.expectString)(output[_TI]);
+ }
+ if (output.HookResults === "") {
+ contents[_HR] = [];
+ } else if (output[_HR] != null && output[_HR][_m] != null) {
+ contents[_HR] = de_HookResultSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_HR][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListHookResultsOutput");
+var de_ListImportsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Imports === "") {
+ contents[_Im] = [];
+ } else if (output[_Im] != null && output[_Im][_m] != null) {
+ contents[_Im] = de_Imports((0, import_smithy_client.getArrayIfSingleItem)(output[_Im][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListImportsOutput");
+var de_ListResourceScanRelatedResourcesOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.RelatedResources === "") {
+ contents[_RRel] = [];
+ } else if (output[_RRel] != null && output[_RRel][_m] != null) {
+ contents[_RRel] = de_RelatedResources((0, import_smithy_client.getArrayIfSingleItem)(output[_RRel][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListResourceScanRelatedResourcesOutput");
+var de_ListResourceScanResourcesOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Resources === "") {
+ contents[_R] = [];
+ } else if (output[_R] != null && output[_R][_m] != null) {
+ contents[_R] = de_ScannedResources((0, import_smithy_client.getArrayIfSingleItem)(output[_R][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListResourceScanResourcesOutput");
+var de_ListResourceScansOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.ResourceScanSummaries === "") {
+ contents[_RSS] = [];
+ } else if (output[_RSS] != null && output[_RSS][_m] != null) {
+ contents[_RSS] = de_ResourceScanSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_RSS][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListResourceScansOutput");
+var de_ListStackInstanceResourceDriftsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Summaries === "") {
+ contents[_Su] = [];
+ } else if (output[_Su] != null && output[_Su][_m] != null) {
+ contents[_Su] = de_StackInstanceResourceDriftsSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_Su][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListStackInstanceResourceDriftsOutput");
+var de_ListStackInstancesOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Summaries === "") {
+ contents[_Su] = [];
+ } else if (output[_Su] != null && output[_Su][_m] != null) {
+ contents[_Su] = de_StackInstanceSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_Su][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListStackInstancesOutput");
+var de_ListStackRefactorActionsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.StackRefactorActions === "") {
+ contents[_SRA] = [];
+ } else if (output[_SRA] != null && output[_SRA][_m] != null) {
+ contents[_SRA] = de_StackRefactorActions((0, import_smithy_client.getArrayIfSingleItem)(output[_SRA][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListStackRefactorActionsOutput");
+var de_ListStackRefactorsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.StackRefactorSummaries === "") {
+ contents[_SRSt] = [];
+ } else if (output[_SRSt] != null && output[_SRSt][_m] != null) {
+ contents[_SRSt] = de_StackRefactorSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_SRSt][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListStackRefactorsOutput");
+var de_ListStackResourcesOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.StackResourceSummaries === "") {
+ contents[_SRSta] = [];
+ } else if (output[_SRSta] != null && output[_SRSta][_m] != null) {
+ contents[_SRSta] = de_StackResourceSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_SRSta][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListStackResourcesOutput");
+var de_ListStackSetAutoDeploymentTargetsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Summaries === "") {
+ contents[_Su] = [];
+ } else if (output[_Su] != null && output[_Su][_m] != null) {
+ contents[_Su] = de_StackSetAutoDeploymentTargetSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_Su][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListStackSetAutoDeploymentTargetsOutput");
+var de_ListStackSetOperationResultsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Summaries === "") {
+ contents[_Su] = [];
+ } else if (output[_Su] != null && output[_Su][_m] != null) {
+ contents[_Su] = de_StackSetOperationResultSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_Su][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListStackSetOperationResultsOutput");
+var de_ListStackSetOperationsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Summaries === "") {
+ contents[_Su] = [];
+ } else if (output[_Su] != null && output[_Su][_m] != null) {
+ contents[_Su] = de_StackSetOperationSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_Su][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListStackSetOperationsOutput");
+var de_ListStackSetsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Summaries === "") {
+ contents[_Su] = [];
+ } else if (output[_Su] != null && output[_Su][_m] != null) {
+ contents[_Su] = de_StackSetSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_Su][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListStackSetsOutput");
+var de_ListStacksOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.StackSummaries === "") {
+ contents[_SSt] = [];
+ } else if (output[_SSt] != null && output[_SSt][_m] != null) {
+ contents[_SSt] = de_StackSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_SSt][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListStacksOutput");
+var de_ListTypeRegistrationsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.RegistrationTokenList === "") {
+ contents[_RTL] = [];
+ } else if (output[_RTL] != null && output[_RTL][_m] != null) {
+ contents[_RTL] = de_RegistrationTokenList((0, import_smithy_client.getArrayIfSingleItem)(output[_RTL][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListTypeRegistrationsOutput");
+var de_ListTypesOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.TypeSummaries === "") {
+ contents[_TSy] = [];
+ } else if (output[_TSy] != null && output[_TSy][_m] != null) {
+ contents[_TSy] = de_TypeSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_TSy][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListTypesOutput");
+var de_ListTypeVersionsOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.TypeVersionSummaries === "") {
+ contents[_TVS] = [];
+ } else if (output[_TVS] != null && output[_TVS][_m] != null) {
+ contents[_TVS] = de_TypeVersionSummaries((0, import_smithy_client.getArrayIfSingleItem)(output[_TVS][_m]), context);
+ }
+ if (output[_NT] != null) {
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
+ }
+ return contents;
+}, "de_ListTypeVersionsOutput");
+var de_LoggingConfig = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_LRA] != null) {
+ contents[_LRA] = (0, import_smithy_client.expectString)(output[_LRA]);
+ }
+ if (output[_LGN] != null) {
+ contents[_LGN] = (0, import_smithy_client.expectString)(output[_LGN]);
+ }
+ return contents;
+}, "de_LoggingConfig");
+var de_LogicalResourceIds = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_LogicalResourceIds");
+var de_ManagedExecution = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Act] != null) {
+ contents[_Act] = (0, import_smithy_client.parseBoolean)(output[_Act]);
+ }
+ return contents;
+}, "de_ManagedExecution");
+var de_ModuleInfo = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_TH] != null) {
+ contents[_TH] = (0, import_smithy_client.expectString)(output[_TH]);
+ }
+ if (output[_LIH] != null) {
+ contents[_LIH] = (0, import_smithy_client.expectString)(output[_LIH]);
+ }
+ return contents;
+}, "de_ModuleInfo");
+var de_NameAlreadyExistsException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_NameAlreadyExistsException");
+var de_NotificationARNs = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_NotificationARNs");
+var de_OperationIdAlreadyExistsException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_OperationIdAlreadyExistsException");
+var de_OperationInProgressException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_OperationInProgressException");
+var de_OperationNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_OperationNotFoundException");
+var de_OperationStatusCheckFailedException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_OperationStatusCheckFailedException");
+var de_OrganizationalUnitIdList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_OrganizationalUnitIdList");
+var de_Output = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OK] != null) {
+ contents[_OK] = (0, import_smithy_client.expectString)(output[_OK]);
+ }
+ if (output[_OV] != null) {
+ contents[_OV] = (0, import_smithy_client.expectString)(output[_OV]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_EN] != null) {
+ contents[_EN] = (0, import_smithy_client.expectString)(output[_EN]);
+ }
+ return contents;
+}, "de_Output");
+var de_Outputs = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Output(entry, context);
+ });
+}, "de_Outputs");
+var de_Parameter = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PK] != null) {
+ contents[_PK] = (0, import_smithy_client.expectString)(output[_PK]);
+ }
+ if (output[_PV] != null) {
+ contents[_PV] = (0, import_smithy_client.expectString)(output[_PV]);
+ }
+ if (output[_UPV] != null) {
+ contents[_UPV] = (0, import_smithy_client.parseBoolean)(output[_UPV]);
+ }
+ if (output[_RV] != null) {
+ contents[_RV] = (0, import_smithy_client.expectString)(output[_RV]);
+ }
+ return contents;
+}, "de_Parameter");
+var de_ParameterConstraints = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.AllowedValues === "") {
+ contents[_AV] = [];
+ } else if (output[_AV] != null && output[_AV][_m] != null) {
+ contents[_AV] = de_AllowedValues((0, import_smithy_client.getArrayIfSingleItem)(output[_AV][_m]), context);
+ }
+ return contents;
+}, "de_ParameterConstraints");
+var de_ParameterDeclaration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PK] != null) {
+ contents[_PK] = (0, import_smithy_client.expectString)(output[_PK]);
+ }
+ if (output[_DV] != null) {
+ contents[_DV] = (0, import_smithy_client.expectString)(output[_DV]);
+ }
+ if (output[_PTa] != null) {
+ contents[_PTa] = (0, import_smithy_client.expectString)(output[_PTa]);
+ }
+ if (output[_NE] != null) {
+ contents[_NE] = (0, import_smithy_client.parseBoolean)(output[_NE]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_PCa] != null) {
+ contents[_PCa] = de_ParameterConstraints(output[_PCa], context);
+ }
+ return contents;
+}, "de_ParameterDeclaration");
+var de_ParameterDeclarations = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ParameterDeclaration(entry, context);
+ });
+}, "de_ParameterDeclarations");
+var de_Parameters = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Parameter(entry, context);
+ });
+}, "de_Parameters");
+var de_PhysicalResourceIdContext = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_PhysicalResourceIdContextKeyValuePair(entry, context);
+ });
+}, "de_PhysicalResourceIdContext");
+var de_PhysicalResourceIdContextKeyValuePair = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
+ }
+ if (output[_Val] != null) {
+ contents[_Val] = (0, import_smithy_client.expectString)(output[_Val]);
+ }
+ return contents;
+}, "de_PhysicalResourceIdContextKeyValuePair");
+var de_PropertyDifference = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PPr] != null) {
+ contents[_PPr] = (0, import_smithy_client.expectString)(output[_PPr]);
+ }
+ if (output[_EV] != null) {
+ contents[_EV] = (0, import_smithy_client.expectString)(output[_EV]);
+ }
+ if (output[_AVc] != null) {
+ contents[_AVc] = (0, import_smithy_client.expectString)(output[_AVc]);
+ }
+ if (output[_DTi] != null) {
+ contents[_DTi] = (0, import_smithy_client.expectString)(output[_DTi]);
+ }
+ return contents;
+}, "de_PropertyDifference");
+var de_PropertyDifferences = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_PropertyDifference(entry, context);
+ });
+}, "de_PropertyDifferences");
+var de_PublishTypeOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PTA] != null) {
+ contents[_PTA] = (0, import_smithy_client.expectString)(output[_PTA]);
+ }
+ return contents;
+}, "de_PublishTypeOutput");
+var de_RecordHandlerProgressOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_RecordHandlerProgressOutput");
+var de_RegionList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_RegionList");
+var de_RegisterPublisherOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PI] != null) {
+ contents[_PI] = (0, import_smithy_client.expectString)(output[_PI]);
+ }
+ return contents;
+}, "de_RegisterPublisherOutput");
+var de_RegisterTypeOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_RTeg] != null) {
+ contents[_RTeg] = (0, import_smithy_client.expectString)(output[_RTeg]);
+ }
+ return contents;
+}, "de_RegisterTypeOutput");
+var de_RegistrationTokenList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_RegistrationTokenList");
+var de_RelatedResources = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ScannedResource(entry, context);
+ });
+}, "de_RelatedResources");
+var de_RequiredActivatedType = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_TNA] != null) {
+ contents[_TNA] = (0, import_smithy_client.expectString)(output[_TNA]);
+ }
+ if (output[_OTN] != null) {
+ contents[_OTN] = (0, import_smithy_client.expectString)(output[_OTN]);
+ }
+ if (output[_PI] != null) {
+ contents[_PI] = (0, import_smithy_client.expectString)(output[_PI]);
+ }
+ if (output.SupportedMajorVersions === "") {
+ contents[_SMV] = [];
+ } else if (output[_SMV] != null && output[_SMV][_m] != null) {
+ contents[_SMV] = de_SupportedMajorVersions((0, import_smithy_client.getArrayIfSingleItem)(output[_SMV][_m]), context);
+ }
+ return contents;
+}, "de_RequiredActivatedType");
+var de_RequiredActivatedTypes = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_RequiredActivatedType(entry, context);
+ });
+}, "de_RequiredActivatedTypes");
+var de_ResourceChange = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PA] != null) {
+ contents[_PA] = (0, import_smithy_client.expectString)(output[_PA]);
+ }
+ if (output[_A] != null) {
+ contents[_A] = (0, import_smithy_client.expectString)(output[_A]);
+ }
+ if (output[_LRI] != null) {
+ contents[_LRI] = (0, import_smithy_client.expectString)(output[_LRI]);
+ }
+ if (output[_PRI] != null) {
+ contents[_PRI] = (0, import_smithy_client.expectString)(output[_PRI]);
+ }
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output[_Rep] != null) {
+ contents[_Rep] = (0, import_smithy_client.expectString)(output[_Rep]);
+ }
+ if (output.Scope === "") {
+ contents[_Sco] = [];
+ } else if (output[_Sco] != null && output[_Sco][_m] != null) {
+ contents[_Sco] = de_Scope((0, import_smithy_client.getArrayIfSingleItem)(output[_Sco][_m]), context);
+ }
+ if (output.Details === "") {
+ contents[_Det] = [];
+ } else if (output[_Det] != null && output[_Det][_m] != null) {
+ contents[_Det] = de_ResourceChangeDetails((0, import_smithy_client.getArrayIfSingleItem)(output[_Det][_m]), context);
+ }
+ if (output[_CSIh] != null) {
+ contents[_CSIh] = (0, import_smithy_client.expectString)(output[_CSIh]);
+ }
+ if (output[_MI] != null) {
+ contents[_MI] = de_ModuleInfo(output[_MI], context);
+ }
+ if (output[_BC] != null) {
+ contents[_BC] = (0, import_smithy_client.expectString)(output[_BC]);
+ }
+ if (output[_AC] != null) {
+ contents[_AC] = (0, import_smithy_client.expectString)(output[_AC]);
+ }
+ return contents;
+}, "de_ResourceChange");
+var de_ResourceChangeDetail = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Tar] != null) {
+ contents[_Tar] = de_ResourceTargetDefinition(output[_Tar], context);
+ }
+ if (output[_Ev] != null) {
+ contents[_Ev] = (0, import_smithy_client.expectString)(output[_Ev]);
+ }
+ if (output[_CSh] != null) {
+ contents[_CSh] = (0, import_smithy_client.expectString)(output[_CSh]);
+ }
+ if (output[_CE] != null) {
+ contents[_CE] = (0, import_smithy_client.expectString)(output[_CE]);
+ }
+ return contents;
+}, "de_ResourceChangeDetail");
+var de_ResourceChangeDetails = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ResourceChangeDetail(entry, context);
+ });
+}, "de_ResourceChangeDetails");
+var de_ResourceDetail = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output[_LRI] != null) {
+ contents[_LRI] = (0, import_smithy_client.expectString)(output[_LRI]);
+ }
+ if (output.ResourceIdentifier === "") {
+ contents[_RI] = {};
+ } else if (output[_RI] != null && output[_RI][_e] != null) {
+ contents[_RI] = de_ResourceIdentifierProperties((0, import_smithy_client.getArrayIfSingleItem)(output[_RI][_e]), context);
+ }
+ if (output[_RSeso] != null) {
+ contents[_RSeso] = (0, import_smithy_client.expectString)(output[_RSeso]);
+ }
+ if (output[_RSR] != null) {
+ contents[_RSR] = (0, import_smithy_client.expectString)(output[_RSR]);
+ }
+ if (output.Warnings === "") {
+ contents[_W] = [];
+ } else if (output[_W] != null && output[_W][_m] != null) {
+ contents[_W] = de_WarningDetails((0, import_smithy_client.getArrayIfSingleItem)(output[_W][_m]), context);
+ }
+ return contents;
+}, "de_ResourceDetail");
+var de_ResourceDetails = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ResourceDetail(entry, context);
+ });
+}, "de_ResourceDetails");
+var de_ResourceIdentifierProperties = /* @__PURE__ */ __name((output, context) => {
+ return output.reduce((acc, pair) => {
+ if (pair["value"] === null) {
+ return acc;
+ }
+ acc[pair["key"]] = (0, import_smithy_client.expectString)(pair["value"]);
+ return acc;
+ }, {});
+}, "de_ResourceIdentifierProperties");
+var de_ResourceIdentifiers = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_ResourceIdentifiers");
+var de_ResourceIdentifierSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ResourceIdentifierSummary(entry, context);
+ });
+}, "de_ResourceIdentifierSummaries");
+var de_ResourceIdentifierSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output.LogicalResourceIds === "") {
+ contents[_LRIo] = [];
+ } else if (output[_LRIo] != null && output[_LRIo][_m] != null) {
+ contents[_LRIo] = de_LogicalResourceIds((0, import_smithy_client.getArrayIfSingleItem)(output[_LRIo][_m]), context);
+ }
+ if (output.ResourceIdentifiers === "") {
+ contents[_RIe] = [];
+ } else if (output[_RIe] != null && output[_RIe][_m] != null) {
+ contents[_RIe] = de_ResourceIdentifiers((0, import_smithy_client.getArrayIfSingleItem)(output[_RIe][_m]), context);
+ }
+ return contents;
+}, "de_ResourceIdentifierSummary");
+var de_ResourceLocation = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SN] != null) {
+ contents[_SN] = (0, import_smithy_client.expectString)(output[_SN]);
+ }
+ if (output[_LRI] != null) {
+ contents[_LRI] = (0, import_smithy_client.expectString)(output[_LRI]);
+ }
+ return contents;
+}, "de_ResourceLocation");
+var de_ResourceMapping = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_So] != null) {
+ contents[_So] = de_ResourceLocation(output[_So], context);
+ }
+ if (output[_De] != null) {
+ contents[_De] = de_ResourceLocation(output[_De], context);
+ }
+ return contents;
+}, "de_ResourceMapping");
+var de_ResourceScanInProgressException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_ResourceScanInProgressException");
+var de_ResourceScanLimitExceededException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_ResourceScanLimitExceededException");
+var de_ResourceScanNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_ResourceScanNotFoundException");
+var de_ResourceScanSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ResourceScanSummary(entry, context);
+ });
+}, "de_ResourceScanSummaries");
+var de_ResourceScanSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_RSI] != null) {
+ contents[_RSI] = (0, import_smithy_client.expectString)(output[_RSI]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output[_ST] != null) {
+ contents[_ST] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_ST]));
+ }
+ if (output[_ET] != null) {
+ contents[_ET] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_ET]));
+ }
+ if (output[_PC] != null) {
+ contents[_PC] = (0, import_smithy_client.strictParseFloat)(output[_PC]);
+ }
+ if (output[_STc] != null) {
+ contents[_STc] = (0, import_smithy_client.expectString)(output[_STc]);
+ }
+ return contents;
+}, "de_ResourceScanSummary");
+var de_ResourceTargetDefinition = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_At] != null) {
+ contents[_At] = (0, import_smithy_client.expectString)(output[_At]);
+ }
+ if (output[_N] != null) {
+ contents[_N] = (0, import_smithy_client.expectString)(output[_N]);
+ }
+ if (output[_RReq] != null) {
+ contents[_RReq] = (0, import_smithy_client.expectString)(output[_RReq]);
+ }
+ if (output[_Pa] != null) {
+ contents[_Pa] = (0, import_smithy_client.expectString)(output[_Pa]);
+ }
+ if (output[_BV] != null) {
+ contents[_BV] = (0, import_smithy_client.expectString)(output[_BV]);
+ }
+ if (output[_AVf] != null) {
+ contents[_AVf] = (0, import_smithy_client.expectString)(output[_AVf]);
+ }
+ if (output[_ACT] != null) {
+ contents[_ACT] = (0, import_smithy_client.expectString)(output[_ACT]);
+ }
+ return contents;
+}, "de_ResourceTargetDefinition");
+var de_ResourceTypeFilters = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_ResourceTypeFilters");
+var de_ResourceTypes = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_ResourceTypes");
+var de_RollbackConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.RollbackTriggers === "") {
+ contents[_RTo] = [];
+ } else if (output[_RTo] != null && output[_RTo][_m] != null) {
+ contents[_RTo] = de_RollbackTriggers((0, import_smithy_client.getArrayIfSingleItem)(output[_RTo][_m]), context);
+ }
+ if (output[_MTIM] != null) {
+ contents[_MTIM] = (0, import_smithy_client.strictParseInt32)(output[_MTIM]);
+ }
+ return contents;
+}, "de_RollbackConfiguration");
+var de_RollbackStackOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ return contents;
+}, "de_RollbackStackOutput");
+var de_RollbackTrigger = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Ar] != null) {
+ contents[_Ar] = (0, import_smithy_client.expectString)(output[_Ar]);
+ }
+ if (output[_T] != null) {
+ contents[_T] = (0, import_smithy_client.expectString)(output[_T]);
+ }
+ return contents;
+}, "de_RollbackTrigger");
+var de_RollbackTriggers = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_RollbackTrigger(entry, context);
+ });
+}, "de_RollbackTriggers");
+var de_ScanFilter = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Types === "") {
+ contents[_Ty] = [];
+ } else if (output[_Ty] != null && output[_Ty][_m] != null) {
+ contents[_Ty] = de_ResourceTypeFilters((0, import_smithy_client.getArrayIfSingleItem)(output[_Ty][_m]), context);
+ }
+ return contents;
+}, "de_ScanFilter");
+var de_ScanFilters = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ScanFilter(entry, context);
+ });
+}, "de_ScanFilters");
+var de_ScannedResource = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output.ResourceIdentifier === "") {
+ contents[_RI] = {};
+ } else if (output[_RI] != null && output[_RI][_e] != null) {
+ contents[_RI] = de_JazzResourceIdentifierProperties((0, import_smithy_client.getArrayIfSingleItem)(output[_RI][_e]), context);
+ }
+ if (output[_MBS] != null) {
+ contents[_MBS] = (0, import_smithy_client.parseBoolean)(output[_MBS]);
+ }
+ return contents;
+}, "de_ScannedResource");
+var de_ScannedResources = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ScannedResource(entry, context);
+ });
+}, "de_ScannedResources");
+var de_Scope = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_Scope");
+var de_SetTypeConfigurationOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_CAonf] != null) {
+ contents[_CAonf] = (0, import_smithy_client.expectString)(output[_CAonf]);
+ }
+ return contents;
+}, "de_SetTypeConfigurationOutput");
+var de_SetTypeDefaultVersionOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_SetTypeDefaultVersionOutput");
+var de_Stack = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_SN] != null) {
+ contents[_SN] = (0, import_smithy_client.expectString)(output[_SN]);
+ }
+ if (output[_CSIh] != null) {
+ contents[_CSIh] = (0, import_smithy_client.expectString)(output[_CSIh]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output.Parameters === "") {
+ contents[_P] = [];
+ } else if (output[_P] != null && output[_P][_m] != null) {
+ contents[_P] = de_Parameters((0, import_smithy_client.getArrayIfSingleItem)(output[_P][_m]), context);
+ }
+ if (output[_CTr] != null) {
+ contents[_CTr] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CTr]));
+ }
+ if (output[_DTel] != null) {
+ contents[_DTel] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_DTel]));
+ }
+ if (output[_LUT] != null) {
+ contents[_LUT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LUT]));
+ }
+ if (output[_RC] != null) {
+ contents[_RC] = de_RollbackConfiguration(output[_RC], context);
+ }
+ if (output[_SSta] != null) {
+ contents[_SSta] = (0, import_smithy_client.expectString)(output[_SSta]);
+ }
+ if (output[_SSR] != null) {
+ contents[_SSR] = (0, import_smithy_client.expectString)(output[_SSR]);
+ }
+ if (output[_DR] != null) {
+ contents[_DR] = (0, import_smithy_client.parseBoolean)(output[_DR]);
+ }
+ if (output.NotificationARNs === "") {
+ contents[_NARN] = [];
+ } else if (output[_NARN] != null && output[_NARN][_m] != null) {
+ contents[_NARN] = de_NotificationARNs((0, import_smithy_client.getArrayIfSingleItem)(output[_NARN][_m]), context);
+ }
+ if (output[_TIM] != null) {
+ contents[_TIM] = (0, import_smithy_client.strictParseInt32)(output[_TIM]);
+ }
+ if (output.Capabilities === "") {
+ contents[_C] = [];
+ } else if (output[_C] != null && output[_C][_m] != null) {
+ contents[_C] = de_Capabilities((0, import_smithy_client.getArrayIfSingleItem)(output[_C][_m]), context);
+ }
+ if (output.Outputs === "") {
+ contents[_O] = [];
+ } else if (output[_O] != null && output[_O][_m] != null) {
+ contents[_O] = de_Outputs((0, import_smithy_client.getArrayIfSingleItem)(output[_O][_m]), context);
+ }
+ if (output[_RARN] != null) {
+ contents[_RARN] = (0, import_smithy_client.expectString)(output[_RARN]);
+ }
+ if (output.Tags === "") {
+ contents[_Ta] = [];
+ } else if (output[_Ta] != null && output[_Ta][_m] != null) {
+ contents[_Ta] = de_Tags((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta][_m]), context);
+ }
+ if (output[_ETP] != null) {
+ contents[_ETP] = (0, import_smithy_client.parseBoolean)(output[_ETP]);
+ }
+ if (output[_PIa] != null) {
+ contents[_PIa] = (0, import_smithy_client.expectString)(output[_PIa]);
+ }
+ if (output[_RIo] != null) {
+ contents[_RIo] = (0, import_smithy_client.expectString)(output[_RIo]);
+ }
+ if (output[_DI] != null) {
+ contents[_DI] = de_StackDriftInformation(output[_DI], context);
+ }
+ if (output[_REOC] != null) {
+ contents[_REOC] = (0, import_smithy_client.parseBoolean)(output[_REOC]);
+ }
+ if (output[_DM] != null) {
+ contents[_DM] = (0, import_smithy_client.expectString)(output[_DM]);
+ }
+ if (output[_DSeta] != null) {
+ contents[_DSeta] = (0, import_smithy_client.expectString)(output[_DSeta]);
+ }
+ return contents;
+}, "de_Stack");
+var de_StackDriftInformation = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SDS] != null) {
+ contents[_SDS] = (0, import_smithy_client.expectString)(output[_SDS]);
+ }
+ if (output[_LCT] != null) {
+ contents[_LCT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LCT]));
+ }
+ return contents;
+}, "de_StackDriftInformation");
+var de_StackDriftInformationSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SDS] != null) {
+ contents[_SDS] = (0, import_smithy_client.expectString)(output[_SDS]);
+ }
+ if (output[_LCT] != null) {
+ contents[_LCT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LCT]));
+ }
+ return contents;
+}, "de_StackDriftInformationSummary");
+var de_StackEvent = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_EI] != null) {
+ contents[_EI] = (0, import_smithy_client.expectString)(output[_EI]);
+ }
+ if (output[_SN] != null) {
+ contents[_SN] = (0, import_smithy_client.expectString)(output[_SN]);
+ }
+ if (output[_LRI] != null) {
+ contents[_LRI] = (0, import_smithy_client.expectString)(output[_LRI]);
+ }
+ if (output[_PRI] != null) {
+ contents[_PRI] = (0, import_smithy_client.expectString)(output[_PRI]);
+ }
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output[_Ti] != null) {
+ contents[_Ti] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_Ti]));
+ }
+ if (output[_RSeso] != null) {
+ contents[_RSeso] = (0, import_smithy_client.expectString)(output[_RSeso]);
+ }
+ if (output[_RSR] != null) {
+ contents[_RSR] = (0, import_smithy_client.expectString)(output[_RSR]);
+ }
+ if (output[_RPe] != null) {
+ contents[_RPe] = (0, import_smithy_client.expectString)(output[_RPe]);
+ }
+ if (output[_CRT] != null) {
+ contents[_CRT] = (0, import_smithy_client.expectString)(output[_CRT]);
+ }
+ if (output[_HT] != null) {
+ contents[_HT] = (0, import_smithy_client.expectString)(output[_HT]);
+ }
+ if (output[_HS] != null) {
+ contents[_HS] = (0, import_smithy_client.expectString)(output[_HS]);
+ }
+ if (output[_HSR] != null) {
+ contents[_HSR] = (0, import_smithy_client.expectString)(output[_HSR]);
+ }
+ if (output[_HIP] != null) {
+ contents[_HIP] = (0, import_smithy_client.expectString)(output[_HIP]);
+ }
+ if (output[_HFM] != null) {
+ contents[_HFM] = (0, import_smithy_client.expectString)(output[_HFM]);
+ }
+ if (output[_DSeta] != null) {
+ contents[_DSeta] = (0, import_smithy_client.expectString)(output[_DSeta]);
+ }
+ return contents;
+}, "de_StackEvent");
+var de_StackEvents = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackEvent(entry, context);
+ });
+}, "de_StackEvents");
+var de_StackIds = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_StackIds");
+var de_StackInstance = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SSI] != null) {
+ contents[_SSI] = (0, import_smithy_client.expectString)(output[_SSI]);
+ }
+ if (output[_Reg] != null) {
+ contents[_Reg] = (0, import_smithy_client.expectString)(output[_Reg]);
+ }
+ if (output[_Acc] != null) {
+ contents[_Acc] = (0, import_smithy_client.expectString)(output[_Acc]);
+ }
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output.ParameterOverrides === "") {
+ contents[_PO] = [];
+ } else if (output[_PO] != null && output[_PO][_m] != null) {
+ contents[_PO] = de_Parameters((0, import_smithy_client.getArrayIfSingleItem)(output[_PO][_m]), context);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SIS] != null) {
+ contents[_SIS] = de_StackInstanceComprehensiveStatus(output[_SIS], context);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output[_OUIr] != null) {
+ contents[_OUIr] = (0, import_smithy_client.expectString)(output[_OUIr]);
+ }
+ if (output[_DSr] != null) {
+ contents[_DSr] = (0, import_smithy_client.expectString)(output[_DSr]);
+ }
+ if (output[_LDCT] != null) {
+ contents[_LDCT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LDCT]));
+ }
+ if (output[_LOI] != null) {
+ contents[_LOI] = (0, import_smithy_client.expectString)(output[_LOI]);
+ }
+ return contents;
+}, "de_StackInstance");
+var de_StackInstanceComprehensiveStatus = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_DSeta] != null) {
+ contents[_DSeta] = (0, import_smithy_client.expectString)(output[_DSeta]);
+ }
+ return contents;
+}, "de_StackInstanceComprehensiveStatus");
+var de_StackInstanceNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_StackInstanceNotFoundException");
+var de_StackInstanceResourceDriftsSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackInstanceResourceDriftsSummary(entry, context);
+ });
+}, "de_StackInstanceResourceDriftsSummaries");
+var de_StackInstanceResourceDriftsSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_LRI] != null) {
+ contents[_LRI] = (0, import_smithy_client.expectString)(output[_LRI]);
+ }
+ if (output[_PRI] != null) {
+ contents[_PRI] = (0, import_smithy_client.expectString)(output[_PRI]);
+ }
+ if (output.PhysicalResourceIdContext === "") {
+ contents[_PRIC] = [];
+ } else if (output[_PRIC] != null && output[_PRIC][_m] != null) {
+ contents[_PRIC] = de_PhysicalResourceIdContext((0, import_smithy_client.getArrayIfSingleItem)(output[_PRIC][_m]), context);
+ }
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output.PropertyDifferences === "") {
+ contents[_PD] = [];
+ } else if (output[_PD] != null && output[_PD][_m] != null) {
+ contents[_PD] = de_PropertyDifferences((0, import_smithy_client.getArrayIfSingleItem)(output[_PD][_m]), context);
+ }
+ if (output[_SRDS] != null) {
+ contents[_SRDS] = (0, import_smithy_client.expectString)(output[_SRDS]);
+ }
+ if (output[_Ti] != null) {
+ contents[_Ti] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_Ti]));
+ }
+ return contents;
+}, "de_StackInstanceResourceDriftsSummary");
+var de_StackInstanceSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackInstanceSummary(entry, context);
+ });
+}, "de_StackInstanceSummaries");
+var de_StackInstanceSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SSI] != null) {
+ contents[_SSI] = (0, import_smithy_client.expectString)(output[_SSI]);
+ }
+ if (output[_Reg] != null) {
+ contents[_Reg] = (0, import_smithy_client.expectString)(output[_Reg]);
+ }
+ if (output[_Acc] != null) {
+ contents[_Acc] = (0, import_smithy_client.expectString)(output[_Acc]);
+ }
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output[_SIS] != null) {
+ contents[_SIS] = de_StackInstanceComprehensiveStatus(output[_SIS], context);
+ }
+ if (output[_OUIr] != null) {
+ contents[_OUIr] = (0, import_smithy_client.expectString)(output[_OUIr]);
+ }
+ if (output[_DSr] != null) {
+ contents[_DSr] = (0, import_smithy_client.expectString)(output[_DSr]);
+ }
+ if (output[_LDCT] != null) {
+ contents[_LDCT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LDCT]));
+ }
+ if (output[_LOI] != null) {
+ contents[_LOI] = (0, import_smithy_client.expectString)(output[_LOI]);
+ }
+ return contents;
+}, "de_StackInstanceSummary");
+var de_StackNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_StackNotFoundException");
+var de_StackRefactorAction = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_A] != null) {
+ contents[_A] = (0, import_smithy_client.expectString)(output[_A]);
+ }
+ if (output[_En] != null) {
+ contents[_En] = (0, import_smithy_client.expectString)(output[_En]);
+ }
+ if (output[_PRI] != null) {
+ contents[_PRI] = (0, import_smithy_client.expectString)(output[_PRI]);
+ }
+ if (output[_RI] != null) {
+ contents[_RI] = (0, import_smithy_client.expectString)(output[_RI]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_Dete] != null) {
+ contents[_Dete] = (0, import_smithy_client.expectString)(output[_Dete]);
+ }
+ if (output[_DRe] != null) {
+ contents[_DRe] = (0, import_smithy_client.expectString)(output[_DRe]);
+ }
+ if (output.TagResources === "") {
+ contents[_TR] = [];
+ } else if (output[_TR] != null && output[_TR][_m] != null) {
+ contents[_TR] = de_StackRefactorTagResources((0, import_smithy_client.getArrayIfSingleItem)(output[_TR][_m]), context);
+ }
+ if (output.UntagResources === "") {
+ contents[_UR] = [];
+ } else if (output[_UR] != null && output[_UR][_m] != null) {
+ contents[_UR] = de_StackRefactorUntagResources((0, import_smithy_client.getArrayIfSingleItem)(output[_UR][_m]), context);
+ }
+ if (output[_RMes] != null) {
+ contents[_RMes] = de_ResourceMapping(output[_RMes], context);
+ }
+ return contents;
+}, "de_StackRefactorAction");
+var de_StackRefactorActions = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackRefactorAction(entry, context);
+ });
+}, "de_StackRefactorActions");
+var de_StackRefactorNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_StackRefactorNotFoundException");
+var de_StackRefactorSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackRefactorSummary(entry, context);
+ });
+}, "de_StackRefactorSummaries");
+var de_StackRefactorSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SRI] != null) {
+ contents[_SRI] = (0, import_smithy_client.expectString)(output[_SRI]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_ES] != null) {
+ contents[_ES] = (0, import_smithy_client.expectString)(output[_ES]);
+ }
+ if (output[_ESRx] != null) {
+ contents[_ESRx] = (0, import_smithy_client.expectString)(output[_ESRx]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ return contents;
+}, "de_StackRefactorSummary");
+var de_StackRefactorTagResources = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Tag(entry, context);
+ });
+}, "de_StackRefactorTagResources");
+var de_StackRefactorUntagResources = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_StackRefactorUntagResources");
+var de_StackResource = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SN] != null) {
+ contents[_SN] = (0, import_smithy_client.expectString)(output[_SN]);
+ }
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_LRI] != null) {
+ contents[_LRI] = (0, import_smithy_client.expectString)(output[_LRI]);
+ }
+ if (output[_PRI] != null) {
+ contents[_PRI] = (0, import_smithy_client.expectString)(output[_PRI]);
+ }
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output[_Ti] != null) {
+ contents[_Ti] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_Ti]));
+ }
+ if (output[_RSeso] != null) {
+ contents[_RSeso] = (0, import_smithy_client.expectString)(output[_RSeso]);
+ }
+ if (output[_RSR] != null) {
+ contents[_RSR] = (0, import_smithy_client.expectString)(output[_RSR]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_DI] != null) {
+ contents[_DI] = de_StackResourceDriftInformation(output[_DI], context);
+ }
+ if (output[_MI] != null) {
+ contents[_MI] = de_ModuleInfo(output[_MI], context);
+ }
+ return contents;
+}, "de_StackResource");
+var de_StackResourceDetail = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SN] != null) {
+ contents[_SN] = (0, import_smithy_client.expectString)(output[_SN]);
+ }
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_LRI] != null) {
+ contents[_LRI] = (0, import_smithy_client.expectString)(output[_LRI]);
+ }
+ if (output[_PRI] != null) {
+ contents[_PRI] = (0, import_smithy_client.expectString)(output[_PRI]);
+ }
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output[_LUTa] != null) {
+ contents[_LUTa] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LUTa]));
+ }
+ if (output[_RSeso] != null) {
+ contents[_RSeso] = (0, import_smithy_client.expectString)(output[_RSeso]);
+ }
+ if (output[_RSR] != null) {
+ contents[_RSR] = (0, import_smithy_client.expectString)(output[_RSR]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_Me] != null) {
+ contents[_Me] = (0, import_smithy_client.expectString)(output[_Me]);
+ }
+ if (output[_DI] != null) {
+ contents[_DI] = de_StackResourceDriftInformation(output[_DI], context);
+ }
+ if (output[_MI] != null) {
+ contents[_MI] = de_ModuleInfo(output[_MI], context);
+ }
+ return contents;
+}, "de_StackResourceDetail");
+var de_StackResourceDrift = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_LRI] != null) {
+ contents[_LRI] = (0, import_smithy_client.expectString)(output[_LRI]);
+ }
+ if (output[_PRI] != null) {
+ contents[_PRI] = (0, import_smithy_client.expectString)(output[_PRI]);
+ }
+ if (output.PhysicalResourceIdContext === "") {
+ contents[_PRIC] = [];
+ } else if (output[_PRIC] != null && output[_PRIC][_m] != null) {
+ contents[_PRIC] = de_PhysicalResourceIdContext((0, import_smithy_client.getArrayIfSingleItem)(output[_PRIC][_m]), context);
+ }
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output[_EP] != null) {
+ contents[_EP] = (0, import_smithy_client.expectString)(output[_EP]);
+ }
+ if (output[_AP] != null) {
+ contents[_AP] = (0, import_smithy_client.expectString)(output[_AP]);
+ }
+ if (output.PropertyDifferences === "") {
+ contents[_PD] = [];
+ } else if (output[_PD] != null && output[_PD][_m] != null) {
+ contents[_PD] = de_PropertyDifferences((0, import_smithy_client.getArrayIfSingleItem)(output[_PD][_m]), context);
+ }
+ if (output[_SRDS] != null) {
+ contents[_SRDS] = (0, import_smithy_client.expectString)(output[_SRDS]);
+ }
+ if (output[_Ti] != null) {
+ contents[_Ti] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_Ti]));
+ }
+ if (output[_MI] != null) {
+ contents[_MI] = de_ModuleInfo(output[_MI], context);
+ }
+ return contents;
+}, "de_StackResourceDrift");
+var de_StackResourceDriftInformation = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SRDS] != null) {
+ contents[_SRDS] = (0, import_smithy_client.expectString)(output[_SRDS]);
+ }
+ if (output[_LCT] != null) {
+ contents[_LCT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LCT]));
+ }
+ return contents;
+}, "de_StackResourceDriftInformation");
+var de_StackResourceDriftInformationSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SRDS] != null) {
+ contents[_SRDS] = (0, import_smithy_client.expectString)(output[_SRDS]);
+ }
+ if (output[_LCT] != null) {
+ contents[_LCT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LCT]));
+ }
+ return contents;
+}, "de_StackResourceDriftInformationSummary");
+var de_StackResourceDrifts = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackResourceDrift(entry, context);
+ });
+}, "de_StackResourceDrifts");
+var de_StackResources = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackResource(entry, context);
+ });
+}, "de_StackResources");
+var de_StackResourceSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackResourceSummary(entry, context);
+ });
+}, "de_StackResourceSummaries");
+var de_StackResourceSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_LRI] != null) {
+ contents[_LRI] = (0, import_smithy_client.expectString)(output[_LRI]);
+ }
+ if (output[_PRI] != null) {
+ contents[_PRI] = (0, import_smithy_client.expectString)(output[_PRI]);
+ }
+ if (output[_RTes] != null) {
+ contents[_RTes] = (0, import_smithy_client.expectString)(output[_RTes]);
+ }
+ if (output[_LUTa] != null) {
+ contents[_LUTa] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LUTa]));
+ }
+ if (output[_RSeso] != null) {
+ contents[_RSeso] = (0, import_smithy_client.expectString)(output[_RSeso]);
+ }
+ if (output[_RSR] != null) {
+ contents[_RSR] = (0, import_smithy_client.expectString)(output[_RSR]);
+ }
+ if (output[_DI] != null) {
+ contents[_DI] = de_StackResourceDriftInformationSummary(output[_DI], context);
+ }
+ if (output[_MI] != null) {
+ contents[_MI] = de_ModuleInfo(output[_MI], context);
+ }
+ return contents;
+}, "de_StackResourceSummary");
+var de_Stacks = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Stack(entry, context);
+ });
+}, "de_Stacks");
+var de_StackSet = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SSN] != null) {
+ contents[_SSN] = (0, import_smithy_client.expectString)(output[_SSN]);
+ }
+ if (output[_SSI] != null) {
+ contents[_SSI] = (0, import_smithy_client.expectString)(output[_SSI]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_TB] != null) {
+ contents[_TB] = (0, import_smithy_client.expectString)(output[_TB]);
+ }
+ if (output.Parameters === "") {
+ contents[_P] = [];
+ } else if (output[_P] != null && output[_P][_m] != null) {
+ contents[_P] = de_Parameters((0, import_smithy_client.getArrayIfSingleItem)(output[_P][_m]), context);
+ }
+ if (output.Capabilities === "") {
+ contents[_C] = [];
+ } else if (output[_C] != null && output[_C][_m] != null) {
+ contents[_C] = de_Capabilities((0, import_smithy_client.getArrayIfSingleItem)(output[_C][_m]), context);
+ }
+ if (output.Tags === "") {
+ contents[_Ta] = [];
+ } else if (output[_Ta] != null && output[_Ta][_m] != null) {
+ contents[_Ta] = de_Tags((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta][_m]), context);
+ }
+ if (output[_SSARN] != null) {
+ contents[_SSARN] = (0, import_smithy_client.expectString)(output[_SSARN]);
+ }
+ if (output[_ARARN] != null) {
+ contents[_ARARN] = (0, import_smithy_client.expectString)(output[_ARARN]);
+ }
+ if (output[_ERN] != null) {
+ contents[_ERN] = (0, import_smithy_client.expectString)(output[_ERN]);
+ }
+ if (output[_SSDDD] != null) {
+ contents[_SSDDD] = de_StackSetDriftDetectionDetails(output[_SSDDD], context);
+ }
+ if (output[_AD] != null) {
+ contents[_AD] = de_AutoDeployment(output[_AD], context);
+ }
+ if (output[_PM] != null) {
+ contents[_PM] = (0, import_smithy_client.expectString)(output[_PM]);
+ }
+ if (output.OrganizationalUnitIds === "") {
+ contents[_OUI] = [];
+ } else if (output[_OUI] != null && output[_OUI][_m] != null) {
+ contents[_OUI] = de_OrganizationalUnitIdList((0, import_smithy_client.getArrayIfSingleItem)(output[_OUI][_m]), context);
+ }
+ if (output[_ME] != null) {
+ contents[_ME] = de_ManagedExecution(output[_ME], context);
+ }
+ if (output.Regions === "") {
+ contents[_Re] = [];
+ } else if (output[_Re] != null && output[_Re][_m] != null) {
+ contents[_Re] = de_RegionList((0, import_smithy_client.getArrayIfSingleItem)(output[_Re][_m]), context);
+ }
+ return contents;
+}, "de_StackSet");
+var de_StackSetAutoDeploymentTargetSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackSetAutoDeploymentTargetSummary(entry, context);
+ });
+}, "de_StackSetAutoDeploymentTargetSummaries");
+var de_StackSetAutoDeploymentTargetSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OUIr] != null) {
+ contents[_OUIr] = (0, import_smithy_client.expectString)(output[_OUIr]);
+ }
+ if (output.Regions === "") {
+ contents[_Re] = [];
+ } else if (output[_Re] != null && output[_Re][_m] != null) {
+ contents[_Re] = de_RegionList((0, import_smithy_client.getArrayIfSingleItem)(output[_Re][_m]), context);
+ }
+ return contents;
+}, "de_StackSetAutoDeploymentTargetSummary");
+var de_StackSetDriftDetectionDetails = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_DSr] != null) {
+ contents[_DSr] = (0, import_smithy_client.expectString)(output[_DSr]);
+ }
+ if (output[_DDS] != null) {
+ contents[_DDS] = (0, import_smithy_client.expectString)(output[_DDS]);
+ }
+ if (output[_LDCT] != null) {
+ contents[_LDCT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LDCT]));
+ }
+ if (output[_TSIC] != null) {
+ contents[_TSIC] = (0, import_smithy_client.strictParseInt32)(output[_TSIC]);
+ }
+ if (output[_DSIC] != null) {
+ contents[_DSIC] = (0, import_smithy_client.strictParseInt32)(output[_DSIC]);
+ }
+ if (output[_ISSIC] != null) {
+ contents[_ISSIC] = (0, import_smithy_client.strictParseInt32)(output[_ISSIC]);
+ }
+ if (output[_IPSIC] != null) {
+ contents[_IPSIC] = (0, import_smithy_client.strictParseInt32)(output[_IPSIC]);
+ }
+ if (output[_FSIC] != null) {
+ contents[_FSIC] = (0, import_smithy_client.strictParseInt32)(output[_FSIC]);
+ }
+ return contents;
+}, "de_StackSetDriftDetectionDetails");
+var de_StackSetNotEmptyException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_StackSetNotEmptyException");
+var de_StackSetNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_StackSetNotFoundException");
+var de_StackSetOperation = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OI] != null) {
+ contents[_OI] = (0, import_smithy_client.expectString)(output[_OI]);
+ }
+ if (output[_SSI] != null) {
+ contents[_SSI] = (0, import_smithy_client.expectString)(output[_SSI]);
+ }
+ if (output[_A] != null) {
+ contents[_A] = (0, import_smithy_client.expectString)(output[_A]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_OP] != null) {
+ contents[_OP] = de_StackSetOperationPreferences(output[_OP], context);
+ }
+ if (output[_RSe] != null) {
+ contents[_RSe] = (0, import_smithy_client.parseBoolean)(output[_RSe]);
+ }
+ if (output[_ARARN] != null) {
+ contents[_ARARN] = (0, import_smithy_client.expectString)(output[_ARARN]);
+ }
+ if (output[_ERN] != null) {
+ contents[_ERN] = (0, import_smithy_client.expectString)(output[_ERN]);
+ }
+ if (output[_CTre] != null) {
+ contents[_CTre] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CTre]));
+ }
+ if (output[_ETn] != null) {
+ contents[_ETn] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_ETn]));
+ }
+ if (output[_DTep] != null) {
+ contents[_DTep] = de_DeploymentTargets(output[_DTep], context);
+ }
+ if (output[_SSDDD] != null) {
+ contents[_SSDDD] = de_StackSetDriftDetectionDetails(output[_SSDDD], context);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output[_SDt] != null) {
+ contents[_SDt] = de_StackSetOperationStatusDetails(output[_SDt], context);
+ }
+ return contents;
+}, "de_StackSetOperation");
+var de_StackSetOperationPreferences = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_RCT] != null) {
+ contents[_RCT] = (0, import_smithy_client.expectString)(output[_RCT]);
+ }
+ if (output.RegionOrder === "") {
+ contents[_RO] = [];
+ } else if (output[_RO] != null && output[_RO][_m] != null) {
+ contents[_RO] = de_RegionList((0, import_smithy_client.getArrayIfSingleItem)(output[_RO][_m]), context);
+ }
+ if (output[_FTC] != null) {
+ contents[_FTC] = (0, import_smithy_client.strictParseInt32)(output[_FTC]);
+ }
+ if (output[_FTP] != null) {
+ contents[_FTP] = (0, import_smithy_client.strictParseInt32)(output[_FTP]);
+ }
+ if (output[_MCC] != null) {
+ contents[_MCC] = (0, import_smithy_client.strictParseInt32)(output[_MCC]);
+ }
+ if (output[_MCP] != null) {
+ contents[_MCP] = (0, import_smithy_client.strictParseInt32)(output[_MCP]);
+ }
+ if (output[_CM] != null) {
+ contents[_CM] = (0, import_smithy_client.expectString)(output[_CM]);
+ }
+ return contents;
+}, "de_StackSetOperationPreferences");
+var de_StackSetOperationResultSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackSetOperationResultSummary(entry, context);
+ });
+}, "de_StackSetOperationResultSummaries");
+var de_StackSetOperationResultSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Acc] != null) {
+ contents[_Acc] = (0, import_smithy_client.expectString)(output[_Acc]);
+ }
+ if (output[_Reg] != null) {
+ contents[_Reg] = (0, import_smithy_client.expectString)(output[_Reg]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output[_AGR] != null) {
+ contents[_AGR] = de_AccountGateResult(output[_AGR], context);
+ }
+ if (output[_OUIr] != null) {
+ contents[_OUIr] = (0, import_smithy_client.expectString)(output[_OUIr]);
+ }
+ return contents;
+}, "de_StackSetOperationResultSummary");
+var de_StackSetOperationStatusDetails = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_FSIC] != null) {
+ contents[_FSIC] = (0, import_smithy_client.strictParseInt32)(output[_FSIC]);
+ }
+ return contents;
+}, "de_StackSetOperationStatusDetails");
+var de_StackSetOperationSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackSetOperationSummary(entry, context);
+ });
+}, "de_StackSetOperationSummaries");
+var de_StackSetOperationSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OI] != null) {
+ contents[_OI] = (0, import_smithy_client.expectString)(output[_OI]);
+ }
+ if (output[_A] != null) {
+ contents[_A] = (0, import_smithy_client.expectString)(output[_A]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_CTre] != null) {
+ contents[_CTre] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CTre]));
+ }
+ if (output[_ETn] != null) {
+ contents[_ETn] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_ETn]));
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output[_SDt] != null) {
+ contents[_SDt] = de_StackSetOperationStatusDetails(output[_SDt], context);
+ }
+ if (output[_OP] != null) {
+ contents[_OP] = de_StackSetOperationPreferences(output[_OP], context);
+ }
+ return contents;
+}, "de_StackSetOperationSummary");
+var de_StackSetSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackSetSummary(entry, context);
+ });
+}, "de_StackSetSummaries");
+var de_StackSetSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SSN] != null) {
+ contents[_SSN] = (0, import_smithy_client.expectString)(output[_SSN]);
+ }
+ if (output[_SSI] != null) {
+ contents[_SSI] = (0, import_smithy_client.expectString)(output[_SSI]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_AD] != null) {
+ contents[_AD] = de_AutoDeployment(output[_AD], context);
+ }
+ if (output[_PM] != null) {
+ contents[_PM] = (0, import_smithy_client.expectString)(output[_PM]);
+ }
+ if (output[_DSr] != null) {
+ contents[_DSr] = (0, import_smithy_client.expectString)(output[_DSr]);
+ }
+ if (output[_LDCT] != null) {
+ contents[_LDCT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LDCT]));
+ }
+ if (output[_ME] != null) {
+ contents[_ME] = de_ManagedExecution(output[_ME], context);
+ }
+ return contents;
+}, "de_StackSetSummary");
+var de_StackSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_StackSummary(entry, context);
+ });
+}, "de_StackSummaries");
+var de_StackSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ if (output[_SN] != null) {
+ contents[_SN] = (0, import_smithy_client.expectString)(output[_SN]);
+ }
+ if (output[_TDe] != null) {
+ contents[_TDe] = (0, import_smithy_client.expectString)(output[_TDe]);
+ }
+ if (output[_CTr] != null) {
+ contents[_CTr] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CTr]));
+ }
+ if (output[_LUT] != null) {
+ contents[_LUT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LUT]));
+ }
+ if (output[_DTel] != null) {
+ contents[_DTel] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_DTel]));
+ }
+ if (output[_SSta] != null) {
+ contents[_SSta] = (0, import_smithy_client.expectString)(output[_SSta]);
+ }
+ if (output[_SSR] != null) {
+ contents[_SSR] = (0, import_smithy_client.expectString)(output[_SSR]);
+ }
+ if (output[_PIa] != null) {
+ contents[_PIa] = (0, import_smithy_client.expectString)(output[_PIa]);
+ }
+ if (output[_RIo] != null) {
+ contents[_RIo] = (0, import_smithy_client.expectString)(output[_RIo]);
+ }
+ if (output[_DI] != null) {
+ contents[_DI] = de_StackDriftInformationSummary(output[_DI], context);
+ }
+ return contents;
+}, "de_StackSummary");
+var de_StageList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_StageList");
+var de_StaleRequestException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_StaleRequestException");
+var de_StartResourceScanOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_RSI] != null) {
+ contents[_RSI] = (0, import_smithy_client.expectString)(output[_RSI]);
+ }
+ return contents;
+}, "de_StartResourceScanOutput");
+var de_StopStackSetOperationOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_StopStackSetOperationOutput");
+var de_SupportedMajorVersions = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.strictParseInt32)(entry);
+ });
+}, "de_SupportedMajorVersions");
+var de_Tag = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
+ }
+ if (output[_Val] != null) {
+ contents[_Val] = (0, import_smithy_client.expectString)(output[_Val]);
+ }
+ return contents;
+}, "de_Tag");
+var de_Tags = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Tag(entry, context);
+ });
+}, "de_Tags");
+var de_TemplateConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_DPe] != null) {
+ contents[_DPe] = (0, import_smithy_client.expectString)(output[_DPe]);
+ }
+ if (output[_URP] != null) {
+ contents[_URP] = (0, import_smithy_client.expectString)(output[_URP]);
+ }
+ return contents;
+}, "de_TemplateConfiguration");
+var de_TemplateParameter = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PK] != null) {
+ contents[_PK] = (0, import_smithy_client.expectString)(output[_PK]);
+ }
+ if (output[_DV] != null) {
+ contents[_DV] = (0, import_smithy_client.expectString)(output[_DV]);
+ }
+ if (output[_NE] != null) {
+ contents[_NE] = (0, import_smithy_client.parseBoolean)(output[_NE]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ return contents;
+}, "de_TemplateParameter");
+var de_TemplateParameters = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_TemplateParameter(entry, context);
+ });
+}, "de_TemplateParameters");
+var de_TemplateProgress = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_RSesou] != null) {
+ contents[_RSesou] = (0, import_smithy_client.strictParseInt32)(output[_RSesou]);
+ }
+ if (output[_RF] != null) {
+ contents[_RF] = (0, import_smithy_client.strictParseInt32)(output[_RF]);
+ }
+ if (output[_RPes] != null) {
+ contents[_RPes] = (0, import_smithy_client.strictParseInt32)(output[_RPes]);
+ }
+ if (output[_RPeso] != null) {
+ contents[_RPeso] = (0, import_smithy_client.strictParseInt32)(output[_RPeso]);
+ }
+ return contents;
+}, "de_TemplateProgress");
+var de_TemplateSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_TemplateSummary(entry, context);
+ });
+}, "de_TemplateSummaries");
+var de_TemplateSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_GTI] != null) {
+ contents[_GTI] = (0, import_smithy_client.expectString)(output[_GTI]);
+ }
+ if (output[_GTN] != null) {
+ contents[_GTN] = (0, import_smithy_client.expectString)(output[_GTN]);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SRt] != null) {
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
+ }
+ if (output[_CTr] != null) {
+ contents[_CTr] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CTr]));
+ }
+ if (output[_LUT] != null) {
+ contents[_LUT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LUT]));
+ }
+ if (output[_NOR] != null) {
+ contents[_NOR] = (0, import_smithy_client.strictParseInt32)(output[_NOR]);
+ }
+ return contents;
+}, "de_TemplateSummary");
+var de_TestTypeOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_TVA] != null) {
+ contents[_TVA] = (0, import_smithy_client.expectString)(output[_TVA]);
+ }
+ return contents;
+}, "de_TestTypeOutput");
+var de_TokenAlreadyExistsException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_TokenAlreadyExistsException");
+var de_TransformsList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_TransformsList");
+var de_TypeConfigurationDetails = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Ar] != null) {
+ contents[_Ar] = (0, import_smithy_client.expectString)(output[_Ar]);
+ }
+ if (output[_Al] != null) {
+ contents[_Al] = (0, import_smithy_client.expectString)(output[_Al]);
+ }
+ if (output[_Co] != null) {
+ contents[_Co] = (0, import_smithy_client.expectString)(output[_Co]);
+ }
+ if (output[_LU] != null) {
+ contents[_LU] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LU]));
+ }
+ if (output[_TA] != null) {
+ contents[_TA] = (0, import_smithy_client.expectString)(output[_TA]);
+ }
+ if (output[_TN] != null) {
+ contents[_TN] = (0, import_smithy_client.expectString)(output[_TN]);
+ }
+ if (output[_IDC] != null) {
+ contents[_IDC] = (0, import_smithy_client.parseBoolean)(output[_IDC]);
+ }
+ return contents;
+}, "de_TypeConfigurationDetails");
+var de_TypeConfigurationDetailsList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_TypeConfigurationDetails(entry, context);
+ });
+}, "de_TypeConfigurationDetailsList");
+var de_TypeConfigurationIdentifier = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_TA] != null) {
+ contents[_TA] = (0, import_smithy_client.expectString)(output[_TA]);
+ }
+ if (output[_TCA] != null) {
+ contents[_TCA] = (0, import_smithy_client.expectString)(output[_TCA]);
+ }
+ if (output[_TCAy] != null) {
+ contents[_TCAy] = (0, import_smithy_client.expectString)(output[_TCAy]);
+ }
+ if (output[_T] != null) {
+ contents[_T] = (0, import_smithy_client.expectString)(output[_T]);
+ }
+ if (output[_TN] != null) {
+ contents[_TN] = (0, import_smithy_client.expectString)(output[_TN]);
+ }
+ return contents;
+}, "de_TypeConfigurationIdentifier");
+var de_TypeConfigurationNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_TypeConfigurationNotFoundException");
+var de_TypeNotFoundException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
+ }
+ return contents;
+}, "de_TypeNotFoundException");
+var de_TypeSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_TypeSummary(entry, context);
+ });
+}, "de_TypeSummaries");
+var de_TypeSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_T] != null) {
+ contents[_T] = (0, import_smithy_client.expectString)(output[_T]);
+ }
+ if (output[_TN] != null) {
+ contents[_TN] = (0, import_smithy_client.expectString)(output[_TN]);
+ }
+ if (output[_DVI] != null) {
+ contents[_DVI] = (0, import_smithy_client.expectString)(output[_DVI]);
+ }
+ if (output[_TA] != null) {
+ contents[_TA] = (0, import_smithy_client.expectString)(output[_TA]);
+ }
+ if (output[_LU] != null) {
+ contents[_LU] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LU]));
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_PI] != null) {
+ contents[_PI] = (0, import_smithy_client.expectString)(output[_PI]);
+ }
+ if (output[_OTN] != null) {
+ contents[_OTN] = (0, import_smithy_client.expectString)(output[_OTN]);
+ }
+ if (output[_PVN] != null) {
+ contents[_PVN] = (0, import_smithy_client.expectString)(output[_PVN]);
+ }
+ if (output[_LPV] != null) {
+ contents[_LPV] = (0, import_smithy_client.expectString)(output[_LPV]);
+ }
+ if (output[_PIu] != null) {
+ contents[_PIu] = (0, import_smithy_client.expectString)(output[_PIu]);
+ }
+ if (output[_PN] != null) {
+ contents[_PN] = (0, import_smithy_client.expectString)(output[_PN]);
+ }
+ if (output[_IA] != null) {
+ contents[_IA] = (0, import_smithy_client.parseBoolean)(output[_IA]);
+ }
+ return contents;
+}, "de_TypeSummary");
+var de_TypeVersionSummaries = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_TypeVersionSummary(entry, context);
+ });
+}, "de_TypeVersionSummaries");
+var de_TypeVersionSummary = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_T] != null) {
+ contents[_T] = (0, import_smithy_client.expectString)(output[_T]);
+ }
+ if (output[_TN] != null) {
+ contents[_TN] = (0, import_smithy_client.expectString)(output[_TN]);
+ }
+ if (output[_VI] != null) {
+ contents[_VI] = (0, import_smithy_client.expectString)(output[_VI]);
+ }
+ if (output[_IDV] != null) {
+ contents[_IDV] = (0, import_smithy_client.parseBoolean)(output[_IDV]);
+ }
+ if (output[_Ar] != null) {
+ contents[_Ar] = (0, import_smithy_client.expectString)(output[_Ar]);
+ }
+ if (output[_TCi] != null) {
+ contents[_TCi] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_TCi]));
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output[_PVN] != null) {
+ contents[_PVN] = (0, import_smithy_client.expectString)(output[_PVN]);
+ }
+ return contents;
+}, "de_TypeVersionSummary");
+var de_UnprocessedTypeConfigurations = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_TypeConfigurationIdentifier(entry, context);
+ });
+}, "de_UnprocessedTypeConfigurations");
+var de_UpdateGeneratedTemplateOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_GTI] != null) {
+ contents[_GTI] = (0, import_smithy_client.expectString)(output[_GTI]);
+ }
+ return contents;
+}, "de_UpdateGeneratedTemplateOutput");
+var de_UpdateStackInstancesOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OI] != null) {
+ contents[_OI] = (0, import_smithy_client.expectString)(output[_OI]);
+ }
+ return contents;
+}, "de_UpdateStackInstancesOutput");
+var de_UpdateStackOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ return contents;
+}, "de_UpdateStackOutput");
+var de_UpdateStackSetOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OI] != null) {
+ contents[_OI] = (0, import_smithy_client.expectString)(output[_OI]);
+ }
+ return contents;
+}, "de_UpdateStackSetOutput");
+var de_UpdateTerminationProtectionOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client.expectString)(output[_SI]);
+ }
+ return contents;
+}, "de_UpdateTerminationProtectionOutput");
+var de_ValidateTemplateOutput = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Parameters === "") {
+ contents[_P] = [];
+ } else if (output[_P] != null && output[_P][_m] != null) {
+ contents[_P] = de_TemplateParameters((0, import_smithy_client.getArrayIfSingleItem)(output[_P][_m]), context);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ if (output.Capabilities === "") {
+ contents[_C] = [];
+ } else if (output[_C] != null && output[_C][_m] != null) {
+ contents[_C] = de_Capabilities((0, import_smithy_client.getArrayIfSingleItem)(output[_C][_m]), context);
+ }
+ if (output[_CR] != null) {
+ contents[_CR] = (0, import_smithy_client.expectString)(output[_CR]);
+ }
+ if (output.DeclaredTransforms === "") {
+ contents[_DTec] = [];
+ } else if (output[_DTec] != null && output[_DTec][_m] != null) {
+ contents[_DTec] = de_TransformsList((0, import_smithy_client.getArrayIfSingleItem)(output[_DTec][_m]), context);
+ }
+ return contents;
+}, "de_ValidateTemplateOutput");
+var de_WarningDetail = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_T] != null) {
+ contents[_T] = (0, import_smithy_client.expectString)(output[_T]);
+ }
+ if (output.Properties === "") {
+ contents[_Pro] = [];
+ } else if (output[_Pro] != null && output[_Pro][_m] != null) {
+ contents[_Pro] = de_WarningProperties((0, import_smithy_client.getArrayIfSingleItem)(output[_Pro][_m]), context);
+ }
+ return contents;
+}, "de_WarningDetail");
+var de_WarningDetails = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_WarningDetail(entry, context);
+ });
+}, "de_WarningDetails");
+var de_WarningProperties = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_WarningProperty(entry, context);
+ });
+}, "de_WarningProperties");
+var de_WarningProperty = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PPr] != null) {
+ contents[_PPr] = (0, import_smithy_client.expectString)(output[_PPr]);
+ }
+ if (output[_Req] != null) {
+ contents[_Req] = (0, import_smithy_client.parseBoolean)(output[_Req]);
+ }
+ if (output[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
+ }
+ return contents;
+}, "de_WarningProperty");
+var de_Warnings = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.UnrecognizedResourceTypes === "") {
+ contents[_URT] = [];
+ } else if (output[_URT] != null && output[_URT][_m] != null) {
+ contents[_URT] = de_ResourceTypes((0, import_smithy_client.getArrayIfSingleItem)(output[_URT][_m]), context);
+ }
+ return contents;
+}, "de_Warnings");
+var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
+ httpStatusCode: output.statusCode,
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
+ extendedRequestId: output.headers["x-amz-id-2"],
+ cfId: output.headers["x-amz-cf-id"]
+}), "deserializeMetadata");
+var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudFormationServiceException);
+var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const contents = {
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
+ headers
+ };
+ if (resolvedHostname !== void 0) {
+ contents.hostname = resolvedHostname;
+ }
+ if (body !== void 0) {
+ contents.body = body;
+ }
+ return new import_protocol_http.HttpRequest(contents);
+}, "buildHttpRpcRequest");
+var SHARED_HEADERS = {
+ "content-type": "application/x-www-form-urlencoded"
+};
+var _ = "2010-05-15";
+var _A = "Action";
+var _AC = "AfterContext";
+var _ACT = "AttributeChangeType";
+var _AD = "AutoDeployment";
+var _AFT = "AccountFilterType";
+var _AGR = "AccountGateResult";
+var _AL = "AccountLimits";
+var _AOA = "ActivateOrganizationsAccess";
+var _AP = "ActualProperties";
+var _AR = "AddResources";
+var _ARARN = "AdministrationRoleARN";
+var _AT = "ActivateType";
+var _ATAC = "AcceptTermsAndConditions";
+var _AU = "AutoUpdate";
+var _AUc = "AccountsUrl";
+var _AV = "AllowedValues";
+var _AVc = "ActualValue";
+var _AVf = "AfterValue";
+var _Ac = "Accounts";
+var _Acc = "Account";
+var _Act = "Active";
+var _Al = "Alias";
+var _Ar = "Arn";
+var _At = "Attribute";
+var _BC = "BeforeContext";
+var _BDTC = "BatchDescribeTypeConfigurations";
+var _BT = "BearerToken";
+var _BV = "BeforeValue";
+var _C = "Capabilities";
+var _CA = "CallAs";
+var _CAo = "ConnectionArn";
+var _CAon = "ConfigurationAlias";
+var _CAonf = "ConfigurationArn";
+var _CCS = "CreateChangeSet";
+var _CE = "CausingEntity";
+var _CGT = "CreateGeneratedTemplate";
+var _CM = "ConcurrencyMode";
+var _COS = "CurrentOperationStatus";
+var _CR = "CapabilitiesReason";
+var _CRT = "ClientRequestToken";
+var _CS = "CreateStack";
+var _CSI = "CreateStackInstances";
+var _CSIh = "ChangeSetId";
+var _CSN = "ChangeSetName";
+var _CSR = "CreateStackRefactor";
+var _CSS = "CreateStackSet";
+var _CST = "ChangeSetType";
+var _CSh = "ChangeSource";
+var _CSo = "ConfigurationSchema";
+var _CT = "ClientToken";
+var _CTr = "CreationTime";
+var _CTre = "CreationTimestamp";
+var _CUR = "ContinueUpdateRollback";
+var _CUS = "CancelUpdateStack";
+var _Ca = "Category";
+var _Ch = "Changes";
+var _Co = "Configuration";
+var _D = "Description";
+var _DAL = "DescribeAccountLimits";
+var _DCS = "DeleteChangeSet";
+var _DCSH = "DescribeChangeSetHooks";
+var _DCSe = "DescribeChangeSet";
+var _DDS = "DriftDetectionStatus";
+var _DGT = "DeleteGeneratedTemplate";
+var _DGTe = "DescribeGeneratedTemplate";
+var _DI = "DriftInformation";
+var _DM = "DeletionMode";
+var _DOA = "DeactivateOrganizationsAccess";
+var _DOAe = "DescribeOrganizationsAccess";
+var _DP = "DescribePublisher";
+var _DPe = "DeletionPolicy";
+var _DR = "DisableRollback";
+var _DRS = "DescribeResourceScan";
+var _DRe = "DetectionReason";
+var _DS = "DeleteStack";
+var _DSD = "DetectStackDrift";
+var _DSDDS = "DescribeStackDriftDetectionStatus";
+var _DSE = "DescribeStackEvents";
+var _DSI = "DeleteStackInstances";
+var _DSIC = "DriftedStackInstancesCount";
+var _DSIe = "DescribeStackInstance";
+var _DSR = "DescribeStackRefactor";
+var _DSRC = "DriftedStackResourceCount";
+var _DSRD = "DescribeStackResourceDrifts";
+var _DSRDe = "DetectStackResourceDrift";
+var _DSRe = "DescribeStackResource";
+var _DSRes = "DescribeStackResources";
+var _DSRet = "DetectionStatusReason";
+var _DSS = "DeleteStackSet";
+var _DSSD = "DetectStackSetDrift";
+var _DSSO = "DescribeStackSetOperation";
+var _DSSe = "DescribeStackSet";
+var _DSe = "DescribeStacks";
+var _DSep = "DeprecatedStatus";
+var _DSet = "DetectionStatus";
+var _DSeta = "DetailedStatus";
+var _DSr = "DriftStatus";
+var _DT = "DeactivateType";
+var _DTR = "DescribeTypeRegistration";
+var _DTe = "DeregisterType";
+var _DTec = "DeclaredTransforms";
+var _DTel = "DeletionTime";
+var _DTep = "DeploymentTargets";
+var _DTes = "DescribeType";
+var _DTi = "DifferenceType";
+var _DU = "DocumentationUrl";
+var _DV = "DefaultValue";
+var _DVI = "DefaultVersionId";
+var _De = "Destination";
+var _Det = "Details";
+var _Dete = "Detection";
+var _E = "Enabled";
+var _EC = "ErrorCode";
+var _ECS = "ExecuteChangeSet";
+var _EI = "EventId";
+var _EM = "ErrorMessage";
+var _EN = "ExportName";
+var _EP = "ExpectedProperties";
+var _ERA = "ExecutionRoleArn";
+var _ERN = "ExecutionRoleName";
+var _ES = "ExecutionStatus";
+var _ESC = "EnableStackCreation";
+var _ESF = "ExecutionStatusFilter";
+var _ESI = "ExportingStackId";
+var _ESR = "ExecuteStackRefactor";
+var _ESRx = "ExecutionStatusReason";
+var _ET = "EndTime";
+var _ETC = "EstimateTemplateCost";
+var _ETP = "EnableTerminationProtection";
+var _ETn = "EndTimestamp";
+var _EV = "ExpectedValue";
+var _En = "Entity";
+var _Er = "Errors";
+var _Ev = "Evaluation";
+var _Ex = "Exports";
+var _F = "Format";
+var _FM = "FailureMode";
+var _FSIC = "FailedStackInstancesCount";
+var _FTC = "FailureToleranceCount";
+var _FTP = "FailureTolerancePercentage";
+var _Fi = "Filters";
+var _GGT = "GetGeneratedTemplate";
+var _GSP = "GetStackPolicy";
+var _GT = "GetTemplate";
+var _GTI = "GeneratedTemplateId";
+var _GTN = "GeneratedTemplateName";
+var _GTS = "GetTemplateSummary";
+var _H = "Hooks";
+var _HFM = "HookFailureMode";
+var _HIC = "HookInvocationCount";
+var _HIP = "HookInvocationPoint";
+var _HR = "HookResults";
+var _HS = "HookStatus";
+var _HSR = "HookStatusReason";
+var _HT = "HookType";
+var _I = "Id";
+var _IA = "IsActivated";
+var _IDC = "IsDefaultConfiguration";
+var _IDV = "IsDefaultVersion";
+var _IER = "ImportExistingResources";
+var _INS = "IncludeNestedStacks";
+var _IP = "InvocationPoint";
+var _IPSIC = "InProgressStackInstancesCount";
+var _IPV = "IncludePropertyValues";
+var _IPd = "IdentityProvider";
+var _ISSIC = "InSyncStackInstancesCount";
+var _ISTSS = "ImportStacksToStackSet";
+var _Im = "Imports";
+var _K = "Key";
+var _LC = "LoggingConfig";
+var _LCS = "ListChangeSets";
+var _LCT = "LastCheckTimestamp";
+var _LDB = "LogDeliveryBucket";
+var _LDCT = "LastDriftCheckTimestamp";
+var _LE = "ListExports";
+var _LGN = "LogGroupName";
+var _LGT = "ListGeneratedTemplates";
+var _LHR = "ListHookResults";
+var _LI = "ListImports";
+var _LIH = "LogicalIdHierarchy";
+var _LOI = "LastOperationId";
+var _LPV = "LatestPublicVersion";
+var _LRA = "LogRoleArn";
+var _LRI = "LogicalResourceId";
+var _LRIo = "LogicalResourceIds";
+var _LRS = "ListResourceScans";
+var _LRSR = "ListResourceScanResources";
+var _LRSRR = "ListResourceScanRelatedResources";
+var _LS = "ListStacks";
+var _LSI = "ListStackInstances";
+var _LSIRD = "ListStackInstanceResourceDrifts";
+var _LSR = "ListStackRefactors";
+var _LSRA = "ListStackRefactorActions";
+var _LSRi = "ListStackResources";
+var _LSS = "ListStackSets";
+var _LSSADT = "ListStackSetAutoDeploymentTargets";
+var _LSSO = "ListStackSetOperations";
+var _LSSOR = "ListStackSetOperationResults";
+var _LT = "ListTypes";
+var _LTR = "ListTypeRegistrations";
+var _LTV = "ListTypeVersions";
+var _LU = "LastUpdated";
+var _LUT = "LastUpdatedTime";
+var _LUTa = "LastUpdatedTimestamp";
+var _M = "Message";
+var _MBS = "ManagedByStack";
+var _MCC = "MaxConcurrentCount";
+var _MCP = "MaxConcurrentPercentage";
+var _ME = "ManagedExecution";
+var _MI = "ModuleInfo";
+var _MR = "MaxResults";
+var _MTIM = "MonitoringTimeInMinutes";
+var _MV = "MajorVersion";
+var _Me = "Metadata";
+var _N = "Name";
+var _NARN = "NotificationARNs";
+var _NE = "NoEcho";
+var _NGTN = "NewGeneratedTemplateName";
+var _NOR = "NumberOfResources";
+var _NT = "NextToken";
+var _O = "Outputs";
+var _OF = "OnFailure";
+var _OI = "OperationId";
+var _OK = "OutputKey";
+var _OP = "OperationPreferences";
+var _OS = "OperationStatus";
+var _OSF = "OnStackFailure";
+var _OTA = "OriginalTypeArn";
+var _OTN = "OriginalTypeName";
+var _OUI = "OrganizationalUnitIds";
+var _OUIr = "OrganizationalUnitId";
+var _OV = "OutputValue";
+var _P = "Parameters";
+var _PA = "PolicyAction";
+var _PC = "PercentageCompleted";
+var _PCSI = "ParentChangeSetId";
+var _PCa = "ParameterConstraints";
+var _PD = "PropertyDifferences";
+var _PI = "PublisherId";
+var _PIa = "ParentId";
+var _PIu = "PublisherIdentity";
+var _PK = "ParameterKey";
+var _PM = "PermissionModel";
+var _PN = "PublisherName";
+var _PO = "ParameterOverrides";
+var _PP = "PublisherProfile";
+var _PPr = "PropertyPath";
+var _PRI = "PhysicalResourceId";
+var _PRIC = "PhysicalResourceIdContext";
+var _PS = "PublisherStatus";
+var _PSr = "ProgressStatus";
+var _PT = "PublishType";
+var _PTA = "PublicTypeArn";
+var _PTa = "ParameterType";
+var _PTr = "ProvisioningType";
+var _PV = "ParameterValue";
+var _PVN = "PublicVersionNumber";
+var _Pa = "Path";
+var _Pr = "Progress";
+var _Pro = "Properties";
+var _R = "Resources";
+var _RA = "ResourceAction";
+var _RAR = "RefreshAllResources";
+var _RARN = "RoleARN";
+var _RAT = "RequiredActivatedTypes";
+var _RC = "RollbackConfiguration";
+var _RCSI = "RootChangeSetId";
+var _RCT = "RegionConcurrencyType";
+var _RCe = "ResourceChange";
+var _REOC = "RetainExceptOnCreate";
+var _RF = "ResourcesFailed";
+var _RHP = "RecordHandlerProgress";
+var _RI = "ResourceIdentifier";
+var _RIS = "ResourceIdentifierSummaries";
+var _RIe = "ResourceIdentifiers";
+var _RIo = "RootId";
+var _RM = "ResourceMappings";
+var _RMe = "ResourceModel";
+var _RMes = "ResourceMapping";
+var _RO = "RegionOrder";
+var _RP = "RegisterPublisher";
+var _RPe = "ResourceProperties";
+var _RPes = "ResourcesProcessing";
+var _RPeso = "ResourcesPending";
+var _RR = "RetainResources";
+var _RRe = "RemoveResources";
+var _RRel = "RelatedResources";
+var _RReq = "RequiresRecreation";
+var _RRes = "ResourcesRead";
+var _RS = "RollbackStack";
+var _RSF = "RegistrationStatusFilter";
+var _RSI = "ResourceScanId";
+var _RSOAR = "RetainStacksOnAccountRemoval";
+var _RSR = "ResourceStatusReason";
+var _RSS = "ResourceScanSummaries";
+var _RSe = "RetainStacks";
+var _RSes = "ResourcesScanned";
+var _RSeso = "ResourceStatus";
+var _RSesou = "ResourcesSucceeded";
+var _RT = "RegisterType";
+var _RTD = "ResourceTargetDetails";
+var _RTI = "ResourcesToImport";
+var _RTL = "RegistrationTokenList";
+var _RTP = "ResourceTypePrefix";
+var _RTS = "ResourcesToSkip";
+var _RTe = "ResourceTypes";
+var _RTeg = "RegistrationToken";
+var _RTes = "ResourceType";
+var _RTo = "RollbackTriggers";
+var _RV = "ResolvedValue";
+var _Re = "Regions";
+var _Reg = "Region";
+var _Rep = "Replacement";
+var _Req = "Required";
+var _S = "Status";
+var _SA = "StagesAvailable";
+var _SD = "StackDefinitions";
+var _SDDI = "StackDriftDetectionId";
+var _SDS = "StackDriftStatus";
+var _SDt = "StatusDetails";
+var _SE = "StackEvents";
+var _SF = "ScanFilters";
+var _SHP = "SchemaHandlerPackage";
+var _SI = "StackId";
+var _SIA = "StackInstanceAccount";
+var _SIR = "StackInstanceRegion";
+var _SIRDS = "StackInstanceResourceDriftStatuses";
+var _SIS = "StackInstanceStatus";
+var _SIU = "StackIdsUrl";
+var _SIt = "StackIds";
+var _SIta = "StackInstance";
+var _SM = "StatusMessage";
+var _SMV = "SupportedMajorVersions";
+var _SN = "StackName";
+var _SPB = "StackPolicyBody";
+var _SPDUB = "StackPolicyDuringUpdateBody";
+var _SPDUURL = "StackPolicyDuringUpdateURL";
+var _SPURL = "StackPolicyURL";
+var _SR = "SignalResource";
+var _SRA = "StackRefactorActions";
+var _SRD = "StackResourceDrifts";
+var _SRDS = "StackResourceDriftStatus";
+var _SRDSF = "StackResourceDriftStatusFilters";
+var _SRDt = "StackResourceDetail";
+var _SRDta = "StackResourceDrift";
+var _SRI = "StackRefactorId";
+var _SRS = "StartResourceScan";
+var _SRSt = "StackRefactorSummaries";
+var _SRSta = "StackResourceSummaries";
+var _SRt = "StatusReason";
+var _SRta = "StackResources";
+var _SS = "StackSet";
+var _SSARN = "StackSetARN";
+var _SSDDD = "StackSetDriftDetectionDetails";
+var _SSF = "StackStatusFilter";
+var _SSI = "StackSetId";
+var _SSN = "StackSetName";
+var _SSO = "StackSetOperation";
+var _SSP = "SetStackPolicy";
+var _SSR = "StackStatusReason";
+var _SSSO = "StopStackSetOperation";
+var _SSt = "StackSummaries";
+var _SSta = "StackStatus";
+var _ST = "StartTime";
+var _STC = "SetTypeConfiguration";
+var _STDV = "SetTypeDefaultVersion";
+var _STF = "ScanTypeFilter";
+var _STc = "ScanType";
+var _SU = "SourceUrl";
+var _Sc = "Schema";
+var _Sco = "Scope";
+var _So = "Source";
+var _St = "Stacks";
+var _Su = "Summaries";
+var _T = "Type";
+var _TA = "TypeArn";
+var _TB = "TemplateBody";
+var _TC = "TemplateConfiguration";
+var _TCA = "TypeConfigurationAlias";
+var _TCAy = "TypeConfigurationArn";
+var _TCI = "TypeConfigurationIdentifiers";
+var _TCIy = "TypeConfigurationIdentifier";
+var _TCVI = "TypeConfigurationVersionId";
+var _TCi = "TimeCreated";
+var _TCy = "TypeConfigurations";
+var _TD = "TargetDetails";
+var _TDe = "TemplateDescription";
+var _TH = "TypeHierarchy";
+var _TI = "TargetId";
+var _TIM = "TimeoutInMinutes";
+var _TK = "TagKey";
+var _TN = "TypeName";
+var _TNA = "TypeNameAlias";
+var _TNP = "TypeNamePrefix";
+var _TR = "TagResources";
+var _TS = "TemplateStage";
+var _TSC = "TemplateSummaryConfig";
+var _TSIC = "TotalStackInstancesCount";
+var _TSy = "TypeSummaries";
+var _TT = "TestType";
+var _TTS = "TypeTestsStatus";
+var _TTSD = "TypeTestsStatusDescription";
+var _TTa = "TargetType";
+var _TURL = "TemplateURL";
+var _TURTAW = "TreatUnrecognizedResourceTypesAsWarnings";
+var _TV = "TagValue";
+var _TVA = "TypeVersionArn";
+var _TVI = "TypeVersionId";
+var _TVS = "TypeVersionSummaries";
+var _TW = "TotalWarnings";
+var _Ta = "Tags";
+var _Tar = "Target";
+var _Ti = "Timestamp";
+var _Ty = "Types";
+var _U = "Url";
+var _UGT = "UpdateGeneratedTemplate";
+var _UI = "UniqueId";
+var _UPT = "UsePreviousTemplate";
+var _UPV = "UsePreviousValue";
+var _UR = "UntagResources";
+var _URP = "UpdateReplacePolicy";
+var _URT = "UnrecognizedResourceTypes";
+var _US = "UpdateStack";
+var _USI = "UpdateStackInstances";
+var _USS = "UpdateStackSet";
+var _UTC = "UnprocessedTypeConfigurations";
+var _UTP = "UpdateTerminationProtection";
+var _V = "Version";
+var _VB = "VersionBump";
+var _VI = "VersionId";
+var _VT = "ValidateTemplate";
+var _Va = "Values";
+var _Val = "Value";
+var _Vi = "Visibility";
+var _W = "Warnings";
+var _e = "entry";
+var _m = "member";
+var buildFormUrlencodedString = /* @__PURE__ */ __name((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
+var loadQueryErrorCode = /* @__PURE__ */ __name((output, data) => {
+ if (data.Error?.Code !== void 0) {
+ return data.Error.Code;
+ }
+ if (output.statusCode == 404) {
+ return "NotFound";
+ }
+}, "loadQueryErrorCode");
+
+// src/commands/ActivateOrganizationsAccessCommand.ts
+var ActivateOrganizationsAccessCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ActivateOrganizationsAccess", {}).n("CloudFormationClient", "ActivateOrganizationsAccessCommand").f(void 0, void 0).ser(se_ActivateOrganizationsAccessCommand).de(de_ActivateOrganizationsAccessCommand).build() {
+ static {
+ __name(this, "ActivateOrganizationsAccessCommand");
+ }
+};
+
+// src/commands/ActivateTypeCommand.ts
+
+
+
+var ActivateTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ActivateType", {}).n("CloudFormationClient", "ActivateTypeCommand").f(void 0, void 0).ser(se_ActivateTypeCommand).de(de_ActivateTypeCommand).build() {
+ static {
+ __name(this, "ActivateTypeCommand");
+ }
+};
+
+// src/commands/BatchDescribeTypeConfigurationsCommand.ts
+
+
+
+var BatchDescribeTypeConfigurationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "BatchDescribeTypeConfigurations", {}).n("CloudFormationClient", "BatchDescribeTypeConfigurationsCommand").f(void 0, void 0).ser(se_BatchDescribeTypeConfigurationsCommand).de(de_BatchDescribeTypeConfigurationsCommand).build() {
+ static {
+ __name(this, "BatchDescribeTypeConfigurationsCommand");
+ }
+};
+
+// src/commands/CancelUpdateStackCommand.ts
+
+
+
+var CancelUpdateStackCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "CancelUpdateStack", {}).n("CloudFormationClient", "CancelUpdateStackCommand").f(void 0, void 0).ser(se_CancelUpdateStackCommand).de(de_CancelUpdateStackCommand).build() {
+ static {
+ __name(this, "CancelUpdateStackCommand");
+ }
+};
+
+// src/commands/ContinueUpdateRollbackCommand.ts
+
+
+
+var ContinueUpdateRollbackCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ContinueUpdateRollback", {}).n("CloudFormationClient", "ContinueUpdateRollbackCommand").f(void 0, void 0).ser(se_ContinueUpdateRollbackCommand).de(de_ContinueUpdateRollbackCommand).build() {
+ static {
+ __name(this, "ContinueUpdateRollbackCommand");
+ }
+};
+
+// src/commands/CreateChangeSetCommand.ts
+
+
+
+var CreateChangeSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "CreateChangeSet", {}).n("CloudFormationClient", "CreateChangeSetCommand").f(void 0, void 0).ser(se_CreateChangeSetCommand).de(de_CreateChangeSetCommand).build() {
+ static {
+ __name(this, "CreateChangeSetCommand");
+ }
+};
+
+// src/commands/CreateGeneratedTemplateCommand.ts
+
+
+
+var CreateGeneratedTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "CreateGeneratedTemplate", {}).n("CloudFormationClient", "CreateGeneratedTemplateCommand").f(void 0, void 0).ser(se_CreateGeneratedTemplateCommand).de(de_CreateGeneratedTemplateCommand).build() {
+ static {
+ __name(this, "CreateGeneratedTemplateCommand");
+ }
+};
+
+// src/commands/CreateStackCommand.ts
+
+
+
+var CreateStackCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "CreateStack", {}).n("CloudFormationClient", "CreateStackCommand").f(void 0, void 0).ser(se_CreateStackCommand).de(de_CreateStackCommand).build() {
+ static {
+ __name(this, "CreateStackCommand");
+ }
+};
+
+// src/commands/CreateStackInstancesCommand.ts
+
+
+
+var CreateStackInstancesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "CreateStackInstances", {}).n("CloudFormationClient", "CreateStackInstancesCommand").f(void 0, void 0).ser(se_CreateStackInstancesCommand).de(de_CreateStackInstancesCommand).build() {
+ static {
+ __name(this, "CreateStackInstancesCommand");
+ }
+};
+
+// src/commands/CreateStackRefactorCommand.ts
+
+
+
+var CreateStackRefactorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "CreateStackRefactor", {}).n("CloudFormationClient", "CreateStackRefactorCommand").f(void 0, void 0).ser(se_CreateStackRefactorCommand).de(de_CreateStackRefactorCommand).build() {
+ static {
+ __name(this, "CreateStackRefactorCommand");
+ }
+};
+
+// src/commands/CreateStackSetCommand.ts
+
+
+
+var CreateStackSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "CreateStackSet", {}).n("CloudFormationClient", "CreateStackSetCommand").f(void 0, void 0).ser(se_CreateStackSetCommand).de(de_CreateStackSetCommand).build() {
+ static {
+ __name(this, "CreateStackSetCommand");
+ }
+};
+
+// src/commands/DeactivateOrganizationsAccessCommand.ts
+
+
+
+var DeactivateOrganizationsAccessCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DeactivateOrganizationsAccess", {}).n("CloudFormationClient", "DeactivateOrganizationsAccessCommand").f(void 0, void 0).ser(se_DeactivateOrganizationsAccessCommand).de(de_DeactivateOrganizationsAccessCommand).build() {
+ static {
+ __name(this, "DeactivateOrganizationsAccessCommand");
+ }
+};
+
+// src/commands/DeactivateTypeCommand.ts
+
+
+
+var DeactivateTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DeactivateType", {}).n("CloudFormationClient", "DeactivateTypeCommand").f(void 0, void 0).ser(se_DeactivateTypeCommand).de(de_DeactivateTypeCommand).build() {
+ static {
+ __name(this, "DeactivateTypeCommand");
+ }
+};
+
+// src/commands/DeleteChangeSetCommand.ts
+
+
+
+var DeleteChangeSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DeleteChangeSet", {}).n("CloudFormationClient", "DeleteChangeSetCommand").f(void 0, void 0).ser(se_DeleteChangeSetCommand).de(de_DeleteChangeSetCommand).build() {
+ static {
+ __name(this, "DeleteChangeSetCommand");
+ }
+};
+
+// src/commands/DeleteGeneratedTemplateCommand.ts
+
+
+
+var DeleteGeneratedTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DeleteGeneratedTemplate", {}).n("CloudFormationClient", "DeleteGeneratedTemplateCommand").f(void 0, void 0).ser(se_DeleteGeneratedTemplateCommand).de(de_DeleteGeneratedTemplateCommand).build() {
+ static {
+ __name(this, "DeleteGeneratedTemplateCommand");
+ }
+};
+
+// src/commands/DeleteStackCommand.ts
+
+
+
+var DeleteStackCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DeleteStack", {}).n("CloudFormationClient", "DeleteStackCommand").f(void 0, void 0).ser(se_DeleteStackCommand).de(de_DeleteStackCommand).build() {
+ static {
+ __name(this, "DeleteStackCommand");
+ }
+};
+
+// src/commands/DeleteStackInstancesCommand.ts
+
+
+
+var DeleteStackInstancesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DeleteStackInstances", {}).n("CloudFormationClient", "DeleteStackInstancesCommand").f(void 0, void 0).ser(se_DeleteStackInstancesCommand).de(de_DeleteStackInstancesCommand).build() {
+ static {
+ __name(this, "DeleteStackInstancesCommand");
+ }
+};
+
+// src/commands/DeleteStackSetCommand.ts
+
+
+
+var DeleteStackSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DeleteStackSet", {}).n("CloudFormationClient", "DeleteStackSetCommand").f(void 0, void 0).ser(se_DeleteStackSetCommand).de(de_DeleteStackSetCommand).build() {
+ static {
+ __name(this, "DeleteStackSetCommand");
+ }
+};
+
+// src/commands/DeregisterTypeCommand.ts
+
+
+
+var DeregisterTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DeregisterType", {}).n("CloudFormationClient", "DeregisterTypeCommand").f(void 0, void 0).ser(se_DeregisterTypeCommand).de(de_DeregisterTypeCommand).build() {
+ static {
+ __name(this, "DeregisterTypeCommand");
+ }
+};
+
+// src/commands/DescribeAccountLimitsCommand.ts
+
+
+
+var DescribeAccountLimitsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeAccountLimits", {}).n("CloudFormationClient", "DescribeAccountLimitsCommand").f(void 0, void 0).ser(se_DescribeAccountLimitsCommand).de(de_DescribeAccountLimitsCommand).build() {
+ static {
+ __name(this, "DescribeAccountLimitsCommand");
+ }
+};
+
+// src/commands/DescribeChangeSetCommand.ts
+
+
+
+var DescribeChangeSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeChangeSet", {}).n("CloudFormationClient", "DescribeChangeSetCommand").f(void 0, void 0).ser(se_DescribeChangeSetCommand).de(de_DescribeChangeSetCommand).build() {
+ static {
+ __name(this, "DescribeChangeSetCommand");
+ }
+};
+
+// src/commands/DescribeChangeSetHooksCommand.ts
+
+
+
+var DescribeChangeSetHooksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeChangeSetHooks", {}).n("CloudFormationClient", "DescribeChangeSetHooksCommand").f(void 0, void 0).ser(se_DescribeChangeSetHooksCommand).de(de_DescribeChangeSetHooksCommand).build() {
+ static {
+ __name(this, "DescribeChangeSetHooksCommand");
+ }
+};
+
+// src/commands/DescribeGeneratedTemplateCommand.ts
+
+
+
+var DescribeGeneratedTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeGeneratedTemplate", {}).n("CloudFormationClient", "DescribeGeneratedTemplateCommand").f(void 0, void 0).ser(se_DescribeGeneratedTemplateCommand).de(de_DescribeGeneratedTemplateCommand).build() {
+ static {
+ __name(this, "DescribeGeneratedTemplateCommand");
+ }
+};
+
+// src/commands/DescribeOrganizationsAccessCommand.ts
+
+
+
+var DescribeOrganizationsAccessCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeOrganizationsAccess", {}).n("CloudFormationClient", "DescribeOrganizationsAccessCommand").f(void 0, void 0).ser(se_DescribeOrganizationsAccessCommand).de(de_DescribeOrganizationsAccessCommand).build() {
+ static {
+ __name(this, "DescribeOrganizationsAccessCommand");
+ }
+};
+
+// src/commands/DescribePublisherCommand.ts
+
+
+
+var DescribePublisherCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribePublisher", {}).n("CloudFormationClient", "DescribePublisherCommand").f(void 0, void 0).ser(se_DescribePublisherCommand).de(de_DescribePublisherCommand).build() {
+ static {
+ __name(this, "DescribePublisherCommand");
+ }
+};
+
+// src/commands/DescribeResourceScanCommand.ts
+
+
+
+var DescribeResourceScanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeResourceScan", {}).n("CloudFormationClient", "DescribeResourceScanCommand").f(void 0, void 0).ser(se_DescribeResourceScanCommand).de(de_DescribeResourceScanCommand).build() {
+ static {
+ __name(this, "DescribeResourceScanCommand");
+ }
+};
+
+// src/commands/DescribeStackDriftDetectionStatusCommand.ts
+
+
+
+var DescribeStackDriftDetectionStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeStackDriftDetectionStatus", {}).n("CloudFormationClient", "DescribeStackDriftDetectionStatusCommand").f(void 0, void 0).ser(se_DescribeStackDriftDetectionStatusCommand).de(de_DescribeStackDriftDetectionStatusCommand).build() {
+ static {
+ __name(this, "DescribeStackDriftDetectionStatusCommand");
+ }
+};
+
+// src/commands/DescribeStackEventsCommand.ts
+
+
+
+var DescribeStackEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeStackEvents", {}).n("CloudFormationClient", "DescribeStackEventsCommand").f(void 0, void 0).ser(se_DescribeStackEventsCommand).de(de_DescribeStackEventsCommand).build() {
+ static {
+ __name(this, "DescribeStackEventsCommand");
+ }
+};
+
+// src/commands/DescribeStackInstanceCommand.ts
+
+
+
+var DescribeStackInstanceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeStackInstance", {}).n("CloudFormationClient", "DescribeStackInstanceCommand").f(void 0, void 0).ser(se_DescribeStackInstanceCommand).de(de_DescribeStackInstanceCommand).build() {
+ static {
+ __name(this, "DescribeStackInstanceCommand");
+ }
+};
+
+// src/commands/DescribeStackRefactorCommand.ts
+
+
+
+var DescribeStackRefactorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeStackRefactor", {}).n("CloudFormationClient", "DescribeStackRefactorCommand").f(void 0, void 0).ser(se_DescribeStackRefactorCommand).de(de_DescribeStackRefactorCommand).build() {
+ static {
+ __name(this, "DescribeStackRefactorCommand");
+ }
+};
+
+// src/commands/DescribeStackResourceCommand.ts
+
+
+
+var DescribeStackResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeStackResource", {}).n("CloudFormationClient", "DescribeStackResourceCommand").f(void 0, void 0).ser(se_DescribeStackResourceCommand).de(de_DescribeStackResourceCommand).build() {
+ static {
+ __name(this, "DescribeStackResourceCommand");
+ }
+};
+
+// src/commands/DescribeStackResourceDriftsCommand.ts
+
+
+
+var DescribeStackResourceDriftsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeStackResourceDrifts", {}).n("CloudFormationClient", "DescribeStackResourceDriftsCommand").f(void 0, void 0).ser(se_DescribeStackResourceDriftsCommand).de(de_DescribeStackResourceDriftsCommand).build() {
+ static {
+ __name(this, "DescribeStackResourceDriftsCommand");
+ }
+};
+
+// src/commands/DescribeStackResourcesCommand.ts
+
+
+
+var DescribeStackResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeStackResources", {}).n("CloudFormationClient", "DescribeStackResourcesCommand").f(void 0, void 0).ser(se_DescribeStackResourcesCommand).de(de_DescribeStackResourcesCommand).build() {
+ static {
+ __name(this, "DescribeStackResourcesCommand");
+ }
+};
+
+// src/commands/DescribeStacksCommand.ts
+
+
+
+var DescribeStacksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeStacks", {}).n("CloudFormationClient", "DescribeStacksCommand").f(void 0, void 0).ser(se_DescribeStacksCommand).de(de_DescribeStacksCommand).build() {
+ static {
+ __name(this, "DescribeStacksCommand");
+ }
+};
+
+// src/commands/DescribeStackSetCommand.ts
+
+
+
+var DescribeStackSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeStackSet", {}).n("CloudFormationClient", "DescribeStackSetCommand").f(void 0, void 0).ser(se_DescribeStackSetCommand).de(de_DescribeStackSetCommand).build() {
+ static {
+ __name(this, "DescribeStackSetCommand");
+ }
+};
+
+// src/commands/DescribeStackSetOperationCommand.ts
+
+
+
+var DescribeStackSetOperationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeStackSetOperation", {}).n("CloudFormationClient", "DescribeStackSetOperationCommand").f(void 0, void 0).ser(se_DescribeStackSetOperationCommand).de(de_DescribeStackSetOperationCommand).build() {
+ static {
+ __name(this, "DescribeStackSetOperationCommand");
+ }
+};
+
+// src/commands/DescribeTypeCommand.ts
+
+
+
+var DescribeTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeType", {}).n("CloudFormationClient", "DescribeTypeCommand").f(void 0, void 0).ser(se_DescribeTypeCommand).de(de_DescribeTypeCommand).build() {
+ static {
+ __name(this, "DescribeTypeCommand");
+ }
+};
+
+// src/commands/DescribeTypeRegistrationCommand.ts
+
+
+
+var DescribeTypeRegistrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DescribeTypeRegistration", {}).n("CloudFormationClient", "DescribeTypeRegistrationCommand").f(void 0, void 0).ser(se_DescribeTypeRegistrationCommand).de(de_DescribeTypeRegistrationCommand).build() {
+ static {
+ __name(this, "DescribeTypeRegistrationCommand");
+ }
+};
+
+// src/commands/DetectStackDriftCommand.ts
+
+
+
+var DetectStackDriftCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DetectStackDrift", {}).n("CloudFormationClient", "DetectStackDriftCommand").f(void 0, void 0).ser(se_DetectStackDriftCommand).de(de_DetectStackDriftCommand).build() {
+ static {
+ __name(this, "DetectStackDriftCommand");
+ }
+};
+
+// src/commands/DetectStackResourceDriftCommand.ts
+
+
+
+var DetectStackResourceDriftCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DetectStackResourceDrift", {}).n("CloudFormationClient", "DetectStackResourceDriftCommand").f(void 0, void 0).ser(se_DetectStackResourceDriftCommand).de(de_DetectStackResourceDriftCommand).build() {
+ static {
+ __name(this, "DetectStackResourceDriftCommand");
+ }
+};
+
+// src/commands/DetectStackSetDriftCommand.ts
+
+
+
+var DetectStackSetDriftCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "DetectStackSetDrift", {}).n("CloudFormationClient", "DetectStackSetDriftCommand").f(void 0, void 0).ser(se_DetectStackSetDriftCommand).de(de_DetectStackSetDriftCommand).build() {
+ static {
+ __name(this, "DetectStackSetDriftCommand");
+ }
+};
+
+// src/commands/EstimateTemplateCostCommand.ts
+
+
+
+var EstimateTemplateCostCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "EstimateTemplateCost", {}).n("CloudFormationClient", "EstimateTemplateCostCommand").f(void 0, void 0).ser(se_EstimateTemplateCostCommand).de(de_EstimateTemplateCostCommand).build() {
+ static {
+ __name(this, "EstimateTemplateCostCommand");
+ }
+};
+
+// src/commands/ExecuteChangeSetCommand.ts
+
+
+
+var ExecuteChangeSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ExecuteChangeSet", {}).n("CloudFormationClient", "ExecuteChangeSetCommand").f(void 0, void 0).ser(se_ExecuteChangeSetCommand).de(de_ExecuteChangeSetCommand).build() {
+ static {
+ __name(this, "ExecuteChangeSetCommand");
+ }
+};
+
+// src/commands/ExecuteStackRefactorCommand.ts
+
+
+
+var ExecuteStackRefactorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ExecuteStackRefactor", {}).n("CloudFormationClient", "ExecuteStackRefactorCommand").f(void 0, void 0).ser(se_ExecuteStackRefactorCommand).de(de_ExecuteStackRefactorCommand).build() {
+ static {
+ __name(this, "ExecuteStackRefactorCommand");
+ }
+};
+
+// src/commands/GetGeneratedTemplateCommand.ts
+
+
+
+var GetGeneratedTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "GetGeneratedTemplate", {}).n("CloudFormationClient", "GetGeneratedTemplateCommand").f(void 0, void 0).ser(se_GetGeneratedTemplateCommand).de(de_GetGeneratedTemplateCommand).build() {
+ static {
+ __name(this, "GetGeneratedTemplateCommand");
+ }
+};
+
+// src/commands/GetStackPolicyCommand.ts
+
+
+
+var GetStackPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "GetStackPolicy", {}).n("CloudFormationClient", "GetStackPolicyCommand").f(void 0, void 0).ser(se_GetStackPolicyCommand).de(de_GetStackPolicyCommand).build() {
+ static {
+ __name(this, "GetStackPolicyCommand");
+ }
+};
+
+// src/commands/GetTemplateCommand.ts
+
+
+
+var GetTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "GetTemplate", {}).n("CloudFormationClient", "GetTemplateCommand").f(void 0, void 0).ser(se_GetTemplateCommand).de(de_GetTemplateCommand).build() {
+ static {
+ __name(this, "GetTemplateCommand");
+ }
+};
+
+// src/commands/GetTemplateSummaryCommand.ts
+
+
+
+var GetTemplateSummaryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "GetTemplateSummary", {}).n("CloudFormationClient", "GetTemplateSummaryCommand").f(void 0, void 0).ser(se_GetTemplateSummaryCommand).de(de_GetTemplateSummaryCommand).build() {
+ static {
+ __name(this, "GetTemplateSummaryCommand");
+ }
+};
+
+// src/commands/ImportStacksToStackSetCommand.ts
+
+
+
+var ImportStacksToStackSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ImportStacksToStackSet", {}).n("CloudFormationClient", "ImportStacksToStackSetCommand").f(void 0, void 0).ser(se_ImportStacksToStackSetCommand).de(de_ImportStacksToStackSetCommand).build() {
+ static {
+ __name(this, "ImportStacksToStackSetCommand");
+ }
+};
+
+// src/commands/ListChangeSetsCommand.ts
+
+
+
+var ListChangeSetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListChangeSets", {}).n("CloudFormationClient", "ListChangeSetsCommand").f(void 0, void 0).ser(se_ListChangeSetsCommand).de(de_ListChangeSetsCommand).build() {
+ static {
+ __name(this, "ListChangeSetsCommand");
+ }
+};
+
+// src/commands/ListExportsCommand.ts
+
+
+
+var ListExportsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListExports", {}).n("CloudFormationClient", "ListExportsCommand").f(void 0, void 0).ser(se_ListExportsCommand).de(de_ListExportsCommand).build() {
+ static {
+ __name(this, "ListExportsCommand");
+ }
+};
+
+// src/commands/ListGeneratedTemplatesCommand.ts
+
+
+
+var ListGeneratedTemplatesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListGeneratedTemplates", {}).n("CloudFormationClient", "ListGeneratedTemplatesCommand").f(void 0, void 0).ser(se_ListGeneratedTemplatesCommand).de(de_ListGeneratedTemplatesCommand).build() {
+ static {
+ __name(this, "ListGeneratedTemplatesCommand");
+ }
+};
+
+// src/commands/ListHookResultsCommand.ts
+
+
+
+var ListHookResultsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListHookResults", {}).n("CloudFormationClient", "ListHookResultsCommand").f(void 0, void 0).ser(se_ListHookResultsCommand).de(de_ListHookResultsCommand).build() {
+ static {
+ __name(this, "ListHookResultsCommand");
+ }
+};
+
+// src/commands/ListImportsCommand.ts
+
+
+
+var ListImportsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListImports", {}).n("CloudFormationClient", "ListImportsCommand").f(void 0, void 0).ser(se_ListImportsCommand).de(de_ListImportsCommand).build() {
+ static {
+ __name(this, "ListImportsCommand");
+ }
+};
+
+// src/commands/ListResourceScanRelatedResourcesCommand.ts
+
+
+
+var ListResourceScanRelatedResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListResourceScanRelatedResources", {}).n("CloudFormationClient", "ListResourceScanRelatedResourcesCommand").f(void 0, void 0).ser(se_ListResourceScanRelatedResourcesCommand).de(de_ListResourceScanRelatedResourcesCommand).build() {
+ static {
+ __name(this, "ListResourceScanRelatedResourcesCommand");
+ }
+};
+
+// src/commands/ListResourceScanResourcesCommand.ts
+
+
+
+var ListResourceScanResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListResourceScanResources", {}).n("CloudFormationClient", "ListResourceScanResourcesCommand").f(void 0, void 0).ser(se_ListResourceScanResourcesCommand).de(de_ListResourceScanResourcesCommand).build() {
+ static {
+ __name(this, "ListResourceScanResourcesCommand");
+ }
+};
+
+// src/commands/ListResourceScansCommand.ts
+
+
+
+var ListResourceScansCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListResourceScans", {}).n("CloudFormationClient", "ListResourceScansCommand").f(void 0, void 0).ser(se_ListResourceScansCommand).de(de_ListResourceScansCommand).build() {
+ static {
+ __name(this, "ListResourceScansCommand");
+ }
+};
+
+// src/commands/ListStackInstanceResourceDriftsCommand.ts
+
+
+
+var ListStackInstanceResourceDriftsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListStackInstanceResourceDrifts", {}).n("CloudFormationClient", "ListStackInstanceResourceDriftsCommand").f(void 0, void 0).ser(se_ListStackInstanceResourceDriftsCommand).de(de_ListStackInstanceResourceDriftsCommand).build() {
+ static {
+ __name(this, "ListStackInstanceResourceDriftsCommand");
+ }
+};
+
+// src/commands/ListStackInstancesCommand.ts
+
+
+
+var ListStackInstancesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListStackInstances", {}).n("CloudFormationClient", "ListStackInstancesCommand").f(void 0, void 0).ser(se_ListStackInstancesCommand).de(de_ListStackInstancesCommand).build() {
+ static {
+ __name(this, "ListStackInstancesCommand");
+ }
+};
+
+// src/commands/ListStackRefactorActionsCommand.ts
+
+
+
+var ListStackRefactorActionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListStackRefactorActions", {}).n("CloudFormationClient", "ListStackRefactorActionsCommand").f(void 0, void 0).ser(se_ListStackRefactorActionsCommand).de(de_ListStackRefactorActionsCommand).build() {
+ static {
+ __name(this, "ListStackRefactorActionsCommand");
+ }
+};
+
+// src/commands/ListStackRefactorsCommand.ts
+
+
+
+var ListStackRefactorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListStackRefactors", {}).n("CloudFormationClient", "ListStackRefactorsCommand").f(void 0, void 0).ser(se_ListStackRefactorsCommand).de(de_ListStackRefactorsCommand).build() {
+ static {
+ __name(this, "ListStackRefactorsCommand");
+ }
+};
+
+// src/commands/ListStackResourcesCommand.ts
+
+
+
+var ListStackResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListStackResources", {}).n("CloudFormationClient", "ListStackResourcesCommand").f(void 0, void 0).ser(se_ListStackResourcesCommand).de(de_ListStackResourcesCommand).build() {
+ static {
+ __name(this, "ListStackResourcesCommand");
+ }
+};
+
+// src/commands/ListStacksCommand.ts
+
+
+
+var ListStacksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListStacks", {}).n("CloudFormationClient", "ListStacksCommand").f(void 0, void 0).ser(se_ListStacksCommand).de(de_ListStacksCommand).build() {
+ static {
+ __name(this, "ListStacksCommand");
+ }
+};
+
+// src/commands/ListStackSetAutoDeploymentTargetsCommand.ts
+
+
+
+var ListStackSetAutoDeploymentTargetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListStackSetAutoDeploymentTargets", {}).n("CloudFormationClient", "ListStackSetAutoDeploymentTargetsCommand").f(void 0, void 0).ser(se_ListStackSetAutoDeploymentTargetsCommand).de(de_ListStackSetAutoDeploymentTargetsCommand).build() {
+ static {
+ __name(this, "ListStackSetAutoDeploymentTargetsCommand");
+ }
+};
+
+// src/commands/ListStackSetOperationResultsCommand.ts
+
+
+
+var ListStackSetOperationResultsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListStackSetOperationResults", {}).n("CloudFormationClient", "ListStackSetOperationResultsCommand").f(void 0, void 0).ser(se_ListStackSetOperationResultsCommand).de(de_ListStackSetOperationResultsCommand).build() {
+ static {
+ __name(this, "ListStackSetOperationResultsCommand");
+ }
+};
+
+// src/commands/ListStackSetOperationsCommand.ts
+
+
+
+var ListStackSetOperationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListStackSetOperations", {}).n("CloudFormationClient", "ListStackSetOperationsCommand").f(void 0, void 0).ser(se_ListStackSetOperationsCommand).de(de_ListStackSetOperationsCommand).build() {
+ static {
+ __name(this, "ListStackSetOperationsCommand");
+ }
+};
+
+// src/commands/ListStackSetsCommand.ts
+
+
+
+var ListStackSetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListStackSets", {}).n("CloudFormationClient", "ListStackSetsCommand").f(void 0, void 0).ser(se_ListStackSetsCommand).de(de_ListStackSetsCommand).build() {
+ static {
+ __name(this, "ListStackSetsCommand");
+ }
+};
+
+// src/commands/ListTypeRegistrationsCommand.ts
+
+
+
+var ListTypeRegistrationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListTypeRegistrations", {}).n("CloudFormationClient", "ListTypeRegistrationsCommand").f(void 0, void 0).ser(se_ListTypeRegistrationsCommand).de(de_ListTypeRegistrationsCommand).build() {
+ static {
+ __name(this, "ListTypeRegistrationsCommand");
+ }
+};
+
+// src/commands/ListTypesCommand.ts
+
+
+
+var ListTypesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListTypes", {}).n("CloudFormationClient", "ListTypesCommand").f(void 0, void 0).ser(se_ListTypesCommand).de(de_ListTypesCommand).build() {
+ static {
+ __name(this, "ListTypesCommand");
+ }
+};
+
+// src/commands/ListTypeVersionsCommand.ts
+
+
+
+var ListTypeVersionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ListTypeVersions", {}).n("CloudFormationClient", "ListTypeVersionsCommand").f(void 0, void 0).ser(se_ListTypeVersionsCommand).de(de_ListTypeVersionsCommand).build() {
+ static {
+ __name(this, "ListTypeVersionsCommand");
+ }
+};
+
+// src/commands/PublishTypeCommand.ts
+
+
+
+var PublishTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "PublishType", {}).n("CloudFormationClient", "PublishTypeCommand").f(void 0, void 0).ser(se_PublishTypeCommand).de(de_PublishTypeCommand).build() {
+ static {
+ __name(this, "PublishTypeCommand");
+ }
+};
+
+// src/commands/RecordHandlerProgressCommand.ts
+
+
+
+var RecordHandlerProgressCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "RecordHandlerProgress", {}).n("CloudFormationClient", "RecordHandlerProgressCommand").f(void 0, void 0).ser(se_RecordHandlerProgressCommand).de(de_RecordHandlerProgressCommand).build() {
+ static {
+ __name(this, "RecordHandlerProgressCommand");
+ }
+};
+
+// src/commands/RegisterPublisherCommand.ts
+
+
+
+var RegisterPublisherCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "RegisterPublisher", {}).n("CloudFormationClient", "RegisterPublisherCommand").f(void 0, void 0).ser(se_RegisterPublisherCommand).de(de_RegisterPublisherCommand).build() {
+ static {
+ __name(this, "RegisterPublisherCommand");
+ }
+};
+
+// src/commands/RegisterTypeCommand.ts
+
+
+
+var RegisterTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "RegisterType", {}).n("CloudFormationClient", "RegisterTypeCommand").f(void 0, void 0).ser(se_RegisterTypeCommand).de(de_RegisterTypeCommand).build() {
+ static {
+ __name(this, "RegisterTypeCommand");
+ }
+};
+
+// src/commands/RollbackStackCommand.ts
+
+
+
+var RollbackStackCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "RollbackStack", {}).n("CloudFormationClient", "RollbackStackCommand").f(void 0, void 0).ser(se_RollbackStackCommand).de(de_RollbackStackCommand).build() {
+ static {
+ __name(this, "RollbackStackCommand");
+ }
+};
+
+// src/commands/SetStackPolicyCommand.ts
+
+
+
+var SetStackPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "SetStackPolicy", {}).n("CloudFormationClient", "SetStackPolicyCommand").f(void 0, void 0).ser(se_SetStackPolicyCommand).de(de_SetStackPolicyCommand).build() {
+ static {
+ __name(this, "SetStackPolicyCommand");
+ }
+};
+
+// src/commands/SetTypeConfigurationCommand.ts
+
+
+
+var SetTypeConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "SetTypeConfiguration", {}).n("CloudFormationClient", "SetTypeConfigurationCommand").f(void 0, void 0).ser(se_SetTypeConfigurationCommand).de(de_SetTypeConfigurationCommand).build() {
+ static {
+ __name(this, "SetTypeConfigurationCommand");
+ }
+};
+
+// src/commands/SetTypeDefaultVersionCommand.ts
+
+
+
+var SetTypeDefaultVersionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "SetTypeDefaultVersion", {}).n("CloudFormationClient", "SetTypeDefaultVersionCommand").f(void 0, void 0).ser(se_SetTypeDefaultVersionCommand).de(de_SetTypeDefaultVersionCommand).build() {
+ static {
+ __name(this, "SetTypeDefaultVersionCommand");
+ }
+};
+
+// src/commands/SignalResourceCommand.ts
+
+
+
+var SignalResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "SignalResource", {}).n("CloudFormationClient", "SignalResourceCommand").f(void 0, void 0).ser(se_SignalResourceCommand).de(de_SignalResourceCommand).build() {
+ static {
+ __name(this, "SignalResourceCommand");
+ }
+};
+
+// src/commands/StartResourceScanCommand.ts
+
+
+
+var StartResourceScanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "StartResourceScan", {}).n("CloudFormationClient", "StartResourceScanCommand").f(void 0, void 0).ser(se_StartResourceScanCommand).de(de_StartResourceScanCommand).build() {
+ static {
+ __name(this, "StartResourceScanCommand");
+ }
+};
+
+// src/commands/StopStackSetOperationCommand.ts
+
+
+
+var StopStackSetOperationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "StopStackSetOperation", {}).n("CloudFormationClient", "StopStackSetOperationCommand").f(void 0, void 0).ser(se_StopStackSetOperationCommand).de(de_StopStackSetOperationCommand).build() {
+ static {
+ __name(this, "StopStackSetOperationCommand");
+ }
+};
+
+// src/commands/TestTypeCommand.ts
+
+
+
+var TestTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "TestType", {}).n("CloudFormationClient", "TestTypeCommand").f(void 0, void 0).ser(se_TestTypeCommand).de(de_TestTypeCommand).build() {
+ static {
+ __name(this, "TestTypeCommand");
+ }
+};
+
+// src/commands/UpdateGeneratedTemplateCommand.ts
+
+
+
+var UpdateGeneratedTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "UpdateGeneratedTemplate", {}).n("CloudFormationClient", "UpdateGeneratedTemplateCommand").f(void 0, void 0).ser(se_UpdateGeneratedTemplateCommand).de(de_UpdateGeneratedTemplateCommand).build() {
+ static {
+ __name(this, "UpdateGeneratedTemplateCommand");
+ }
+};
+
+// src/commands/UpdateStackCommand.ts
+
+
+
+var UpdateStackCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "UpdateStack", {}).n("CloudFormationClient", "UpdateStackCommand").f(void 0, void 0).ser(se_UpdateStackCommand).de(de_UpdateStackCommand).build() {
+ static {
+ __name(this, "UpdateStackCommand");
+ }
+};
+
+// src/commands/UpdateStackInstancesCommand.ts
+
+
+
+var UpdateStackInstancesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "UpdateStackInstances", {}).n("CloudFormationClient", "UpdateStackInstancesCommand").f(void 0, void 0).ser(se_UpdateStackInstancesCommand).de(de_UpdateStackInstancesCommand).build() {
+ static {
+ __name(this, "UpdateStackInstancesCommand");
+ }
+};
+
+// src/commands/UpdateStackSetCommand.ts
+
+
+
+var UpdateStackSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "UpdateStackSet", {}).n("CloudFormationClient", "UpdateStackSetCommand").f(void 0, void 0).ser(se_UpdateStackSetCommand).de(de_UpdateStackSetCommand).build() {
+ static {
+ __name(this, "UpdateStackSetCommand");
+ }
+};
+
+// src/commands/UpdateTerminationProtectionCommand.ts
+
+
+
+var UpdateTerminationProtectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "UpdateTerminationProtection", {}).n("CloudFormationClient", "UpdateTerminationProtectionCommand").f(void 0, void 0).ser(se_UpdateTerminationProtectionCommand).de(de_UpdateTerminationProtectionCommand).build() {
+ static {
+ __name(this, "UpdateTerminationProtectionCommand");
+ }
+};
+
+// src/commands/ValidateTemplateCommand.ts
+
+
+
+var ValidateTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("CloudFormation", "ValidateTemplate", {}).n("CloudFormationClient", "ValidateTemplateCommand").f(void 0, void 0).ser(se_ValidateTemplateCommand).de(de_ValidateTemplateCommand).build() {
+ static {
+ __name(this, "ValidateTemplateCommand");
+ }
+};
+
+// src/CloudFormation.ts
+var commands = {
+ ActivateOrganizationsAccessCommand,
+ ActivateTypeCommand,
+ BatchDescribeTypeConfigurationsCommand,
+ CancelUpdateStackCommand,
+ ContinueUpdateRollbackCommand,
+ CreateChangeSetCommand,
+ CreateGeneratedTemplateCommand,
+ CreateStackCommand,
+ CreateStackInstancesCommand,
+ CreateStackRefactorCommand,
+ CreateStackSetCommand,
+ DeactivateOrganizationsAccessCommand,
+ DeactivateTypeCommand,
+ DeleteChangeSetCommand,
+ DeleteGeneratedTemplateCommand,
+ DeleteStackCommand,
+ DeleteStackInstancesCommand,
+ DeleteStackSetCommand,
+ DeregisterTypeCommand,
+ DescribeAccountLimitsCommand,
+ DescribeChangeSetCommand,
+ DescribeChangeSetHooksCommand,
+ DescribeGeneratedTemplateCommand,
+ DescribeOrganizationsAccessCommand,
+ DescribePublisherCommand,
+ DescribeResourceScanCommand,
+ DescribeStackDriftDetectionStatusCommand,
+ DescribeStackEventsCommand,
+ DescribeStackInstanceCommand,
+ DescribeStackRefactorCommand,
+ DescribeStackResourceCommand,
+ DescribeStackResourceDriftsCommand,
+ DescribeStackResourcesCommand,
+ DescribeStacksCommand,
+ DescribeStackSetCommand,
+ DescribeStackSetOperationCommand,
+ DescribeTypeCommand,
+ DescribeTypeRegistrationCommand,
+ DetectStackDriftCommand,
+ DetectStackResourceDriftCommand,
+ DetectStackSetDriftCommand,
+ EstimateTemplateCostCommand,
+ ExecuteChangeSetCommand,
+ ExecuteStackRefactorCommand,
+ GetGeneratedTemplateCommand,
+ GetStackPolicyCommand,
+ GetTemplateCommand,
+ GetTemplateSummaryCommand,
+ ImportStacksToStackSetCommand,
+ ListChangeSetsCommand,
+ ListExportsCommand,
+ ListGeneratedTemplatesCommand,
+ ListHookResultsCommand,
+ ListImportsCommand,
+ ListResourceScanRelatedResourcesCommand,
+ ListResourceScanResourcesCommand,
+ ListResourceScansCommand,
+ ListStackInstanceResourceDriftsCommand,
+ ListStackInstancesCommand,
+ ListStackRefactorActionsCommand,
+ ListStackRefactorsCommand,
+ ListStackResourcesCommand,
+ ListStacksCommand,
+ ListStackSetAutoDeploymentTargetsCommand,
+ ListStackSetOperationResultsCommand,
+ ListStackSetOperationsCommand,
+ ListStackSetsCommand,
+ ListTypeRegistrationsCommand,
+ ListTypesCommand,
+ ListTypeVersionsCommand,
+ PublishTypeCommand,
+ RecordHandlerProgressCommand,
+ RegisterPublisherCommand,
+ RegisterTypeCommand,
+ RollbackStackCommand,
+ SetStackPolicyCommand,
+ SetTypeConfigurationCommand,
+ SetTypeDefaultVersionCommand,
+ SignalResourceCommand,
+ StartResourceScanCommand,
+ StopStackSetOperationCommand,
+ TestTypeCommand,
+ UpdateGeneratedTemplateCommand,
+ UpdateStackCommand,
+ UpdateStackInstancesCommand,
+ UpdateStackSetCommand,
+ UpdateTerminationProtectionCommand,
+ ValidateTemplateCommand
+};
+var CloudFormation = class extends CloudFormationClient {
+ static {
+ __name(this, "CloudFormation");
+ }
+};
+(0, import_smithy_client.createAggregatedClient)(commands, CloudFormation);
+
+// src/pagination/DescribeAccountLimitsPaginator.ts
+
+var paginateDescribeAccountLimits = (0, import_core.createPaginator)(CloudFormationClient, DescribeAccountLimitsCommand, "NextToken", "NextToken", "");
+
+// src/pagination/DescribeStackEventsPaginator.ts
+
+var paginateDescribeStackEvents = (0, import_core.createPaginator)(CloudFormationClient, DescribeStackEventsCommand, "NextToken", "NextToken", "");
+
+// src/pagination/DescribeStackResourceDriftsPaginator.ts
+
+var paginateDescribeStackResourceDrifts = (0, import_core.createPaginator)(CloudFormationClient, DescribeStackResourceDriftsCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/DescribeStacksPaginator.ts
+
+var paginateDescribeStacks = (0, import_core.createPaginator)(CloudFormationClient, DescribeStacksCommand, "NextToken", "NextToken", "");
+
+// src/pagination/ListChangeSetsPaginator.ts
+
+var paginateListChangeSets = (0, import_core.createPaginator)(CloudFormationClient, ListChangeSetsCommand, "NextToken", "NextToken", "");
+
+// src/pagination/ListExportsPaginator.ts
+
+var paginateListExports = (0, import_core.createPaginator)(CloudFormationClient, ListExportsCommand, "NextToken", "NextToken", "");
+
+// src/pagination/ListGeneratedTemplatesPaginator.ts
+
+var paginateListGeneratedTemplates = (0, import_core.createPaginator)(CloudFormationClient, ListGeneratedTemplatesCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListImportsPaginator.ts
+
+var paginateListImports = (0, import_core.createPaginator)(CloudFormationClient, ListImportsCommand, "NextToken", "NextToken", "");
+
+// src/pagination/ListResourceScanRelatedResourcesPaginator.ts
+
+var paginateListResourceScanRelatedResources = (0, import_core.createPaginator)(CloudFormationClient, ListResourceScanRelatedResourcesCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListResourceScanResourcesPaginator.ts
+
+var paginateListResourceScanResources = (0, import_core.createPaginator)(CloudFormationClient, ListResourceScanResourcesCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListResourceScansPaginator.ts
+
+var paginateListResourceScans = (0, import_core.createPaginator)(CloudFormationClient, ListResourceScansCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListStackInstancesPaginator.ts
+
+var paginateListStackInstances = (0, import_core.createPaginator)(CloudFormationClient, ListStackInstancesCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListStackRefactorActionsPaginator.ts
+
+var paginateListStackRefactorActions = (0, import_core.createPaginator)(CloudFormationClient, ListStackRefactorActionsCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListStackRefactorsPaginator.ts
+
+var paginateListStackRefactors = (0, import_core.createPaginator)(CloudFormationClient, ListStackRefactorsCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListStackResourcesPaginator.ts
+
+var paginateListStackResources = (0, import_core.createPaginator)(CloudFormationClient, ListStackResourcesCommand, "NextToken", "NextToken", "");
+
+// src/pagination/ListStackSetOperationResultsPaginator.ts
+
+var paginateListStackSetOperationResults = (0, import_core.createPaginator)(CloudFormationClient, ListStackSetOperationResultsCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListStackSetOperationsPaginator.ts
+
+var paginateListStackSetOperations = (0, import_core.createPaginator)(CloudFormationClient, ListStackSetOperationsCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListStackSetsPaginator.ts
+
+var paginateListStackSets = (0, import_core.createPaginator)(CloudFormationClient, ListStackSetsCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListStacksPaginator.ts
+
+var paginateListStacks = (0, import_core.createPaginator)(CloudFormationClient, ListStacksCommand, "NextToken", "NextToken", "");
+
+// src/pagination/ListTypeRegistrationsPaginator.ts
+
+var paginateListTypeRegistrations = (0, import_core.createPaginator)(CloudFormationClient, ListTypeRegistrationsCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListTypeVersionsPaginator.ts
+
+var paginateListTypeVersions = (0, import_core.createPaginator)(CloudFormationClient, ListTypeVersionsCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListTypesPaginator.ts
+
+var paginateListTypes = (0, import_core.createPaginator)(CloudFormationClient, ListTypesCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/waiters/waitForChangeSetCreateComplete.ts
+var import_util_waiter = __nccwpck_require__(78011);
+var checkState = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeChangeSetCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ return result.Status;
+ }, "returnComparator");
+ if (returnComparator() === "CREATE_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ return result.Status;
+ }, "returnComparator");
+ if (returnComparator() === "FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "ValidationError") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForChangeSetCreateComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
+}, "waitForChangeSetCreateComplete");
+var waitUntilChangeSetCreateComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilChangeSetCreateComplete");
+
+// src/waiters/waitForStackCreateComplete.ts
+
+var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeStacksCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "CREATE_COMPLETE";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_COMPLETE";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_IN_PROGRESS";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_FAILED";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_IN_PROGRESS";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_FAILED";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_COMPLETE";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "CREATE_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "DELETE_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "DELETE_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "ROLLBACK_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "ROLLBACK_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "ValidationError") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForStackCreateComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
+}, "waitForStackCreateComplete");
+var waitUntilStackCreateComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilStackCreateComplete");
+
+// src/waiters/waitForStackDeleteComplete.ts
+
+var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeStacksCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "DELETE_COMPLETE";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "DELETE_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "CREATE_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "ROLLBACK_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "UPDATE_ROLLBACK_IN_PROGRESS") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "UPDATE_ROLLBACK_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "UPDATE_ROLLBACK_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "UPDATE_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "ValidationError") {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForStackDeleteComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
+}, "waitForStackDeleteComplete");
+var waitUntilStackDeleteComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilStackDeleteComplete");
+
+// src/waiters/waitForStackExists.ts
+
+var checkState4 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeStacksCommand(input));
+ reason = result;
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "ValidationError") {
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForStackExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
+}, "waitForStackExists");
+var waitUntilStackExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilStackExists");
+
+// src/waiters/waitForStackImportComplete.ts
+
+var checkState5 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeStacksCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "IMPORT_COMPLETE";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "ROLLBACK_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "ROLLBACK_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "IMPORT_ROLLBACK_IN_PROGRESS") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "IMPORT_ROLLBACK_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "IMPORT_ROLLBACK_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "ValidationError") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForStackImportComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
+}, "waitForStackImportComplete");
+var waitUntilStackImportComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilStackImportComplete");
+
+// src/waiters/waitForStackRefactorCreateComplete.ts
+
+var checkState6 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeStackRefactorCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ return result.Status;
+ }, "returnComparator");
+ if (returnComparator() === "CREATE_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ return result.Status;
+ }, "returnComparator");
+ if (returnComparator() === "CREATE_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "ValidationError") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForStackRefactorCreateComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
+}, "waitForStackRefactorCreateComplete");
+var waitUntilStackRefactorCreateComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilStackRefactorCreateComplete");
+
+// src/waiters/waitForStackRefactorExecuteComplete.ts
+
+var checkState7 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeStackRefactorCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ return result.ExecutionStatus;
+ }, "returnComparator");
+ if (returnComparator() === "EXECUTE_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ return result.ExecutionStatus;
+ }, "returnComparator");
+ if (returnComparator() === "EXECUTE_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ return result.ExecutionStatus;
+ }, "returnComparator");
+ if (returnComparator() === "ROLLBACK_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "ValidationError") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForStackRefactorExecuteComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState7);
+}, "waitForStackRefactorExecuteComplete");
+var waitUntilStackRefactorExecuteComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState7);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilStackRefactorExecuteComplete");
+
+// src/waiters/waitForStackRollbackComplete.ts
+
+var checkState8 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeStacksCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_COMPLETE";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "UPDATE_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "UPDATE_ROLLBACK_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "DELETE_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "ValidationError") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForStackRollbackComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
+}, "waitForStackRollbackComplete");
+var waitUntilStackRollbackComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilStackRollbackComplete");
+
+// src/waiters/waitForStackUpdateComplete.ts
+
+var checkState9 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeStacksCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_COMPLETE";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "UPDATE_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "UPDATE_ROLLBACK_FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.Stacks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.StackStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "UPDATE_ROLLBACK_COMPLETE") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "ValidationError") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForStackUpdateComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState9);
+}, "waitForStackUpdateComplete");
+var waitUntilStackUpdateComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState9);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilStackUpdateComplete");
+
+// src/waiters/waitForTypeRegistrationComplete.ts
+
+var checkState10 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeTypeRegistrationCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ return result.ProgressStatus;
+ }, "returnComparator");
+ if (returnComparator() === "COMPLETE") {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ return result.ProgressStatus;
+ }, "returnComparator");
+ if (returnComparator() === "FAILED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForTypeRegistrationComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState10);
+}, "waitForTypeRegistrationComplete");
+var waitUntilTypeRegistrationComplete = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState10);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilTypeRegistrationComplete");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 82643:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const tslib_1 = __nccwpck_require__(4351);
+const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(43713));
+const core_1 = __nccwpck_require__(59963);
+const credential_provider_node_1 = __nccwpck_require__(75531);
+const util_user_agent_node_1 = __nccwpck_require__(98095);
+const config_resolver_1 = __nccwpck_require__(53098);
+const hash_node_1 = __nccwpck_require__(3081);
+const middleware_retry_1 = __nccwpck_require__(96039);
+const node_config_provider_1 = __nccwpck_require__(33461);
+const node_http_handler_1 = __nccwpck_require__(20258);
+const util_body_length_node_1 = __nccwpck_require__(68075);
+const util_retry_1 = __nccwpck_require__(84902);
+const runtimeConfig_shared_1 = __nccwpck_require__(37328);
+const smithy_client_1 = __nccwpck_require__(63570);
+const util_defaults_mode_node_1 = __nccwpck_require__(72429);
+const smithy_client_2 = __nccwpck_require__(63570);
+const getRuntimeConfig = (config) => {
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
+ const profileConfig = { profile: config?.profile };
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "node",
+ defaultsMode,
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
+ region: config?.region ??
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
+ retryMode: config?.retryMode ??
+ (0, node_config_provider_1.loadConfig)({
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
+ }, config),
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 37328:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const core_1 = __nccwpck_require__(59963);
+const smithy_client_1 = __nccwpck_require__(63570);
+const url_parser_1 = __nccwpck_require__(14681);
+const util_base64_1 = __nccwpck_require__(75600);
+const util_utf8_1 = __nccwpck_require__(41895);
+const httpAuthSchemeProvider_1 = __nccwpck_require__(74292);
+const endpointResolver_1 = __nccwpck_require__(5640);
+const getRuntimeConfig = (config) => {
+ return {
+ apiVersion: "2010-05-15",
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
+ disableHostPrefix: config?.disableHostPrefix ?? false,
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
+ extensions: config?.extensions ?? [],
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCloudFormationHttpAuthSchemeProvider,
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
+ signer: new core_1.AwsSdkSigV4Signer(),
+ },
+ ],
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
+ serviceId: config?.serviceId ?? "CloudFormation",
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 5976:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+Object.defineProperty(exports, "NIL", ({
+ enumerable: true,
+ get: function () {
+ return _nil.default;
+ }
+}));
+Object.defineProperty(exports, "parse", ({
+ enumerable: true,
+ get: function () {
+ return _parse.default;
+ }
+}));
+Object.defineProperty(exports, "stringify", ({
+ enumerable: true,
+ get: function () {
+ return _stringify.default;
+ }
+}));
+Object.defineProperty(exports, "v1", ({
+ enumerable: true,
+ get: function () {
+ return _v.default;
+ }
+}));
+Object.defineProperty(exports, "v3", ({
+ enumerable: true,
+ get: function () {
+ return _v2.default;
+ }
+}));
+Object.defineProperty(exports, "v4", ({
+ enumerable: true,
+ get: function () {
+ return _v3.default;
+ }
+}));
+Object.defineProperty(exports, "v5", ({
+ enumerable: true,
+ get: function () {
+ return _v4.default;
+ }
+}));
+Object.defineProperty(exports, "validate", ({
+ enumerable: true,
+ get: function () {
+ return _validate.default;
+ }
+}));
+Object.defineProperty(exports, "version", ({
+ enumerable: true,
+ get: function () {
+ return _version.default;
+ }
+}));
+
+var _v = _interopRequireDefault(__nccwpck_require__(97851));
+
+var _v2 = _interopRequireDefault(__nccwpck_require__(88771));
+
+var _v3 = _interopRequireDefault(__nccwpck_require__(42286));
+
+var _v4 = _interopRequireDefault(__nccwpck_require__(81780));
+
+var _nil = _interopRequireDefault(__nccwpck_require__(21736));
+
+var _version = _interopRequireDefault(__nccwpck_require__(83472));
+
+var _validate = _interopRequireDefault(__nccwpck_require__(60648));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(83731));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(73865));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/***/ }),
+
+/***/ 78684:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function md5(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('md5').update(bytes).digest();
+}
+
+var _default = md5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 32158:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var _default = {
+ randomUUID: _crypto.default.randomUUID
+};
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 21736:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = '00000000-0000-0000-0000-000000000000';
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 73865:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(60648));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function parse(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ let v;
+ const arr = new Uint8Array(16); // Parse ########-....-....-....-............
+
+ arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
+ arr[1] = v >>> 16 & 0xff;
+ arr[2] = v >>> 8 & 0xff;
+ arr[3] = v & 0xff; // Parse ........-####-....-....-............
+
+ arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
+ arr[5] = v & 0xff; // Parse ........-....-####-....-............
+
+ arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
+ arr[7] = v & 0xff; // Parse ........-....-....-####-............
+
+ arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
+ arr[9] = v & 0xff; // Parse ........-....-....-....-############
+ // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
+
+ arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
+ arr[11] = v / 0x100000000 & 0xff;
+ arr[12] = v >>> 24 & 0xff;
+ arr[13] = v >>> 16 & 0xff;
+ arr[14] = v >>> 8 & 0xff;
+ arr[15] = v & 0xff;
+ return arr;
+}
+
+var _default = parse;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 55071:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 60437:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = rng;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
+
+let poolPtr = rnds8Pool.length;
+
+function rng() {
+ if (poolPtr > rnds8Pool.length - 16) {
+ _crypto.default.randomFillSync(rnds8Pool);
+
+ poolPtr = 0;
+ }
+
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
+}
+
+/***/ }),
+
+/***/ 74227:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function sha1(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('sha1').update(bytes).digest();
+}
+
+var _default = sha1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 83731:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+exports.unsafeStringify = unsafeStringify;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(60648));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+const byteToHex = [];
+
+for (let i = 0; i < 256; ++i) {
+ byteToHex.push((i + 0x100).toString(16).slice(1));
+}
+
+function unsafeStringify(arr, offset = 0) {
+ // Note: Be careful editing this code! It's been tuned for performance
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
+}
+
+function stringify(arr, offset = 0) {
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
+ // of the following:
+ // - One or more input array values don't map to a hex octet (leading to
+ // "undefined" in the uuid)
+ // - Invalid input values for the RFC `version` or `variant` fields
+
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Stringified UUID is invalid');
+ }
+
+ return uuid;
+}
+
+var _default = stringify;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 97851:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(60437));
+
+var _stringify = __nccwpck_require__(83731);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+// **`v1()` - Generate time-based UUID**
+//
+// Inspired by https://github.com/LiosK/UUID.js
+// and http://docs.python.org/library/uuid.html
+let _nodeId;
+
+let _clockseq; // Previous uuid creation time
+
+
+let _lastMSecs = 0;
+let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
+
+function v1(options, buf, offset) {
+ let i = buf && offset || 0;
+ const b = buf || new Array(16);
+ options = options || {};
+ let node = options.node || _nodeId;
+ let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
+ // specified. We do this lazily to minimize issues related to insufficient
+ // system entropy. See #189
+
+ if (node == null || clockseq == null) {
+ const seedBytes = options.random || (options.rng || _rng.default)();
+
+ if (node == null) {
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
+ node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
+ }
+
+ if (clockseq == null) {
+ // Per 4.2.2, randomize (14 bit) clockseq
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
+ }
+ } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
+
+
+ let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
+ // cycle to simulate higher resolution clock
+
+ let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
+
+ const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
+
+ if (dt < 0 && options.clockseq === undefined) {
+ clockseq = clockseq + 1 & 0x3fff;
+ } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
+ // time interval
+
+
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
+ nsecs = 0;
+ } // Per 4.2.1.2 Throw error if too many uuids are requested
+
+
+ if (nsecs >= 10000) {
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
+ }
+
+ _lastMSecs = msecs;
+ _lastNSecs = nsecs;
+ _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
+
+ msecs += 12219292800000; // `time_low`
+
+ const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
+ b[i++] = tl >>> 24 & 0xff;
+ b[i++] = tl >>> 16 & 0xff;
+ b[i++] = tl >>> 8 & 0xff;
+ b[i++] = tl & 0xff; // `time_mid`
+
+ const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
+ b[i++] = tmh >>> 8 & 0xff;
+ b[i++] = tmh & 0xff; // `time_high_and_version`
+
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
+
+ b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
+
+ b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
+
+ b[i++] = clockseq & 0xff; // `node`
+
+ for (let n = 0; n < 6; ++n) {
+ b[i + n] = node[n];
+ }
+
+ return buf || (0, _stringify.unsafeStringify)(b);
+}
+
+var _default = v1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 88771:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(68154));
+
+var _md = _interopRequireDefault(__nccwpck_require__(78684));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v3 = (0, _v.default)('v3', 0x30, _md.default);
+var _default = v3;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 68154:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.URL = exports.DNS = void 0;
+exports["default"] = v35;
+
+var _stringify = __nccwpck_require__(83731);
+
+var _parse = _interopRequireDefault(__nccwpck_require__(73865));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function stringToBytes(str) {
+ str = unescape(encodeURIComponent(str)); // UTF8 escape
+
+ const bytes = [];
+
+ for (let i = 0; i < str.length; ++i) {
+ bytes.push(str.charCodeAt(i));
+ }
+
+ return bytes;
+}
+
+const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
+exports.DNS = DNS;
+const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
+exports.URL = URL;
+
+function v35(name, version, hashfunc) {
+ function generateUUID(value, namespace, buf, offset) {
+ var _namespace;
+
+ if (typeof value === 'string') {
+ value = stringToBytes(value);
+ }
+
+ if (typeof namespace === 'string') {
+ namespace = (0, _parse.default)(namespace);
+ }
+
+ if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
+ throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
+ } // Compute hash of namespace and value, Per 4.3
+ // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
+ // hashfunc([...namespace, ... value])`
+
+
+ let bytes = new Uint8Array(16 + value.length);
+ bytes.set(namespace);
+ bytes.set(value, namespace.length);
+ bytes = hashfunc(bytes);
+ bytes[6] = bytes[6] & 0x0f | version;
+ bytes[8] = bytes[8] & 0x3f | 0x80;
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = bytes[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.unsafeStringify)(bytes);
+ } // Function#name is not settable on some platforms (#270)
+
+
+ try {
+ generateUUID.name = name; // eslint-disable-next-line no-empty
+ } catch (err) {} // For CommonJS default export support
+
+
+ generateUUID.DNS = DNS;
+ generateUUID.URL = URL;
+ return generateUUID;
+}
+
+/***/ }),
+
+/***/ 42286:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _native = _interopRequireDefault(__nccwpck_require__(32158));
+
+var _rng = _interopRequireDefault(__nccwpck_require__(60437));
+
+var _stringify = __nccwpck_require__(83731);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function v4(options, buf, offset) {
+ if (_native.default.randomUUID && !buf && !options) {
+ return _native.default.randomUUID();
+ }
+
+ options = options || {};
+
+ const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+
+
+ rnds[6] = rnds[6] & 0x0f | 0x40;
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = rnds[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.unsafeStringify)(rnds);
+}
+
+var _default = v4;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 81780:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(68154));
+
+var _sha = _interopRequireDefault(__nccwpck_require__(74227));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v5 = (0, _v.default)('v5', 0x50, _sha.default);
+var _default = v5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 60648:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _regex = _interopRequireDefault(__nccwpck_require__(55071));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function validate(uuid) {
+ return typeof uuid === 'string' && _regex.default.test(uuid);
+}
+
+var _default = validate;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 83472:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(60648));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function version(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ return parseInt(uuid.slice(14, 15), 16);
+}
+
+var _default = version;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 99784:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveHttpAuthSchemeConfig = exports.defaultCloudWatchLogsHttpAuthSchemeProvider = exports.defaultCloudWatchLogsHttpAuthSchemeParametersProvider = void 0;
+const core_1 = __nccwpck_require__(59963);
+const util_middleware_1 = __nccwpck_require__(2390);
+const defaultCloudWatchLogsHttpAuthSchemeParametersProvider = async (config, context, input) => {
+ return {
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
+ (() => {
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
+ })(),
+ };
+};
+exports.defaultCloudWatchLogsHttpAuthSchemeParametersProvider = defaultCloudWatchLogsHttpAuthSchemeParametersProvider;
+function createAwsAuthSigv4HttpAuthOption(authParameters) {
+ return {
+ schemeId: "aws.auth#sigv4",
+ signingProperties: {
+ name: "logs",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config, context) => ({
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+const defaultCloudWatchLogsHttpAuthSchemeProvider = (authParameters) => {
+ const options = [];
+ switch (authParameters.operation) {
+ default: {
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
+ }
+ }
+ return options;
+};
+exports.defaultCloudWatchLogsHttpAuthSchemeProvider = defaultCloudWatchLogsHttpAuthSchemeProvider;
+const resolveHttpAuthSchemeConfig = (config) => {
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
+ return Object.assign(config_0, {});
+};
+exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
+
+
+/***/ }),
+
+/***/ 49488:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defaultEndpointResolver = void 0;
+const util_endpoints_1 = __nccwpck_require__(13350);
+const util_endpoints_2 = __nccwpck_require__(45473);
+const ruleset_1 = __nccwpck_require__(82237);
+const cache = new util_endpoints_2.EndpointCache({
+ size: 50,
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
+});
+const defaultEndpointResolver = (endpointParams, context = {}) => {
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
+ endpointParams: endpointParams,
+ logger: context.logger,
+ }));
+};
+exports.defaultEndpointResolver = defaultEndpointResolver;
+util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
+
+
+/***/ }),
+
+/***/ 82237:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ruleSet = void 0;
+const u = "required", v = "fn", w = "argv", x = "ref";
+const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [x]: "Region" }, p = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] }, q = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] }, r = [l], s = [m], t = [o];
+const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, p] }, q], rules: [{ endpoint: { url: "https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [p, a] }], rules: [{ conditions: [{ [v]: h, [w]: [o, "us-gov-east-1"] }], endpoint: { url: "https://logs.us-gov-east-1.amazonaws.com", properties: n, headers: n }, type: e }, { conditions: [{ [v]: h, [w]: [o, "us-gov-west-1"] }], endpoint: { url: "https://logs.us-gov-west-1.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://logs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://logs.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
+exports.ruleSet = _data;
+
+
+/***/ }),
+
+/***/ 31573:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ AccessDeniedException: () => AccessDeniedException,
+ AnomalyDetectorStatus: () => AnomalyDetectorStatus,
+ AssociateKmsKeyCommand: () => AssociateKmsKeyCommand,
+ CancelExportTaskCommand: () => CancelExportTaskCommand,
+ CloudWatchLogs: () => CloudWatchLogs,
+ CloudWatchLogsClient: () => CloudWatchLogsClient,
+ CloudWatchLogsServiceException: () => CloudWatchLogsServiceException,
+ ConflictException: () => ConflictException,
+ CreateDeliveryCommand: () => CreateDeliveryCommand,
+ CreateExportTaskCommand: () => CreateExportTaskCommand,
+ CreateLogAnomalyDetectorCommand: () => CreateLogAnomalyDetectorCommand,
+ CreateLogGroupCommand: () => CreateLogGroupCommand,
+ CreateLogStreamCommand: () => CreateLogStreamCommand,
+ DataAlreadyAcceptedException: () => DataAlreadyAcceptedException,
+ DataProtectionStatus: () => DataProtectionStatus,
+ DeleteAccountPolicyCommand: () => DeleteAccountPolicyCommand,
+ DeleteDataProtectionPolicyCommand: () => DeleteDataProtectionPolicyCommand,
+ DeleteDeliveryCommand: () => DeleteDeliveryCommand,
+ DeleteDeliveryDestinationCommand: () => DeleteDeliveryDestinationCommand,
+ DeleteDeliveryDestinationPolicyCommand: () => DeleteDeliveryDestinationPolicyCommand,
+ DeleteDeliverySourceCommand: () => DeleteDeliverySourceCommand,
+ DeleteDestinationCommand: () => DeleteDestinationCommand,
+ DeleteIndexPolicyCommand: () => DeleteIndexPolicyCommand,
+ DeleteIntegrationCommand: () => DeleteIntegrationCommand,
+ DeleteLogAnomalyDetectorCommand: () => DeleteLogAnomalyDetectorCommand,
+ DeleteLogGroupCommand: () => DeleteLogGroupCommand,
+ DeleteLogStreamCommand: () => DeleteLogStreamCommand,
+ DeleteMetricFilterCommand: () => DeleteMetricFilterCommand,
+ DeleteQueryDefinitionCommand: () => DeleteQueryDefinitionCommand,
+ DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
+ DeleteRetentionPolicyCommand: () => DeleteRetentionPolicyCommand,
+ DeleteSubscriptionFilterCommand: () => DeleteSubscriptionFilterCommand,
+ DeleteTransformerCommand: () => DeleteTransformerCommand,
+ DeliveryDestinationType: () => DeliveryDestinationType,
+ DescribeAccountPoliciesCommand: () => DescribeAccountPoliciesCommand,
+ DescribeConfigurationTemplatesCommand: () => DescribeConfigurationTemplatesCommand,
+ DescribeDeliveriesCommand: () => DescribeDeliveriesCommand,
+ DescribeDeliveryDestinationsCommand: () => DescribeDeliveryDestinationsCommand,
+ DescribeDeliverySourcesCommand: () => DescribeDeliverySourcesCommand,
+ DescribeDestinationsCommand: () => DescribeDestinationsCommand,
+ DescribeExportTasksCommand: () => DescribeExportTasksCommand,
+ DescribeFieldIndexesCommand: () => DescribeFieldIndexesCommand,
+ DescribeIndexPoliciesCommand: () => DescribeIndexPoliciesCommand,
+ DescribeLogGroupsCommand: () => DescribeLogGroupsCommand,
+ DescribeLogStreamsCommand: () => DescribeLogStreamsCommand,
+ DescribeMetricFiltersCommand: () => DescribeMetricFiltersCommand,
+ DescribeQueriesCommand: () => DescribeQueriesCommand,
+ DescribeQueryDefinitionsCommand: () => DescribeQueryDefinitionsCommand,
+ DescribeResourcePoliciesCommand: () => DescribeResourcePoliciesCommand,
+ DescribeSubscriptionFiltersCommand: () => DescribeSubscriptionFiltersCommand,
+ DisassociateKmsKeyCommand: () => DisassociateKmsKeyCommand,
+ Distribution: () => Distribution,
+ EntityRejectionErrorType: () => EntityRejectionErrorType,
+ EvaluationFrequency: () => EvaluationFrequency,
+ ExportTaskStatusCode: () => ExportTaskStatusCode,
+ FilterLogEventsCommand: () => FilterLogEventsCommand,
+ FlattenedElement: () => FlattenedElement,
+ GetDataProtectionPolicyCommand: () => GetDataProtectionPolicyCommand,
+ GetDeliveryCommand: () => GetDeliveryCommand,
+ GetDeliveryDestinationCommand: () => GetDeliveryDestinationCommand,
+ GetDeliveryDestinationPolicyCommand: () => GetDeliveryDestinationPolicyCommand,
+ GetDeliverySourceCommand: () => GetDeliverySourceCommand,
+ GetIntegrationCommand: () => GetIntegrationCommand,
+ GetLogAnomalyDetectorCommand: () => GetLogAnomalyDetectorCommand,
+ GetLogEventsCommand: () => GetLogEventsCommand,
+ GetLogGroupFieldsCommand: () => GetLogGroupFieldsCommand,
+ GetLogRecordCommand: () => GetLogRecordCommand,
+ GetQueryResultsCommand: () => GetQueryResultsCommand,
+ GetTransformerCommand: () => GetTransformerCommand,
+ IndexSource: () => IndexSource,
+ InheritedProperty: () => InheritedProperty,
+ IntegrationDetails: () => IntegrationDetails,
+ IntegrationStatus: () => IntegrationStatus,
+ IntegrationType: () => IntegrationType,
+ InvalidOperationException: () => InvalidOperationException,
+ InvalidParameterException: () => InvalidParameterException,
+ InvalidSequenceTokenException: () => InvalidSequenceTokenException,
+ LimitExceededException: () => LimitExceededException,
+ ListAnomaliesCommand: () => ListAnomaliesCommand,
+ ListIntegrationsCommand: () => ListIntegrationsCommand,
+ ListLogAnomalyDetectorsCommand: () => ListLogAnomalyDetectorsCommand,
+ ListLogGroupsForQueryCommand: () => ListLogGroupsForQueryCommand,
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
+ ListTagsLogGroupCommand: () => ListTagsLogGroupCommand,
+ LogGroupClass: () => LogGroupClass,
+ MalformedQueryException: () => MalformedQueryException,
+ OpenSearchResourceStatusType: () => OpenSearchResourceStatusType,
+ OperationAbortedException: () => OperationAbortedException,
+ OrderBy: () => OrderBy,
+ OutputFormat: () => OutputFormat,
+ PolicyType: () => PolicyType,
+ PutAccountPolicyCommand: () => PutAccountPolicyCommand,
+ PutDataProtectionPolicyCommand: () => PutDataProtectionPolicyCommand,
+ PutDeliveryDestinationCommand: () => PutDeliveryDestinationCommand,
+ PutDeliveryDestinationPolicyCommand: () => PutDeliveryDestinationPolicyCommand,
+ PutDeliverySourceCommand: () => PutDeliverySourceCommand,
+ PutDestinationCommand: () => PutDestinationCommand,
+ PutDestinationPolicyCommand: () => PutDestinationPolicyCommand,
+ PutIndexPolicyCommand: () => PutIndexPolicyCommand,
+ PutIntegrationCommand: () => PutIntegrationCommand,
+ PutLogEventsCommand: () => PutLogEventsCommand,
+ PutMetricFilterCommand: () => PutMetricFilterCommand,
+ PutQueryDefinitionCommand: () => PutQueryDefinitionCommand,
+ PutResourcePolicyCommand: () => PutResourcePolicyCommand,
+ PutRetentionPolicyCommand: () => PutRetentionPolicyCommand,
+ PutSubscriptionFilterCommand: () => PutSubscriptionFilterCommand,
+ PutTransformerCommand: () => PutTransformerCommand,
+ QueryLanguage: () => QueryLanguage,
+ QueryStatus: () => QueryStatus,
+ ResourceAlreadyExistsException: () => ResourceAlreadyExistsException,
+ ResourceConfig: () => ResourceConfig,
+ ResourceNotFoundException: () => ResourceNotFoundException,
+ Scope: () => Scope,
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
+ ServiceUnavailableException: () => ServiceUnavailableException,
+ SessionStreamingException: () => SessionStreamingException,
+ SessionTimeoutException: () => SessionTimeoutException,
+ StandardUnit: () => StandardUnit,
+ StartLiveTailCommand: () => StartLiveTailCommand,
+ StartLiveTailResponseFilterSensitiveLog: () => StartLiveTailResponseFilterSensitiveLog,
+ StartLiveTailResponseStream: () => StartLiveTailResponseStream,
+ StartLiveTailResponseStreamFilterSensitiveLog: () => StartLiveTailResponseStreamFilterSensitiveLog,
+ StartQueryCommand: () => StartQueryCommand,
+ State: () => State,
+ StopQueryCommand: () => StopQueryCommand,
+ SuppressionState: () => SuppressionState,
+ SuppressionType: () => SuppressionType,
+ SuppressionUnit: () => SuppressionUnit,
+ TagLogGroupCommand: () => TagLogGroupCommand,
+ TagResourceCommand: () => TagResourceCommand,
+ TestMetricFilterCommand: () => TestMetricFilterCommand,
+ TestTransformerCommand: () => TestTransformerCommand,
+ ThrottlingException: () => ThrottlingException,
+ TooManyTagsException: () => TooManyTagsException,
+ Type: () => Type,
+ UnrecognizedClientException: () => UnrecognizedClientException,
+ UntagLogGroupCommand: () => UntagLogGroupCommand,
+ UntagResourceCommand: () => UntagResourceCommand,
+ UpdateAnomalyCommand: () => UpdateAnomalyCommand,
+ UpdateDeliveryConfigurationCommand: () => UpdateDeliveryConfigurationCommand,
+ UpdateLogAnomalyDetectorCommand: () => UpdateLogAnomalyDetectorCommand,
+ ValidationException: () => ValidationException,
+ __Client: () => import_smithy_client.Client,
+ paginateDescribeConfigurationTemplates: () => paginateDescribeConfigurationTemplates,
+ paginateDescribeDeliveries: () => paginateDescribeDeliveries,
+ paginateDescribeDeliveryDestinations: () => paginateDescribeDeliveryDestinations,
+ paginateDescribeDeliverySources: () => paginateDescribeDeliverySources,
+ paginateDescribeDestinations: () => paginateDescribeDestinations,
+ paginateDescribeLogGroups: () => paginateDescribeLogGroups,
+ paginateDescribeLogStreams: () => paginateDescribeLogStreams,
+ paginateDescribeMetricFilters: () => paginateDescribeMetricFilters,
+ paginateDescribeSubscriptionFilters: () => paginateDescribeSubscriptionFilters,
+ paginateFilterLogEvents: () => paginateFilterLogEvents,
+ paginateGetLogEvents: () => paginateGetLogEvents,
+ paginateListAnomalies: () => paginateListAnomalies,
+ paginateListLogAnomalyDetectors: () => paginateListLogAnomalyDetectors,
+ paginateListLogGroupsForQuery: () => paginateListLogGroupsForQuery
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/CloudWatchLogsClient.ts
+var import_middleware_host_header = __nccwpck_require__(22545);
+var import_middleware_logger = __nccwpck_require__(20014);
+var import_middleware_recursion_detection = __nccwpck_require__(85525);
+var import_middleware_user_agent = __nccwpck_require__(64688);
+var import_config_resolver = __nccwpck_require__(53098);
+var import_core = __nccwpck_require__(55829);
+var import_eventstream_serde_config_resolver = __nccwpck_require__(16181);
+var import_middleware_content_length = __nccwpck_require__(82800);
+var import_middleware_endpoint = __nccwpck_require__(82918);
+var import_middleware_retry = __nccwpck_require__(96039);
+
+var import_httpAuthSchemeProvider = __nccwpck_require__(99784);
+
+// src/endpoint/EndpointParameters.ts
+var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
+ return Object.assign(options, {
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
+ defaultSigningName: "logs"
+ });
+}, "resolveClientEndpointParameters");
+var commonParams = {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
+};
+
+// src/CloudWatchLogsClient.ts
+var import_runtimeConfig = __nccwpck_require__(29879);
+
+// src/runtimeExtensions.ts
+var import_region_config_resolver = __nccwpck_require__(18156);
+var import_protocol_http = __nccwpck_require__(64418);
+var import_smithy_client = __nccwpck_require__(63570);
+
+// src/auth/httpAuthExtensionConfiguration.ts
+var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
+ let _credentials = runtimeConfig.credentials;
+ return {
+ setHttpAuthScheme(httpAuthScheme) {
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
+ if (index === -1) {
+ _httpAuthSchemes.push(httpAuthScheme);
+ } else {
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
+ }
+ },
+ httpAuthSchemes() {
+ return _httpAuthSchemes;
+ },
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
+ },
+ httpAuthSchemeProvider() {
+ return _httpAuthSchemeProvider;
+ },
+ setCredentials(credentials) {
+ _credentials = credentials;
+ },
+ credentials() {
+ return _credentials;
+ }
+ };
+}, "getHttpAuthExtensionConfiguration");
+var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
+ return {
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials()
+ };
+}, "resolveHttpAuthRuntimeConfig");
+
+// src/runtimeExtensions.ts
+var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
+ const extensionConfiguration = Object.assign(
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
+ getHttpAuthExtensionConfiguration(runtimeConfig)
+ );
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
+ return Object.assign(
+ runtimeConfig,
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
+ );
+}, "resolveRuntimeExtensions");
+
+// src/CloudWatchLogsClient.ts
+var CloudWatchLogsClient = class extends import_smithy_client.Client {
+ static {
+ __name(this, "CloudWatchLogsClient");
+ }
+ /**
+ * The resolved configuration of CloudWatchLogsClient class. This is resolved and normalized from the {@link CloudWatchLogsClientConfig | constructor configuration interface}.
+ */
+ config;
+ constructor(...[configuration]) {
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
+ super(_config_0);
+ this.initConfig = _config_0;
+ const _config_1 = resolveClientEndpointParameters(_config_0);
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
+ const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
+ const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
+ const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
+ this.config = _config_9;
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
+ this.middlewareStack.use(
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCloudWatchLogsHttpAuthSchemeParametersProvider,
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
+ "aws.auth#sigv4": config.credentials
+ }), "identityProviderConfigProvider")
+ })
+ );
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
+ }
+ /**
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
+ */
+ destroy() {
+ super.destroy();
+ }
+};
+
+// src/CloudWatchLogs.ts
+
+
+// src/commands/AssociateKmsKeyCommand.ts
+
+var import_middleware_serde = __nccwpck_require__(81238);
+
+
+// src/protocols/Aws_json1_1.ts
+var import_core2 = __nccwpck_require__(59963);
+
+
+var import_uuid = __nccwpck_require__(4780);
+
+// src/models/CloudWatchLogsServiceException.ts
+
+var CloudWatchLogsServiceException = class _CloudWatchLogsServiceException extends import_smithy_client.ServiceException {
+ static {
+ __name(this, "CloudWatchLogsServiceException");
+ }
+ /**
+ * @internal
+ */
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, _CloudWatchLogsServiceException.prototype);
+ }
+};
+
+// src/models/models_0.ts
+var AccessDeniedException = class _AccessDeniedException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "AccessDeniedException");
+ }
+ name = "AccessDeniedException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "AccessDeniedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
+ }
+};
+var PolicyType = {
+ DATA_PROTECTION_POLICY: "DATA_PROTECTION_POLICY",
+ FIELD_INDEX_POLICY: "FIELD_INDEX_POLICY",
+ SUBSCRIPTION_FILTER_POLICY: "SUBSCRIPTION_FILTER_POLICY",
+ TRANSFORMER_POLICY: "TRANSFORMER_POLICY"
+};
+var Scope = {
+ ALL: "ALL"
+};
+var State = {
+ Active: "Active",
+ Baseline: "Baseline",
+ Suppressed: "Suppressed"
+};
+var AnomalyDetectorStatus = {
+ ANALYZING: "ANALYZING",
+ DELETED: "DELETED",
+ FAILED: "FAILED",
+ INITIALIZING: "INITIALIZING",
+ PAUSED: "PAUSED",
+ TRAINING: "TRAINING"
+};
+var EvaluationFrequency = {
+ FIFTEEN_MIN: "FIFTEEN_MIN",
+ FIVE_MIN: "FIVE_MIN",
+ ONE_HOUR: "ONE_HOUR",
+ ONE_MIN: "ONE_MIN",
+ TEN_MIN: "TEN_MIN",
+ THIRTY_MIN: "THIRTY_MIN"
+};
+var InvalidParameterException = class _InvalidParameterException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "InvalidParameterException");
+ }
+ name = "InvalidParameterException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidParameterException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidParameterException.prototype);
+ }
+};
+var OperationAbortedException = class _OperationAbortedException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "OperationAbortedException");
+ }
+ name = "OperationAbortedException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "OperationAbortedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _OperationAbortedException.prototype);
+ }
+};
+var ResourceNotFoundException = class _ResourceNotFoundException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "ResourceNotFoundException");
+ }
+ name = "ResourceNotFoundException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ResourceNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
+ }
+};
+var ServiceUnavailableException = class _ServiceUnavailableException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "ServiceUnavailableException");
+ }
+ name = "ServiceUnavailableException";
+ $fault = "server";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ServiceUnavailableException",
+ $fault: "server",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
+ }
+};
+var InvalidOperationException = class _InvalidOperationException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "InvalidOperationException");
+ }
+ name = "InvalidOperationException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidOperationException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidOperationException.prototype);
+ }
+};
+var OutputFormat = {
+ JSON: "json",
+ PARQUET: "parquet",
+ PLAIN: "plain",
+ RAW: "raw",
+ W3C: "w3c"
+};
+var DeliveryDestinationType = {
+ CWL: "CWL",
+ FH: "FH",
+ S3: "S3"
+};
+var ConflictException = class _ConflictException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "ConflictException");
+ }
+ name = "ConflictException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ConflictException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ConflictException.prototype);
+ }
+};
+var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "ServiceQuotaExceededException");
+ }
+ name = "ServiceQuotaExceededException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ServiceQuotaExceededException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
+ }
+};
+var ThrottlingException = class _ThrottlingException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "ThrottlingException");
+ }
+ name = "ThrottlingException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ThrottlingException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
+ }
+};
+var ValidationException = class _ValidationException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "ValidationException");
+ }
+ name = "ValidationException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ValidationException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ValidationException.prototype);
+ }
+};
+var LimitExceededException = class _LimitExceededException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "LimitExceededException");
+ }
+ name = "LimitExceededException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "LimitExceededException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
+ }
+};
+var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "ResourceAlreadyExistsException");
+ }
+ name = "ResourceAlreadyExistsException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ResourceAlreadyExistsException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
+ }
+};
+var LogGroupClass = {
+ INFREQUENT_ACCESS: "INFREQUENT_ACCESS",
+ STANDARD: "STANDARD"
+};
+var DataAlreadyAcceptedException = class _DataAlreadyAcceptedException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "DataAlreadyAcceptedException");
+ }
+ name = "DataAlreadyAcceptedException";
+ $fault = "client";
+ expectedSequenceToken;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "DataAlreadyAcceptedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _DataAlreadyAcceptedException.prototype);
+ this.expectedSequenceToken = opts.expectedSequenceToken;
+ }
+};
+var DataProtectionStatus = {
+ ACTIVATED: "ACTIVATED",
+ ARCHIVED: "ARCHIVED",
+ DELETED: "DELETED",
+ DISABLED: "DISABLED"
+};
+var ExportTaskStatusCode = {
+ CANCELLED: "CANCELLED",
+ COMPLETED: "COMPLETED",
+ FAILED: "FAILED",
+ PENDING: "PENDING",
+ PENDING_CANCEL: "PENDING_CANCEL",
+ RUNNING: "RUNNING"
+};
+var IndexSource = {
+ ACCOUNT: "ACCOUNT",
+ LOG_GROUP: "LOG_GROUP"
+};
+var InheritedProperty = {
+ ACCOUNT_DATA_PROTECTION: "ACCOUNT_DATA_PROTECTION"
+};
+var OrderBy = {
+ LastEventTime: "LastEventTime",
+ LogStreamName: "LogStreamName"
+};
+var StandardUnit = {
+ Bits: "Bits",
+ BitsSecond: "Bits/Second",
+ Bytes: "Bytes",
+ BytesSecond: "Bytes/Second",
+ Count: "Count",
+ CountSecond: "Count/Second",
+ Gigabits: "Gigabits",
+ GigabitsSecond: "Gigabits/Second",
+ Gigabytes: "Gigabytes",
+ GigabytesSecond: "Gigabytes/Second",
+ Kilobits: "Kilobits",
+ KilobitsSecond: "Kilobits/Second",
+ Kilobytes: "Kilobytes",
+ KilobytesSecond: "Kilobytes/Second",
+ Megabits: "Megabits",
+ MegabitsSecond: "Megabits/Second",
+ Megabytes: "Megabytes",
+ MegabytesSecond: "Megabytes/Second",
+ Microseconds: "Microseconds",
+ Milliseconds: "Milliseconds",
+ None: "None",
+ Percent: "Percent",
+ Seconds: "Seconds",
+ Terabits: "Terabits",
+ TerabitsSecond: "Terabits/Second",
+ Terabytes: "Terabytes",
+ TerabytesSecond: "Terabytes/Second"
+};
+var QueryLanguage = {
+ CWLI: "CWLI",
+ PPL: "PPL",
+ SQL: "SQL"
+};
+var QueryStatus = {
+ Cancelled: "Cancelled",
+ Complete: "Complete",
+ Failed: "Failed",
+ Running: "Running",
+ Scheduled: "Scheduled",
+ Timeout: "Timeout",
+ Unknown: "Unknown"
+};
+var Distribution = {
+ ByLogStream: "ByLogStream",
+ Random: "Random"
+};
+var EntityRejectionErrorType = {
+ ENTITY_SIZE_TOO_LARGE: "EntitySizeTooLarge",
+ INVALID_ATTRIBUTES: "InvalidAttributes",
+ INVALID_ENTITY: "InvalidEntity",
+ INVALID_KEY_ATTRIBUTE: "InvalidKeyAttributes",
+ INVALID_TYPE_VALUE: "InvalidTypeValue",
+ MISSING_REQUIRED_FIELDS: "MissingRequiredFields",
+ UNSUPPORTED_LOG_GROUP_TYPE: "UnsupportedLogGroupType"
+};
+var FlattenedElement = {
+ FIRST: "first",
+ LAST: "last"
+};
+var OpenSearchResourceStatusType = {
+ ACTIVE: "ACTIVE",
+ ERROR: "ERROR",
+ NOT_FOUND: "NOT_FOUND"
+};
+var IntegrationDetails;
+((IntegrationDetails2) => {
+ IntegrationDetails2.visit = /* @__PURE__ */ __name((value, visitor) => {
+ if (value.openSearchIntegrationDetails !== void 0)
+ return visitor.openSearchIntegrationDetails(value.openSearchIntegrationDetails);
+ return visitor._(value.$unknown[0], value.$unknown[1]);
+ }, "visit");
+})(IntegrationDetails || (IntegrationDetails = {}));
+var IntegrationStatus = {
+ ACTIVE: "ACTIVE",
+ FAILED: "FAILED",
+ PROVISIONING: "PROVISIONING"
+};
+var IntegrationType = {
+ OPENSEARCH: "OPENSEARCH"
+};
+var Type = {
+ BOOLEAN: "boolean",
+ DOUBLE: "double",
+ INTEGER: "integer",
+ STRING: "string"
+};
+var InvalidSequenceTokenException = class _InvalidSequenceTokenException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "InvalidSequenceTokenException");
+ }
+ name = "InvalidSequenceTokenException";
+ $fault = "client";
+ expectedSequenceToken;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidSequenceTokenException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidSequenceTokenException.prototype);
+ this.expectedSequenceToken = opts.expectedSequenceToken;
+ }
+};
+var SuppressionState = {
+ SUPPRESSED: "SUPPRESSED",
+ UNSUPPRESSED: "UNSUPPRESSED"
+};
+var ResourceConfig;
+((ResourceConfig3) => {
+ ResourceConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
+ if (value.openSearchResourceConfig !== void 0)
+ return visitor.openSearchResourceConfig(value.openSearchResourceConfig);
+ return visitor._(value.$unknown[0], value.$unknown[1]);
+ }, "visit");
+})(ResourceConfig || (ResourceConfig = {}));
+var UnrecognizedClientException = class _UnrecognizedClientException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "UnrecognizedClientException");
+ }
+ name = "UnrecognizedClientException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "UnrecognizedClientException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _UnrecognizedClientException.prototype);
+ }
+};
+var SessionStreamingException = class _SessionStreamingException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "SessionStreamingException");
+ }
+ name = "SessionStreamingException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "SessionStreamingException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _SessionStreamingException.prototype);
+ }
+};
+var SessionTimeoutException = class _SessionTimeoutException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "SessionTimeoutException");
+ }
+ name = "SessionTimeoutException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "SessionTimeoutException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _SessionTimeoutException.prototype);
+ }
+};
+var StartLiveTailResponseStream;
+((StartLiveTailResponseStream3) => {
+ StartLiveTailResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
+ if (value.sessionStart !== void 0) return visitor.sessionStart(value.sessionStart);
+ if (value.sessionUpdate !== void 0) return visitor.sessionUpdate(value.sessionUpdate);
+ if (value.SessionTimeoutException !== void 0)
+ return visitor.SessionTimeoutException(value.SessionTimeoutException);
+ if (value.SessionStreamingException !== void 0)
+ return visitor.SessionStreamingException(value.SessionStreamingException);
+ return visitor._(value.$unknown[0], value.$unknown[1]);
+ }, "visit");
+})(StartLiveTailResponseStream || (StartLiveTailResponseStream = {}));
+var MalformedQueryException = class _MalformedQueryException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "MalformedQueryException");
+ }
+ name = "MalformedQueryException";
+ $fault = "client";
+ /**
+ * Reserved.
+ * @public
+ */
+ queryCompileError;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "MalformedQueryException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _MalformedQueryException.prototype);
+ this.queryCompileError = opts.queryCompileError;
+ }
+};
+var TooManyTagsException = class _TooManyTagsException extends CloudWatchLogsServiceException {
+ static {
+ __name(this, "TooManyTagsException");
+ }
+ name = "TooManyTagsException";
+ $fault = "client";
+ /**
+ * The name of the resource.
+ * @public
+ */
+ resourceName;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "TooManyTagsException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
+ this.resourceName = opts.resourceName;
+ }
+};
+var SuppressionUnit = {
+ HOURS: "HOURS",
+ MINUTES: "MINUTES",
+ SECONDS: "SECONDS"
+};
+var SuppressionType = {
+ INFINITE: "INFINITE",
+ LIMITED: "LIMITED"
+};
+var StartLiveTailResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
+ if (obj.sessionStart !== void 0) return { sessionStart: obj.sessionStart };
+ if (obj.sessionUpdate !== void 0) return { sessionUpdate: obj.sessionUpdate };
+ if (obj.SessionTimeoutException !== void 0) return { SessionTimeoutException: obj.SessionTimeoutException };
+ if (obj.SessionStreamingException !== void 0) return { SessionStreamingException: obj.SessionStreamingException };
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
+}, "StartLiveTailResponseStreamFilterSensitiveLog");
+var StartLiveTailResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.responseStream && { responseStream: "STREAMING_CONTENT" }
+}), "StartLiveTailResponseFilterSensitiveLog");
+
+// src/protocols/Aws_json1_1.ts
+var se_AssociateKmsKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("AssociateKmsKey");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_AssociateKmsKeyCommand");
+var se_CancelExportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CancelExportTask");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CancelExportTaskCommand");
+var se_CreateDeliveryCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CreateDelivery");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateDeliveryCommand");
+var se_CreateExportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CreateExportTask");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateExportTaskCommand");
+var se_CreateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CreateLogAnomalyDetector");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateLogAnomalyDetectorCommand");
+var se_CreateLogGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CreateLogGroup");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateLogGroupCommand");
+var se_CreateLogStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CreateLogStream");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateLogStreamCommand");
+var se_DeleteAccountPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteAccountPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteAccountPolicyCommand");
+var se_DeleteDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteDataProtectionPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteDataProtectionPolicyCommand");
+var se_DeleteDeliveryCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteDelivery");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteDeliveryCommand");
+var se_DeleteDeliveryDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteDeliveryDestination");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteDeliveryDestinationCommand");
+var se_DeleteDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteDeliveryDestinationPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteDeliveryDestinationPolicyCommand");
+var se_DeleteDeliverySourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteDeliverySource");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteDeliverySourceCommand");
+var se_DeleteDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteDestination");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteDestinationCommand");
+var se_DeleteIndexPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteIndexPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteIndexPolicyCommand");
+var se_DeleteIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteIntegration");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteIntegrationCommand");
+var se_DeleteLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteLogAnomalyDetector");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteLogAnomalyDetectorCommand");
+var se_DeleteLogGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteLogGroup");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteLogGroupCommand");
+var se_DeleteLogStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteLogStream");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteLogStreamCommand");
+var se_DeleteMetricFilterCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteMetricFilter");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteMetricFilterCommand");
+var se_DeleteQueryDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteQueryDefinition");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteQueryDefinitionCommand");
+var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteResourcePolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteResourcePolicyCommand");
+var se_DeleteRetentionPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteRetentionPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteRetentionPolicyCommand");
+var se_DeleteSubscriptionFilterCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteSubscriptionFilter");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteSubscriptionFilterCommand");
+var se_DeleteTransformerCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteTransformer");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteTransformerCommand");
+var se_DescribeAccountPoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeAccountPolicies");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeAccountPoliciesCommand");
+var se_DescribeConfigurationTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeConfigurationTemplates");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeConfigurationTemplatesCommand");
+var se_DescribeDeliveriesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeDeliveries");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeDeliveriesCommand");
+var se_DescribeDeliveryDestinationsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeDeliveryDestinations");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeDeliveryDestinationsCommand");
+var se_DescribeDeliverySourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeDeliverySources");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeDeliverySourcesCommand");
+var se_DescribeDestinationsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeDestinations");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeDestinationsCommand");
+var se_DescribeExportTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeExportTasks");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeExportTasksCommand");
+var se_DescribeFieldIndexesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeFieldIndexes");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeFieldIndexesCommand");
+var se_DescribeIndexPoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeIndexPolicies");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeIndexPoliciesCommand");
+var se_DescribeLogGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeLogGroups");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeLogGroupsCommand");
+var se_DescribeLogStreamsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeLogStreams");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeLogStreamsCommand");
+var se_DescribeMetricFiltersCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeMetricFilters");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeMetricFiltersCommand");
+var se_DescribeQueriesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeQueries");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeQueriesCommand");
+var se_DescribeQueryDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeQueryDefinitions");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeQueryDefinitionsCommand");
+var se_DescribeResourcePoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeResourcePolicies");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeResourcePoliciesCommand");
+var se_DescribeSubscriptionFiltersCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeSubscriptionFilters");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeSubscriptionFiltersCommand");
+var se_DisassociateKmsKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DisassociateKmsKey");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DisassociateKmsKeyCommand");
+var se_FilterLogEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("FilterLogEvents");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_FilterLogEventsCommand");
+var se_GetDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetDataProtectionPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetDataProtectionPolicyCommand");
+var se_GetDeliveryCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetDelivery");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetDeliveryCommand");
+var se_GetDeliveryDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetDeliveryDestination");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetDeliveryDestinationCommand");
+var se_GetDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetDeliveryDestinationPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetDeliveryDestinationPolicyCommand");
+var se_GetDeliverySourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetDeliverySource");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetDeliverySourceCommand");
+var se_GetIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetIntegration");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetIntegrationCommand");
+var se_GetLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetLogAnomalyDetector");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetLogAnomalyDetectorCommand");
+var se_GetLogEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetLogEvents");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetLogEventsCommand");
+var se_GetLogGroupFieldsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetLogGroupFields");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetLogGroupFieldsCommand");
+var se_GetLogRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetLogRecord");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetLogRecordCommand");
+var se_GetQueryResultsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetQueryResults");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetQueryResultsCommand");
+var se_GetTransformerCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetTransformer");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetTransformerCommand");
+var se_ListAnomaliesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListAnomalies");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListAnomaliesCommand");
+var se_ListIntegrationsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListIntegrations");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListIntegrationsCommand");
+var se_ListLogAnomalyDetectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListLogAnomalyDetectors");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListLogAnomalyDetectorsCommand");
+var se_ListLogGroupsForQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListLogGroupsForQuery");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListLogGroupsForQueryCommand");
+var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListTagsForResource");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListTagsForResourceCommand");
+var se_ListTagsLogGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListTagsLogGroup");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListTagsLogGroupCommand");
+var se_PutAccountPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutAccountPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutAccountPolicyCommand");
+var se_PutDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutDataProtectionPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutDataProtectionPolicyCommand");
+var se_PutDeliveryDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutDeliveryDestination");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutDeliveryDestinationCommand");
+var se_PutDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutDeliveryDestinationPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutDeliveryDestinationPolicyCommand");
+var se_PutDeliverySourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutDeliverySource");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutDeliverySourceCommand");
+var se_PutDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutDestination");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutDestinationCommand");
+var se_PutDestinationPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutDestinationPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutDestinationPolicyCommand");
+var se_PutIndexPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutIndexPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutIndexPolicyCommand");
+var se_PutIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutIntegration");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutIntegrationCommand");
+var se_PutLogEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutLogEvents");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutLogEventsCommand");
+var se_PutMetricFilterCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutMetricFilter");
+ let body;
+ body = JSON.stringify(se_PutMetricFilterRequest(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutMetricFilterCommand");
+var se_PutQueryDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutQueryDefinition");
+ let body;
+ body = JSON.stringify(se_PutQueryDefinitionRequest(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutQueryDefinitionCommand");
+var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutResourcePolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutResourcePolicyCommand");
+var se_PutRetentionPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutRetentionPolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutRetentionPolicyCommand");
+var se_PutSubscriptionFilterCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutSubscriptionFilter");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutSubscriptionFilterCommand");
+var se_PutTransformerCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutTransformer");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutTransformerCommand");
+var se_StartLiveTailCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("StartLiveTail");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ let { hostname: resolvedHostname } = await context.endpoint();
+ if (context.disableHostPrefix !== true) {
+ resolvedHostname = "streaming-" + resolvedHostname;
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
+ }
+ }
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
+}, "se_StartLiveTailCommand");
+var se_StartQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("StartQuery");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_StartQueryCommand");
+var se_StopQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("StopQuery");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_StopQueryCommand");
+var se_TagLogGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("TagLogGroup");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_TagLogGroupCommand");
+var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("TagResource");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_TagResourceCommand");
+var se_TestMetricFilterCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("TestMetricFilter");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_TestMetricFilterCommand");
+var se_TestTransformerCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("TestTransformer");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_TestTransformerCommand");
+var se_UntagLogGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UntagLogGroup");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UntagLogGroupCommand");
+var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UntagResource");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UntagResourceCommand");
+var se_UpdateAnomalyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateAnomaly");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateAnomalyCommand");
+var se_UpdateDeliveryConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateDeliveryConfiguration");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateDeliveryConfigurationCommand");
+var se_UpdateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateLogAnomalyDetector");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateLogAnomalyDetectorCommand");
+var de_AssociateKmsKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_AssociateKmsKeyCommand");
+var de_CancelExportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_CancelExportTaskCommand");
+var de_CreateDeliveryCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateDeliveryCommand");
+var de_CreateExportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateExportTaskCommand");
+var de_CreateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateLogAnomalyDetectorCommand");
+var de_CreateLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_CreateLogGroupCommand");
+var de_CreateLogStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_CreateLogStreamCommand");
+var de_DeleteAccountPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteAccountPolicyCommand");
+var de_DeleteDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteDataProtectionPolicyCommand");
+var de_DeleteDeliveryCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteDeliveryCommand");
+var de_DeleteDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteDeliveryDestinationCommand");
+var de_DeleteDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteDeliveryDestinationPolicyCommand");
+var de_DeleteDeliverySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteDeliverySourceCommand");
+var de_DeleteDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteDestinationCommand");
+var de_DeleteIndexPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteIndexPolicyCommand");
+var de_DeleteIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteIntegrationCommand");
+var de_DeleteLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteLogAnomalyDetectorCommand");
+var de_DeleteLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteLogGroupCommand");
+var de_DeleteLogStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteLogStreamCommand");
+var de_DeleteMetricFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteMetricFilterCommand");
+var de_DeleteQueryDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteQueryDefinitionCommand");
+var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteResourcePolicyCommand");
+var de_DeleteRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteRetentionPolicyCommand");
+var de_DeleteSubscriptionFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteSubscriptionFilterCommand");
+var de_DeleteTransformerCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteTransformerCommand");
+var de_DescribeAccountPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeAccountPoliciesCommand");
+var de_DescribeConfigurationTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeConfigurationTemplatesCommand");
+var de_DescribeDeliveriesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeDeliveriesCommand");
+var de_DescribeDeliveryDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeDeliveryDestinationsCommand");
+var de_DescribeDeliverySourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeDeliverySourcesCommand");
+var de_DescribeDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeDestinationsCommand");
+var de_DescribeExportTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeExportTasksCommand");
+var de_DescribeFieldIndexesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeFieldIndexesCommand");
+var de_DescribeIndexPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeIndexPoliciesCommand");
+var de_DescribeLogGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeLogGroupsCommand");
+var de_DescribeLogStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeLogStreamsCommand");
+var de_DescribeMetricFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeMetricFiltersResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeMetricFiltersCommand");
+var de_DescribeQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeQueriesCommand");
+var de_DescribeQueryDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeQueryDefinitionsCommand");
+var de_DescribeResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeResourcePoliciesCommand");
+var de_DescribeSubscriptionFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeSubscriptionFiltersCommand");
+var de_DisassociateKmsKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DisassociateKmsKeyCommand");
+var de_FilterLogEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_FilterLogEventsCommand");
+var de_GetDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetDataProtectionPolicyCommand");
+var de_GetDeliveryCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetDeliveryCommand");
+var de_GetDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetDeliveryDestinationCommand");
+var de_GetDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetDeliveryDestinationPolicyCommand");
+var de_GetDeliverySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetDeliverySourceCommand");
+var de_GetIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetIntegrationCommand");
+var de_GetLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetLogAnomalyDetectorCommand");
+var de_GetLogEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetLogEventsCommand");
+var de_GetLogGroupFieldsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetLogGroupFieldsCommand");
+var de_GetLogRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetLogRecordCommand");
+var de_GetQueryResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_GetQueryResultsResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetQueryResultsCommand");
+var de_GetTransformerCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetTransformerCommand");
+var de_ListAnomaliesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListAnomaliesCommand");
+var de_ListIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListIntegrationsCommand");
+var de_ListLogAnomalyDetectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListLogAnomalyDetectorsCommand");
+var de_ListLogGroupsForQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListLogGroupsForQueryCommand");
+var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListTagsForResourceCommand");
+var de_ListTagsLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListTagsLogGroupCommand");
+var de_PutAccountPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutAccountPolicyCommand");
+var de_PutDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutDataProtectionPolicyCommand");
+var de_PutDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutDeliveryDestinationCommand");
+var de_PutDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutDeliveryDestinationPolicyCommand");
+var de_PutDeliverySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutDeliverySourceCommand");
+var de_PutDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutDestinationCommand");
+var de_PutDestinationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_PutDestinationPolicyCommand");
+var de_PutIndexPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutIndexPolicyCommand");
+var de_PutIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutIntegrationCommand");
+var de_PutLogEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutLogEventsCommand");
+var de_PutMetricFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_PutMetricFilterCommand");
+var de_PutQueryDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutQueryDefinitionCommand");
+var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutResourcePolicyCommand");
+var de_PutRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_PutRetentionPolicyCommand");
+var de_PutSubscriptionFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_PutSubscriptionFilterCommand");
+var de_PutTransformerCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_PutTransformerCommand");
+var de_StartLiveTailCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = { responseStream: de_StartLiveTailResponseStream(output.body, context) };
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_StartLiveTailCommand");
+var de_StartQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_StartQueryCommand");
+var de_StopQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_StopQueryCommand");
+var de_TagLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_TagLogGroupCommand");
+var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_TagResourceCommand");
+var de_TestMetricFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_TestMetricFilterCommand");
+var de_TestTransformerCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_TestTransformerCommand");
+var de_UntagLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_UntagLogGroupCommand");
+var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_UntagResourceCommand");
+var de_UpdateAnomalyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_UpdateAnomalyCommand");
+var de_UpdateDeliveryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateDeliveryConfigurationCommand");
+var de_UpdateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_UpdateLogAnomalyDetectorCommand");
+var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
+ };
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
+ switch (errorCode) {
+ case "InvalidParameterException":
+ case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
+ case "OperationAbortedException":
+ case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
+ throw await de_OperationAbortedExceptionRes(parsedOutput, context);
+ case "ResourceNotFoundException":
+ case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
+ case "ServiceUnavailableException":
+ case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
+ case "InvalidOperationException":
+ case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
+ case "AccessDeniedException":
+ case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
+ case "ConflictException":
+ case "com.amazonaws.cloudwatchlogs#ConflictException":
+ throw await de_ConflictExceptionRes(parsedOutput, context);
+ case "ServiceQuotaExceededException":
+ case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
+ case "ThrottlingException":
+ case "com.amazonaws.cloudwatchlogs#ThrottlingException":
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
+ case "ValidationException":
+ case "com.amazonaws.cloudwatchlogs#ValidationException":
+ throw await de_ValidationExceptionRes(parsedOutput, context);
+ case "LimitExceededException":
+ case "com.amazonaws.cloudwatchlogs#LimitExceededException":
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
+ case "ResourceAlreadyExistsException":
+ case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
+ case "DataAlreadyAcceptedException":
+ case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
+ throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context);
+ case "InvalidSequenceTokenException":
+ case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":
+ throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context);
+ case "UnrecognizedClientException":
+ case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException":
+ throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
+ case "MalformedQueryException":
+ case "com.amazonaws.cloudwatchlogs#MalformedQueryException":
+ throw await de_MalformedQueryExceptionRes(parsedOutput, context);
+ case "TooManyTagsException":
+ case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody,
+ errorCode
+ });
+ }
+}, "de_CommandError");
+var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new AccessDeniedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_AccessDeniedExceptionRes");
+var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ConflictException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ConflictExceptionRes");
+var de_DataAlreadyAcceptedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new DataAlreadyAcceptedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_DataAlreadyAcceptedExceptionRes");
+var de_InvalidOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new InvalidOperationException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_InvalidOperationExceptionRes");
+var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new InvalidParameterException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_InvalidParameterExceptionRes");
+var de_InvalidSequenceTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new InvalidSequenceTokenException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_InvalidSequenceTokenExceptionRes");
+var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new LimitExceededException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_LimitExceededExceptionRes");
+var de_MalformedQueryExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new MalformedQueryException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_MalformedQueryExceptionRes");
+var de_OperationAbortedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new OperationAbortedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_OperationAbortedExceptionRes");
+var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ResourceAlreadyExistsException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ResourceAlreadyExistsExceptionRes");
+var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ResourceNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ResourceNotFoundExceptionRes");
+var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ServiceQuotaExceededException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ServiceQuotaExceededExceptionRes");
+var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ServiceUnavailableException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ServiceUnavailableExceptionRes");
+var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ThrottlingException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ThrottlingExceptionRes");
+var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new TooManyTagsException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_TooManyTagsExceptionRes");
+var de_UnrecognizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new UnrecognizedClientException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_UnrecognizedClientExceptionRes");
+var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ValidationException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ValidationExceptionRes");
+var de_StartLiveTailResponseStream = /* @__PURE__ */ __name((output, context) => {
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
+ if (event["sessionStart"] != null) {
+ return {
+ sessionStart: await de_LiveTailSessionStart_event(event["sessionStart"], context)
+ };
+ }
+ if (event["sessionUpdate"] != null) {
+ return {
+ sessionUpdate: await de_LiveTailSessionUpdate_event(event["sessionUpdate"], context)
+ };
+ }
+ if (event["SessionTimeoutException"] != null) {
+ return {
+ SessionTimeoutException: await de_SessionTimeoutException_event(event["SessionTimeoutException"], context)
+ };
+ }
+ if (event["SessionStreamingException"] != null) {
+ return {
+ SessionStreamingException: await de_SessionStreamingException_event(
+ event["SessionStreamingException"],
+ context
+ )
+ };
+ }
+ return { $unknown: output };
+ });
+}, "de_StartLiveTailResponseStream");
+var de_LiveTailSessionStart_event = /* @__PURE__ */ __name(async (output, context) => {
+ const contents = {};
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ Object.assign(contents, (0, import_smithy_client._json)(data));
+ return contents;
+}, "de_LiveTailSessionStart_event");
+var de_LiveTailSessionUpdate_event = /* @__PURE__ */ __name(async (output, context) => {
+ const contents = {};
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ Object.assign(contents, (0, import_smithy_client._json)(data));
+ return contents;
+}, "de_LiveTailSessionUpdate_event");
+var de_SessionStreamingException_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_SessionStreamingExceptionRes(parsedOutput, context);
+}, "de_SessionStreamingException_event");
+var de_SessionTimeoutException_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_SessionTimeoutExceptionRes(parsedOutput, context);
+}, "de_SessionTimeoutException_event");
+var de_SessionStreamingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new SessionStreamingException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_SessionStreamingExceptionRes");
+var de_SessionTimeoutExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new SessionTimeoutException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_SessionTimeoutExceptionRes");
+var se_MetricTransformation = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ defaultValue: import_smithy_client.serializeFloat,
+ dimensions: import_smithy_client._json,
+ metricName: [],
+ metricNamespace: [],
+ metricValue: [],
+ unit: []
+ });
+}, "se_MetricTransformation");
+var se_MetricTransformations = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ return se_MetricTransformation(entry, context);
+ });
+}, "se_MetricTransformations");
+var se_PutMetricFilterRequest = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ applyOnTransformedLogs: [],
+ filterName: [],
+ filterPattern: [],
+ logGroupName: [],
+ metricTransformations: /* @__PURE__ */ __name((_) => se_MetricTransformations(_, context), "metricTransformations")
+ });
+}, "se_PutMetricFilterRequest");
+var se_PutQueryDefinitionRequest = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
+ logGroupNames: import_smithy_client._json,
+ name: [],
+ queryDefinitionId: [],
+ queryLanguage: [],
+ queryString: []
+ });
+}, "se_PutQueryDefinitionRequest");
+var de_DescribeMetricFiltersResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ metricFilters: /* @__PURE__ */ __name((_) => de_MetricFilters(_, context), "metricFilters"),
+ nextToken: import_smithy_client.expectString
+ });
+}, "de_DescribeMetricFiltersResponse");
+var de_GetQueryResultsResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ encryptionKey: import_smithy_client.expectString,
+ queryLanguage: import_smithy_client.expectString,
+ results: import_smithy_client._json,
+ statistics: /* @__PURE__ */ __name((_) => de_QueryStatistics(_, context), "statistics"),
+ status: import_smithy_client.expectString
+ });
+}, "de_GetQueryResultsResponse");
+var de_MetricFilter = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ applyOnTransformedLogs: import_smithy_client.expectBoolean,
+ creationTime: import_smithy_client.expectLong,
+ filterName: import_smithy_client.expectString,
+ filterPattern: import_smithy_client.expectString,
+ logGroupName: import_smithy_client.expectString,
+ metricTransformations: /* @__PURE__ */ __name((_) => de_MetricTransformations(_, context), "metricTransformations")
+ });
+}, "de_MetricFilter");
+var de_MetricFilters = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_MetricFilter(entry, context);
+ });
+ return retVal;
+}, "de_MetricFilters");
+var de_MetricTransformation = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ defaultValue: import_smithy_client.limitedParseDouble,
+ dimensions: import_smithy_client._json,
+ metricName: import_smithy_client.expectString,
+ metricNamespace: import_smithy_client.expectString,
+ metricValue: import_smithy_client.expectString,
+ unit: import_smithy_client.expectString
+ });
+}, "de_MetricTransformation");
+var de_MetricTransformations = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_MetricTransformation(entry, context);
+ });
+ return retVal;
+}, "de_MetricTransformations");
+var de_QueryStatistics = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ bytesScanned: import_smithy_client.limitedParseDouble,
+ estimatedBytesSkipped: import_smithy_client.limitedParseDouble,
+ estimatedRecordsSkipped: import_smithy_client.limitedParseDouble,
+ logGroupsScanned: import_smithy_client.limitedParseDouble,
+ recordsMatched: import_smithy_client.limitedParseDouble,
+ recordsScanned: import_smithy_client.limitedParseDouble
+ });
+}, "de_QueryStatistics");
+var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
+ httpStatusCode: output.statusCode,
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
+ extendedRequestId: output.headers["x-amz-id-2"],
+ cfId: output.headers["x-amz-cf-id"]
+}), "deserializeMetadata");
+var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudWatchLogsServiceException);
+var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const contents = {
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
+ headers
+ };
+ if (resolvedHostname !== void 0) {
+ contents.hostname = resolvedHostname;
+ }
+ if (body !== void 0) {
+ contents.body = body;
+ }
+ return new import_protocol_http.HttpRequest(contents);
+}, "buildHttpRpcRequest");
+function sharedHeaders(operation) {
+ return {
+ "content-type": "application/x-amz-json-1.1",
+ "x-amz-target": `Logs_20140328.${operation}`
+ };
+}
+__name(sharedHeaders, "sharedHeaders");
+
+// src/commands/AssociateKmsKeyCommand.ts
+var AssociateKmsKeyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "AssociateKmsKey", {}).n("CloudWatchLogsClient", "AssociateKmsKeyCommand").f(void 0, void 0).ser(se_AssociateKmsKeyCommand).de(de_AssociateKmsKeyCommand).build() {
+ static {
+ __name(this, "AssociateKmsKeyCommand");
+ }
+};
+
+// src/commands/CancelExportTaskCommand.ts
+
+
+
+var CancelExportTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "CancelExportTask", {}).n("CloudWatchLogsClient", "CancelExportTaskCommand").f(void 0, void 0).ser(se_CancelExportTaskCommand).de(de_CancelExportTaskCommand).build() {
+ static {
+ __name(this, "CancelExportTaskCommand");
+ }
+};
+
+// src/commands/CreateDeliveryCommand.ts
+
+
+
+var CreateDeliveryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "CreateDelivery", {}).n("CloudWatchLogsClient", "CreateDeliveryCommand").f(void 0, void 0).ser(se_CreateDeliveryCommand).de(de_CreateDeliveryCommand).build() {
+ static {
+ __name(this, "CreateDeliveryCommand");
+ }
+};
+
+// src/commands/CreateExportTaskCommand.ts
+
+
+
+var CreateExportTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "CreateExportTask", {}).n("CloudWatchLogsClient", "CreateExportTaskCommand").f(void 0, void 0).ser(se_CreateExportTaskCommand).de(de_CreateExportTaskCommand).build() {
+ static {
+ __name(this, "CreateExportTaskCommand");
+ }
+};
+
+// src/commands/CreateLogAnomalyDetectorCommand.ts
+
+
+
+var CreateLogAnomalyDetectorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "CreateLogAnomalyDetector", {}).n("CloudWatchLogsClient", "CreateLogAnomalyDetectorCommand").f(void 0, void 0).ser(se_CreateLogAnomalyDetectorCommand).de(de_CreateLogAnomalyDetectorCommand).build() {
+ static {
+ __name(this, "CreateLogAnomalyDetectorCommand");
+ }
+};
+
+// src/commands/CreateLogGroupCommand.ts
+
+
+
+var CreateLogGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "CreateLogGroup", {}).n("CloudWatchLogsClient", "CreateLogGroupCommand").f(void 0, void 0).ser(se_CreateLogGroupCommand).de(de_CreateLogGroupCommand).build() {
+ static {
+ __name(this, "CreateLogGroupCommand");
+ }
+};
+
+// src/commands/CreateLogStreamCommand.ts
+
+
+
+var CreateLogStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "CreateLogStream", {}).n("CloudWatchLogsClient", "CreateLogStreamCommand").f(void 0, void 0).ser(se_CreateLogStreamCommand).de(de_CreateLogStreamCommand).build() {
+ static {
+ __name(this, "CreateLogStreamCommand");
+ }
+};
+
+// src/commands/DeleteAccountPolicyCommand.ts
+
+
+
+var DeleteAccountPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteAccountPolicy", {}).n("CloudWatchLogsClient", "DeleteAccountPolicyCommand").f(void 0, void 0).ser(se_DeleteAccountPolicyCommand).de(de_DeleteAccountPolicyCommand).build() {
+ static {
+ __name(this, "DeleteAccountPolicyCommand");
+ }
+};
+
+// src/commands/DeleteDataProtectionPolicyCommand.ts
+
+
+
+var DeleteDataProtectionPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteDataProtectionPolicy", {}).n("CloudWatchLogsClient", "DeleteDataProtectionPolicyCommand").f(void 0, void 0).ser(se_DeleteDataProtectionPolicyCommand).de(de_DeleteDataProtectionPolicyCommand).build() {
+ static {
+ __name(this, "DeleteDataProtectionPolicyCommand");
+ }
+};
+
+// src/commands/DeleteDeliveryCommand.ts
+
+
+
+var DeleteDeliveryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteDelivery", {}).n("CloudWatchLogsClient", "DeleteDeliveryCommand").f(void 0, void 0).ser(se_DeleteDeliveryCommand).de(de_DeleteDeliveryCommand).build() {
+ static {
+ __name(this, "DeleteDeliveryCommand");
+ }
+};
+
+// src/commands/DeleteDeliveryDestinationCommand.ts
+
+
+
+var DeleteDeliveryDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteDeliveryDestination", {}).n("CloudWatchLogsClient", "DeleteDeliveryDestinationCommand").f(void 0, void 0).ser(se_DeleteDeliveryDestinationCommand).de(de_DeleteDeliveryDestinationCommand).build() {
+ static {
+ __name(this, "DeleteDeliveryDestinationCommand");
+ }
+};
+
+// src/commands/DeleteDeliveryDestinationPolicyCommand.ts
+
+
+
+var DeleteDeliveryDestinationPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteDeliveryDestinationPolicy", {}).n("CloudWatchLogsClient", "DeleteDeliveryDestinationPolicyCommand").f(void 0, void 0).ser(se_DeleteDeliveryDestinationPolicyCommand).de(de_DeleteDeliveryDestinationPolicyCommand).build() {
+ static {
+ __name(this, "DeleteDeliveryDestinationPolicyCommand");
+ }
+};
+
+// src/commands/DeleteDeliverySourceCommand.ts
+
+
+
+var DeleteDeliverySourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteDeliverySource", {}).n("CloudWatchLogsClient", "DeleteDeliverySourceCommand").f(void 0, void 0).ser(se_DeleteDeliverySourceCommand).de(de_DeleteDeliverySourceCommand).build() {
+ static {
+ __name(this, "DeleteDeliverySourceCommand");
+ }
+};
+
+// src/commands/DeleteDestinationCommand.ts
+
+
+
+var DeleteDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteDestination", {}).n("CloudWatchLogsClient", "DeleteDestinationCommand").f(void 0, void 0).ser(se_DeleteDestinationCommand).de(de_DeleteDestinationCommand).build() {
+ static {
+ __name(this, "DeleteDestinationCommand");
+ }
+};
+
+// src/commands/DeleteIndexPolicyCommand.ts
+
+
+
+var DeleteIndexPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteIndexPolicy", {}).n("CloudWatchLogsClient", "DeleteIndexPolicyCommand").f(void 0, void 0).ser(se_DeleteIndexPolicyCommand).de(de_DeleteIndexPolicyCommand).build() {
+ static {
+ __name(this, "DeleteIndexPolicyCommand");
+ }
+};
+
+// src/commands/DeleteIntegrationCommand.ts
+
+
+
+var DeleteIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteIntegration", {}).n("CloudWatchLogsClient", "DeleteIntegrationCommand").f(void 0, void 0).ser(se_DeleteIntegrationCommand).de(de_DeleteIntegrationCommand).build() {
+ static {
+ __name(this, "DeleteIntegrationCommand");
+ }
+};
+
+// src/commands/DeleteLogAnomalyDetectorCommand.ts
+
+
+
+var DeleteLogAnomalyDetectorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteLogAnomalyDetector", {}).n("CloudWatchLogsClient", "DeleteLogAnomalyDetectorCommand").f(void 0, void 0).ser(se_DeleteLogAnomalyDetectorCommand).de(de_DeleteLogAnomalyDetectorCommand).build() {
+ static {
+ __name(this, "DeleteLogAnomalyDetectorCommand");
+ }
+};
+
+// src/commands/DeleteLogGroupCommand.ts
+
+
+
+var DeleteLogGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteLogGroup", {}).n("CloudWatchLogsClient", "DeleteLogGroupCommand").f(void 0, void 0).ser(se_DeleteLogGroupCommand).de(de_DeleteLogGroupCommand).build() {
+ static {
+ __name(this, "DeleteLogGroupCommand");
+ }
+};
+
+// src/commands/DeleteLogStreamCommand.ts
+
+
+
+var DeleteLogStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteLogStream", {}).n("CloudWatchLogsClient", "DeleteLogStreamCommand").f(void 0, void 0).ser(se_DeleteLogStreamCommand).de(de_DeleteLogStreamCommand).build() {
+ static {
+ __name(this, "DeleteLogStreamCommand");
+ }
+};
+
+// src/commands/DeleteMetricFilterCommand.ts
+
+
+
+var DeleteMetricFilterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteMetricFilter", {}).n("CloudWatchLogsClient", "DeleteMetricFilterCommand").f(void 0, void 0).ser(se_DeleteMetricFilterCommand).de(de_DeleteMetricFilterCommand).build() {
+ static {
+ __name(this, "DeleteMetricFilterCommand");
+ }
+};
+
+// src/commands/DeleteQueryDefinitionCommand.ts
+
+
+
+var DeleteQueryDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteQueryDefinition", {}).n("CloudWatchLogsClient", "DeleteQueryDefinitionCommand").f(void 0, void 0).ser(se_DeleteQueryDefinitionCommand).de(de_DeleteQueryDefinitionCommand).build() {
+ static {
+ __name(this, "DeleteQueryDefinitionCommand");
+ }
+};
+
+// src/commands/DeleteResourcePolicyCommand.ts
+
+
+
+var DeleteResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteResourcePolicy", {}).n("CloudWatchLogsClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
+ static {
+ __name(this, "DeleteResourcePolicyCommand");
+ }
+};
+
+// src/commands/DeleteRetentionPolicyCommand.ts
+
+
+
+var DeleteRetentionPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteRetentionPolicy", {}).n("CloudWatchLogsClient", "DeleteRetentionPolicyCommand").f(void 0, void 0).ser(se_DeleteRetentionPolicyCommand).de(de_DeleteRetentionPolicyCommand).build() {
+ static {
+ __name(this, "DeleteRetentionPolicyCommand");
+ }
+};
+
+// src/commands/DeleteSubscriptionFilterCommand.ts
+
+
+
+var DeleteSubscriptionFilterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteSubscriptionFilter", {}).n("CloudWatchLogsClient", "DeleteSubscriptionFilterCommand").f(void 0, void 0).ser(se_DeleteSubscriptionFilterCommand).de(de_DeleteSubscriptionFilterCommand).build() {
+ static {
+ __name(this, "DeleteSubscriptionFilterCommand");
+ }
+};
+
+// src/commands/DeleteTransformerCommand.ts
+
+
+
+var DeleteTransformerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DeleteTransformer", {}).n("CloudWatchLogsClient", "DeleteTransformerCommand").f(void 0, void 0).ser(se_DeleteTransformerCommand).de(de_DeleteTransformerCommand).build() {
+ static {
+ __name(this, "DeleteTransformerCommand");
+ }
+};
+
+// src/commands/DescribeAccountPoliciesCommand.ts
+
+
+
+var DescribeAccountPoliciesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeAccountPolicies", {}).n("CloudWatchLogsClient", "DescribeAccountPoliciesCommand").f(void 0, void 0).ser(se_DescribeAccountPoliciesCommand).de(de_DescribeAccountPoliciesCommand).build() {
+ static {
+ __name(this, "DescribeAccountPoliciesCommand");
+ }
+};
+
+// src/commands/DescribeConfigurationTemplatesCommand.ts
+
+
+
+var DescribeConfigurationTemplatesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeConfigurationTemplates", {}).n("CloudWatchLogsClient", "DescribeConfigurationTemplatesCommand").f(void 0, void 0).ser(se_DescribeConfigurationTemplatesCommand).de(de_DescribeConfigurationTemplatesCommand).build() {
+ static {
+ __name(this, "DescribeConfigurationTemplatesCommand");
+ }
+};
+
+// src/commands/DescribeDeliveriesCommand.ts
+
+
+
+var DescribeDeliveriesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeDeliveries", {}).n("CloudWatchLogsClient", "DescribeDeliveriesCommand").f(void 0, void 0).ser(se_DescribeDeliveriesCommand).de(de_DescribeDeliveriesCommand).build() {
+ static {
+ __name(this, "DescribeDeliveriesCommand");
+ }
+};
+
+// src/commands/DescribeDeliveryDestinationsCommand.ts
+
+
+
+var DescribeDeliveryDestinationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeDeliveryDestinations", {}).n("CloudWatchLogsClient", "DescribeDeliveryDestinationsCommand").f(void 0, void 0).ser(se_DescribeDeliveryDestinationsCommand).de(de_DescribeDeliveryDestinationsCommand).build() {
+ static {
+ __name(this, "DescribeDeliveryDestinationsCommand");
+ }
+};
+
+// src/commands/DescribeDeliverySourcesCommand.ts
+
+
+
+var DescribeDeliverySourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeDeliverySources", {}).n("CloudWatchLogsClient", "DescribeDeliverySourcesCommand").f(void 0, void 0).ser(se_DescribeDeliverySourcesCommand).de(de_DescribeDeliverySourcesCommand).build() {
+ static {
+ __name(this, "DescribeDeliverySourcesCommand");
+ }
+};
+
+// src/commands/DescribeDestinationsCommand.ts
+
+
+
+var DescribeDestinationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeDestinations", {}).n("CloudWatchLogsClient", "DescribeDestinationsCommand").f(void 0, void 0).ser(se_DescribeDestinationsCommand).de(de_DescribeDestinationsCommand).build() {
+ static {
+ __name(this, "DescribeDestinationsCommand");
+ }
+};
+
+// src/commands/DescribeExportTasksCommand.ts
+
+
+
+var DescribeExportTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeExportTasks", {}).n("CloudWatchLogsClient", "DescribeExportTasksCommand").f(void 0, void 0).ser(se_DescribeExportTasksCommand).de(de_DescribeExportTasksCommand).build() {
+ static {
+ __name(this, "DescribeExportTasksCommand");
+ }
+};
+
+// src/commands/DescribeFieldIndexesCommand.ts
+
+
+
+var DescribeFieldIndexesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeFieldIndexes", {}).n("CloudWatchLogsClient", "DescribeFieldIndexesCommand").f(void 0, void 0).ser(se_DescribeFieldIndexesCommand).de(de_DescribeFieldIndexesCommand).build() {
+ static {
+ __name(this, "DescribeFieldIndexesCommand");
+ }
+};
+
+// src/commands/DescribeIndexPoliciesCommand.ts
+
+
+
+var DescribeIndexPoliciesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeIndexPolicies", {}).n("CloudWatchLogsClient", "DescribeIndexPoliciesCommand").f(void 0, void 0).ser(se_DescribeIndexPoliciesCommand).de(de_DescribeIndexPoliciesCommand).build() {
+ static {
+ __name(this, "DescribeIndexPoliciesCommand");
+ }
+};
+
+// src/commands/DescribeLogGroupsCommand.ts
+
+
+
+var DescribeLogGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeLogGroups", {}).n("CloudWatchLogsClient", "DescribeLogGroupsCommand").f(void 0, void 0).ser(se_DescribeLogGroupsCommand).de(de_DescribeLogGroupsCommand).build() {
+ static {
+ __name(this, "DescribeLogGroupsCommand");
+ }
+};
+
+// src/commands/DescribeLogStreamsCommand.ts
+
+
+
+var DescribeLogStreamsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeLogStreams", {}).n("CloudWatchLogsClient", "DescribeLogStreamsCommand").f(void 0, void 0).ser(se_DescribeLogStreamsCommand).de(de_DescribeLogStreamsCommand).build() {
+ static {
+ __name(this, "DescribeLogStreamsCommand");
+ }
+};
+
+// src/commands/DescribeMetricFiltersCommand.ts
+
+
+
+var DescribeMetricFiltersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeMetricFilters", {}).n("CloudWatchLogsClient", "DescribeMetricFiltersCommand").f(void 0, void 0).ser(se_DescribeMetricFiltersCommand).de(de_DescribeMetricFiltersCommand).build() {
+ static {
+ __name(this, "DescribeMetricFiltersCommand");
+ }
+};
+
+// src/commands/DescribeQueriesCommand.ts
+
+
+
+var DescribeQueriesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeQueries", {}).n("CloudWatchLogsClient", "DescribeQueriesCommand").f(void 0, void 0).ser(se_DescribeQueriesCommand).de(de_DescribeQueriesCommand).build() {
+ static {
+ __name(this, "DescribeQueriesCommand");
+ }
+};
+
+// src/commands/DescribeQueryDefinitionsCommand.ts
+
+
+
+var DescribeQueryDefinitionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeQueryDefinitions", {}).n("CloudWatchLogsClient", "DescribeQueryDefinitionsCommand").f(void 0, void 0).ser(se_DescribeQueryDefinitionsCommand).de(de_DescribeQueryDefinitionsCommand).build() {
+ static {
+ __name(this, "DescribeQueryDefinitionsCommand");
+ }
+};
+
+// src/commands/DescribeResourcePoliciesCommand.ts
+
+
+
+var DescribeResourcePoliciesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeResourcePolicies", {}).n("CloudWatchLogsClient", "DescribeResourcePoliciesCommand").f(void 0, void 0).ser(se_DescribeResourcePoliciesCommand).de(de_DescribeResourcePoliciesCommand).build() {
+ static {
+ __name(this, "DescribeResourcePoliciesCommand");
+ }
+};
+
+// src/commands/DescribeSubscriptionFiltersCommand.ts
+
+
+
+var DescribeSubscriptionFiltersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DescribeSubscriptionFilters", {}).n("CloudWatchLogsClient", "DescribeSubscriptionFiltersCommand").f(void 0, void 0).ser(se_DescribeSubscriptionFiltersCommand).de(de_DescribeSubscriptionFiltersCommand).build() {
+ static {
+ __name(this, "DescribeSubscriptionFiltersCommand");
+ }
+};
+
+// src/commands/DisassociateKmsKeyCommand.ts
+
+
+
+var DisassociateKmsKeyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "DisassociateKmsKey", {}).n("CloudWatchLogsClient", "DisassociateKmsKeyCommand").f(void 0, void 0).ser(se_DisassociateKmsKeyCommand).de(de_DisassociateKmsKeyCommand).build() {
+ static {
+ __name(this, "DisassociateKmsKeyCommand");
+ }
+};
+
+// src/commands/FilterLogEventsCommand.ts
+
+
+
+var FilterLogEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "FilterLogEvents", {}).n("CloudWatchLogsClient", "FilterLogEventsCommand").f(void 0, void 0).ser(se_FilterLogEventsCommand).de(de_FilterLogEventsCommand).build() {
+ static {
+ __name(this, "FilterLogEventsCommand");
+ }
+};
+
+// src/commands/GetDataProtectionPolicyCommand.ts
+
+
+
+var GetDataProtectionPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetDataProtectionPolicy", {}).n("CloudWatchLogsClient", "GetDataProtectionPolicyCommand").f(void 0, void 0).ser(se_GetDataProtectionPolicyCommand).de(de_GetDataProtectionPolicyCommand).build() {
+ static {
+ __name(this, "GetDataProtectionPolicyCommand");
+ }
+};
+
+// src/commands/GetDeliveryCommand.ts
+
+
+
+var GetDeliveryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetDelivery", {}).n("CloudWatchLogsClient", "GetDeliveryCommand").f(void 0, void 0).ser(se_GetDeliveryCommand).de(de_GetDeliveryCommand).build() {
+ static {
+ __name(this, "GetDeliveryCommand");
+ }
+};
+
+// src/commands/GetDeliveryDestinationCommand.ts
+
+
+
+var GetDeliveryDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetDeliveryDestination", {}).n("CloudWatchLogsClient", "GetDeliveryDestinationCommand").f(void 0, void 0).ser(se_GetDeliveryDestinationCommand).de(de_GetDeliveryDestinationCommand).build() {
+ static {
+ __name(this, "GetDeliveryDestinationCommand");
+ }
+};
+
+// src/commands/GetDeliveryDestinationPolicyCommand.ts
+
+
+
+var GetDeliveryDestinationPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetDeliveryDestinationPolicy", {}).n("CloudWatchLogsClient", "GetDeliveryDestinationPolicyCommand").f(void 0, void 0).ser(se_GetDeliveryDestinationPolicyCommand).de(de_GetDeliveryDestinationPolicyCommand).build() {
+ static {
+ __name(this, "GetDeliveryDestinationPolicyCommand");
+ }
+};
+
+// src/commands/GetDeliverySourceCommand.ts
+
+
+
+var GetDeliverySourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetDeliverySource", {}).n("CloudWatchLogsClient", "GetDeliverySourceCommand").f(void 0, void 0).ser(se_GetDeliverySourceCommand).de(de_GetDeliverySourceCommand).build() {
+ static {
+ __name(this, "GetDeliverySourceCommand");
+ }
+};
+
+// src/commands/GetIntegrationCommand.ts
+
+
+
+var GetIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetIntegration", {}).n("CloudWatchLogsClient", "GetIntegrationCommand").f(void 0, void 0).ser(se_GetIntegrationCommand).de(de_GetIntegrationCommand).build() {
+ static {
+ __name(this, "GetIntegrationCommand");
+ }
+};
+
+// src/commands/GetLogAnomalyDetectorCommand.ts
+
+
+
+var GetLogAnomalyDetectorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetLogAnomalyDetector", {}).n("CloudWatchLogsClient", "GetLogAnomalyDetectorCommand").f(void 0, void 0).ser(se_GetLogAnomalyDetectorCommand).de(de_GetLogAnomalyDetectorCommand).build() {
+ static {
+ __name(this, "GetLogAnomalyDetectorCommand");
+ }
+};
+
+// src/commands/GetLogEventsCommand.ts
+
+
+
+var GetLogEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetLogEvents", {}).n("CloudWatchLogsClient", "GetLogEventsCommand").f(void 0, void 0).ser(se_GetLogEventsCommand).de(de_GetLogEventsCommand).build() {
+ static {
+ __name(this, "GetLogEventsCommand");
+ }
+};
+
+// src/commands/GetLogGroupFieldsCommand.ts
+
+
+
+var GetLogGroupFieldsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetLogGroupFields", {}).n("CloudWatchLogsClient", "GetLogGroupFieldsCommand").f(void 0, void 0).ser(se_GetLogGroupFieldsCommand).de(de_GetLogGroupFieldsCommand).build() {
+ static {
+ __name(this, "GetLogGroupFieldsCommand");
+ }
+};
+
+// src/commands/GetLogRecordCommand.ts
+
+
+
+var GetLogRecordCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetLogRecord", {}).n("CloudWatchLogsClient", "GetLogRecordCommand").f(void 0, void 0).ser(se_GetLogRecordCommand).de(de_GetLogRecordCommand).build() {
+ static {
+ __name(this, "GetLogRecordCommand");
+ }
+};
+
+// src/commands/GetQueryResultsCommand.ts
+
+
+
+var GetQueryResultsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetQueryResults", {}).n("CloudWatchLogsClient", "GetQueryResultsCommand").f(void 0, void 0).ser(se_GetQueryResultsCommand).de(de_GetQueryResultsCommand).build() {
+ static {
+ __name(this, "GetQueryResultsCommand");
+ }
+};
+
+// src/commands/GetTransformerCommand.ts
+
+
+
+var GetTransformerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "GetTransformer", {}).n("CloudWatchLogsClient", "GetTransformerCommand").f(void 0, void 0).ser(se_GetTransformerCommand).de(de_GetTransformerCommand).build() {
+ static {
+ __name(this, "GetTransformerCommand");
+ }
+};
+
+// src/commands/ListAnomaliesCommand.ts
+
+
+
+var ListAnomaliesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "ListAnomalies", {}).n("CloudWatchLogsClient", "ListAnomaliesCommand").f(void 0, void 0).ser(se_ListAnomaliesCommand).de(de_ListAnomaliesCommand).build() {
+ static {
+ __name(this, "ListAnomaliesCommand");
+ }
+};
+
+// src/commands/ListIntegrationsCommand.ts
+
+
+
+var ListIntegrationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "ListIntegrations", {}).n("CloudWatchLogsClient", "ListIntegrationsCommand").f(void 0, void 0).ser(se_ListIntegrationsCommand).de(de_ListIntegrationsCommand).build() {
+ static {
+ __name(this, "ListIntegrationsCommand");
+ }
+};
+
+// src/commands/ListLogAnomalyDetectorsCommand.ts
+
+
+
+var ListLogAnomalyDetectorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "ListLogAnomalyDetectors", {}).n("CloudWatchLogsClient", "ListLogAnomalyDetectorsCommand").f(void 0, void 0).ser(se_ListLogAnomalyDetectorsCommand).de(de_ListLogAnomalyDetectorsCommand).build() {
+ static {
+ __name(this, "ListLogAnomalyDetectorsCommand");
+ }
+};
+
+// src/commands/ListLogGroupsForQueryCommand.ts
+
+
+
+var ListLogGroupsForQueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "ListLogGroupsForQuery", {}).n("CloudWatchLogsClient", "ListLogGroupsForQueryCommand").f(void 0, void 0).ser(se_ListLogGroupsForQueryCommand).de(de_ListLogGroupsForQueryCommand).build() {
+ static {
+ __name(this, "ListLogGroupsForQueryCommand");
+ }
+};
+
+// src/commands/ListTagsForResourceCommand.ts
+
+
+
+var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "ListTagsForResource", {}).n("CloudWatchLogsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
+ static {
+ __name(this, "ListTagsForResourceCommand");
+ }
+};
+
+// src/commands/ListTagsLogGroupCommand.ts
+
+
+
+var ListTagsLogGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "ListTagsLogGroup", {}).n("CloudWatchLogsClient", "ListTagsLogGroupCommand").f(void 0, void 0).ser(se_ListTagsLogGroupCommand).de(de_ListTagsLogGroupCommand).build() {
+ static {
+ __name(this, "ListTagsLogGroupCommand");
+ }
+};
+
+// src/commands/PutAccountPolicyCommand.ts
+
+
+
+var PutAccountPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutAccountPolicy", {}).n("CloudWatchLogsClient", "PutAccountPolicyCommand").f(void 0, void 0).ser(se_PutAccountPolicyCommand).de(de_PutAccountPolicyCommand).build() {
+ static {
+ __name(this, "PutAccountPolicyCommand");
+ }
+};
+
+// src/commands/PutDataProtectionPolicyCommand.ts
+
+
+
+var PutDataProtectionPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutDataProtectionPolicy", {}).n("CloudWatchLogsClient", "PutDataProtectionPolicyCommand").f(void 0, void 0).ser(se_PutDataProtectionPolicyCommand).de(de_PutDataProtectionPolicyCommand).build() {
+ static {
+ __name(this, "PutDataProtectionPolicyCommand");
+ }
+};
+
+// src/commands/PutDeliveryDestinationCommand.ts
+
+
+
+var PutDeliveryDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutDeliveryDestination", {}).n("CloudWatchLogsClient", "PutDeliveryDestinationCommand").f(void 0, void 0).ser(se_PutDeliveryDestinationCommand).de(de_PutDeliveryDestinationCommand).build() {
+ static {
+ __name(this, "PutDeliveryDestinationCommand");
+ }
+};
+
+// src/commands/PutDeliveryDestinationPolicyCommand.ts
+
+
+
+var PutDeliveryDestinationPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutDeliveryDestinationPolicy", {}).n("CloudWatchLogsClient", "PutDeliveryDestinationPolicyCommand").f(void 0, void 0).ser(se_PutDeliveryDestinationPolicyCommand).de(de_PutDeliveryDestinationPolicyCommand).build() {
+ static {
+ __name(this, "PutDeliveryDestinationPolicyCommand");
+ }
+};
+
+// src/commands/PutDeliverySourceCommand.ts
+
+
+
+var PutDeliverySourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutDeliverySource", {}).n("CloudWatchLogsClient", "PutDeliverySourceCommand").f(void 0, void 0).ser(se_PutDeliverySourceCommand).de(de_PutDeliverySourceCommand).build() {
+ static {
+ __name(this, "PutDeliverySourceCommand");
+ }
+};
+
+// src/commands/PutDestinationCommand.ts
+
+
+
+var PutDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutDestination", {}).n("CloudWatchLogsClient", "PutDestinationCommand").f(void 0, void 0).ser(se_PutDestinationCommand).de(de_PutDestinationCommand).build() {
+ static {
+ __name(this, "PutDestinationCommand");
+ }
+};
+
+// src/commands/PutDestinationPolicyCommand.ts
+
+
+
+var PutDestinationPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutDestinationPolicy", {}).n("CloudWatchLogsClient", "PutDestinationPolicyCommand").f(void 0, void 0).ser(se_PutDestinationPolicyCommand).de(de_PutDestinationPolicyCommand).build() {
+ static {
+ __name(this, "PutDestinationPolicyCommand");
+ }
+};
+
+// src/commands/PutIndexPolicyCommand.ts
+
+
+
+var PutIndexPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutIndexPolicy", {}).n("CloudWatchLogsClient", "PutIndexPolicyCommand").f(void 0, void 0).ser(se_PutIndexPolicyCommand).de(de_PutIndexPolicyCommand).build() {
+ static {
+ __name(this, "PutIndexPolicyCommand");
+ }
+};
+
+// src/commands/PutIntegrationCommand.ts
+
+
+
+var PutIntegrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutIntegration", {}).n("CloudWatchLogsClient", "PutIntegrationCommand").f(void 0, void 0).ser(se_PutIntegrationCommand).de(de_PutIntegrationCommand).build() {
+ static {
+ __name(this, "PutIntegrationCommand");
+ }
+};
+
+// src/commands/PutLogEventsCommand.ts
+
+
+
+var PutLogEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutLogEvents", {}).n("CloudWatchLogsClient", "PutLogEventsCommand").f(void 0, void 0).ser(se_PutLogEventsCommand).de(de_PutLogEventsCommand).build() {
+ static {
+ __name(this, "PutLogEventsCommand");
+ }
+};
+
+// src/commands/PutMetricFilterCommand.ts
+
+
+
+var PutMetricFilterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutMetricFilter", {}).n("CloudWatchLogsClient", "PutMetricFilterCommand").f(void 0, void 0).ser(se_PutMetricFilterCommand).de(de_PutMetricFilterCommand).build() {
+ static {
+ __name(this, "PutMetricFilterCommand");
+ }
+};
+
+// src/commands/PutQueryDefinitionCommand.ts
+
+
+
+var PutQueryDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutQueryDefinition", {}).n("CloudWatchLogsClient", "PutQueryDefinitionCommand").f(void 0, void 0).ser(se_PutQueryDefinitionCommand).de(de_PutQueryDefinitionCommand).build() {
+ static {
+ __name(this, "PutQueryDefinitionCommand");
+ }
+};
+
+// src/commands/PutResourcePolicyCommand.ts
+
+
+
+var PutResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutResourcePolicy", {}).n("CloudWatchLogsClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
+ static {
+ __name(this, "PutResourcePolicyCommand");
+ }
+};
+
+// src/commands/PutRetentionPolicyCommand.ts
+
+
+
+var PutRetentionPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutRetentionPolicy", {}).n("CloudWatchLogsClient", "PutRetentionPolicyCommand").f(void 0, void 0).ser(se_PutRetentionPolicyCommand).de(de_PutRetentionPolicyCommand).build() {
+ static {
+ __name(this, "PutRetentionPolicyCommand");
+ }
+};
+
+// src/commands/PutSubscriptionFilterCommand.ts
+
+
+
+var PutSubscriptionFilterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutSubscriptionFilter", {}).n("CloudWatchLogsClient", "PutSubscriptionFilterCommand").f(void 0, void 0).ser(se_PutSubscriptionFilterCommand).de(de_PutSubscriptionFilterCommand).build() {
+ static {
+ __name(this, "PutSubscriptionFilterCommand");
+ }
+};
+
+// src/commands/PutTransformerCommand.ts
+
+
+
+var PutTransformerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "PutTransformer", {}).n("CloudWatchLogsClient", "PutTransformerCommand").f(void 0, void 0).ser(se_PutTransformerCommand).de(de_PutTransformerCommand).build() {
+ static {
+ __name(this, "PutTransformerCommand");
+ }
+};
+
+// src/commands/StartLiveTailCommand.ts
+
+
+
+var StartLiveTailCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "StartLiveTail", {
+ /**
+ * @internal
+ */
+ eventStream: {
+ output: true
+ }
+}).n("CloudWatchLogsClient", "StartLiveTailCommand").f(void 0, StartLiveTailResponseFilterSensitiveLog).ser(se_StartLiveTailCommand).de(de_StartLiveTailCommand).build() {
+ static {
+ __name(this, "StartLiveTailCommand");
+ }
+};
+
+// src/commands/StartQueryCommand.ts
+
+
+
+var StartQueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "StartQuery", {}).n("CloudWatchLogsClient", "StartQueryCommand").f(void 0, void 0).ser(se_StartQueryCommand).de(de_StartQueryCommand).build() {
+ static {
+ __name(this, "StartQueryCommand");
+ }
+};
+
+// src/commands/StopQueryCommand.ts
+
+
+
+var StopQueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "StopQuery", {}).n("CloudWatchLogsClient", "StopQueryCommand").f(void 0, void 0).ser(se_StopQueryCommand).de(de_StopQueryCommand).build() {
+ static {
+ __name(this, "StopQueryCommand");
+ }
+};
+
+// src/commands/TagLogGroupCommand.ts
+
+
+
+var TagLogGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "TagLogGroup", {}).n("CloudWatchLogsClient", "TagLogGroupCommand").f(void 0, void 0).ser(se_TagLogGroupCommand).de(de_TagLogGroupCommand).build() {
+ static {
+ __name(this, "TagLogGroupCommand");
+ }
+};
+
+// src/commands/TagResourceCommand.ts
+
+
+
+var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "TagResource", {}).n("CloudWatchLogsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
+ static {
+ __name(this, "TagResourceCommand");
+ }
+};
+
+// src/commands/TestMetricFilterCommand.ts
+
+
+
+var TestMetricFilterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "TestMetricFilter", {}).n("CloudWatchLogsClient", "TestMetricFilterCommand").f(void 0, void 0).ser(se_TestMetricFilterCommand).de(de_TestMetricFilterCommand).build() {
+ static {
+ __name(this, "TestMetricFilterCommand");
+ }
+};
+
+// src/commands/TestTransformerCommand.ts
+
+
+
+var TestTransformerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "TestTransformer", {}).n("CloudWatchLogsClient", "TestTransformerCommand").f(void 0, void 0).ser(se_TestTransformerCommand).de(de_TestTransformerCommand).build() {
+ static {
+ __name(this, "TestTransformerCommand");
+ }
+};
+
+// src/commands/UntagLogGroupCommand.ts
+
+
+
+var UntagLogGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "UntagLogGroup", {}).n("CloudWatchLogsClient", "UntagLogGroupCommand").f(void 0, void 0).ser(se_UntagLogGroupCommand).de(de_UntagLogGroupCommand).build() {
+ static {
+ __name(this, "UntagLogGroupCommand");
+ }
+};
+
+// src/commands/UntagResourceCommand.ts
+
+
+
+var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "UntagResource", {}).n("CloudWatchLogsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
+ static {
+ __name(this, "UntagResourceCommand");
+ }
+};
+
+// src/commands/UpdateAnomalyCommand.ts
+
+
+
+var UpdateAnomalyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "UpdateAnomaly", {}).n("CloudWatchLogsClient", "UpdateAnomalyCommand").f(void 0, void 0).ser(se_UpdateAnomalyCommand).de(de_UpdateAnomalyCommand).build() {
+ static {
+ __name(this, "UpdateAnomalyCommand");
+ }
+};
+
+// src/commands/UpdateDeliveryConfigurationCommand.ts
+
+
+
+var UpdateDeliveryConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "UpdateDeliveryConfiguration", {}).n("CloudWatchLogsClient", "UpdateDeliveryConfigurationCommand").f(void 0, void 0).ser(se_UpdateDeliveryConfigurationCommand).de(de_UpdateDeliveryConfigurationCommand).build() {
+ static {
+ __name(this, "UpdateDeliveryConfigurationCommand");
+ }
+};
+
+// src/commands/UpdateLogAnomalyDetectorCommand.ts
+
+
+
+var UpdateLogAnomalyDetectorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Logs_20140328", "UpdateLogAnomalyDetector", {}).n("CloudWatchLogsClient", "UpdateLogAnomalyDetectorCommand").f(void 0, void 0).ser(se_UpdateLogAnomalyDetectorCommand).de(de_UpdateLogAnomalyDetectorCommand).build() {
+ static {
+ __name(this, "UpdateLogAnomalyDetectorCommand");
+ }
+};
+
+// src/CloudWatchLogs.ts
+var commands = {
+ AssociateKmsKeyCommand,
+ CancelExportTaskCommand,
+ CreateDeliveryCommand,
+ CreateExportTaskCommand,
+ CreateLogAnomalyDetectorCommand,
+ CreateLogGroupCommand,
+ CreateLogStreamCommand,
+ DeleteAccountPolicyCommand,
+ DeleteDataProtectionPolicyCommand,
+ DeleteDeliveryCommand,
+ DeleteDeliveryDestinationCommand,
+ DeleteDeliveryDestinationPolicyCommand,
+ DeleteDeliverySourceCommand,
+ DeleteDestinationCommand,
+ DeleteIndexPolicyCommand,
+ DeleteIntegrationCommand,
+ DeleteLogAnomalyDetectorCommand,
+ DeleteLogGroupCommand,
+ DeleteLogStreamCommand,
+ DeleteMetricFilterCommand,
+ DeleteQueryDefinitionCommand,
+ DeleteResourcePolicyCommand,
+ DeleteRetentionPolicyCommand,
+ DeleteSubscriptionFilterCommand,
+ DeleteTransformerCommand,
+ DescribeAccountPoliciesCommand,
+ DescribeConfigurationTemplatesCommand,
+ DescribeDeliveriesCommand,
+ DescribeDeliveryDestinationsCommand,
+ DescribeDeliverySourcesCommand,
+ DescribeDestinationsCommand,
+ DescribeExportTasksCommand,
+ DescribeFieldIndexesCommand,
+ DescribeIndexPoliciesCommand,
+ DescribeLogGroupsCommand,
+ DescribeLogStreamsCommand,
+ DescribeMetricFiltersCommand,
+ DescribeQueriesCommand,
+ DescribeQueryDefinitionsCommand,
+ DescribeResourcePoliciesCommand,
+ DescribeSubscriptionFiltersCommand,
+ DisassociateKmsKeyCommand,
+ FilterLogEventsCommand,
+ GetDataProtectionPolicyCommand,
+ GetDeliveryCommand,
+ GetDeliveryDestinationCommand,
+ GetDeliveryDestinationPolicyCommand,
+ GetDeliverySourceCommand,
+ GetIntegrationCommand,
+ GetLogAnomalyDetectorCommand,
+ GetLogEventsCommand,
+ GetLogGroupFieldsCommand,
+ GetLogRecordCommand,
+ GetQueryResultsCommand,
+ GetTransformerCommand,
+ ListAnomaliesCommand,
+ ListIntegrationsCommand,
+ ListLogAnomalyDetectorsCommand,
+ ListLogGroupsForQueryCommand,
+ ListTagsForResourceCommand,
+ ListTagsLogGroupCommand,
+ PutAccountPolicyCommand,
+ PutDataProtectionPolicyCommand,
+ PutDeliveryDestinationCommand,
+ PutDeliveryDestinationPolicyCommand,
+ PutDeliverySourceCommand,
+ PutDestinationCommand,
+ PutDestinationPolicyCommand,
+ PutIndexPolicyCommand,
+ PutIntegrationCommand,
+ PutLogEventsCommand,
+ PutMetricFilterCommand,
+ PutQueryDefinitionCommand,
+ PutResourcePolicyCommand,
+ PutRetentionPolicyCommand,
+ PutSubscriptionFilterCommand,
+ PutTransformerCommand,
+ StartLiveTailCommand,
+ StartQueryCommand,
+ StopQueryCommand,
+ TagLogGroupCommand,
+ TagResourceCommand,
+ TestMetricFilterCommand,
+ TestTransformerCommand,
+ UntagLogGroupCommand,
+ UntagResourceCommand,
+ UpdateAnomalyCommand,
+ UpdateDeliveryConfigurationCommand,
+ UpdateLogAnomalyDetectorCommand
+};
+var CloudWatchLogs = class extends CloudWatchLogsClient {
+ static {
+ __name(this, "CloudWatchLogs");
+ }
+};
+(0, import_smithy_client.createAggregatedClient)(commands, CloudWatchLogs);
+
+// src/pagination/DescribeConfigurationTemplatesPaginator.ts
+
+var paginateDescribeConfigurationTemplates = (0, import_core.createPaginator)(CloudWatchLogsClient, DescribeConfigurationTemplatesCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/DescribeDeliveriesPaginator.ts
+
+var paginateDescribeDeliveries = (0, import_core.createPaginator)(CloudWatchLogsClient, DescribeDeliveriesCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/DescribeDeliveryDestinationsPaginator.ts
+
+var paginateDescribeDeliveryDestinations = (0, import_core.createPaginator)(CloudWatchLogsClient, DescribeDeliveryDestinationsCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/DescribeDeliverySourcesPaginator.ts
+
+var paginateDescribeDeliverySources = (0, import_core.createPaginator)(CloudWatchLogsClient, DescribeDeliverySourcesCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/DescribeDestinationsPaginator.ts
+
+var paginateDescribeDestinations = (0, import_core.createPaginator)(CloudWatchLogsClient, DescribeDestinationsCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/DescribeLogGroupsPaginator.ts
+
+var paginateDescribeLogGroups = (0, import_core.createPaginator)(CloudWatchLogsClient, DescribeLogGroupsCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/DescribeLogStreamsPaginator.ts
+
+var paginateDescribeLogStreams = (0, import_core.createPaginator)(CloudWatchLogsClient, DescribeLogStreamsCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/DescribeMetricFiltersPaginator.ts
+
+var paginateDescribeMetricFilters = (0, import_core.createPaginator)(CloudWatchLogsClient, DescribeMetricFiltersCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/DescribeSubscriptionFiltersPaginator.ts
+
+var paginateDescribeSubscriptionFilters = (0, import_core.createPaginator)(CloudWatchLogsClient, DescribeSubscriptionFiltersCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/FilterLogEventsPaginator.ts
+
+var paginateFilterLogEvents = (0, import_core.createPaginator)(CloudWatchLogsClient, FilterLogEventsCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/GetLogEventsPaginator.ts
+
+var paginateGetLogEvents = (0, import_core.createPaginator)(CloudWatchLogsClient, GetLogEventsCommand, "nextToken", "nextForwardToken", "limit");
+
+// src/pagination/ListAnomaliesPaginator.ts
+
+var paginateListAnomalies = (0, import_core.createPaginator)(CloudWatchLogsClient, ListAnomaliesCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/ListLogAnomalyDetectorsPaginator.ts
+
+var paginateListLogAnomalyDetectors = (0, import_core.createPaginator)(CloudWatchLogsClient, ListLogAnomalyDetectorsCommand, "nextToken", "nextToken", "limit");
+
+// src/pagination/ListLogGroupsForQueryPaginator.ts
+
+var paginateListLogGroupsForQuery = (0, import_core.createPaginator)(CloudWatchLogsClient, ListLogGroupsForQueryCommand, "nextToken", "nextToken", "maxResults");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 29879:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const tslib_1 = __nccwpck_require__(4351);
+const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(62001));
+const core_1 = __nccwpck_require__(59963);
+const credential_provider_node_1 = __nccwpck_require__(75531);
+const util_user_agent_node_1 = __nccwpck_require__(98095);
+const config_resolver_1 = __nccwpck_require__(53098);
+const eventstream_serde_node_1 = __nccwpck_require__(77682);
+const hash_node_1 = __nccwpck_require__(3081);
+const middleware_retry_1 = __nccwpck_require__(96039);
+const node_config_provider_1 = __nccwpck_require__(33461);
+const node_http_handler_1 = __nccwpck_require__(20258);
+const util_body_length_node_1 = __nccwpck_require__(68075);
+const util_retry_1 = __nccwpck_require__(84902);
+const runtimeConfig_shared_1 = __nccwpck_require__(18929);
+const smithy_client_1 = __nccwpck_require__(63570);
+const util_defaults_mode_node_1 = __nccwpck_require__(72429);
+const smithy_client_2 = __nccwpck_require__(63570);
+const getRuntimeConfig = (config) => {
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
+ const profileConfig = { profile: config?.profile };
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "node",
+ defaultsMode,
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
+ region: config?.region ??
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
+ retryMode: config?.retryMode ??
+ (0, node_config_provider_1.loadConfig)({
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
+ }, config),
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 18929:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const core_1 = __nccwpck_require__(59963);
+const smithy_client_1 = __nccwpck_require__(63570);
+const url_parser_1 = __nccwpck_require__(14681);
+const util_base64_1 = __nccwpck_require__(75600);
+const util_utf8_1 = __nccwpck_require__(41895);
+const httpAuthSchemeProvider_1 = __nccwpck_require__(99784);
+const endpointResolver_1 = __nccwpck_require__(49488);
+const getRuntimeConfig = (config) => {
+ return {
+ apiVersion: "2014-03-28",
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
+ disableHostPrefix: config?.disableHostPrefix ?? false,
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
+ extensions: config?.extensions ?? [],
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCloudWatchLogsHttpAuthSchemeProvider,
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
+ signer: new core_1.AwsSdkSigV4Signer(),
+ },
+ ],
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
+ serviceId: config?.serviceId ?? "CloudWatch Logs",
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 4780:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+Object.defineProperty(exports, "NIL", ({
+ enumerable: true,
+ get: function () {
+ return _nil.default;
+ }
+}));
+Object.defineProperty(exports, "parse", ({
+ enumerable: true,
+ get: function () {
+ return _parse.default;
+ }
+}));
+Object.defineProperty(exports, "stringify", ({
+ enumerable: true,
+ get: function () {
+ return _stringify.default;
+ }
+}));
+Object.defineProperty(exports, "v1", ({
+ enumerable: true,
+ get: function () {
+ return _v.default;
+ }
+}));
+Object.defineProperty(exports, "v3", ({
+ enumerable: true,
+ get: function () {
+ return _v2.default;
+ }
+}));
+Object.defineProperty(exports, "v4", ({
+ enumerable: true,
+ get: function () {
+ return _v3.default;
+ }
+}));
+Object.defineProperty(exports, "v5", ({
+ enumerable: true,
+ get: function () {
+ return _v4.default;
+ }
+}));
+Object.defineProperty(exports, "validate", ({
+ enumerable: true,
+ get: function () {
+ return _validate.default;
+ }
+}));
+Object.defineProperty(exports, "version", ({
+ enumerable: true,
+ get: function () {
+ return _version.default;
+ }
+}));
+
+var _v = _interopRequireDefault(__nccwpck_require__(61294));
+
+var _v2 = _interopRequireDefault(__nccwpck_require__(59029));
+
+var _v3 = _interopRequireDefault(__nccwpck_require__(5243));
+
+var _v4 = _interopRequireDefault(__nccwpck_require__(75219));
+
+var _nil = _interopRequireDefault(__nccwpck_require__(71399));
+
+var _version = _interopRequireDefault(__nccwpck_require__(35459));
+
+var _validate = _interopRequireDefault(__nccwpck_require__(76661));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(41987));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(23028));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/***/ }),
+
+/***/ 26103:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function md5(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('md5').update(bytes).digest();
+}
+
+var _default = md5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 18921:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var _default = {
+ randomUUID: _crypto.default.randomUUID
+};
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 71399:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = '00000000-0000-0000-0000-000000000000';
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 23028:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(76661));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function parse(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ let v;
+ const arr = new Uint8Array(16); // Parse ########-....-....-....-............
+
+ arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
+ arr[1] = v >>> 16 & 0xff;
+ arr[2] = v >>> 8 & 0xff;
+ arr[3] = v & 0xff; // Parse ........-####-....-....-............
+
+ arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
+ arr[5] = v & 0xff; // Parse ........-....-####-....-............
+
+ arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
+ arr[7] = v & 0xff; // Parse ........-....-....-####-............
+
+ arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
+ arr[9] = v & 0xff; // Parse ........-....-....-....-############
+ // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
+
+ arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
+ arr[11] = v / 0x100000000 & 0xff;
+ arr[12] = v >>> 24 & 0xff;
+ arr[13] = v >>> 16 & 0xff;
+ arr[14] = v >>> 8 & 0xff;
+ arr[15] = v & 0xff;
+ return arr;
+}
+
+var _default = parse;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 20897:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 45279:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = rng;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
+
+let poolPtr = rnds8Pool.length;
+
+function rng() {
+ if (poolPtr > rnds8Pool.length - 16) {
+ _crypto.default.randomFillSync(rnds8Pool);
+
+ poolPtr = 0;
+ }
+
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
+}
+
+/***/ }),
+
+/***/ 36035:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function sha1(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('sha1').update(bytes).digest();
+}
+
+var _default = sha1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 41987:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+exports.unsafeStringify = unsafeStringify;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(76661));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+const byteToHex = [];
+
+for (let i = 0; i < 256; ++i) {
+ byteToHex.push((i + 0x100).toString(16).slice(1));
+}
+
+function unsafeStringify(arr, offset = 0) {
+ // Note: Be careful editing this code! It's been tuned for performance
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
+}
+
+function stringify(arr, offset = 0) {
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
+ // of the following:
+ // - One or more input array values don't map to a hex octet (leading to
+ // "undefined" in the uuid)
+ // - Invalid input values for the RFC `version` or `variant` fields
+
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Stringified UUID is invalid');
+ }
+
+ return uuid;
+}
+
+var _default = stringify;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 61294:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(45279));
+
+var _stringify = __nccwpck_require__(41987);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+// **`v1()` - Generate time-based UUID**
+//
+// Inspired by https://github.com/LiosK/UUID.js
+// and http://docs.python.org/library/uuid.html
+let _nodeId;
+
+let _clockseq; // Previous uuid creation time
+
+
+let _lastMSecs = 0;
+let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
+
+function v1(options, buf, offset) {
+ let i = buf && offset || 0;
+ const b = buf || new Array(16);
+ options = options || {};
+ let node = options.node || _nodeId;
+ let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
+ // specified. We do this lazily to minimize issues related to insufficient
+ // system entropy. See #189
+
+ if (node == null || clockseq == null) {
+ const seedBytes = options.random || (options.rng || _rng.default)();
+
+ if (node == null) {
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
+ node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
+ }
+
+ if (clockseq == null) {
+ // Per 4.2.2, randomize (14 bit) clockseq
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
+ }
+ } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
+
+
+ let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
+ // cycle to simulate higher resolution clock
+
+ let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
+
+ const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
+
+ if (dt < 0 && options.clockseq === undefined) {
+ clockseq = clockseq + 1 & 0x3fff;
+ } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
+ // time interval
+
+
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
+ nsecs = 0;
+ } // Per 4.2.1.2 Throw error if too many uuids are requested
+
+
+ if (nsecs >= 10000) {
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
+ }
+
+ _lastMSecs = msecs;
+ _lastNSecs = nsecs;
+ _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
+
+ msecs += 12219292800000; // `time_low`
+
+ const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
+ b[i++] = tl >>> 24 & 0xff;
+ b[i++] = tl >>> 16 & 0xff;
+ b[i++] = tl >>> 8 & 0xff;
+ b[i++] = tl & 0xff; // `time_mid`
+
+ const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
+ b[i++] = tmh >>> 8 & 0xff;
+ b[i++] = tmh & 0xff; // `time_high_and_version`
+
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
+
+ b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
+
+ b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
+
+ b[i++] = clockseq & 0xff; // `node`
+
+ for (let n = 0; n < 6; ++n) {
+ b[i + n] = node[n];
+ }
+
+ return buf || (0, _stringify.unsafeStringify)(b);
+}
+
+var _default = v1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 59029:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(40058));
+
+var _md = _interopRequireDefault(__nccwpck_require__(26103));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v3 = (0, _v.default)('v3', 0x30, _md.default);
+var _default = v3;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 40058:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.URL = exports.DNS = void 0;
+exports["default"] = v35;
+
+var _stringify = __nccwpck_require__(41987);
+
+var _parse = _interopRequireDefault(__nccwpck_require__(23028));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function stringToBytes(str) {
+ str = unescape(encodeURIComponent(str)); // UTF8 escape
+
+ const bytes = [];
+
+ for (let i = 0; i < str.length; ++i) {
+ bytes.push(str.charCodeAt(i));
+ }
+
+ return bytes;
+}
+
+const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
+exports.DNS = DNS;
+const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
+exports.URL = URL;
+
+function v35(name, version, hashfunc) {
+ function generateUUID(value, namespace, buf, offset) {
+ var _namespace;
+
+ if (typeof value === 'string') {
+ value = stringToBytes(value);
+ }
+
+ if (typeof namespace === 'string') {
+ namespace = (0, _parse.default)(namespace);
+ }
+
+ if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
+ throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
+ } // Compute hash of namespace and value, Per 4.3
+ // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
+ // hashfunc([...namespace, ... value])`
+
+
+ let bytes = new Uint8Array(16 + value.length);
+ bytes.set(namespace);
+ bytes.set(value, namespace.length);
+ bytes = hashfunc(bytes);
+ bytes[6] = bytes[6] & 0x0f | version;
+ bytes[8] = bytes[8] & 0x3f | 0x80;
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = bytes[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.unsafeStringify)(bytes);
+ } // Function#name is not settable on some platforms (#270)
+
+
+ try {
+ generateUUID.name = name; // eslint-disable-next-line no-empty
+ } catch (err) {} // For CommonJS default export support
+
+
+ generateUUID.DNS = DNS;
+ generateUUID.URL = URL;
+ return generateUUID;
+}
+
+/***/ }),
+
+/***/ 5243:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _native = _interopRequireDefault(__nccwpck_require__(18921));
+
+var _rng = _interopRequireDefault(__nccwpck_require__(45279));
+
+var _stringify = __nccwpck_require__(41987);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function v4(options, buf, offset) {
+ if (_native.default.randomUUID && !buf && !options) {
+ return _native.default.randomUUID();
+ }
+
+ options = options || {};
+
+ const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+
+
+ rnds[6] = rnds[6] & 0x0f | 0x40;
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = rnds[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.unsafeStringify)(rnds);
+}
+
+var _default = v4;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 75219:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(40058));
+
+var _sha = _interopRequireDefault(__nccwpck_require__(36035));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v5 = (0, _v.default)('v5', 0x50, _sha.default);
+var _default = v5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 76661:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _regex = _interopRequireDefault(__nccwpck_require__(20897));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function validate(uuid) {
+ return typeof uuid === 'string' && _regex.default.test(uuid);
+}
+
+var _default = validate;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 35459:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(76661));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function version(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ return parseInt(uuid.slice(14, 15), 16);
+}
+
+var _default = version;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 37983:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveHttpAuthSchemeConfig = exports.defaultECSHttpAuthSchemeProvider = exports.defaultECSHttpAuthSchemeParametersProvider = void 0;
+const core_1 = __nccwpck_require__(59963);
+const util_middleware_1 = __nccwpck_require__(2390);
+const defaultECSHttpAuthSchemeParametersProvider = async (config, context, input) => {
+ return {
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
+ (() => {
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
+ })(),
+ };
+};
+exports.defaultECSHttpAuthSchemeParametersProvider = defaultECSHttpAuthSchemeParametersProvider;
+function createAwsAuthSigv4HttpAuthOption(authParameters) {
+ return {
+ schemeId: "aws.auth#sigv4",
+ signingProperties: {
+ name: "ecs",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config, context) => ({
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+const defaultECSHttpAuthSchemeProvider = (authParameters) => {
+ const options = [];
+ switch (authParameters.operation) {
+ default: {
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
+ }
+ }
+ return options;
+};
+exports.defaultECSHttpAuthSchemeProvider = defaultECSHttpAuthSchemeProvider;
+const resolveHttpAuthSchemeConfig = (config) => {
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
+ return Object.assign(config_0, {});
+};
+exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
+
+
+/***/ }),
+
+/***/ 55021:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defaultEndpointResolver = void 0;
+const util_endpoints_1 = __nccwpck_require__(13350);
+const util_endpoints_2 = __nccwpck_require__(45473);
+const ruleset_1 = __nccwpck_require__(83635);
+const cache = new util_endpoints_2.EndpointCache({
+ size: 50,
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
+});
+const defaultEndpointResolver = (endpointParams, context = {}) => {
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
+ endpointParams: endpointParams,
+ logger: context.logger,
+ }));
+};
+exports.defaultEndpointResolver = defaultEndpointResolver;
+util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
+
+
+/***/ }),
+
+/***/ 83635:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ruleSet = void 0;
+const s = "required", t = "fn", u = "argv", v = "ref";
+const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
+const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://ecs.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
+exports.ruleSet = _data;
+
+
+/***/ }),
+
+/***/ 18209:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ AccessDeniedException: () => AccessDeniedException,
+ AgentUpdateStatus: () => AgentUpdateStatus,
+ ApplicationProtocol: () => ApplicationProtocol,
+ AssignPublicIp: () => AssignPublicIp,
+ AttributeLimitExceededException: () => AttributeLimitExceededException,
+ AvailabilityZoneRebalancing: () => AvailabilityZoneRebalancing,
+ BlockedException: () => BlockedException,
+ CPUArchitecture: () => CPUArchitecture,
+ CapacityProviderField: () => CapacityProviderField,
+ CapacityProviderStatus: () => CapacityProviderStatus,
+ CapacityProviderUpdateStatus: () => CapacityProviderUpdateStatus,
+ ClientException: () => ClientException,
+ ClusterContainsContainerInstancesException: () => ClusterContainsContainerInstancesException,
+ ClusterContainsServicesException: () => ClusterContainsServicesException,
+ ClusterContainsTasksException: () => ClusterContainsTasksException,
+ ClusterField: () => ClusterField,
+ ClusterNotFoundException: () => ClusterNotFoundException,
+ ClusterSettingName: () => ClusterSettingName,
+ Compatibility: () => Compatibility,
+ ConflictException: () => ConflictException,
+ Connectivity: () => Connectivity,
+ ContainerCondition: () => ContainerCondition,
+ ContainerInstanceField: () => ContainerInstanceField,
+ ContainerInstanceStatus: () => ContainerInstanceStatus,
+ CreateCapacityProviderCommand: () => CreateCapacityProviderCommand,
+ CreateClusterCommand: () => CreateClusterCommand,
+ CreateServiceCommand: () => CreateServiceCommand,
+ CreateTaskSetCommand: () => CreateTaskSetCommand,
+ DeleteAccountSettingCommand: () => DeleteAccountSettingCommand,
+ DeleteAttributesCommand: () => DeleteAttributesCommand,
+ DeleteCapacityProviderCommand: () => DeleteCapacityProviderCommand,
+ DeleteClusterCommand: () => DeleteClusterCommand,
+ DeleteServiceCommand: () => DeleteServiceCommand,
+ DeleteTaskDefinitionsCommand: () => DeleteTaskDefinitionsCommand,
+ DeleteTaskSetCommand: () => DeleteTaskSetCommand,
+ DeploymentControllerType: () => DeploymentControllerType,
+ DeploymentRolloutState: () => DeploymentRolloutState,
+ DeregisterContainerInstanceCommand: () => DeregisterContainerInstanceCommand,
+ DeregisterTaskDefinitionCommand: () => DeregisterTaskDefinitionCommand,
+ DescribeCapacityProvidersCommand: () => DescribeCapacityProvidersCommand,
+ DescribeClustersCommand: () => DescribeClustersCommand,
+ DescribeContainerInstancesCommand: () => DescribeContainerInstancesCommand,
+ DescribeServiceDeploymentsCommand: () => DescribeServiceDeploymentsCommand,
+ DescribeServiceRevisionsCommand: () => DescribeServiceRevisionsCommand,
+ DescribeServicesCommand: () => DescribeServicesCommand,
+ DescribeTaskDefinitionCommand: () => DescribeTaskDefinitionCommand,
+ DescribeTaskSetsCommand: () => DescribeTaskSetsCommand,
+ DescribeTasksCommand: () => DescribeTasksCommand,
+ DesiredStatus: () => DesiredStatus,
+ DeviceCgroupPermission: () => DeviceCgroupPermission,
+ DiscoverPollEndpointCommand: () => DiscoverPollEndpointCommand,
+ EBSResourceType: () => EBSResourceType,
+ ECS: () => ECS,
+ ECSClient: () => ECSClient,
+ ECSServiceException: () => ECSServiceException,
+ EFSAuthorizationConfigIAM: () => EFSAuthorizationConfigIAM,
+ EFSTransitEncryption: () => EFSTransitEncryption,
+ EnvironmentFileType: () => EnvironmentFileType,
+ ExecuteCommandCommand: () => ExecuteCommandCommand,
+ ExecuteCommandLogging: () => ExecuteCommandLogging,
+ ExecuteCommandResponseFilterSensitiveLog: () => ExecuteCommandResponseFilterSensitiveLog,
+ FirelensConfigurationType: () => FirelensConfigurationType,
+ GetTaskProtectionCommand: () => GetTaskProtectionCommand,
+ HealthStatus: () => HealthStatus,
+ InstanceHealthCheckState: () => InstanceHealthCheckState,
+ InstanceHealthCheckType: () => InstanceHealthCheckType,
+ InvalidParameterException: () => InvalidParameterException,
+ IpcMode: () => IpcMode,
+ LaunchType: () => LaunchType,
+ LimitExceededException: () => LimitExceededException,
+ ListAccountSettingsCommand: () => ListAccountSettingsCommand,
+ ListAttributesCommand: () => ListAttributesCommand,
+ ListClustersCommand: () => ListClustersCommand,
+ ListContainerInstancesCommand: () => ListContainerInstancesCommand,
+ ListServiceDeploymentsCommand: () => ListServiceDeploymentsCommand,
+ ListServicesByNamespaceCommand: () => ListServicesByNamespaceCommand,
+ ListServicesCommand: () => ListServicesCommand,
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
+ ListTaskDefinitionFamiliesCommand: () => ListTaskDefinitionFamiliesCommand,
+ ListTaskDefinitionsCommand: () => ListTaskDefinitionsCommand,
+ ListTasksCommand: () => ListTasksCommand,
+ LogDriver: () => LogDriver,
+ ManagedAgentName: () => ManagedAgentName,
+ ManagedDraining: () => ManagedDraining,
+ ManagedScalingStatus: () => ManagedScalingStatus,
+ ManagedTerminationProtection: () => ManagedTerminationProtection,
+ MissingVersionException: () => MissingVersionException,
+ NamespaceNotFoundException: () => NamespaceNotFoundException,
+ NetworkMode: () => NetworkMode,
+ NoUpdateAvailableException: () => NoUpdateAvailableException,
+ OSFamily: () => OSFamily,
+ PidMode: () => PidMode,
+ PlacementConstraintType: () => PlacementConstraintType,
+ PlacementStrategyType: () => PlacementStrategyType,
+ PlatformDeviceType: () => PlatformDeviceType,
+ PlatformTaskDefinitionIncompatibilityException: () => PlatformTaskDefinitionIncompatibilityException,
+ PlatformUnknownException: () => PlatformUnknownException,
+ PropagateTags: () => PropagateTags,
+ ProxyConfigurationType: () => ProxyConfigurationType,
+ PutAccountSettingCommand: () => PutAccountSettingCommand,
+ PutAccountSettingDefaultCommand: () => PutAccountSettingDefaultCommand,
+ PutAttributesCommand: () => PutAttributesCommand,
+ PutClusterCapacityProvidersCommand: () => PutClusterCapacityProvidersCommand,
+ RegisterContainerInstanceCommand: () => RegisterContainerInstanceCommand,
+ RegisterTaskDefinitionCommand: () => RegisterTaskDefinitionCommand,
+ ResourceInUseException: () => ResourceInUseException,
+ ResourceNotFoundException: () => ResourceNotFoundException,
+ ResourceType: () => ResourceType,
+ RunTaskCommand: () => RunTaskCommand,
+ ScaleUnit: () => ScaleUnit,
+ SchedulingStrategy: () => SchedulingStrategy,
+ Scope: () => Scope,
+ ServerException: () => ServerException,
+ ServiceDeploymentRollbackMonitorsStatus: () => ServiceDeploymentRollbackMonitorsStatus,
+ ServiceDeploymentStatus: () => ServiceDeploymentStatus,
+ ServiceField: () => ServiceField,
+ ServiceNotActiveException: () => ServiceNotActiveException,
+ ServiceNotFoundException: () => ServiceNotFoundException,
+ SessionFilterSensitiveLog: () => SessionFilterSensitiveLog,
+ SettingName: () => SettingName,
+ SettingType: () => SettingType,
+ SortOrder: () => SortOrder,
+ StabilityStatus: () => StabilityStatus,
+ StartTaskCommand: () => StartTaskCommand,
+ StopTaskCommand: () => StopTaskCommand,
+ SubmitAttachmentStateChangesCommand: () => SubmitAttachmentStateChangesCommand,
+ SubmitContainerStateChangeCommand: () => SubmitContainerStateChangeCommand,
+ SubmitTaskStateChangeCommand: () => SubmitTaskStateChangeCommand,
+ TagResourceCommand: () => TagResourceCommand,
+ TargetNotConnectedException: () => TargetNotConnectedException,
+ TargetNotFoundException: () => TargetNotFoundException,
+ TargetType: () => TargetType,
+ TaskDefinitionFamilyStatus: () => TaskDefinitionFamilyStatus,
+ TaskDefinitionField: () => TaskDefinitionField,
+ TaskDefinitionPlacementConstraintType: () => TaskDefinitionPlacementConstraintType,
+ TaskDefinitionStatus: () => TaskDefinitionStatus,
+ TaskField: () => TaskField,
+ TaskFilesystemType: () => TaskFilesystemType,
+ TaskSetField: () => TaskSetField,
+ TaskSetNotFoundException: () => TaskSetNotFoundException,
+ TaskStopCode: () => TaskStopCode,
+ TransportProtocol: () => TransportProtocol,
+ UlimitName: () => UlimitName,
+ UnsupportedFeatureException: () => UnsupportedFeatureException,
+ UntagResourceCommand: () => UntagResourceCommand,
+ UpdateCapacityProviderCommand: () => UpdateCapacityProviderCommand,
+ UpdateClusterCommand: () => UpdateClusterCommand,
+ UpdateClusterSettingsCommand: () => UpdateClusterSettingsCommand,
+ UpdateContainerAgentCommand: () => UpdateContainerAgentCommand,
+ UpdateContainerInstancesStateCommand: () => UpdateContainerInstancesStateCommand,
+ UpdateInProgressException: () => UpdateInProgressException,
+ UpdateServiceCommand: () => UpdateServiceCommand,
+ UpdateServicePrimaryTaskSetCommand: () => UpdateServicePrimaryTaskSetCommand,
+ UpdateTaskProtectionCommand: () => UpdateTaskProtectionCommand,
+ UpdateTaskSetCommand: () => UpdateTaskSetCommand,
+ VersionConsistency: () => VersionConsistency,
+ __Client: () => import_smithy_client.Client,
+ paginateListAccountSettings: () => paginateListAccountSettings,
+ paginateListAttributes: () => paginateListAttributes,
+ paginateListClusters: () => paginateListClusters,
+ paginateListContainerInstances: () => paginateListContainerInstances,
+ paginateListServices: () => paginateListServices,
+ paginateListServicesByNamespace: () => paginateListServicesByNamespace,
+ paginateListTaskDefinitionFamilies: () => paginateListTaskDefinitionFamilies,
+ paginateListTaskDefinitions: () => paginateListTaskDefinitions,
+ paginateListTasks: () => paginateListTasks,
+ waitForServicesInactive: () => waitForServicesInactive,
+ waitForServicesStable: () => waitForServicesStable,
+ waitForTasksRunning: () => waitForTasksRunning,
+ waitForTasksStopped: () => waitForTasksStopped,
+ waitUntilServicesInactive: () => waitUntilServicesInactive,
+ waitUntilServicesStable: () => waitUntilServicesStable,
+ waitUntilTasksRunning: () => waitUntilTasksRunning,
+ waitUntilTasksStopped: () => waitUntilTasksStopped
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/ECSClient.ts
+var import_middleware_host_header = __nccwpck_require__(22545);
+var import_middleware_logger = __nccwpck_require__(20014);
+var import_middleware_recursion_detection = __nccwpck_require__(85525);
+var import_middleware_user_agent = __nccwpck_require__(64688);
+var import_config_resolver = __nccwpck_require__(53098);
+var import_core = __nccwpck_require__(55829);
+var import_middleware_content_length = __nccwpck_require__(82800);
+var import_middleware_endpoint = __nccwpck_require__(82918);
+var import_middleware_retry = __nccwpck_require__(96039);
+
+var import_httpAuthSchemeProvider = __nccwpck_require__(37983);
+
+// src/endpoint/EndpointParameters.ts
+var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
+ return Object.assign(options, {
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
+ defaultSigningName: "ecs"
+ });
+}, "resolveClientEndpointParameters");
+var commonParams = {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
+};
+
+// src/ECSClient.ts
+var import_runtimeConfig = __nccwpck_require__(47246);
+
+// src/runtimeExtensions.ts
+var import_region_config_resolver = __nccwpck_require__(18156);
+var import_protocol_http = __nccwpck_require__(64418);
+var import_smithy_client = __nccwpck_require__(63570);
+
+// src/auth/httpAuthExtensionConfiguration.ts
+var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
+ let _credentials = runtimeConfig.credentials;
+ return {
+ setHttpAuthScheme(httpAuthScheme) {
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
+ if (index === -1) {
+ _httpAuthSchemes.push(httpAuthScheme);
+ } else {
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
+ }
+ },
+ httpAuthSchemes() {
+ return _httpAuthSchemes;
+ },
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
+ },
+ httpAuthSchemeProvider() {
+ return _httpAuthSchemeProvider;
+ },
+ setCredentials(credentials) {
+ _credentials = credentials;
+ },
+ credentials() {
+ return _credentials;
+ }
+ };
+}, "getHttpAuthExtensionConfiguration");
+var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
+ return {
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials()
+ };
+}, "resolveHttpAuthRuntimeConfig");
+
+// src/runtimeExtensions.ts
+var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
+ const extensionConfiguration = Object.assign(
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
+ getHttpAuthExtensionConfiguration(runtimeConfig)
+ );
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
+ return Object.assign(
+ runtimeConfig,
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
+ );
+}, "resolveRuntimeExtensions");
+
+// src/ECSClient.ts
+var ECSClient = class extends import_smithy_client.Client {
+ static {
+ __name(this, "ECSClient");
+ }
+ /**
+ * The resolved configuration of ECSClient class. This is resolved and normalized from the {@link ECSClientConfig | constructor configuration interface}.
+ */
+ config;
+ constructor(...[configuration]) {
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
+ super(_config_0);
+ this.initConfig = _config_0;
+ const _config_1 = resolveClientEndpointParameters(_config_0);
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
+ this.config = _config_8;
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
+ this.middlewareStack.use(
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultECSHttpAuthSchemeParametersProvider,
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
+ "aws.auth#sigv4": config.credentials
+ }), "identityProviderConfigProvider")
+ })
+ );
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
+ }
+ /**
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
+ */
+ destroy() {
+ super.destroy();
+ }
+};
+
+// src/ECS.ts
+
+
+// src/commands/CreateCapacityProviderCommand.ts
+
+var import_middleware_serde = __nccwpck_require__(81238);
+
+
+// src/protocols/Aws_json1_1.ts
+var import_core2 = __nccwpck_require__(59963);
+
+
+var import_uuid = __nccwpck_require__(82522);
+
+// src/models/ECSServiceException.ts
+
+var ECSServiceException = class _ECSServiceException extends import_smithy_client.ServiceException {
+ static {
+ __name(this, "ECSServiceException");
+ }
+ /**
+ * @internal
+ */
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, _ECSServiceException.prototype);
+ }
+};
+
+// src/models/models_0.ts
+
+var AccessDeniedException = class _AccessDeniedException extends ECSServiceException {
+ static {
+ __name(this, "AccessDeniedException");
+ }
+ name = "AccessDeniedException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "AccessDeniedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
+ }
+};
+var AgentUpdateStatus = {
+ FAILED: "FAILED",
+ PENDING: "PENDING",
+ STAGED: "STAGED",
+ STAGING: "STAGING",
+ UPDATED: "UPDATED",
+ UPDATING: "UPDATING"
+};
+var ClientException = class _ClientException extends ECSServiceException {
+ static {
+ __name(this, "ClientException");
+ }
+ name = "ClientException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ClientException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ClientException.prototype);
+ }
+};
+var ManagedDraining = {
+ DISABLED: "DISABLED",
+ ENABLED: "ENABLED"
+};
+var ManagedScalingStatus = {
+ DISABLED: "DISABLED",
+ ENABLED: "ENABLED"
+};
+var ManagedTerminationProtection = {
+ DISABLED: "DISABLED",
+ ENABLED: "ENABLED"
+};
+var CapacityProviderStatus = {
+ ACTIVE: "ACTIVE",
+ INACTIVE: "INACTIVE"
+};
+var CapacityProviderUpdateStatus = {
+ DELETE_COMPLETE: "DELETE_COMPLETE",
+ DELETE_FAILED: "DELETE_FAILED",
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
+ UPDATE_COMPLETE: "UPDATE_COMPLETE",
+ UPDATE_FAILED: "UPDATE_FAILED",
+ UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS"
+};
+var InvalidParameterException = class _InvalidParameterException extends ECSServiceException {
+ static {
+ __name(this, "InvalidParameterException");
+ }
+ name = "InvalidParameterException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidParameterException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidParameterException.prototype);
+ }
+};
+var LimitExceededException = class _LimitExceededException extends ECSServiceException {
+ static {
+ __name(this, "LimitExceededException");
+ }
+ name = "LimitExceededException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "LimitExceededException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
+ }
+};
+var ServerException = class _ServerException extends ECSServiceException {
+ static {
+ __name(this, "ServerException");
+ }
+ name = "ServerException";
+ $fault = "server";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ServerException",
+ $fault: "server",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ServerException.prototype);
+ }
+};
+var UpdateInProgressException = class _UpdateInProgressException extends ECSServiceException {
+ static {
+ __name(this, "UpdateInProgressException");
+ }
+ name = "UpdateInProgressException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "UpdateInProgressException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _UpdateInProgressException.prototype);
+ }
+};
+var ExecuteCommandLogging = {
+ DEFAULT: "DEFAULT",
+ NONE: "NONE",
+ OVERRIDE: "OVERRIDE"
+};
+var ClusterSettingName = {
+ CONTAINER_INSIGHTS: "containerInsights"
+};
+var NamespaceNotFoundException = class _NamespaceNotFoundException extends ECSServiceException {
+ static {
+ __name(this, "NamespaceNotFoundException");
+ }
+ name = "NamespaceNotFoundException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "NamespaceNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _NamespaceNotFoundException.prototype);
+ }
+};
+var ClusterNotFoundException = class _ClusterNotFoundException extends ECSServiceException {
+ static {
+ __name(this, "ClusterNotFoundException");
+ }
+ name = "ClusterNotFoundException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ClusterNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ClusterNotFoundException.prototype);
+ }
+};
+var AvailabilityZoneRebalancing = {
+ DISABLED: "DISABLED",
+ ENABLED: "ENABLED"
+};
+var DeploymentControllerType = {
+ CODE_DEPLOY: "CODE_DEPLOY",
+ ECS: "ECS",
+ EXTERNAL: "EXTERNAL"
+};
+var LaunchType = {
+ EC2: "EC2",
+ EXTERNAL: "EXTERNAL",
+ FARGATE: "FARGATE"
+};
+var AssignPublicIp = {
+ DISABLED: "DISABLED",
+ ENABLED: "ENABLED"
+};
+var PlacementConstraintType = {
+ DISTINCT_INSTANCE: "distinctInstance",
+ MEMBER_OF: "memberOf"
+};
+var PlacementStrategyType = {
+ BINPACK: "binpack",
+ RANDOM: "random",
+ SPREAD: "spread"
+};
+var PropagateTags = {
+ NONE: "NONE",
+ SERVICE: "SERVICE",
+ TASK_DEFINITION: "TASK_DEFINITION"
+};
+var SchedulingStrategy = {
+ DAEMON: "DAEMON",
+ REPLICA: "REPLICA"
+};
+var LogDriver = {
+ AWSFIRELENS: "awsfirelens",
+ AWSLOGS: "awslogs",
+ FLUENTD: "fluentd",
+ GELF: "gelf",
+ JOURNALD: "journald",
+ JSON_FILE: "json-file",
+ SPLUNK: "splunk",
+ SYSLOG: "syslog"
+};
+var TaskFilesystemType = {
+ EXT3: "ext3",
+ EXT4: "ext4",
+ NTFS: "ntfs",
+ XFS: "xfs"
+};
+var EBSResourceType = {
+ VOLUME: "volume"
+};
+var DeploymentRolloutState = {
+ COMPLETED: "COMPLETED",
+ FAILED: "FAILED",
+ IN_PROGRESS: "IN_PROGRESS"
+};
+var ScaleUnit = {
+ PERCENT: "PERCENT"
+};
+var StabilityStatus = {
+ STABILIZING: "STABILIZING",
+ STEADY_STATE: "STEADY_STATE"
+};
+var PlatformTaskDefinitionIncompatibilityException = class _PlatformTaskDefinitionIncompatibilityException extends ECSServiceException {
+ static {
+ __name(this, "PlatformTaskDefinitionIncompatibilityException");
+ }
+ name = "PlatformTaskDefinitionIncompatibilityException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "PlatformTaskDefinitionIncompatibilityException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _PlatformTaskDefinitionIncompatibilityException.prototype);
+ }
+};
+var PlatformUnknownException = class _PlatformUnknownException extends ECSServiceException {
+ static {
+ __name(this, "PlatformUnknownException");
+ }
+ name = "PlatformUnknownException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "PlatformUnknownException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _PlatformUnknownException.prototype);
+ }
+};
+var UnsupportedFeatureException = class _UnsupportedFeatureException extends ECSServiceException {
+ static {
+ __name(this, "UnsupportedFeatureException");
+ }
+ name = "UnsupportedFeatureException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "UnsupportedFeatureException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _UnsupportedFeatureException.prototype);
+ }
+};
+var ServiceNotActiveException = class _ServiceNotActiveException extends ECSServiceException {
+ static {
+ __name(this, "ServiceNotActiveException");
+ }
+ name = "ServiceNotActiveException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ServiceNotActiveException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ServiceNotActiveException.prototype);
+ }
+};
+var ServiceNotFoundException = class _ServiceNotFoundException extends ECSServiceException {
+ static {
+ __name(this, "ServiceNotFoundException");
+ }
+ name = "ServiceNotFoundException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ServiceNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ServiceNotFoundException.prototype);
+ }
+};
+var SettingName = {
+ AWSVPC_TRUNKING: "awsvpcTrunking",
+ CONTAINER_INSIGHTS: "containerInsights",
+ CONTAINER_INSTANCE_LONG_ARN_FORMAT: "containerInstanceLongArnFormat",
+ FARGATE_FIPS_MODE: "fargateFIPSMode",
+ FARGATE_TASK_RETIREMENT_WAIT_PERIOD: "fargateTaskRetirementWaitPeriod",
+ GUARD_DUTY_ACTIVATE: "guardDutyActivate",
+ SERVICE_LONG_ARN_FORMAT: "serviceLongArnFormat",
+ TAG_RESOURCE_AUTHORIZATION: "tagResourceAuthorization",
+ TASK_LONG_ARN_FORMAT: "taskLongArnFormat"
+};
+var SettingType = {
+ AWS_MANAGED: "aws_managed",
+ USER: "user"
+};
+var TargetType = {
+ CONTAINER_INSTANCE: "container-instance"
+};
+var TargetNotFoundException = class _TargetNotFoundException extends ECSServiceException {
+ static {
+ __name(this, "TargetNotFoundException");
+ }
+ name = "TargetNotFoundException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "TargetNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _TargetNotFoundException.prototype);
+ }
+};
+var ClusterContainsContainerInstancesException = class _ClusterContainsContainerInstancesException extends ECSServiceException {
+ static {
+ __name(this, "ClusterContainsContainerInstancesException");
+ }
+ name = "ClusterContainsContainerInstancesException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ClusterContainsContainerInstancesException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ClusterContainsContainerInstancesException.prototype);
+ }
+};
+var ClusterContainsServicesException = class _ClusterContainsServicesException extends ECSServiceException {
+ static {
+ __name(this, "ClusterContainsServicesException");
+ }
+ name = "ClusterContainsServicesException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ClusterContainsServicesException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ClusterContainsServicesException.prototype);
+ }
+};
+var ClusterContainsTasksException = class _ClusterContainsTasksException extends ECSServiceException {
+ static {
+ __name(this, "ClusterContainsTasksException");
+ }
+ name = "ClusterContainsTasksException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ClusterContainsTasksException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ClusterContainsTasksException.prototype);
+ }
+};
+var Compatibility = {
+ EC2: "EC2",
+ EXTERNAL: "EXTERNAL",
+ FARGATE: "FARGATE"
+};
+var ContainerCondition = {
+ COMPLETE: "COMPLETE",
+ HEALTHY: "HEALTHY",
+ START: "START",
+ SUCCESS: "SUCCESS"
+};
+var EnvironmentFileType = {
+ S3: "s3"
+};
+var FirelensConfigurationType = {
+ FLUENTBIT: "fluentbit",
+ FLUENTD: "fluentd"
+};
+var DeviceCgroupPermission = {
+ MKNOD: "mknod",
+ READ: "read",
+ WRITE: "write"
+};
+var ApplicationProtocol = {
+ GRPC: "grpc",
+ HTTP: "http",
+ HTTP2: "http2"
+};
+var TransportProtocol = {
+ TCP: "tcp",
+ UDP: "udp"
+};
+var ResourceType = {
+ GPU: "GPU",
+ INFERENCE_ACCELERATOR: "InferenceAccelerator"
+};
+var UlimitName = {
+ CORE: "core",
+ CPU: "cpu",
+ DATA: "data",
+ FSIZE: "fsize",
+ LOCKS: "locks",
+ MEMLOCK: "memlock",
+ MSGQUEUE: "msgqueue",
+ NICE: "nice",
+ NOFILE: "nofile",
+ NPROC: "nproc",
+ RSS: "rss",
+ RTPRIO: "rtprio",
+ RTTIME: "rttime",
+ SIGPENDING: "sigpending",
+ STACK: "stack"
+};
+var VersionConsistency = {
+ DISABLED: "disabled",
+ ENABLED: "enabled"
+};
+var IpcMode = {
+ HOST: "host",
+ NONE: "none",
+ TASK: "task"
+};
+var NetworkMode = {
+ AWSVPC: "awsvpc",
+ BRIDGE: "bridge",
+ HOST: "host",
+ NONE: "none"
+};
+var PidMode = {
+ HOST: "host",
+ TASK: "task"
+};
+var TaskDefinitionPlacementConstraintType = {
+ MEMBER_OF: "memberOf"
+};
+var ProxyConfigurationType = {
+ APPMESH: "APPMESH"
+};
+var CPUArchitecture = {
+ ARM64: "ARM64",
+ X86_64: "X86_64"
+};
+var OSFamily = {
+ LINUX: "LINUX",
+ WINDOWS_SERVER_2004_CORE: "WINDOWS_SERVER_2004_CORE",
+ WINDOWS_SERVER_2016_FULL: "WINDOWS_SERVER_2016_FULL",
+ WINDOWS_SERVER_2019_CORE: "WINDOWS_SERVER_2019_CORE",
+ WINDOWS_SERVER_2019_FULL: "WINDOWS_SERVER_2019_FULL",
+ WINDOWS_SERVER_2022_CORE: "WINDOWS_SERVER_2022_CORE",
+ WINDOWS_SERVER_2022_FULL: "WINDOWS_SERVER_2022_FULL",
+ WINDOWS_SERVER_20H2_CORE: "WINDOWS_SERVER_20H2_CORE"
+};
+var TaskDefinitionStatus = {
+ ACTIVE: "ACTIVE",
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
+ INACTIVE: "INACTIVE"
+};
+var Scope = {
+ SHARED: "shared",
+ TASK: "task"
+};
+var EFSAuthorizationConfigIAM = {
+ DISABLED: "DISABLED",
+ ENABLED: "ENABLED"
+};
+var EFSTransitEncryption = {
+ DISABLED: "DISABLED",
+ ENABLED: "ENABLED"
+};
+var TaskSetNotFoundException = class _TaskSetNotFoundException extends ECSServiceException {
+ static {
+ __name(this, "TaskSetNotFoundException");
+ }
+ name = "TaskSetNotFoundException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "TaskSetNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _TaskSetNotFoundException.prototype);
+ }
+};
+var InstanceHealthCheckState = {
+ IMPAIRED: "IMPAIRED",
+ INITIALIZING: "INITIALIZING",
+ INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
+ OK: "OK"
+};
+var InstanceHealthCheckType = {
+ CONTAINER_RUNTIME: "CONTAINER_RUNTIME"
+};
+var CapacityProviderField = {
+ TAGS: "TAGS"
+};
+var ClusterField = {
+ ATTACHMENTS: "ATTACHMENTS",
+ CONFIGURATIONS: "CONFIGURATIONS",
+ SETTINGS: "SETTINGS",
+ STATISTICS: "STATISTICS",
+ TAGS: "TAGS"
+};
+var ContainerInstanceField = {
+ CONTAINER_INSTANCE_HEALTH: "CONTAINER_INSTANCE_HEALTH",
+ TAGS: "TAGS"
+};
+var ServiceDeploymentRollbackMonitorsStatus = {
+ DISABLED: "DISABLED",
+ MONITORING: "MONITORING",
+ MONITORING_COMPLETE: "MONITORING_COMPLETE",
+ TRIGGERED: "TRIGGERED"
+};
+var ServiceDeploymentStatus = {
+ IN_PROGRESS: "IN_PROGRESS",
+ PENDING: "PENDING",
+ ROLLBACK_FAILED: "ROLLBACK_FAILED",
+ ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
+ ROLLBACK_SUCCESSFUL: "ROLLBACK_SUCCESSFUL",
+ STOPPED: "STOPPED",
+ STOP_REQUESTED: "STOP_REQUESTED",
+ SUCCESSFUL: "SUCCESSFUL"
+};
+var ServiceField = {
+ TAGS: "TAGS"
+};
+var TaskDefinitionField = {
+ TAGS: "TAGS"
+};
+var TaskField = {
+ TAGS: "TAGS"
+};
+var Connectivity = {
+ CONNECTED: "CONNECTED",
+ DISCONNECTED: "DISCONNECTED"
+};
+var HealthStatus = {
+ HEALTHY: "HEALTHY",
+ UNHEALTHY: "UNHEALTHY",
+ UNKNOWN: "UNKNOWN"
+};
+var ManagedAgentName = {
+ ExecuteCommandAgent: "ExecuteCommandAgent"
+};
+var TaskStopCode = {
+ ESSENTIAL_CONTAINER_EXITED: "EssentialContainerExited",
+ SERVICE_SCHEDULER_INITIATED: "ServiceSchedulerInitiated",
+ SPOT_INTERRUPTION: "SpotInterruption",
+ TASK_FAILED_TO_START: "TaskFailedToStart",
+ TERMINATION_NOTICE: "TerminationNotice",
+ USER_INITIATED: "UserInitiated"
+};
+var TaskSetField = {
+ TAGS: "TAGS"
+};
+var TargetNotConnectedException = class _TargetNotConnectedException extends ECSServiceException {
+ static {
+ __name(this, "TargetNotConnectedException");
+ }
+ name = "TargetNotConnectedException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "TargetNotConnectedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _TargetNotConnectedException.prototype);
+ }
+};
+var ResourceNotFoundException = class _ResourceNotFoundException extends ECSServiceException {
+ static {
+ __name(this, "ResourceNotFoundException");
+ }
+ name = "ResourceNotFoundException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ResourceNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
+ }
+};
+var ContainerInstanceStatus = {
+ ACTIVE: "ACTIVE",
+ DEREGISTERING: "DEREGISTERING",
+ DRAINING: "DRAINING",
+ REGISTERING: "REGISTERING",
+ REGISTRATION_FAILED: "REGISTRATION_FAILED"
+};
+var TaskDefinitionFamilyStatus = {
+ ACTIVE: "ACTIVE",
+ ALL: "ALL",
+ INACTIVE: "INACTIVE"
+};
+var SortOrder = {
+ ASC: "ASC",
+ DESC: "DESC"
+};
+var DesiredStatus = {
+ PENDING: "PENDING",
+ RUNNING: "RUNNING",
+ STOPPED: "STOPPED"
+};
+var AttributeLimitExceededException = class _AttributeLimitExceededException extends ECSServiceException {
+ static {
+ __name(this, "AttributeLimitExceededException");
+ }
+ name = "AttributeLimitExceededException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "AttributeLimitExceededException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _AttributeLimitExceededException.prototype);
+ }
+};
+var ResourceInUseException = class _ResourceInUseException extends ECSServiceException {
+ static {
+ __name(this, "ResourceInUseException");
+ }
+ name = "ResourceInUseException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ResourceInUseException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ResourceInUseException.prototype);
+ }
+};
+var PlatformDeviceType = {
+ GPU: "GPU"
+};
+var BlockedException = class _BlockedException extends ECSServiceException {
+ static {
+ __name(this, "BlockedException");
+ }
+ name = "BlockedException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "BlockedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _BlockedException.prototype);
+ }
+};
+var ConflictException = class _ConflictException extends ECSServiceException {
+ static {
+ __name(this, "ConflictException");
+ }
+ name = "ConflictException";
+ $fault = "client";
+ /**
+ * The existing task ARNs which are already associated with the
+ * clientToken.
+ * @public
+ */
+ resourceIds;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ConflictException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ConflictException.prototype);
+ this.resourceIds = opts.resourceIds;
+ }
+};
+var SessionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.tokenValue && { tokenValue: import_smithy_client.SENSITIVE_STRING }
+}), "SessionFilterSensitiveLog");
+var ExecuteCommandResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.session && { session: SessionFilterSensitiveLog(obj.session) }
+}), "ExecuteCommandResponseFilterSensitiveLog");
+
+// src/models/models_1.ts
+var MissingVersionException = class _MissingVersionException extends ECSServiceException {
+ static {
+ __name(this, "MissingVersionException");
+ }
+ name = "MissingVersionException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "MissingVersionException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _MissingVersionException.prototype);
+ }
+};
+var NoUpdateAvailableException = class _NoUpdateAvailableException extends ECSServiceException {
+ static {
+ __name(this, "NoUpdateAvailableException");
+ }
+ name = "NoUpdateAvailableException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "NoUpdateAvailableException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _NoUpdateAvailableException.prototype);
+ }
+};
+
+// src/protocols/Aws_json1_1.ts
+var se_CreateCapacityProviderCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CreateCapacityProvider");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateCapacityProviderCommand");
+var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CreateCluster");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateClusterCommand");
+var se_CreateServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CreateService");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateServiceCommand");
+var se_CreateTaskSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CreateTaskSet");
+ let body;
+ body = JSON.stringify(se_CreateTaskSetRequest(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateTaskSetCommand");
+var se_DeleteAccountSettingCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteAccountSetting");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteAccountSettingCommand");
+var se_DeleteAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteAttributes");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteAttributesCommand");
+var se_DeleteCapacityProviderCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteCapacityProvider");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteCapacityProviderCommand");
+var se_DeleteClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteCluster");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteClusterCommand");
+var se_DeleteServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteService");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteServiceCommand");
+var se_DeleteTaskDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteTaskDefinitions");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteTaskDefinitionsCommand");
+var se_DeleteTaskSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteTaskSet");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteTaskSetCommand");
+var se_DeregisterContainerInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeregisterContainerInstance");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeregisterContainerInstanceCommand");
+var se_DeregisterTaskDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeregisterTaskDefinition");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeregisterTaskDefinitionCommand");
+var se_DescribeCapacityProvidersCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeCapacityProviders");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeCapacityProvidersCommand");
+var se_DescribeClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeClusters");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeClustersCommand");
+var se_DescribeContainerInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeContainerInstances");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeContainerInstancesCommand");
+var se_DescribeServiceDeploymentsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeServiceDeployments");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeServiceDeploymentsCommand");
+var se_DescribeServiceRevisionsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeServiceRevisions");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeServiceRevisionsCommand");
+var se_DescribeServicesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeServices");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeServicesCommand");
+var se_DescribeTaskDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeTaskDefinition");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeTaskDefinitionCommand");
+var se_DescribeTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeTasks");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeTasksCommand");
+var se_DescribeTaskSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeTaskSets");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeTaskSetsCommand");
+var se_DiscoverPollEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DiscoverPollEndpoint");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DiscoverPollEndpointCommand");
+var se_ExecuteCommandCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ExecuteCommand");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ExecuteCommandCommand");
+var se_GetTaskProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetTaskProtection");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetTaskProtectionCommand");
+var se_ListAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListAccountSettings");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListAccountSettingsCommand");
+var se_ListAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListAttributes");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListAttributesCommand");
+var se_ListClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListClusters");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListClustersCommand");
+var se_ListContainerInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListContainerInstances");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListContainerInstancesCommand");
+var se_ListServiceDeploymentsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListServiceDeployments");
+ let body;
+ body = JSON.stringify(se_ListServiceDeploymentsRequest(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListServiceDeploymentsCommand");
+var se_ListServicesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListServices");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListServicesCommand");
+var se_ListServicesByNamespaceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListServicesByNamespace");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListServicesByNamespaceCommand");
+var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListTagsForResource");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListTagsForResourceCommand");
+var se_ListTaskDefinitionFamiliesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListTaskDefinitionFamilies");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListTaskDefinitionFamiliesCommand");
+var se_ListTaskDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListTaskDefinitions");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListTaskDefinitionsCommand");
+var se_ListTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListTasks");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListTasksCommand");
+var se_PutAccountSettingCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutAccountSetting");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutAccountSettingCommand");
+var se_PutAccountSettingDefaultCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutAccountSettingDefault");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutAccountSettingDefaultCommand");
+var se_PutAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutAttributes");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutAttributesCommand");
+var se_PutClusterCapacityProvidersCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutClusterCapacityProviders");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutClusterCapacityProvidersCommand");
+var se_RegisterContainerInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("RegisterContainerInstance");
+ let body;
+ body = JSON.stringify(se_RegisterContainerInstanceRequest(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_RegisterContainerInstanceCommand");
+var se_RegisterTaskDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("RegisterTaskDefinition");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_RegisterTaskDefinitionCommand");
+var se_RunTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("RunTask");
+ let body;
+ body = JSON.stringify(se_RunTaskRequest(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_RunTaskCommand");
+var se_StartTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("StartTask");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_StartTaskCommand");
+var se_StopTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("StopTask");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_StopTaskCommand");
+var se_SubmitAttachmentStateChangesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("SubmitAttachmentStateChanges");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_SubmitAttachmentStateChangesCommand");
+var se_SubmitContainerStateChangeCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("SubmitContainerStateChange");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_SubmitContainerStateChangeCommand");
+var se_SubmitTaskStateChangeCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("SubmitTaskStateChange");
+ let body;
+ body = JSON.stringify(se_SubmitTaskStateChangeRequest(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_SubmitTaskStateChangeCommand");
+var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("TagResource");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_TagResourceCommand");
+var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UntagResource");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UntagResourceCommand");
+var se_UpdateCapacityProviderCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateCapacityProvider");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateCapacityProviderCommand");
+var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateCluster");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateClusterCommand");
+var se_UpdateClusterSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateClusterSettings");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateClusterSettingsCommand");
+var se_UpdateContainerAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateContainerAgent");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateContainerAgentCommand");
+var se_UpdateContainerInstancesStateCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateContainerInstancesState");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateContainerInstancesStateCommand");
+var se_UpdateServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateService");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateServiceCommand");
+var se_UpdateServicePrimaryTaskSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateServicePrimaryTaskSet");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateServicePrimaryTaskSetCommand");
+var se_UpdateTaskProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateTaskProtection");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateTaskProtectionCommand");
+var se_UpdateTaskSetCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateTaskSet");
+ let body;
+ body = JSON.stringify(se_UpdateTaskSetRequest(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateTaskSetCommand");
+var de_CreateCapacityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateCapacityProviderCommand");
+var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateClusterCommand");
+var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_CreateServiceResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateServiceCommand");
+var de_CreateTaskSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_CreateTaskSetResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_CreateTaskSetCommand");
+var de_DeleteAccountSettingCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteAccountSettingCommand");
+var de_DeleteAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteAttributesCommand");
+var de_DeleteCapacityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteCapacityProviderCommand");
+var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteClusterCommand");
+var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DeleteServiceResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteServiceCommand");
+var de_DeleteTaskDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DeleteTaskDefinitionsResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteTaskDefinitionsCommand");
+var de_DeleteTaskSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DeleteTaskSetResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeleteTaskSetCommand");
+var de_DeregisterContainerInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DeregisterContainerInstanceResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeregisterContainerInstanceCommand");
+var de_DeregisterTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DeregisterTaskDefinitionResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DeregisterTaskDefinitionCommand");
+var de_DescribeCapacityProvidersCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeCapacityProvidersCommand");
+var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeClustersCommand");
+var de_DescribeContainerInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeContainerInstancesResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeContainerInstancesCommand");
+var de_DescribeServiceDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeServiceDeploymentsResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeServiceDeploymentsCommand");
+var de_DescribeServiceRevisionsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeServiceRevisionsResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeServiceRevisionsCommand");
+var de_DescribeServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeServicesResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeServicesCommand");
+var de_DescribeTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeTaskDefinitionResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeTaskDefinitionCommand");
+var de_DescribeTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeTasksResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeTasksCommand");
+var de_DescribeTaskSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeTaskSetsResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeTaskSetsCommand");
+var de_DiscoverPollEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DiscoverPollEndpointCommand");
+var de_ExecuteCommandCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ExecuteCommandCommand");
+var de_GetTaskProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_GetTaskProtectionResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetTaskProtectionCommand");
+var de_ListAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListAccountSettingsCommand");
+var de_ListAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListAttributesCommand");
+var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListClustersCommand");
+var de_ListContainerInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListContainerInstancesCommand");
+var de_ListServiceDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_ListServiceDeploymentsResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListServiceDeploymentsCommand");
+var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListServicesCommand");
+var de_ListServicesByNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListServicesByNamespaceCommand");
+var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListTagsForResourceCommand");
+var de_ListTaskDefinitionFamiliesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListTaskDefinitionFamiliesCommand");
+var de_ListTaskDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListTaskDefinitionsCommand");
+var de_ListTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListTasksCommand");
+var de_PutAccountSettingCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutAccountSettingCommand");
+var de_PutAccountSettingDefaultCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutAccountSettingDefaultCommand");
+var de_PutAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutAttributesCommand");
+var de_PutClusterCapacityProvidersCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutClusterCapacityProvidersCommand");
+var de_RegisterContainerInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_RegisterContainerInstanceResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_RegisterContainerInstanceCommand");
+var de_RegisterTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_RegisterTaskDefinitionResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_RegisterTaskDefinitionCommand");
+var de_RunTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_RunTaskResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_RunTaskCommand");
+var de_StartTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_StartTaskResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_StartTaskCommand");
+var de_StopTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_StopTaskResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_StopTaskCommand");
+var de_SubmitAttachmentStateChangesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_SubmitAttachmentStateChangesCommand");
+var de_SubmitContainerStateChangeCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_SubmitContainerStateChangeCommand");
+var de_SubmitTaskStateChangeCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_SubmitTaskStateChangeCommand");
+var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_TagResourceCommand");
+var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UntagResourceCommand");
+var de_UpdateCapacityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateCapacityProviderCommand");
+var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateClusterCommand");
+var de_UpdateClusterSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateClusterSettingsCommand");
+var de_UpdateContainerAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateContainerAgentResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateContainerAgentCommand");
+var de_UpdateContainerInstancesStateCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateContainerInstancesStateResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateContainerInstancesStateCommand");
+var de_UpdateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateServiceResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateServiceCommand");
+var de_UpdateServicePrimaryTaskSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateServicePrimaryTaskSetResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateServicePrimaryTaskSetCommand");
+var de_UpdateTaskProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateTaskProtectionResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateTaskProtectionCommand");
+var de_UpdateTaskSetCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_UpdateTaskSetResponse(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateTaskSetCommand");
+var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
+ };
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
+ switch (errorCode) {
+ case "ClientException":
+ case "com.amazonaws.ecs#ClientException":
+ throw await de_ClientExceptionRes(parsedOutput, context);
+ case "InvalidParameterException":
+ case "com.amazonaws.ecs#InvalidParameterException":
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
+ case "LimitExceededException":
+ case "com.amazonaws.ecs#LimitExceededException":
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
+ case "ServerException":
+ case "com.amazonaws.ecs#ServerException":
+ throw await de_ServerExceptionRes(parsedOutput, context);
+ case "UpdateInProgressException":
+ case "com.amazonaws.ecs#UpdateInProgressException":
+ throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
+ case "NamespaceNotFoundException":
+ case "com.amazonaws.ecs#NamespaceNotFoundException":
+ throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
+ case "AccessDeniedException":
+ case "com.amazonaws.ecs#AccessDeniedException":
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
+ case "ClusterNotFoundException":
+ case "com.amazonaws.ecs#ClusterNotFoundException":
+ throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
+ case "PlatformTaskDefinitionIncompatibilityException":
+ case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
+ throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
+ case "PlatformUnknownException":
+ case "com.amazonaws.ecs#PlatformUnknownException":
+ throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
+ case "UnsupportedFeatureException":
+ case "com.amazonaws.ecs#UnsupportedFeatureException":
+ throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
+ case "ServiceNotActiveException":
+ case "com.amazonaws.ecs#ServiceNotActiveException":
+ throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
+ case "ServiceNotFoundException":
+ case "com.amazonaws.ecs#ServiceNotFoundException":
+ throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
+ case "TargetNotFoundException":
+ case "com.amazonaws.ecs#TargetNotFoundException":
+ throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
+ case "ClusterContainsContainerInstancesException":
+ case "com.amazonaws.ecs#ClusterContainsContainerInstancesException":
+ throw await de_ClusterContainsContainerInstancesExceptionRes(parsedOutput, context);
+ case "ClusterContainsServicesException":
+ case "com.amazonaws.ecs#ClusterContainsServicesException":
+ throw await de_ClusterContainsServicesExceptionRes(parsedOutput, context);
+ case "ClusterContainsTasksException":
+ case "com.amazonaws.ecs#ClusterContainsTasksException":
+ throw await de_ClusterContainsTasksExceptionRes(parsedOutput, context);
+ case "TaskSetNotFoundException":
+ case "com.amazonaws.ecs#TaskSetNotFoundException":
+ throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context);
+ case "TargetNotConnectedException":
+ case "com.amazonaws.ecs#TargetNotConnectedException":
+ throw await de_TargetNotConnectedExceptionRes(parsedOutput, context);
+ case "ResourceNotFoundException":
+ case "com.amazonaws.ecs#ResourceNotFoundException":
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
+ case "AttributeLimitExceededException":
+ case "com.amazonaws.ecs#AttributeLimitExceededException":
+ throw await de_AttributeLimitExceededExceptionRes(parsedOutput, context);
+ case "ResourceInUseException":
+ case "com.amazonaws.ecs#ResourceInUseException":
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
+ case "BlockedException":
+ case "com.amazonaws.ecs#BlockedException":
+ throw await de_BlockedExceptionRes(parsedOutput, context);
+ case "ConflictException":
+ case "com.amazonaws.ecs#ConflictException":
+ throw await de_ConflictExceptionRes(parsedOutput, context);
+ case "MissingVersionException":
+ case "com.amazonaws.ecs#MissingVersionException":
+ throw await de_MissingVersionExceptionRes(parsedOutput, context);
+ case "NoUpdateAvailableException":
+ case "com.amazonaws.ecs#NoUpdateAvailableException":
+ throw await de_NoUpdateAvailableExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody,
+ errorCode
+ });
+ }
+}, "de_CommandError");
+var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new AccessDeniedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_AccessDeniedExceptionRes");
+var de_AttributeLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new AttributeLimitExceededException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_AttributeLimitExceededExceptionRes");
+var de_BlockedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new BlockedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_BlockedExceptionRes");
+var de_ClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ClientException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ClientExceptionRes");
+var de_ClusterContainsContainerInstancesExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ClusterContainsContainerInstancesException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ClusterContainsContainerInstancesExceptionRes");
+var de_ClusterContainsServicesExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ClusterContainsServicesException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ClusterContainsServicesExceptionRes");
+var de_ClusterContainsTasksExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ClusterContainsTasksException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ClusterContainsTasksExceptionRes");
+var de_ClusterNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ClusterNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ClusterNotFoundExceptionRes");
+var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ConflictException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ConflictExceptionRes");
+var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new InvalidParameterException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_InvalidParameterExceptionRes");
+var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new LimitExceededException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_LimitExceededExceptionRes");
+var de_MissingVersionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new MissingVersionException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_MissingVersionExceptionRes");
+var de_NamespaceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new NamespaceNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_NamespaceNotFoundExceptionRes");
+var de_NoUpdateAvailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new NoUpdateAvailableException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_NoUpdateAvailableExceptionRes");
+var de_PlatformTaskDefinitionIncompatibilityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new PlatformTaskDefinitionIncompatibilityException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_PlatformTaskDefinitionIncompatibilityExceptionRes");
+var de_PlatformUnknownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new PlatformUnknownException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_PlatformUnknownExceptionRes");
+var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ResourceInUseException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ResourceInUseExceptionRes");
+var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ResourceNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ResourceNotFoundExceptionRes");
+var de_ServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ServerException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ServerExceptionRes");
+var de_ServiceNotActiveExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ServiceNotActiveException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ServiceNotActiveExceptionRes");
+var de_ServiceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ServiceNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ServiceNotFoundExceptionRes");
+var de_TargetNotConnectedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new TargetNotConnectedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_TargetNotConnectedExceptionRes");
+var de_TargetNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new TargetNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_TargetNotFoundExceptionRes");
+var de_TaskSetNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new TaskSetNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_TaskSetNotFoundExceptionRes");
+var de_UnsupportedFeatureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new UnsupportedFeatureException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_UnsupportedFeatureExceptionRes");
+var de_UpdateInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new UpdateInProgressException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_UpdateInProgressExceptionRes");
+var se_CreatedAt = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ after: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "after"),
+ before: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "before")
+ });
+}, "se_CreatedAt");
+var se_CreateTaskSetRequest = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ capacityProviderStrategy: import_smithy_client._json,
+ clientToken: [],
+ cluster: [],
+ externalId: [],
+ launchType: [],
+ loadBalancers: import_smithy_client._json,
+ networkConfiguration: import_smithy_client._json,
+ platformVersion: [],
+ scale: /* @__PURE__ */ __name((_) => se_Scale(_, context), "scale"),
+ service: [],
+ serviceRegistries: import_smithy_client._json,
+ tags: import_smithy_client._json,
+ taskDefinition: []
+ });
+}, "se_CreateTaskSetRequest");
+var se_ListServiceDeploymentsRequest = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ cluster: [],
+ createdAt: /* @__PURE__ */ __name((_) => se_CreatedAt(_, context), "createdAt"),
+ maxResults: [],
+ nextToken: [],
+ service: [],
+ status: import_smithy_client._json
+ });
+}, "se_ListServiceDeploymentsRequest");
+var se_RegisterContainerInstanceRequest = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ attributes: import_smithy_client._json,
+ cluster: [],
+ containerInstanceArn: [],
+ instanceIdentityDocument: [],
+ instanceIdentityDocumentSignature: [],
+ platformDevices: import_smithy_client._json,
+ tags: import_smithy_client._json,
+ totalResources: /* @__PURE__ */ __name((_) => se_Resources(_, context), "totalResources"),
+ versionInfo: import_smithy_client._json
+ });
+}, "se_RegisterContainerInstanceRequest");
+var se_Resource = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ doubleValue: import_smithy_client.serializeFloat,
+ integerValue: [],
+ longValue: [],
+ name: [],
+ stringSetValue: import_smithy_client._json,
+ type: []
+ });
+}, "se_Resource");
+var se_Resources = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ return se_Resource(entry, context);
+ });
+}, "se_Resources");
+var se_RunTaskRequest = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ capacityProviderStrategy: import_smithy_client._json,
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
+ cluster: [],
+ count: [],
+ enableECSManagedTags: [],
+ enableExecuteCommand: [],
+ group: [],
+ launchType: [],
+ networkConfiguration: import_smithy_client._json,
+ overrides: import_smithy_client._json,
+ placementConstraints: import_smithy_client._json,
+ placementStrategy: import_smithy_client._json,
+ platformVersion: [],
+ propagateTags: [],
+ referenceId: [],
+ startedBy: [],
+ tags: import_smithy_client._json,
+ taskDefinition: [],
+ volumeConfigurations: import_smithy_client._json
+ });
+}, "se_RunTaskRequest");
+var se_Scale = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ unit: [],
+ value: import_smithy_client.serializeFloat
+ });
+}, "se_Scale");
+var se_SubmitTaskStateChangeRequest = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ attachments: import_smithy_client._json,
+ cluster: [],
+ containers: import_smithy_client._json,
+ executionStoppedAt: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "executionStoppedAt"),
+ managedAgents: import_smithy_client._json,
+ pullStartedAt: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "pullStartedAt"),
+ pullStoppedAt: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "pullStoppedAt"),
+ reason: [],
+ status: [],
+ task: []
+ });
+}, "se_SubmitTaskStateChangeRequest");
+var se_UpdateTaskSetRequest = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ cluster: [],
+ scale: /* @__PURE__ */ __name((_) => se_Scale(_, context), "scale"),
+ service: [],
+ taskSet: []
+ });
+}, "se_UpdateTaskSetRequest");
+var de_Container = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ containerArn: import_smithy_client.expectString,
+ cpu: import_smithy_client.expectString,
+ exitCode: import_smithy_client.expectInt32,
+ gpuIds: import_smithy_client._json,
+ healthStatus: import_smithy_client.expectString,
+ image: import_smithy_client.expectString,
+ imageDigest: import_smithy_client.expectString,
+ lastStatus: import_smithy_client.expectString,
+ managedAgents: /* @__PURE__ */ __name((_) => de_ManagedAgents(_, context), "managedAgents"),
+ memory: import_smithy_client.expectString,
+ memoryReservation: import_smithy_client.expectString,
+ name: import_smithy_client.expectString,
+ networkBindings: import_smithy_client._json,
+ networkInterfaces: import_smithy_client._json,
+ reason: import_smithy_client.expectString,
+ runtimeId: import_smithy_client.expectString,
+ taskArn: import_smithy_client.expectString
+ });
+}, "de_Container");
+var de_ContainerInstance = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ agentConnected: import_smithy_client.expectBoolean,
+ agentUpdateStatus: import_smithy_client.expectString,
+ attachments: import_smithy_client._json,
+ attributes: import_smithy_client._json,
+ capacityProviderName: import_smithy_client.expectString,
+ containerInstanceArn: import_smithy_client.expectString,
+ ec2InstanceId: import_smithy_client.expectString,
+ healthStatus: /* @__PURE__ */ __name((_) => de_ContainerInstanceHealthStatus(_, context), "healthStatus"),
+ pendingTasksCount: import_smithy_client.expectInt32,
+ registeredAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "registeredAt"),
+ registeredResources: /* @__PURE__ */ __name((_) => de_Resources(_, context), "registeredResources"),
+ remainingResources: /* @__PURE__ */ __name((_) => de_Resources(_, context), "remainingResources"),
+ runningTasksCount: import_smithy_client.expectInt32,
+ status: import_smithy_client.expectString,
+ statusReason: import_smithy_client.expectString,
+ tags: import_smithy_client._json,
+ version: import_smithy_client.expectLong,
+ versionInfo: import_smithy_client._json
+ });
+}, "de_ContainerInstance");
+var de_ContainerInstanceHealthStatus = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ details: /* @__PURE__ */ __name((_) => de_InstanceHealthCheckResultList(_, context), "details"),
+ overallStatus: import_smithy_client.expectString
+ });
+}, "de_ContainerInstanceHealthStatus");
+var de_ContainerInstances = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_ContainerInstance(entry, context);
+ });
+ return retVal;
+}, "de_ContainerInstances");
+var de_Containers = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_Container(entry, context);
+ });
+ return retVal;
+}, "de_Containers");
+var de_CreateServiceResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ service: /* @__PURE__ */ __name((_) => de_Service(_, context), "service")
+ });
+}, "de_CreateServiceResponse");
+var de_CreateTaskSetResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ taskSet: /* @__PURE__ */ __name((_) => de_TaskSet(_, context), "taskSet")
+ });
+}, "de_CreateTaskSetResponse");
+var de_DeleteServiceResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ service: /* @__PURE__ */ __name((_) => de_Service(_, context), "service")
+ });
+}, "de_DeleteServiceResponse");
+var de_DeleteTaskDefinitionsResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ failures: import_smithy_client._json,
+ taskDefinitions: /* @__PURE__ */ __name((_) => de_TaskDefinitionList(_, context), "taskDefinitions")
+ });
+}, "de_DeleteTaskDefinitionsResponse");
+var de_DeleteTaskSetResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ taskSet: /* @__PURE__ */ __name((_) => de_TaskSet(_, context), "taskSet")
+ });
+}, "de_DeleteTaskSetResponse");
+var de_Deployment = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ capacityProviderStrategy: import_smithy_client._json,
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
+ desiredCount: import_smithy_client.expectInt32,
+ failedTasks: import_smithy_client.expectInt32,
+ fargateEphemeralStorage: import_smithy_client._json,
+ id: import_smithy_client.expectString,
+ launchType: import_smithy_client.expectString,
+ networkConfiguration: import_smithy_client._json,
+ pendingCount: import_smithy_client.expectInt32,
+ platformFamily: import_smithy_client.expectString,
+ platformVersion: import_smithy_client.expectString,
+ rolloutState: import_smithy_client.expectString,
+ rolloutStateReason: import_smithy_client.expectString,
+ runningCount: import_smithy_client.expectInt32,
+ serviceConnectConfiguration: import_smithy_client._json,
+ serviceConnectResources: import_smithy_client._json,
+ status: import_smithy_client.expectString,
+ taskDefinition: import_smithy_client.expectString,
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
+ volumeConfigurations: import_smithy_client._json,
+ vpcLatticeConfigurations: import_smithy_client._json
+ });
+}, "de_Deployment");
+var de_Deployments = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_Deployment(entry, context);
+ });
+ return retVal;
+}, "de_Deployments");
+var de_DeregisterContainerInstanceResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ containerInstance: /* @__PURE__ */ __name((_) => de_ContainerInstance(_, context), "containerInstance")
+ });
+}, "de_DeregisterContainerInstanceResponse");
+var de_DeregisterTaskDefinitionResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ taskDefinition: /* @__PURE__ */ __name((_) => de_TaskDefinition(_, context), "taskDefinition")
+ });
+}, "de_DeregisterTaskDefinitionResponse");
+var de_DescribeContainerInstancesResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ containerInstances: /* @__PURE__ */ __name((_) => de_ContainerInstances(_, context), "containerInstances"),
+ failures: import_smithy_client._json
+ });
+}, "de_DescribeContainerInstancesResponse");
+var de_DescribeServiceDeploymentsResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ failures: import_smithy_client._json,
+ serviceDeployments: /* @__PURE__ */ __name((_) => de_ServiceDeployments(_, context), "serviceDeployments")
+ });
+}, "de_DescribeServiceDeploymentsResponse");
+var de_DescribeServiceRevisionsResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ failures: import_smithy_client._json,
+ serviceRevisions: /* @__PURE__ */ __name((_) => de_ServiceRevisions(_, context), "serviceRevisions")
+ });
+}, "de_DescribeServiceRevisionsResponse");
+var de_DescribeServicesResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ failures: import_smithy_client._json,
+ services: /* @__PURE__ */ __name((_) => de_Services(_, context), "services")
+ });
+}, "de_DescribeServicesResponse");
+var de_DescribeTaskDefinitionResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ tags: import_smithy_client._json,
+ taskDefinition: /* @__PURE__ */ __name((_) => de_TaskDefinition(_, context), "taskDefinition")
+ });
+}, "de_DescribeTaskDefinitionResponse");
+var de_DescribeTaskSetsResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ failures: import_smithy_client._json,
+ taskSets: /* @__PURE__ */ __name((_) => de_TaskSets(_, context), "taskSets")
+ });
+}, "de_DescribeTaskSetsResponse");
+var de_DescribeTasksResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ failures: import_smithy_client._json,
+ tasks: /* @__PURE__ */ __name((_) => de_Tasks(_, context), "tasks")
+ });
+}, "de_DescribeTasksResponse");
+var de_GetTaskProtectionResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ failures: import_smithy_client._json,
+ protectedTasks: /* @__PURE__ */ __name((_) => de_ProtectedTasks(_, context), "protectedTasks")
+ });
+}, "de_GetTaskProtectionResponse");
+var de_InstanceHealthCheckResult = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ lastStatusChange: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastStatusChange"),
+ lastUpdated: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdated"),
+ status: import_smithy_client.expectString,
+ type: import_smithy_client.expectString
+ });
+}, "de_InstanceHealthCheckResult");
+var de_InstanceHealthCheckResultList = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_InstanceHealthCheckResult(entry, context);
+ });
+ return retVal;
+}, "de_InstanceHealthCheckResultList");
+var de_ListServiceDeploymentsResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ nextToken: import_smithy_client.expectString,
+ serviceDeployments: /* @__PURE__ */ __name((_) => de_ServiceDeploymentsBrief(_, context), "serviceDeployments")
+ });
+}, "de_ListServiceDeploymentsResponse");
+var de_ManagedAgent = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ lastStartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastStartedAt"),
+ lastStatus: import_smithy_client.expectString,
+ name: import_smithy_client.expectString,
+ reason: import_smithy_client.expectString
+ });
+}, "de_ManagedAgent");
+var de_ManagedAgents = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_ManagedAgent(entry, context);
+ });
+ return retVal;
+}, "de_ManagedAgents");
+var de_ProtectedTask = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ expirationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "expirationDate"),
+ protectionEnabled: import_smithy_client.expectBoolean,
+ taskArn: import_smithy_client.expectString
+ });
+}, "de_ProtectedTask");
+var de_ProtectedTasks = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_ProtectedTask(entry, context);
+ });
+ return retVal;
+}, "de_ProtectedTasks");
+var de_RegisterContainerInstanceResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ containerInstance: /* @__PURE__ */ __name((_) => de_ContainerInstance(_, context), "containerInstance")
+ });
+}, "de_RegisterContainerInstanceResponse");
+var de_RegisterTaskDefinitionResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ tags: import_smithy_client._json,
+ taskDefinition: /* @__PURE__ */ __name((_) => de_TaskDefinition(_, context), "taskDefinition")
+ });
+}, "de_RegisterTaskDefinitionResponse");
+var de_Resource = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ doubleValue: import_smithy_client.limitedParseDouble,
+ integerValue: import_smithy_client.expectInt32,
+ longValue: import_smithy_client.expectLong,
+ name: import_smithy_client.expectString,
+ stringSetValue: import_smithy_client._json,
+ type: import_smithy_client.expectString
+ });
+}, "de_Resource");
+var de_Resources = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_Resource(entry, context);
+ });
+ return retVal;
+}, "de_Resources");
+var de_Rollback = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ reason: import_smithy_client.expectString,
+ serviceRevisionArn: import_smithy_client.expectString,
+ startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startedAt")
+ });
+}, "de_Rollback");
+var de_RunTaskResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ failures: import_smithy_client._json,
+ tasks: /* @__PURE__ */ __name((_) => de_Tasks(_, context), "tasks")
+ });
+}, "de_RunTaskResponse");
+var de_Scale = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ unit: import_smithy_client.expectString,
+ value: import_smithy_client.limitedParseDouble
+ });
+}, "de_Scale");
+var de_Service = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ availabilityZoneRebalancing: import_smithy_client.expectString,
+ capacityProviderStrategy: import_smithy_client._json,
+ clusterArn: import_smithy_client.expectString,
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
+ createdBy: import_smithy_client.expectString,
+ deploymentConfiguration: import_smithy_client._json,
+ deploymentController: import_smithy_client._json,
+ deployments: /* @__PURE__ */ __name((_) => de_Deployments(_, context), "deployments"),
+ desiredCount: import_smithy_client.expectInt32,
+ enableECSManagedTags: import_smithy_client.expectBoolean,
+ enableExecuteCommand: import_smithy_client.expectBoolean,
+ events: /* @__PURE__ */ __name((_) => de_ServiceEvents(_, context), "events"),
+ healthCheckGracePeriodSeconds: import_smithy_client.expectInt32,
+ launchType: import_smithy_client.expectString,
+ loadBalancers: import_smithy_client._json,
+ networkConfiguration: import_smithy_client._json,
+ pendingCount: import_smithy_client.expectInt32,
+ placementConstraints: import_smithy_client._json,
+ placementStrategy: import_smithy_client._json,
+ platformFamily: import_smithy_client.expectString,
+ platformVersion: import_smithy_client.expectString,
+ propagateTags: import_smithy_client.expectString,
+ roleArn: import_smithy_client.expectString,
+ runningCount: import_smithy_client.expectInt32,
+ schedulingStrategy: import_smithy_client.expectString,
+ serviceArn: import_smithy_client.expectString,
+ serviceName: import_smithy_client.expectString,
+ serviceRegistries: import_smithy_client._json,
+ status: import_smithy_client.expectString,
+ tags: import_smithy_client._json,
+ taskDefinition: import_smithy_client.expectString,
+ taskSets: /* @__PURE__ */ __name((_) => de_TaskSets(_, context), "taskSets")
+ });
+}, "de_Service");
+var de_ServiceDeployment = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ alarms: import_smithy_client._json,
+ clusterArn: import_smithy_client.expectString,
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
+ deploymentCircuitBreaker: import_smithy_client._json,
+ deploymentConfiguration: import_smithy_client._json,
+ finishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "finishedAt"),
+ rollback: /* @__PURE__ */ __name((_) => de_Rollback(_, context), "rollback"),
+ serviceArn: import_smithy_client.expectString,
+ serviceDeploymentArn: import_smithy_client.expectString,
+ sourceServiceRevisions: import_smithy_client._json,
+ startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startedAt"),
+ status: import_smithy_client.expectString,
+ statusReason: import_smithy_client.expectString,
+ stoppedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "stoppedAt"),
+ targetServiceRevision: import_smithy_client._json,
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
+ });
+}, "de_ServiceDeployment");
+var de_ServiceDeploymentBrief = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ clusterArn: import_smithy_client.expectString,
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
+ finishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "finishedAt"),
+ serviceArn: import_smithy_client.expectString,
+ serviceDeploymentArn: import_smithy_client.expectString,
+ startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startedAt"),
+ status: import_smithy_client.expectString,
+ statusReason: import_smithy_client.expectString,
+ targetServiceRevisionArn: import_smithy_client.expectString
+ });
+}, "de_ServiceDeploymentBrief");
+var de_ServiceDeployments = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_ServiceDeployment(entry, context);
+ });
+ return retVal;
+}, "de_ServiceDeployments");
+var de_ServiceDeploymentsBrief = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_ServiceDeploymentBrief(entry, context);
+ });
+ return retVal;
+}, "de_ServiceDeploymentsBrief");
+var de_ServiceEvent = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
+ id: import_smithy_client.expectString,
+ message: import_smithy_client.expectString
+ });
+}, "de_ServiceEvent");
+var de_ServiceEvents = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_ServiceEvent(entry, context);
+ });
+ return retVal;
+}, "de_ServiceEvents");
+var de_ServiceRevision = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ capacityProviderStrategy: import_smithy_client._json,
+ clusterArn: import_smithy_client.expectString,
+ containerImages: import_smithy_client._json,
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
+ fargateEphemeralStorage: import_smithy_client._json,
+ guardDutyEnabled: import_smithy_client.expectBoolean,
+ launchType: import_smithy_client.expectString,
+ loadBalancers: import_smithy_client._json,
+ networkConfiguration: import_smithy_client._json,
+ platformFamily: import_smithy_client.expectString,
+ platformVersion: import_smithy_client.expectString,
+ serviceArn: import_smithy_client.expectString,
+ serviceConnectConfiguration: import_smithy_client._json,
+ serviceRegistries: import_smithy_client._json,
+ serviceRevisionArn: import_smithy_client.expectString,
+ taskDefinition: import_smithy_client.expectString,
+ volumeConfigurations: import_smithy_client._json,
+ vpcLatticeConfigurations: import_smithy_client._json
+ });
+}, "de_ServiceRevision");
+var de_ServiceRevisions = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_ServiceRevision(entry, context);
+ });
+ return retVal;
+}, "de_ServiceRevisions");
+var de_Services = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_Service(entry, context);
+ });
+ return retVal;
+}, "de_Services");
+var de_StartTaskResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ failures: import_smithy_client._json,
+ tasks: /* @__PURE__ */ __name((_) => de_Tasks(_, context), "tasks")
+ });
+}, "de_StartTaskResponse");
+var de_StopTaskResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ task: /* @__PURE__ */ __name((_) => de_Task(_, context), "task")
+ });
+}, "de_StopTaskResponse");
+var de_Task = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ attachments: import_smithy_client._json,
+ attributes: import_smithy_client._json,
+ availabilityZone: import_smithy_client.expectString,
+ capacityProviderName: import_smithy_client.expectString,
+ clusterArn: import_smithy_client.expectString,
+ connectivity: import_smithy_client.expectString,
+ connectivityAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "connectivityAt"),
+ containerInstanceArn: import_smithy_client.expectString,
+ containers: /* @__PURE__ */ __name((_) => de_Containers(_, context), "containers"),
+ cpu: import_smithy_client.expectString,
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
+ desiredStatus: import_smithy_client.expectString,
+ enableExecuteCommand: import_smithy_client.expectBoolean,
+ ephemeralStorage: import_smithy_client._json,
+ executionStoppedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "executionStoppedAt"),
+ fargateEphemeralStorage: import_smithy_client._json,
+ group: import_smithy_client.expectString,
+ healthStatus: import_smithy_client.expectString,
+ inferenceAccelerators: import_smithy_client._json,
+ lastStatus: import_smithy_client.expectString,
+ launchType: import_smithy_client.expectString,
+ memory: import_smithy_client.expectString,
+ overrides: import_smithy_client._json,
+ platformFamily: import_smithy_client.expectString,
+ platformVersion: import_smithy_client.expectString,
+ pullStartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "pullStartedAt"),
+ pullStoppedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "pullStoppedAt"),
+ startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startedAt"),
+ startedBy: import_smithy_client.expectString,
+ stopCode: import_smithy_client.expectString,
+ stoppedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "stoppedAt"),
+ stoppedReason: import_smithy_client.expectString,
+ stoppingAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "stoppingAt"),
+ tags: import_smithy_client._json,
+ taskArn: import_smithy_client.expectString,
+ taskDefinitionArn: import_smithy_client.expectString,
+ version: import_smithy_client.expectLong
+ });
+}, "de_Task");
+var de_TaskDefinition = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ compatibilities: import_smithy_client._json,
+ containerDefinitions: import_smithy_client._json,
+ cpu: import_smithy_client.expectString,
+ deregisteredAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "deregisteredAt"),
+ enableFaultInjection: import_smithy_client.expectBoolean,
+ ephemeralStorage: import_smithy_client._json,
+ executionRoleArn: import_smithy_client.expectString,
+ family: import_smithy_client.expectString,
+ inferenceAccelerators: import_smithy_client._json,
+ ipcMode: import_smithy_client.expectString,
+ memory: import_smithy_client.expectString,
+ networkMode: import_smithy_client.expectString,
+ pidMode: import_smithy_client.expectString,
+ placementConstraints: import_smithy_client._json,
+ proxyConfiguration: import_smithy_client._json,
+ registeredAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "registeredAt"),
+ registeredBy: import_smithy_client.expectString,
+ requiresAttributes: import_smithy_client._json,
+ requiresCompatibilities: import_smithy_client._json,
+ revision: import_smithy_client.expectInt32,
+ runtimePlatform: import_smithy_client._json,
+ status: import_smithy_client.expectString,
+ taskDefinitionArn: import_smithy_client.expectString,
+ taskRoleArn: import_smithy_client.expectString,
+ volumes: import_smithy_client._json
+ });
+}, "de_TaskDefinition");
+var de_TaskDefinitionList = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_TaskDefinition(entry, context);
+ });
+ return retVal;
+}, "de_TaskDefinitionList");
+var de_Tasks = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_Task(entry, context);
+ });
+ return retVal;
+}, "de_Tasks");
+var de_TaskSet = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ capacityProviderStrategy: import_smithy_client._json,
+ clusterArn: import_smithy_client.expectString,
+ computedDesiredCount: import_smithy_client.expectInt32,
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
+ externalId: import_smithy_client.expectString,
+ fargateEphemeralStorage: import_smithy_client._json,
+ id: import_smithy_client.expectString,
+ launchType: import_smithy_client.expectString,
+ loadBalancers: import_smithy_client._json,
+ networkConfiguration: import_smithy_client._json,
+ pendingCount: import_smithy_client.expectInt32,
+ platformFamily: import_smithy_client.expectString,
+ platformVersion: import_smithy_client.expectString,
+ runningCount: import_smithy_client.expectInt32,
+ scale: /* @__PURE__ */ __name((_) => de_Scale(_, context), "scale"),
+ serviceArn: import_smithy_client.expectString,
+ serviceRegistries: import_smithy_client._json,
+ stabilityStatus: import_smithy_client.expectString,
+ stabilityStatusAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "stabilityStatusAt"),
+ startedBy: import_smithy_client.expectString,
+ status: import_smithy_client.expectString,
+ tags: import_smithy_client._json,
+ taskDefinition: import_smithy_client.expectString,
+ taskSetArn: import_smithy_client.expectString,
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
+ });
+}, "de_TaskSet");
+var de_TaskSets = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_TaskSet(entry, context);
+ });
+ return retVal;
+}, "de_TaskSets");
+var de_UpdateContainerAgentResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ containerInstance: /* @__PURE__ */ __name((_) => de_ContainerInstance(_, context), "containerInstance")
+ });
+}, "de_UpdateContainerAgentResponse");
+var de_UpdateContainerInstancesStateResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ containerInstances: /* @__PURE__ */ __name((_) => de_ContainerInstances(_, context), "containerInstances"),
+ failures: import_smithy_client._json
+ });
+}, "de_UpdateContainerInstancesStateResponse");
+var de_UpdateServicePrimaryTaskSetResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ taskSet: /* @__PURE__ */ __name((_) => de_TaskSet(_, context), "taskSet")
+ });
+}, "de_UpdateServicePrimaryTaskSetResponse");
+var de_UpdateServiceResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ service: /* @__PURE__ */ __name((_) => de_Service(_, context), "service")
+ });
+}, "de_UpdateServiceResponse");
+var de_UpdateTaskProtectionResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ failures: import_smithy_client._json,
+ protectedTasks: /* @__PURE__ */ __name((_) => de_ProtectedTasks(_, context), "protectedTasks")
+ });
+}, "de_UpdateTaskProtectionResponse");
+var de_UpdateTaskSetResponse = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ taskSet: /* @__PURE__ */ __name((_) => de_TaskSet(_, context), "taskSet")
+ });
+}, "de_UpdateTaskSetResponse");
+var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
+ httpStatusCode: output.statusCode,
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
+ extendedRequestId: output.headers["x-amz-id-2"],
+ cfId: output.headers["x-amz-cf-id"]
+}), "deserializeMetadata");
+var throwDefaultError = (0, import_smithy_client.withBaseException)(ECSServiceException);
+var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const contents = {
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
+ headers
+ };
+ if (resolvedHostname !== void 0) {
+ contents.hostname = resolvedHostname;
+ }
+ if (body !== void 0) {
+ contents.body = body;
+ }
+ return new import_protocol_http.HttpRequest(contents);
+}, "buildHttpRpcRequest");
+function sharedHeaders(operation) {
+ return {
+ "content-type": "application/x-amz-json-1.1",
+ "x-amz-target": `AmazonEC2ContainerServiceV20141113.${operation}`
+ };
+}
+__name(sharedHeaders, "sharedHeaders");
+
+// src/commands/CreateCapacityProviderCommand.ts
+var CreateCapacityProviderCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "CreateCapacityProvider", {}).n("ECSClient", "CreateCapacityProviderCommand").f(void 0, void 0).ser(se_CreateCapacityProviderCommand).de(de_CreateCapacityProviderCommand).build() {
+ static {
+ __name(this, "CreateCapacityProviderCommand");
+ }
+};
+
+// src/commands/CreateClusterCommand.ts
+
+
+
+var CreateClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "CreateCluster", {}).n("ECSClient", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() {
+ static {
+ __name(this, "CreateClusterCommand");
+ }
+};
+
+// src/commands/CreateServiceCommand.ts
+
+
+
+var CreateServiceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "CreateService", {}).n("ECSClient", "CreateServiceCommand").f(void 0, void 0).ser(se_CreateServiceCommand).de(de_CreateServiceCommand).build() {
+ static {
+ __name(this, "CreateServiceCommand");
+ }
+};
+
+// src/commands/CreateTaskSetCommand.ts
+
+
+
+var CreateTaskSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "CreateTaskSet", {}).n("ECSClient", "CreateTaskSetCommand").f(void 0, void 0).ser(se_CreateTaskSetCommand).de(de_CreateTaskSetCommand).build() {
+ static {
+ __name(this, "CreateTaskSetCommand");
+ }
+};
+
+// src/commands/DeleteAccountSettingCommand.ts
+
+
+
+var DeleteAccountSettingCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DeleteAccountSetting", {}).n("ECSClient", "DeleteAccountSettingCommand").f(void 0, void 0).ser(se_DeleteAccountSettingCommand).de(de_DeleteAccountSettingCommand).build() {
+ static {
+ __name(this, "DeleteAccountSettingCommand");
+ }
+};
+
+// src/commands/DeleteAttributesCommand.ts
+
+
+
+var DeleteAttributesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DeleteAttributes", {}).n("ECSClient", "DeleteAttributesCommand").f(void 0, void 0).ser(se_DeleteAttributesCommand).de(de_DeleteAttributesCommand).build() {
+ static {
+ __name(this, "DeleteAttributesCommand");
+ }
+};
+
+// src/commands/DeleteCapacityProviderCommand.ts
+
+
+
+var DeleteCapacityProviderCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DeleteCapacityProvider", {}).n("ECSClient", "DeleteCapacityProviderCommand").f(void 0, void 0).ser(se_DeleteCapacityProviderCommand).de(de_DeleteCapacityProviderCommand).build() {
+ static {
+ __name(this, "DeleteCapacityProviderCommand");
+ }
+};
+
+// src/commands/DeleteClusterCommand.ts
+
+
+
+var DeleteClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DeleteCluster", {}).n("ECSClient", "DeleteClusterCommand").f(void 0, void 0).ser(se_DeleteClusterCommand).de(de_DeleteClusterCommand).build() {
+ static {
+ __name(this, "DeleteClusterCommand");
+ }
+};
+
+// src/commands/DeleteServiceCommand.ts
+
+
+
+var DeleteServiceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DeleteService", {}).n("ECSClient", "DeleteServiceCommand").f(void 0, void 0).ser(se_DeleteServiceCommand).de(de_DeleteServiceCommand).build() {
+ static {
+ __name(this, "DeleteServiceCommand");
+ }
+};
+
+// src/commands/DeleteTaskDefinitionsCommand.ts
+
+
+
+var DeleteTaskDefinitionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DeleteTaskDefinitions", {}).n("ECSClient", "DeleteTaskDefinitionsCommand").f(void 0, void 0).ser(se_DeleteTaskDefinitionsCommand).de(de_DeleteTaskDefinitionsCommand).build() {
+ static {
+ __name(this, "DeleteTaskDefinitionsCommand");
+ }
+};
+
+// src/commands/DeleteTaskSetCommand.ts
+
+
+
+var DeleteTaskSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DeleteTaskSet", {}).n("ECSClient", "DeleteTaskSetCommand").f(void 0, void 0).ser(se_DeleteTaskSetCommand).de(de_DeleteTaskSetCommand).build() {
+ static {
+ __name(this, "DeleteTaskSetCommand");
+ }
+};
+
+// src/commands/DeregisterContainerInstanceCommand.ts
+
+
+
+var DeregisterContainerInstanceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DeregisterContainerInstance", {}).n("ECSClient", "DeregisterContainerInstanceCommand").f(void 0, void 0).ser(se_DeregisterContainerInstanceCommand).de(de_DeregisterContainerInstanceCommand).build() {
+ static {
+ __name(this, "DeregisterContainerInstanceCommand");
+ }
+};
+
+// src/commands/DeregisterTaskDefinitionCommand.ts
+
+
+
+var DeregisterTaskDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DeregisterTaskDefinition", {}).n("ECSClient", "DeregisterTaskDefinitionCommand").f(void 0, void 0).ser(se_DeregisterTaskDefinitionCommand).de(de_DeregisterTaskDefinitionCommand).build() {
+ static {
+ __name(this, "DeregisterTaskDefinitionCommand");
+ }
+};
+
+// src/commands/DescribeCapacityProvidersCommand.ts
+
+
+
+var DescribeCapacityProvidersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DescribeCapacityProviders", {}).n("ECSClient", "DescribeCapacityProvidersCommand").f(void 0, void 0).ser(se_DescribeCapacityProvidersCommand).de(de_DescribeCapacityProvidersCommand).build() {
+ static {
+ __name(this, "DescribeCapacityProvidersCommand");
+ }
+};
+
+// src/commands/DescribeClustersCommand.ts
+
+
+
+var DescribeClustersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DescribeClusters", {}).n("ECSClient", "DescribeClustersCommand").f(void 0, void 0).ser(se_DescribeClustersCommand).de(de_DescribeClustersCommand).build() {
+ static {
+ __name(this, "DescribeClustersCommand");
+ }
+};
+
+// src/commands/DescribeContainerInstancesCommand.ts
+
+
+
+var DescribeContainerInstancesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DescribeContainerInstances", {}).n("ECSClient", "DescribeContainerInstancesCommand").f(void 0, void 0).ser(se_DescribeContainerInstancesCommand).de(de_DescribeContainerInstancesCommand).build() {
+ static {
+ __name(this, "DescribeContainerInstancesCommand");
+ }
+};
+
+// src/commands/DescribeServiceDeploymentsCommand.ts
+
+
+
+var DescribeServiceDeploymentsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DescribeServiceDeployments", {}).n("ECSClient", "DescribeServiceDeploymentsCommand").f(void 0, void 0).ser(se_DescribeServiceDeploymentsCommand).de(de_DescribeServiceDeploymentsCommand).build() {
+ static {
+ __name(this, "DescribeServiceDeploymentsCommand");
+ }
+};
+
+// src/commands/DescribeServiceRevisionsCommand.ts
+
+
+
+var DescribeServiceRevisionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DescribeServiceRevisions", {}).n("ECSClient", "DescribeServiceRevisionsCommand").f(void 0, void 0).ser(se_DescribeServiceRevisionsCommand).de(de_DescribeServiceRevisionsCommand).build() {
+ static {
+ __name(this, "DescribeServiceRevisionsCommand");
+ }
+};
+
+// src/commands/DescribeServicesCommand.ts
+
+
+
+var DescribeServicesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DescribeServices", {}).n("ECSClient", "DescribeServicesCommand").f(void 0, void 0).ser(se_DescribeServicesCommand).de(de_DescribeServicesCommand).build() {
+ static {
+ __name(this, "DescribeServicesCommand");
+ }
+};
+
+// src/commands/DescribeTaskDefinitionCommand.ts
+
+
+
+var DescribeTaskDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DescribeTaskDefinition", {}).n("ECSClient", "DescribeTaskDefinitionCommand").f(void 0, void 0).ser(se_DescribeTaskDefinitionCommand).de(de_DescribeTaskDefinitionCommand).build() {
+ static {
+ __name(this, "DescribeTaskDefinitionCommand");
+ }
+};
+
+// src/commands/DescribeTasksCommand.ts
+
+
+
+var DescribeTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DescribeTasks", {}).n("ECSClient", "DescribeTasksCommand").f(void 0, void 0).ser(se_DescribeTasksCommand).de(de_DescribeTasksCommand).build() {
+ static {
+ __name(this, "DescribeTasksCommand");
+ }
+};
+
+// src/commands/DescribeTaskSetsCommand.ts
+
+
+
+var DescribeTaskSetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DescribeTaskSets", {}).n("ECSClient", "DescribeTaskSetsCommand").f(void 0, void 0).ser(se_DescribeTaskSetsCommand).de(de_DescribeTaskSetsCommand).build() {
+ static {
+ __name(this, "DescribeTaskSetsCommand");
+ }
+};
+
+// src/commands/DiscoverPollEndpointCommand.ts
+
+
+
+var DiscoverPollEndpointCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "DiscoverPollEndpoint", {}).n("ECSClient", "DiscoverPollEndpointCommand").f(void 0, void 0).ser(se_DiscoverPollEndpointCommand).de(de_DiscoverPollEndpointCommand).build() {
+ static {
+ __name(this, "DiscoverPollEndpointCommand");
+ }
+};
+
+// src/commands/ExecuteCommandCommand.ts
+
+
+
+var ExecuteCommandCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ExecuteCommand", {}).n("ECSClient", "ExecuteCommandCommand").f(void 0, ExecuteCommandResponseFilterSensitiveLog).ser(se_ExecuteCommandCommand).de(de_ExecuteCommandCommand).build() {
+ static {
+ __name(this, "ExecuteCommandCommand");
+ }
+};
+
+// src/commands/GetTaskProtectionCommand.ts
+
+
+
+var GetTaskProtectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "GetTaskProtection", {}).n("ECSClient", "GetTaskProtectionCommand").f(void 0, void 0).ser(se_GetTaskProtectionCommand).de(de_GetTaskProtectionCommand).build() {
+ static {
+ __name(this, "GetTaskProtectionCommand");
+ }
+};
+
+// src/commands/ListAccountSettingsCommand.ts
+
+
+
+var ListAccountSettingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListAccountSettings", {}).n("ECSClient", "ListAccountSettingsCommand").f(void 0, void 0).ser(se_ListAccountSettingsCommand).de(de_ListAccountSettingsCommand).build() {
+ static {
+ __name(this, "ListAccountSettingsCommand");
+ }
+};
+
+// src/commands/ListAttributesCommand.ts
+
+
+
+var ListAttributesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListAttributes", {}).n("ECSClient", "ListAttributesCommand").f(void 0, void 0).ser(se_ListAttributesCommand).de(de_ListAttributesCommand).build() {
+ static {
+ __name(this, "ListAttributesCommand");
+ }
+};
+
+// src/commands/ListClustersCommand.ts
+
+
+
+var ListClustersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListClusters", {}).n("ECSClient", "ListClustersCommand").f(void 0, void 0).ser(se_ListClustersCommand).de(de_ListClustersCommand).build() {
+ static {
+ __name(this, "ListClustersCommand");
+ }
+};
+
+// src/commands/ListContainerInstancesCommand.ts
+
+
+
+var ListContainerInstancesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListContainerInstances", {}).n("ECSClient", "ListContainerInstancesCommand").f(void 0, void 0).ser(se_ListContainerInstancesCommand).de(de_ListContainerInstancesCommand).build() {
+ static {
+ __name(this, "ListContainerInstancesCommand");
+ }
+};
+
+// src/commands/ListServiceDeploymentsCommand.ts
+
+
+
+var ListServiceDeploymentsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListServiceDeployments", {}).n("ECSClient", "ListServiceDeploymentsCommand").f(void 0, void 0).ser(se_ListServiceDeploymentsCommand).de(de_ListServiceDeploymentsCommand).build() {
+ static {
+ __name(this, "ListServiceDeploymentsCommand");
+ }
+};
+
+// src/commands/ListServicesByNamespaceCommand.ts
+
+
+
+var ListServicesByNamespaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListServicesByNamespace", {}).n("ECSClient", "ListServicesByNamespaceCommand").f(void 0, void 0).ser(se_ListServicesByNamespaceCommand).de(de_ListServicesByNamespaceCommand).build() {
+ static {
+ __name(this, "ListServicesByNamespaceCommand");
+ }
+};
+
+// src/commands/ListServicesCommand.ts
+
+
+
+var ListServicesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListServices", {}).n("ECSClient", "ListServicesCommand").f(void 0, void 0).ser(se_ListServicesCommand).de(de_ListServicesCommand).build() {
+ static {
+ __name(this, "ListServicesCommand");
+ }
+};
+
+// src/commands/ListTagsForResourceCommand.ts
+
+
+
+var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListTagsForResource", {}).n("ECSClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
+ static {
+ __name(this, "ListTagsForResourceCommand");
+ }
+};
+
+// src/commands/ListTaskDefinitionFamiliesCommand.ts
+
+
+
+var ListTaskDefinitionFamiliesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListTaskDefinitionFamilies", {}).n("ECSClient", "ListTaskDefinitionFamiliesCommand").f(void 0, void 0).ser(se_ListTaskDefinitionFamiliesCommand).de(de_ListTaskDefinitionFamiliesCommand).build() {
+ static {
+ __name(this, "ListTaskDefinitionFamiliesCommand");
+ }
+};
+
+// src/commands/ListTaskDefinitionsCommand.ts
+
+
+
+var ListTaskDefinitionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListTaskDefinitions", {}).n("ECSClient", "ListTaskDefinitionsCommand").f(void 0, void 0).ser(se_ListTaskDefinitionsCommand).de(de_ListTaskDefinitionsCommand).build() {
+ static {
+ __name(this, "ListTaskDefinitionsCommand");
+ }
+};
+
+// src/commands/ListTasksCommand.ts
+
+
+
+var ListTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "ListTasks", {}).n("ECSClient", "ListTasksCommand").f(void 0, void 0).ser(se_ListTasksCommand).de(de_ListTasksCommand).build() {
+ static {
+ __name(this, "ListTasksCommand");
+ }
+};
+
+// src/commands/PutAccountSettingCommand.ts
+
+
+
+var PutAccountSettingCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "PutAccountSetting", {}).n("ECSClient", "PutAccountSettingCommand").f(void 0, void 0).ser(se_PutAccountSettingCommand).de(de_PutAccountSettingCommand).build() {
+ static {
+ __name(this, "PutAccountSettingCommand");
+ }
+};
+
+// src/commands/PutAccountSettingDefaultCommand.ts
+
+
+
+var PutAccountSettingDefaultCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "PutAccountSettingDefault", {}).n("ECSClient", "PutAccountSettingDefaultCommand").f(void 0, void 0).ser(se_PutAccountSettingDefaultCommand).de(de_PutAccountSettingDefaultCommand).build() {
+ static {
+ __name(this, "PutAccountSettingDefaultCommand");
+ }
+};
+
+// src/commands/PutAttributesCommand.ts
+
+
+
+var PutAttributesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "PutAttributes", {}).n("ECSClient", "PutAttributesCommand").f(void 0, void 0).ser(se_PutAttributesCommand).de(de_PutAttributesCommand).build() {
+ static {
+ __name(this, "PutAttributesCommand");
+ }
+};
+
+// src/commands/PutClusterCapacityProvidersCommand.ts
+
+
+
+var PutClusterCapacityProvidersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "PutClusterCapacityProviders", {}).n("ECSClient", "PutClusterCapacityProvidersCommand").f(void 0, void 0).ser(se_PutClusterCapacityProvidersCommand).de(de_PutClusterCapacityProvidersCommand).build() {
+ static {
+ __name(this, "PutClusterCapacityProvidersCommand");
+ }
+};
+
+// src/commands/RegisterContainerInstanceCommand.ts
+
+
+
+var RegisterContainerInstanceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "RegisterContainerInstance", {}).n("ECSClient", "RegisterContainerInstanceCommand").f(void 0, void 0).ser(se_RegisterContainerInstanceCommand).de(de_RegisterContainerInstanceCommand).build() {
+ static {
+ __name(this, "RegisterContainerInstanceCommand");
+ }
+};
+
+// src/commands/RegisterTaskDefinitionCommand.ts
+
+
+
+var RegisterTaskDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "RegisterTaskDefinition", {}).n("ECSClient", "RegisterTaskDefinitionCommand").f(void 0, void 0).ser(se_RegisterTaskDefinitionCommand).de(de_RegisterTaskDefinitionCommand).build() {
+ static {
+ __name(this, "RegisterTaskDefinitionCommand");
+ }
+};
+
+// src/commands/RunTaskCommand.ts
+
+
+
+var RunTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "RunTask", {}).n("ECSClient", "RunTaskCommand").f(void 0, void 0).ser(se_RunTaskCommand).de(de_RunTaskCommand).build() {
+ static {
+ __name(this, "RunTaskCommand");
+ }
+};
+
+// src/commands/StartTaskCommand.ts
+
+
+
+var StartTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "StartTask", {}).n("ECSClient", "StartTaskCommand").f(void 0, void 0).ser(se_StartTaskCommand).de(de_StartTaskCommand).build() {
+ static {
+ __name(this, "StartTaskCommand");
+ }
+};
+
+// src/commands/StopTaskCommand.ts
+
+
+
+var StopTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "StopTask", {}).n("ECSClient", "StopTaskCommand").f(void 0, void 0).ser(se_StopTaskCommand).de(de_StopTaskCommand).build() {
+ static {
+ __name(this, "StopTaskCommand");
+ }
+};
+
+// src/commands/SubmitAttachmentStateChangesCommand.ts
+
+
+
+var SubmitAttachmentStateChangesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "SubmitAttachmentStateChanges", {}).n("ECSClient", "SubmitAttachmentStateChangesCommand").f(void 0, void 0).ser(se_SubmitAttachmentStateChangesCommand).de(de_SubmitAttachmentStateChangesCommand).build() {
+ static {
+ __name(this, "SubmitAttachmentStateChangesCommand");
+ }
+};
+
+// src/commands/SubmitContainerStateChangeCommand.ts
+
+
+
+var SubmitContainerStateChangeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "SubmitContainerStateChange", {}).n("ECSClient", "SubmitContainerStateChangeCommand").f(void 0, void 0).ser(se_SubmitContainerStateChangeCommand).de(de_SubmitContainerStateChangeCommand).build() {
+ static {
+ __name(this, "SubmitContainerStateChangeCommand");
+ }
+};
+
+// src/commands/SubmitTaskStateChangeCommand.ts
+
+
+
+var SubmitTaskStateChangeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "SubmitTaskStateChange", {}).n("ECSClient", "SubmitTaskStateChangeCommand").f(void 0, void 0).ser(se_SubmitTaskStateChangeCommand).de(de_SubmitTaskStateChangeCommand).build() {
+ static {
+ __name(this, "SubmitTaskStateChangeCommand");
+ }
+};
+
+// src/commands/TagResourceCommand.ts
+
+
+
+var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "TagResource", {}).n("ECSClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
+ static {
+ __name(this, "TagResourceCommand");
+ }
+};
+
+// src/commands/UntagResourceCommand.ts
+
+
+
+var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "UntagResource", {}).n("ECSClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
+ static {
+ __name(this, "UntagResourceCommand");
+ }
+};
+
+// src/commands/UpdateCapacityProviderCommand.ts
+
+
+
+var UpdateCapacityProviderCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "UpdateCapacityProvider", {}).n("ECSClient", "UpdateCapacityProviderCommand").f(void 0, void 0).ser(se_UpdateCapacityProviderCommand).de(de_UpdateCapacityProviderCommand).build() {
+ static {
+ __name(this, "UpdateCapacityProviderCommand");
+ }
+};
+
+// src/commands/UpdateClusterCommand.ts
+
+
+
+var UpdateClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "UpdateCluster", {}).n("ECSClient", "UpdateClusterCommand").f(void 0, void 0).ser(se_UpdateClusterCommand).de(de_UpdateClusterCommand).build() {
+ static {
+ __name(this, "UpdateClusterCommand");
+ }
+};
+
+// src/commands/UpdateClusterSettingsCommand.ts
+
+
+
+var UpdateClusterSettingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "UpdateClusterSettings", {}).n("ECSClient", "UpdateClusterSettingsCommand").f(void 0, void 0).ser(se_UpdateClusterSettingsCommand).de(de_UpdateClusterSettingsCommand).build() {
+ static {
+ __name(this, "UpdateClusterSettingsCommand");
+ }
+};
+
+// src/commands/UpdateContainerAgentCommand.ts
+
+
+
+var UpdateContainerAgentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "UpdateContainerAgent", {}).n("ECSClient", "UpdateContainerAgentCommand").f(void 0, void 0).ser(se_UpdateContainerAgentCommand).de(de_UpdateContainerAgentCommand).build() {
+ static {
+ __name(this, "UpdateContainerAgentCommand");
+ }
+};
+
+// src/commands/UpdateContainerInstancesStateCommand.ts
+
+
+
+var UpdateContainerInstancesStateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "UpdateContainerInstancesState", {}).n("ECSClient", "UpdateContainerInstancesStateCommand").f(void 0, void 0).ser(se_UpdateContainerInstancesStateCommand).de(de_UpdateContainerInstancesStateCommand).build() {
+ static {
+ __name(this, "UpdateContainerInstancesStateCommand");
+ }
+};
+
+// src/commands/UpdateServiceCommand.ts
+
+
+
+var UpdateServiceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "UpdateService", {}).n("ECSClient", "UpdateServiceCommand").f(void 0, void 0).ser(se_UpdateServiceCommand).de(de_UpdateServiceCommand).build() {
+ static {
+ __name(this, "UpdateServiceCommand");
+ }
+};
+
+// src/commands/UpdateServicePrimaryTaskSetCommand.ts
+
+
+
+var UpdateServicePrimaryTaskSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "UpdateServicePrimaryTaskSet", {}).n("ECSClient", "UpdateServicePrimaryTaskSetCommand").f(void 0, void 0).ser(se_UpdateServicePrimaryTaskSetCommand).de(de_UpdateServicePrimaryTaskSetCommand).build() {
+ static {
+ __name(this, "UpdateServicePrimaryTaskSetCommand");
+ }
+};
+
+// src/commands/UpdateTaskProtectionCommand.ts
+
+
+
+var UpdateTaskProtectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "UpdateTaskProtection", {}).n("ECSClient", "UpdateTaskProtectionCommand").f(void 0, void 0).ser(se_UpdateTaskProtectionCommand).de(de_UpdateTaskProtectionCommand).build() {
+ static {
+ __name(this, "UpdateTaskProtectionCommand");
+ }
+};
+
+// src/commands/UpdateTaskSetCommand.ts
+
+
+
+var UpdateTaskSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonEC2ContainerServiceV20141113", "UpdateTaskSet", {}).n("ECSClient", "UpdateTaskSetCommand").f(void 0, void 0).ser(se_UpdateTaskSetCommand).de(de_UpdateTaskSetCommand).build() {
+ static {
+ __name(this, "UpdateTaskSetCommand");
+ }
+};
+
+// src/ECS.ts
+var commands = {
+ CreateCapacityProviderCommand,
+ CreateClusterCommand,
+ CreateServiceCommand,
+ CreateTaskSetCommand,
+ DeleteAccountSettingCommand,
+ DeleteAttributesCommand,
+ DeleteCapacityProviderCommand,
+ DeleteClusterCommand,
+ DeleteServiceCommand,
+ DeleteTaskDefinitionsCommand,
+ DeleteTaskSetCommand,
+ DeregisterContainerInstanceCommand,
+ DeregisterTaskDefinitionCommand,
+ DescribeCapacityProvidersCommand,
+ DescribeClustersCommand,
+ DescribeContainerInstancesCommand,
+ DescribeServiceDeploymentsCommand,
+ DescribeServiceRevisionsCommand,
+ DescribeServicesCommand,
+ DescribeTaskDefinitionCommand,
+ DescribeTasksCommand,
+ DescribeTaskSetsCommand,
+ DiscoverPollEndpointCommand,
+ ExecuteCommandCommand,
+ GetTaskProtectionCommand,
+ ListAccountSettingsCommand,
+ ListAttributesCommand,
+ ListClustersCommand,
+ ListContainerInstancesCommand,
+ ListServiceDeploymentsCommand,
+ ListServicesCommand,
+ ListServicesByNamespaceCommand,
+ ListTagsForResourceCommand,
+ ListTaskDefinitionFamiliesCommand,
+ ListTaskDefinitionsCommand,
+ ListTasksCommand,
+ PutAccountSettingCommand,
+ PutAccountSettingDefaultCommand,
+ PutAttributesCommand,
+ PutClusterCapacityProvidersCommand,
+ RegisterContainerInstanceCommand,
+ RegisterTaskDefinitionCommand,
+ RunTaskCommand,
+ StartTaskCommand,
+ StopTaskCommand,
+ SubmitAttachmentStateChangesCommand,
+ SubmitContainerStateChangeCommand,
+ SubmitTaskStateChangeCommand,
+ TagResourceCommand,
+ UntagResourceCommand,
+ UpdateCapacityProviderCommand,
+ UpdateClusterCommand,
+ UpdateClusterSettingsCommand,
+ UpdateContainerAgentCommand,
+ UpdateContainerInstancesStateCommand,
+ UpdateServiceCommand,
+ UpdateServicePrimaryTaskSetCommand,
+ UpdateTaskProtectionCommand,
+ UpdateTaskSetCommand
+};
+var ECS = class extends ECSClient {
+ static {
+ __name(this, "ECS");
+ }
+};
+(0, import_smithy_client.createAggregatedClient)(commands, ECS);
+
+// src/pagination/ListAccountSettingsPaginator.ts
+
+var paginateListAccountSettings = (0, import_core.createPaginator)(ECSClient, ListAccountSettingsCommand, "nextToken", "nextToken", "maxResults");
+
+// src/pagination/ListAttributesPaginator.ts
+
+var paginateListAttributes = (0, import_core.createPaginator)(ECSClient, ListAttributesCommand, "nextToken", "nextToken", "maxResults");
+
+// src/pagination/ListClustersPaginator.ts
+
+var paginateListClusters = (0, import_core.createPaginator)(ECSClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
+
+// src/pagination/ListContainerInstancesPaginator.ts
+
+var paginateListContainerInstances = (0, import_core.createPaginator)(ECSClient, ListContainerInstancesCommand, "nextToken", "nextToken", "maxResults");
+
+// src/pagination/ListServicesByNamespacePaginator.ts
+
+var paginateListServicesByNamespace = (0, import_core.createPaginator)(ECSClient, ListServicesByNamespaceCommand, "nextToken", "nextToken", "maxResults");
+
+// src/pagination/ListServicesPaginator.ts
+
+var paginateListServices = (0, import_core.createPaginator)(ECSClient, ListServicesCommand, "nextToken", "nextToken", "maxResults");
+
+// src/pagination/ListTaskDefinitionFamiliesPaginator.ts
+
+var paginateListTaskDefinitionFamilies = (0, import_core.createPaginator)(ECSClient, ListTaskDefinitionFamiliesCommand, "nextToken", "nextToken", "maxResults");
+
+// src/pagination/ListTaskDefinitionsPaginator.ts
+
+var paginateListTaskDefinitions = (0, import_core.createPaginator)(ECSClient, ListTaskDefinitionsCommand, "nextToken", "nextToken", "maxResults");
+
+// src/pagination/ListTasksPaginator.ts
+
+var paginateListTasks = (0, import_core.createPaginator)(ECSClient, ListTasksCommand, "nextToken", "nextToken", "maxResults");
+
+// src/waiters/waitForServicesInactive.ts
+var import_util_waiter = __nccwpck_require__(78011);
+var checkState = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeServicesCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.failures);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.reason;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "MISSING") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.services);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.status;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "INACTIVE") {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForServicesInactive = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
+}, "waitForServicesInactive");
+var waitUntilServicesInactive = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilServicesInactive");
+
+// src/waiters/waitForServicesStable.ts
+
+var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeServicesCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.failures);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.reason;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "MISSING") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.services);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.status;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "DRAINING") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.services);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.status;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "INACTIVE") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const filterRes_2 = result.services.filter((element_1) => {
+ return !(element_1.deployments.length == 1 && element_1.runningCount == element_1.desiredCount);
+ });
+ return filterRes_2.length == 0;
+ }, "returnComparator");
+ if (returnComparator() == true) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForServicesStable = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
+}, "waitForServicesStable");
+var waitUntilServicesStable = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilServicesStable");
+
+// src/waiters/waitForTasksRunning.ts
+
+var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeTasksCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.tasks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.lastStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "STOPPED") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.failures);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.reason;
+ });
+ return projection_3;
+ }, "returnComparator");
+ for (const anyStringEq_4 of returnComparator()) {
+ if (anyStringEq_4 == "MISSING") {
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
+ }
+ }
+ } catch (e) {
+ }
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.tasks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.lastStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "RUNNING";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForTasksRunning = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 6, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
+}, "waitForTasksRunning");
+var waitUntilTasksRunning = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 6, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilTasksRunning");
+
+// src/waiters/waitForTasksStopped.ts
+
+var checkState4 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeTasksCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ const flat_1 = [].concat(...result.tasks);
+ const projection_3 = flat_1.map((element_2) => {
+ return element_2.lastStatus;
+ });
+ return projection_3;
+ }, "returnComparator");
+ let allStringEq_5 = returnComparator().length > 0;
+ for (const element_4 of returnComparator()) {
+ allStringEq_5 = allStringEq_5 && element_4 == "STOPPED";
+ }
+ if (allStringEq_5) {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForTasksStopped = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 6, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
+}, "waitForTasksStopped");
+var waitUntilTasksStopped = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 6, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilTasksStopped");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 47246:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const tslib_1 = __nccwpck_require__(4351);
+const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(95223));
+const core_1 = __nccwpck_require__(59963);
+const credential_provider_node_1 = __nccwpck_require__(75531);
+const util_user_agent_node_1 = __nccwpck_require__(98095);
+const config_resolver_1 = __nccwpck_require__(53098);
+const hash_node_1 = __nccwpck_require__(3081);
+const middleware_retry_1 = __nccwpck_require__(96039);
+const node_config_provider_1 = __nccwpck_require__(33461);
+const node_http_handler_1 = __nccwpck_require__(20258);
+const util_body_length_node_1 = __nccwpck_require__(68075);
+const util_retry_1 = __nccwpck_require__(84902);
+const runtimeConfig_shared_1 = __nccwpck_require__(94516);
+const smithy_client_1 = __nccwpck_require__(63570);
+const util_defaults_mode_node_1 = __nccwpck_require__(72429);
+const smithy_client_2 = __nccwpck_require__(63570);
+const getRuntimeConfig = (config) => {
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
+ const profileConfig = { profile: config?.profile };
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "node",
+ defaultsMode,
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
+ region: config?.region ??
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
+ retryMode: config?.retryMode ??
+ (0, node_config_provider_1.loadConfig)({
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
+ }, config),
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 94516:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const core_1 = __nccwpck_require__(59963);
+const smithy_client_1 = __nccwpck_require__(63570);
+const url_parser_1 = __nccwpck_require__(14681);
+const util_base64_1 = __nccwpck_require__(75600);
+const util_utf8_1 = __nccwpck_require__(41895);
+const httpAuthSchemeProvider_1 = __nccwpck_require__(37983);
+const endpointResolver_1 = __nccwpck_require__(55021);
+const getRuntimeConfig = (config) => {
+ return {
+ apiVersion: "2014-11-13",
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
+ disableHostPrefix: config?.disableHostPrefix ?? false,
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
+ extensions: config?.extensions ?? [],
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultECSHttpAuthSchemeProvider,
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
+ signer: new core_1.AwsSdkSigV4Signer(),
+ },
+ ],
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
+ serviceId: config?.serviceId ?? "ECS",
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 82522:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+Object.defineProperty(exports, "NIL", ({
+ enumerable: true,
+ get: function () {
+ return _nil.default;
+ }
+}));
+Object.defineProperty(exports, "parse", ({
+ enumerable: true,
+ get: function () {
+ return _parse.default;
+ }
+}));
+Object.defineProperty(exports, "stringify", ({
+ enumerable: true,
+ get: function () {
+ return _stringify.default;
+ }
+}));
+Object.defineProperty(exports, "v1", ({
+ enumerable: true,
+ get: function () {
+ return _v.default;
+ }
+}));
+Object.defineProperty(exports, "v3", ({
+ enumerable: true,
+ get: function () {
+ return _v2.default;
+ }
+}));
+Object.defineProperty(exports, "v4", ({
+ enumerable: true,
+ get: function () {
+ return _v3.default;
+ }
+}));
+Object.defineProperty(exports, "v5", ({
+ enumerable: true,
+ get: function () {
+ return _v4.default;
+ }
+}));
+Object.defineProperty(exports, "validate", ({
+ enumerable: true,
+ get: function () {
+ return _validate.default;
+ }
+}));
+Object.defineProperty(exports, "version", ({
+ enumerable: true,
+ get: function () {
+ return _version.default;
+ }
+}));
+
+var _v = _interopRequireDefault(__nccwpck_require__(62597));
+
+var _v2 = _interopRequireDefault(__nccwpck_require__(54331));
+
+var _v3 = _interopRequireDefault(__nccwpck_require__(69334));
+
+var _v4 = _interopRequireDefault(__nccwpck_require__(95586));
+
+var _nil = _interopRequireDefault(__nccwpck_require__(61417));
+
+var _version = _interopRequireDefault(__nccwpck_require__(11997));
+
+var _validate = _interopRequireDefault(__nccwpck_require__(44718));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(54045));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(12800));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/***/ }),
+
+/***/ 9874:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function md5(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('md5').update(bytes).digest();
+}
+
+var _default = md5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 9731:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var _default = {
+ randomUUID: _crypto.default.randomUUID
+};
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 61417:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = '00000000-0000-0000-0000-000000000000';
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 12800:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(44718));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function parse(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ let v;
+ const arr = new Uint8Array(16); // Parse ########-....-....-....-............
+
+ arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
+ arr[1] = v >>> 16 & 0xff;
+ arr[2] = v >>> 8 & 0xff;
+ arr[3] = v & 0xff; // Parse ........-####-....-....-............
+
+ arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
+ arr[5] = v & 0xff; // Parse ........-....-####-....-............
+
+ arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
+ arr[7] = v & 0xff; // Parse ........-....-....-####-............
+
+ arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
+ arr[9] = v & 0xff; // Parse ........-....-....-....-############
+ // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
+
+ arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
+ arr[11] = v / 0x100000000 & 0xff;
+ arr[12] = v >>> 24 & 0xff;
+ arr[13] = v >>> 16 & 0xff;
+ arr[14] = v >>> 8 & 0xff;
+ arr[15] = v & 0xff;
+ return arr;
+}
+
+var _default = parse;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 55172:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 9180:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = rng;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
+
+let poolPtr = rnds8Pool.length;
+
+function rng() {
+ if (poolPtr > rnds8Pool.length - 16) {
+ _crypto.default.randomFillSync(rnds8Pool);
+
+ poolPtr = 0;
+ }
+
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
+}
+
+/***/ }),
+
+/***/ 89444:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function sha1(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('sha1').update(bytes).digest();
+}
+
+var _default = sha1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 54045:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+exports.unsafeStringify = unsafeStringify;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(44718));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+const byteToHex = [];
+
+for (let i = 0; i < 256; ++i) {
+ byteToHex.push((i + 0x100).toString(16).slice(1));
+}
+
+function unsafeStringify(arr, offset = 0) {
+ // Note: Be careful editing this code! It's been tuned for performance
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
+}
+
+function stringify(arr, offset = 0) {
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
+ // of the following:
+ // - One or more input array values don't map to a hex octet (leading to
+ // "undefined" in the uuid)
+ // - Invalid input values for the RFC `version` or `variant` fields
+
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Stringified UUID is invalid');
+ }
+
+ return uuid;
+}
+
+var _default = stringify;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 62597:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(9180));
+
+var _stringify = __nccwpck_require__(54045);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+// **`v1()` - Generate time-based UUID**
+//
+// Inspired by https://github.com/LiosK/UUID.js
+// and http://docs.python.org/library/uuid.html
+let _nodeId;
+
+let _clockseq; // Previous uuid creation time
+
+
+let _lastMSecs = 0;
+let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
+
+function v1(options, buf, offset) {
+ let i = buf && offset || 0;
+ const b = buf || new Array(16);
+ options = options || {};
+ let node = options.node || _nodeId;
+ let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
+ // specified. We do this lazily to minimize issues related to insufficient
+ // system entropy. See #189
+
+ if (node == null || clockseq == null) {
+ const seedBytes = options.random || (options.rng || _rng.default)();
+
+ if (node == null) {
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
+ node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
+ }
+
+ if (clockseq == null) {
+ // Per 4.2.2, randomize (14 bit) clockseq
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
+ }
+ } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
+
+
+ let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
+ // cycle to simulate higher resolution clock
+
+ let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
+
+ const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
+
+ if (dt < 0 && options.clockseq === undefined) {
+ clockseq = clockseq + 1 & 0x3fff;
+ } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
+ // time interval
+
+
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
+ nsecs = 0;
+ } // Per 4.2.1.2 Throw error if too many uuids are requested
+
+
+ if (nsecs >= 10000) {
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
+ }
+
+ _lastMSecs = msecs;
+ _lastNSecs = nsecs;
+ _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
+
+ msecs += 12219292800000; // `time_low`
+
+ const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
+ b[i++] = tl >>> 24 & 0xff;
+ b[i++] = tl >>> 16 & 0xff;
+ b[i++] = tl >>> 8 & 0xff;
+ b[i++] = tl & 0xff; // `time_mid`
+
+ const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
+ b[i++] = tmh >>> 8 & 0xff;
+ b[i++] = tmh & 0xff; // `time_high_and_version`
+
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
+
+ b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
+
+ b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
+
+ b[i++] = clockseq & 0xff; // `node`
+
+ for (let n = 0; n < 6; ++n) {
+ b[i + n] = node[n];
+ }
+
+ return buf || (0, _stringify.unsafeStringify)(b);
+}
+
+var _default = v1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 54331:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(96502));
+
+var _md = _interopRequireDefault(__nccwpck_require__(9874));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v3 = (0, _v.default)('v3', 0x30, _md.default);
+var _default = v3;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 96502:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.URL = exports.DNS = void 0;
+exports["default"] = v35;
+
+var _stringify = __nccwpck_require__(54045);
+
+var _parse = _interopRequireDefault(__nccwpck_require__(12800));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function stringToBytes(str) {
+ str = unescape(encodeURIComponent(str)); // UTF8 escape
+
+ const bytes = [];
+
+ for (let i = 0; i < str.length; ++i) {
+ bytes.push(str.charCodeAt(i));
+ }
+
+ return bytes;
+}
+
+const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
+exports.DNS = DNS;
+const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
+exports.URL = URL;
+
+function v35(name, version, hashfunc) {
+ function generateUUID(value, namespace, buf, offset) {
+ var _namespace;
+
+ if (typeof value === 'string') {
+ value = stringToBytes(value);
+ }
+
+ if (typeof namespace === 'string') {
+ namespace = (0, _parse.default)(namespace);
+ }
+
+ if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
+ throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
+ } // Compute hash of namespace and value, Per 4.3
+ // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
+ // hashfunc([...namespace, ... value])`
+
+
+ let bytes = new Uint8Array(16 + value.length);
+ bytes.set(namespace);
+ bytes.set(value, namespace.length);
+ bytes = hashfunc(bytes);
+ bytes[6] = bytes[6] & 0x0f | version;
+ bytes[8] = bytes[8] & 0x3f | 0x80;
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = bytes[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.unsafeStringify)(bytes);
+ } // Function#name is not settable on some platforms (#270)
+
+
+ try {
+ generateUUID.name = name; // eslint-disable-next-line no-empty
+ } catch (err) {} // For CommonJS default export support
+
+
+ generateUUID.DNS = DNS;
+ generateUUID.URL = URL;
+ return generateUUID;
+}
+
+/***/ }),
+
+/***/ 69334:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _native = _interopRequireDefault(__nccwpck_require__(9731));
+
+var _rng = _interopRequireDefault(__nccwpck_require__(9180));
+
+var _stringify = __nccwpck_require__(54045);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function v4(options, buf, offset) {
+ if (_native.default.randomUUID && !buf && !options) {
+ return _native.default.randomUUID();
+ }
+
+ options = options || {};
+
+ const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+
+
+ rnds[6] = rnds[6] & 0x0f | 0x40;
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = rnds[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.unsafeStringify)(rnds);
+}
+
+var _default = v4;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 95586:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(96502));
+
+var _sha = _interopRequireDefault(__nccwpck_require__(89444));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v5 = (0, _v.default)('v5', 0x50, _sha.default);
+var _default = v5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 44718:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _regex = _interopRequireDefault(__nccwpck_require__(55172));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function validate(uuid) {
+ return typeof uuid === 'string' && _regex.default.test(uuid);
+}
+
+var _default = validate;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 11997:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(44718));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function version(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ return parseInt(uuid.slice(14, 15), 16);
+}
+
+var _default = version;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 80730:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveHttpAuthSchemeConfig = exports.defaultKinesisHttpAuthSchemeProvider = exports.defaultKinesisHttpAuthSchemeParametersProvider = void 0;
+const core_1 = __nccwpck_require__(59963);
+const util_middleware_1 = __nccwpck_require__(2390);
+const defaultKinesisHttpAuthSchemeParametersProvider = async (config, context, input) => {
+ return {
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
+ (() => {
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
+ })(),
+ };
+};
+exports.defaultKinesisHttpAuthSchemeParametersProvider = defaultKinesisHttpAuthSchemeParametersProvider;
+function createAwsAuthSigv4HttpAuthOption(authParameters) {
+ return {
+ schemeId: "aws.auth#sigv4",
+ signingProperties: {
+ name: "kinesis",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config, context) => ({
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+const defaultKinesisHttpAuthSchemeProvider = (authParameters) => {
+ const options = [];
+ switch (authParameters.operation) {
+ default: {
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
+ }
+ }
+ return options;
+};
+exports.defaultKinesisHttpAuthSchemeProvider = defaultKinesisHttpAuthSchemeProvider;
+const resolveHttpAuthSchemeConfig = (config) => {
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
+ return Object.assign(config_0, {});
+};
+exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
+
+
+/***/ }),
+
+/***/ 83460:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defaultEndpointResolver = void 0;
+const util_endpoints_1 = __nccwpck_require__(13350);
+const util_endpoints_2 = __nccwpck_require__(45473);
+const ruleset_1 = __nccwpck_require__(65051);
+const cache = new util_endpoints_2.EndpointCache({
+ size: 50,
+ params: ["ConsumerARN", "Endpoint", "OperationType", "Region", "ResourceARN", "StreamARN", "UseDualStack", "UseFIPS"],
+});
+const defaultEndpointResolver = (endpointParams, context = {}) => {
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
+ endpointParams: endpointParams,
+ logger: context.logger,
+ }));
+};
+exports.defaultEndpointResolver = defaultEndpointResolver;
+util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
+
+
+/***/ }),
+
+/***/ 65051:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ruleSet = void 0;
+const H = "required", I = "type", J = "rules", K = "conditions", L = "fn", M = "argv", N = "ref", O = "assign", P = "url", Q = "properties", R = "headers";
+const a = true, b = "isSet", c = "stringEquals", d = "aws.parseArn", e = "arn", f = "booleanEquals", g = "endpoint", h = "tree", i = "error", j = { [H]: false, [I]: "String" }, k = { [H]: true, "default": false, [I]: "Boolean" }, l = { [L]: "not", [M]: [{ [L]: b, [M]: [{ [N]: "Endpoint" }] }] }, m = { [N]: "Endpoint" }, n = { [L]: b, [M]: [{ [N]: "Region" }] }, o = { [L]: "aws.partition", [M]: [{ [N]: "Region" }], [O]: "PartitionResult" }, p = { [L]: "not", [M]: [{ [L]: c, [M]: [{ [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "name"] }, "aws-iso"] }] }, q = { [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "name"] }, r = { [L]: "not", [M]: [{ [L]: c, [M]: [q, "aws-iso-b"] }] }, s = { [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "supportsFIPS"] }, t = {}, u = { [i]: "FIPS is enabled but this partition does not support FIPS", [I]: i }, v = { [i]: "DualStack is enabled but this partition does not support DualStack", [I]: i }, w = { [i]: "Invalid ARN: Failed to parse ARN.", [I]: i }, x = { [L]: f, [M]: [true, { [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "supportsDualStack"] }] }, y = [{ [N]: "StreamARN" }], z = [{ [L]: b, [M]: [m] }], A = [{ [K]: [{ [L]: "isValidHostLabel", [M]: [{ [L]: "getAttr", [M]: [{ [N]: e }, "accountId"] }, false] }], [J]: [{ [K]: [{ [L]: "isValidHostLabel", [M]: [{ [L]: "getAttr", [M]: [{ [N]: e }, "region"] }, false] }], [J]: [{ [K]: [{ [L]: c, [M]: [{ [L]: "getAttr", [M]: [{ [N]: e }, "service"] }, "kinesis"] }], [J]: [{ [K]: [{ [L]: "getAttr", [M]: [{ [N]: e }, "resourceId[0]"], [O]: "arnType" }, { [L]: "not", [M]: [{ [L]: c, [M]: [{ [N]: "arnType" }, ""] }] }], [J]: [{ [K]: [{ [L]: c, [M]: [{ [N]: "arnType" }, "stream"] }], [J]: [{ [K]: [{ [L]: c, [M]: [q, "{arn#partition}"] }], [J]: [{ [K]: [{ [L]: b, [M]: [{ [N]: "OperationType" }] }], [J]: [{ [K]: [{ [L]: f, [M]: [{ [N]: "UseFIPS" }, true] }, { [L]: f, [M]: [{ [N]: "UseDualStack" }, true] }], [J]: [{ [K]: [{ [L]: f, [M]: [s, true] }], [J]: [{ [K]: [{ [L]: f, [M]: [{ [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "supportsDualStack"] }, true] }], [J]: [{ [g]: { [P]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [Q]: {}, [R]: {} }, [I]: g }], [I]: h }, { [i]: "DualStack is enabled, but this partition does not support DualStack.", [I]: i }], [I]: h }, { [i]: "FIPS is enabled, but this partition does not support FIPS.", [I]: i }], [I]: h }, { [K]: [{ [L]: f, [M]: [{ [N]: "UseFIPS" }, true] }], [J]: [{ [K]: [{ [L]: f, [M]: [s, true] }], [J]: [{ [g]: { [P]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [Q]: {}, [R]: {} }, [I]: g }], [I]: h }, u], [I]: h }, { [K]: [{ [L]: f, [M]: [{ [N]: "UseDualStack" }, true] }], [J]: [{ [K]: [{ [L]: f, [M]: [{ [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "supportsDualStack"] }, true] }], [J]: [{ [g]: { [P]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [Q]: {}, [R]: {} }, [I]: g }], [I]: h }, v], [I]: h }, { [g]: { [P]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", [Q]: {}, [R]: {} }, [I]: g }], [I]: h }, { [i]: "Operation Type is not set. Please contact service team for resolution.", [I]: i }], [I]: h }, { [i]: "Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.", [I]: i }], [I]: h }, { [i]: "Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.", [I]: i }], [I]: h }, { [i]: "Invalid ARN: No ARN type specified", [I]: i }], [I]: h }, { [i]: "Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.", [I]: i }], [I]: h }, { [i]: "Invalid ARN: Invalid region.", [I]: i }], [I]: h }, { [i]: "Invalid ARN: Invalid account id.", [I]: i }], B = [{ [L]: f, [M]: [{ [N]: "UseFIPS" }, true] }, { [L]: f, [M]: [{ [N]: "UseDualStack" }, true] }], C = [{ [L]: f, [M]: [s, true] }], D = [{ [L]: f, [M]: [{ [N]: "UseFIPS" }, true] }], E = [{ [L]: f, [M]: [{ [N]: "UseDualStack" }, true] }], F = [{ [N]: "ConsumerARN" }], G = [{ [N]: "ResourceARN" }];
+const _data = { version: "1.0", parameters: { Region: j, UseDualStack: k, UseFIPS: k, Endpoint: j, StreamARN: j, OperationType: j, ConsumerARN: j, ResourceARN: j }, [J]: [{ [K]: [{ [L]: b, [M]: y }, l, n, o, p, r], [J]: [{ [K]: [{ [L]: d, [M]: y, [O]: e }], [J]: A, [I]: h }, w], [I]: h }, { [K]: [{ [L]: b, [M]: F }, l, n, o, p, r], [J]: [{ [K]: [{ [L]: d, [M]: F, [O]: e }], [J]: A, [I]: h }, w], [I]: h }, { [K]: [{ [L]: b, [M]: G }, l, n, o, p, r], [J]: [{ [K]: [{ [L]: d, [M]: G, [O]: e }], [J]: A, [I]: h }, w], [I]: h }, { [K]: z, [J]: [{ [K]: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [I]: i }, { [K]: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [I]: i }, { endpoint: { [P]: m, [Q]: t, [R]: t }, [I]: g }], [I]: h }, { [K]: [n], [J]: [{ [K]: [o], [J]: [{ [K]: B, [J]: [{ [K]: [{ [L]: f, [M]: [a, s] }, x], [J]: [{ endpoint: { [P]: "https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [Q]: t, [R]: t }, [I]: g }], [I]: h }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [I]: i }], [I]: h }, { [K]: D, [J]: [{ [K]: C, [J]: [{ [K]: [{ [L]: c, [M]: [q, "aws-us-gov"] }], endpoint: { [P]: "https://kinesis.{Region}.amazonaws.com", [Q]: t, [R]: t }, [I]: g }, { endpoint: { [P]: "https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [Q]: t, [R]: t }, [I]: g }], [I]: h }, u], [I]: h }, { [K]: E, [J]: [{ [K]: [x], [J]: [{ endpoint: { [P]: "https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [Q]: t, [R]: t }, [I]: g }], [I]: h }, v], [I]: h }, { endpoint: { [P]: "https://kinesis.{Region}.{PartitionResult#dnsSuffix}", [Q]: t, [R]: t }, [I]: g }], [I]: h }], [I]: h }, { error: "Invalid Configuration: Missing Region", [I]: i }] };
+exports.ruleSet = _data;
+
+
+/***/ }),
+
+/***/ 25474:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ AccessDeniedException: () => AccessDeniedException,
+ AddTagsToStreamCommand: () => AddTagsToStreamCommand,
+ ConsumerStatus: () => ConsumerStatus,
+ CreateStreamCommand: () => CreateStreamCommand,
+ DecreaseStreamRetentionPeriodCommand: () => DecreaseStreamRetentionPeriodCommand,
+ DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
+ DeleteStreamCommand: () => DeleteStreamCommand,
+ DeregisterStreamConsumerCommand: () => DeregisterStreamConsumerCommand,
+ DescribeLimitsCommand: () => DescribeLimitsCommand,
+ DescribeStreamCommand: () => DescribeStreamCommand,
+ DescribeStreamConsumerCommand: () => DescribeStreamConsumerCommand,
+ DescribeStreamSummaryCommand: () => DescribeStreamSummaryCommand,
+ DisableEnhancedMonitoringCommand: () => DisableEnhancedMonitoringCommand,
+ EnableEnhancedMonitoringCommand: () => EnableEnhancedMonitoringCommand,
+ EncryptionType: () => EncryptionType,
+ ExpiredIteratorException: () => ExpiredIteratorException,
+ ExpiredNextTokenException: () => ExpiredNextTokenException,
+ GetRecordsCommand: () => GetRecordsCommand,
+ GetResourcePolicyCommand: () => GetResourcePolicyCommand,
+ GetShardIteratorCommand: () => GetShardIteratorCommand,
+ IncreaseStreamRetentionPeriodCommand: () => IncreaseStreamRetentionPeriodCommand,
+ InternalFailureException: () => InternalFailureException,
+ InvalidArgumentException: () => InvalidArgumentException,
+ KMSAccessDeniedException: () => KMSAccessDeniedException,
+ KMSDisabledException: () => KMSDisabledException,
+ KMSInvalidStateException: () => KMSInvalidStateException,
+ KMSNotFoundException: () => KMSNotFoundException,
+ KMSOptInRequired: () => KMSOptInRequired,
+ KMSThrottlingException: () => KMSThrottlingException,
+ Kinesis: () => Kinesis,
+ KinesisClient: () => KinesisClient,
+ KinesisServiceException: () => KinesisServiceException,
+ LimitExceededException: () => LimitExceededException,
+ ListShardsCommand: () => ListShardsCommand,
+ ListStreamConsumersCommand: () => ListStreamConsumersCommand,
+ ListStreamsCommand: () => ListStreamsCommand,
+ ListTagsForStreamCommand: () => ListTagsForStreamCommand,
+ MergeShardsCommand: () => MergeShardsCommand,
+ MetricsName: () => MetricsName,
+ ProvisionedThroughputExceededException: () => ProvisionedThroughputExceededException,
+ PutRecordCommand: () => PutRecordCommand,
+ PutRecordsCommand: () => PutRecordsCommand,
+ PutResourcePolicyCommand: () => PutResourcePolicyCommand,
+ RegisterStreamConsumerCommand: () => RegisterStreamConsumerCommand,
+ RemoveTagsFromStreamCommand: () => RemoveTagsFromStreamCommand,
+ ResourceInUseException: () => ResourceInUseException,
+ ResourceNotFoundException: () => ResourceNotFoundException,
+ ScalingType: () => ScalingType,
+ ShardFilterType: () => ShardFilterType,
+ ShardIteratorType: () => ShardIteratorType,
+ SplitShardCommand: () => SplitShardCommand,
+ StartStreamEncryptionCommand: () => StartStreamEncryptionCommand,
+ StopStreamEncryptionCommand: () => StopStreamEncryptionCommand,
+ StreamMode: () => StreamMode,
+ StreamStatus: () => StreamStatus,
+ SubscribeToShardCommand: () => SubscribeToShardCommand,
+ SubscribeToShardEventStream: () => SubscribeToShardEventStream,
+ SubscribeToShardEventStreamFilterSensitiveLog: () => SubscribeToShardEventStreamFilterSensitiveLog,
+ SubscribeToShardOutputFilterSensitiveLog: () => SubscribeToShardOutputFilterSensitiveLog,
+ UpdateShardCountCommand: () => UpdateShardCountCommand,
+ UpdateStreamModeCommand: () => UpdateStreamModeCommand,
+ ValidationException: () => ValidationException,
+ __Client: () => import_smithy_client.Client,
+ paginateListStreamConsumers: () => paginateListStreamConsumers,
+ paginateListStreams: () => paginateListStreams,
+ waitForStreamExists: () => waitForStreamExists,
+ waitForStreamNotExists: () => waitForStreamNotExists,
+ waitUntilStreamExists: () => waitUntilStreamExists,
+ waitUntilStreamNotExists: () => waitUntilStreamNotExists
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/KinesisClient.ts
+var import_middleware_host_header = __nccwpck_require__(22545);
+var import_middleware_logger = __nccwpck_require__(20014);
+var import_middleware_recursion_detection = __nccwpck_require__(85525);
+var import_middleware_user_agent = __nccwpck_require__(64688);
+var import_config_resolver = __nccwpck_require__(53098);
+var import_core = __nccwpck_require__(55829);
+var import_eventstream_serde_config_resolver = __nccwpck_require__(16181);
+var import_middleware_content_length = __nccwpck_require__(82800);
+var import_middleware_endpoint = __nccwpck_require__(82918);
+var import_middleware_retry = __nccwpck_require__(96039);
+
+var import_httpAuthSchemeProvider = __nccwpck_require__(80730);
+
+// src/endpoint/EndpointParameters.ts
+var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
+ return Object.assign(options, {
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
+ defaultSigningName: "kinesis"
+ });
+}, "resolveClientEndpointParameters");
+var commonParams = {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
+};
+
+// src/KinesisClient.ts
+var import_runtimeConfig = __nccwpck_require__(86711);
+
+// src/runtimeExtensions.ts
+var import_region_config_resolver = __nccwpck_require__(18156);
+var import_protocol_http = __nccwpck_require__(64418);
+var import_smithy_client = __nccwpck_require__(63570);
+
+// src/auth/httpAuthExtensionConfiguration.ts
+var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
+ let _credentials = runtimeConfig.credentials;
+ return {
+ setHttpAuthScheme(httpAuthScheme) {
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
+ if (index === -1) {
+ _httpAuthSchemes.push(httpAuthScheme);
+ } else {
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
+ }
+ },
+ httpAuthSchemes() {
+ return _httpAuthSchemes;
+ },
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
+ },
+ httpAuthSchemeProvider() {
+ return _httpAuthSchemeProvider;
+ },
+ setCredentials(credentials) {
+ _credentials = credentials;
+ },
+ credentials() {
+ return _credentials;
+ }
+ };
+}, "getHttpAuthExtensionConfiguration");
+var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
+ return {
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials()
+ };
+}, "resolveHttpAuthRuntimeConfig");
+
+// src/runtimeExtensions.ts
+var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
+ const extensionConfiguration = Object.assign(
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
+ getHttpAuthExtensionConfiguration(runtimeConfig)
+ );
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
+ return Object.assign(
+ runtimeConfig,
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
+ );
+}, "resolveRuntimeExtensions");
+
+// src/KinesisClient.ts
+var KinesisClient = class extends import_smithy_client.Client {
+ static {
+ __name(this, "KinesisClient");
+ }
+ /**
+ * The resolved configuration of KinesisClient class. This is resolved and normalized from the {@link KinesisClientConfig | constructor configuration interface}.
+ */
+ config;
+ constructor(...[configuration]) {
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
+ super(_config_0);
+ this.initConfig = _config_0;
+ const _config_1 = resolveClientEndpointParameters(_config_0);
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
+ const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
+ const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
+ const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
+ this.config = _config_9;
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
+ this.middlewareStack.use(
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultKinesisHttpAuthSchemeParametersProvider,
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
+ "aws.auth#sigv4": config.credentials
+ }), "identityProviderConfigProvider")
+ })
+ );
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
+ }
+ /**
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
+ */
+ destroy() {
+ super.destroy();
+ }
+};
+
+// src/Kinesis.ts
+
+
+// src/commands/AddTagsToStreamCommand.ts
+
+var import_middleware_serde = __nccwpck_require__(81238);
+
+
+// src/protocols/Aws_json1_1.ts
+var import_core2 = __nccwpck_require__(59963);
+
+
+
+// src/models/KinesisServiceException.ts
+
+var KinesisServiceException = class _KinesisServiceException extends import_smithy_client.ServiceException {
+ static {
+ __name(this, "KinesisServiceException");
+ }
+ /**
+ * @internal
+ */
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, _KinesisServiceException.prototype);
+ }
+};
+
+// src/models/models_0.ts
+var AccessDeniedException = class _AccessDeniedException extends KinesisServiceException {
+ static {
+ __name(this, "AccessDeniedException");
+ }
+ name = "AccessDeniedException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "AccessDeniedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
+ }
+};
+var InvalidArgumentException = class _InvalidArgumentException extends KinesisServiceException {
+ static {
+ __name(this, "InvalidArgumentException");
+ }
+ name = "InvalidArgumentException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidArgumentException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidArgumentException.prototype);
+ }
+};
+var LimitExceededException = class _LimitExceededException extends KinesisServiceException {
+ static {
+ __name(this, "LimitExceededException");
+ }
+ name = "LimitExceededException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "LimitExceededException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
+ }
+};
+var ResourceInUseException = class _ResourceInUseException extends KinesisServiceException {
+ static {
+ __name(this, "ResourceInUseException");
+ }
+ name = "ResourceInUseException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ResourceInUseException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ResourceInUseException.prototype);
+ }
+};
+var ResourceNotFoundException = class _ResourceNotFoundException extends KinesisServiceException {
+ static {
+ __name(this, "ResourceNotFoundException");
+ }
+ name = "ResourceNotFoundException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ResourceNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
+ }
+};
+var ConsumerStatus = {
+ ACTIVE: "ACTIVE",
+ CREATING: "CREATING",
+ DELETING: "DELETING"
+};
+var StreamMode = {
+ ON_DEMAND: "ON_DEMAND",
+ PROVISIONED: "PROVISIONED"
+};
+var EncryptionType = {
+ KMS: "KMS",
+ NONE: "NONE"
+};
+var MetricsName = {
+ ALL: "ALL",
+ INCOMING_BYTES: "IncomingBytes",
+ INCOMING_RECORDS: "IncomingRecords",
+ ITERATOR_AGE_MILLISECONDS: "IteratorAgeMilliseconds",
+ OUTGOING_BYTES: "OutgoingBytes",
+ OUTGOING_RECORDS: "OutgoingRecords",
+ READ_PROVISIONED_THROUGHPUT_EXCEEDED: "ReadProvisionedThroughputExceeded",
+ WRITE_PROVISIONED_THROUGHPUT_EXCEEDED: "WriteProvisionedThroughputExceeded"
+};
+var StreamStatus = {
+ ACTIVE: "ACTIVE",
+ CREATING: "CREATING",
+ DELETING: "DELETING",
+ UPDATING: "UPDATING"
+};
+var ExpiredIteratorException = class _ExpiredIteratorException extends KinesisServiceException {
+ static {
+ __name(this, "ExpiredIteratorException");
+ }
+ name = "ExpiredIteratorException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ExpiredIteratorException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ExpiredIteratorException.prototype);
+ }
+};
+var ExpiredNextTokenException = class _ExpiredNextTokenException extends KinesisServiceException {
+ static {
+ __name(this, "ExpiredNextTokenException");
+ }
+ name = "ExpiredNextTokenException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ExpiredNextTokenException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ExpiredNextTokenException.prototype);
+ }
+};
+var KMSAccessDeniedException = class _KMSAccessDeniedException extends KinesisServiceException {
+ static {
+ __name(this, "KMSAccessDeniedException");
+ }
+ name = "KMSAccessDeniedException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "KMSAccessDeniedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _KMSAccessDeniedException.prototype);
+ }
+};
+var KMSDisabledException = class _KMSDisabledException extends KinesisServiceException {
+ static {
+ __name(this, "KMSDisabledException");
+ }
+ name = "KMSDisabledException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "KMSDisabledException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _KMSDisabledException.prototype);
+ }
+};
+var KMSInvalidStateException = class _KMSInvalidStateException extends KinesisServiceException {
+ static {
+ __name(this, "KMSInvalidStateException");
+ }
+ name = "KMSInvalidStateException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "KMSInvalidStateException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _KMSInvalidStateException.prototype);
+ }
+};
+var KMSNotFoundException = class _KMSNotFoundException extends KinesisServiceException {
+ static {
+ __name(this, "KMSNotFoundException");
+ }
+ name = "KMSNotFoundException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "KMSNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _KMSNotFoundException.prototype);
+ }
+};
+var KMSOptInRequired = class _KMSOptInRequired extends KinesisServiceException {
+ static {
+ __name(this, "KMSOptInRequired");
+ }
+ name = "KMSOptInRequired";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "KMSOptInRequired",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _KMSOptInRequired.prototype);
+ }
+};
+var KMSThrottlingException = class _KMSThrottlingException extends KinesisServiceException {
+ static {
+ __name(this, "KMSThrottlingException");
+ }
+ name = "KMSThrottlingException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "KMSThrottlingException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _KMSThrottlingException.prototype);
+ }
+};
+var ProvisionedThroughputExceededException = class _ProvisionedThroughputExceededException extends KinesisServiceException {
+ static {
+ __name(this, "ProvisionedThroughputExceededException");
+ }
+ name = "ProvisionedThroughputExceededException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ProvisionedThroughputExceededException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ProvisionedThroughputExceededException.prototype);
+ }
+};
+var ShardIteratorType = {
+ AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
+ AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
+ AT_TIMESTAMP: "AT_TIMESTAMP",
+ LATEST: "LATEST",
+ TRIM_HORIZON: "TRIM_HORIZON"
+};
+var InternalFailureException = class _InternalFailureException extends KinesisServiceException {
+ static {
+ __name(this, "InternalFailureException");
+ }
+ name = "InternalFailureException";
+ $fault = "server";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InternalFailureException",
+ $fault: "server",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InternalFailureException.prototype);
+ }
+};
+var ShardFilterType = {
+ AFTER_SHARD_ID: "AFTER_SHARD_ID",
+ AT_LATEST: "AT_LATEST",
+ AT_TIMESTAMP: "AT_TIMESTAMP",
+ AT_TRIM_HORIZON: "AT_TRIM_HORIZON",
+ FROM_TIMESTAMP: "FROM_TIMESTAMP",
+ FROM_TRIM_HORIZON: "FROM_TRIM_HORIZON"
+};
+var ValidationException = class _ValidationException extends KinesisServiceException {
+ static {
+ __name(this, "ValidationException");
+ }
+ name = "ValidationException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ValidationException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ValidationException.prototype);
+ }
+};
+var SubscribeToShardEventStream;
+((SubscribeToShardEventStream3) => {
+ SubscribeToShardEventStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
+ if (value.SubscribeToShardEvent !== void 0) return visitor.SubscribeToShardEvent(value.SubscribeToShardEvent);
+ if (value.ResourceNotFoundException !== void 0)
+ return visitor.ResourceNotFoundException(value.ResourceNotFoundException);
+ if (value.ResourceInUseException !== void 0) return visitor.ResourceInUseException(value.ResourceInUseException);
+ if (value.KMSDisabledException !== void 0) return visitor.KMSDisabledException(value.KMSDisabledException);
+ if (value.KMSInvalidStateException !== void 0)
+ return visitor.KMSInvalidStateException(value.KMSInvalidStateException);
+ if (value.KMSAccessDeniedException !== void 0)
+ return visitor.KMSAccessDeniedException(value.KMSAccessDeniedException);
+ if (value.KMSNotFoundException !== void 0) return visitor.KMSNotFoundException(value.KMSNotFoundException);
+ if (value.KMSOptInRequired !== void 0) return visitor.KMSOptInRequired(value.KMSOptInRequired);
+ if (value.KMSThrottlingException !== void 0) return visitor.KMSThrottlingException(value.KMSThrottlingException);
+ if (value.InternalFailureException !== void 0)
+ return visitor.InternalFailureException(value.InternalFailureException);
+ return visitor._(value.$unknown[0], value.$unknown[1]);
+ }, "visit");
+})(SubscribeToShardEventStream || (SubscribeToShardEventStream = {}));
+var ScalingType = {
+ UNIFORM_SCALING: "UNIFORM_SCALING"
+};
+var SubscribeToShardEventStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
+ if (obj.SubscribeToShardEvent !== void 0) return { SubscribeToShardEvent: obj.SubscribeToShardEvent };
+ if (obj.ResourceNotFoundException !== void 0) return { ResourceNotFoundException: obj.ResourceNotFoundException };
+ if (obj.ResourceInUseException !== void 0) return { ResourceInUseException: obj.ResourceInUseException };
+ if (obj.KMSDisabledException !== void 0) return { KMSDisabledException: obj.KMSDisabledException };
+ if (obj.KMSInvalidStateException !== void 0) return { KMSInvalidStateException: obj.KMSInvalidStateException };
+ if (obj.KMSAccessDeniedException !== void 0) return { KMSAccessDeniedException: obj.KMSAccessDeniedException };
+ if (obj.KMSNotFoundException !== void 0) return { KMSNotFoundException: obj.KMSNotFoundException };
+ if (obj.KMSOptInRequired !== void 0) return { KMSOptInRequired: obj.KMSOptInRequired };
+ if (obj.KMSThrottlingException !== void 0) return { KMSThrottlingException: obj.KMSThrottlingException };
+ if (obj.InternalFailureException !== void 0) return { InternalFailureException: obj.InternalFailureException };
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
+}, "SubscribeToShardEventStreamFilterSensitiveLog");
+var SubscribeToShardOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.EventStream && { EventStream: "STREAMING_CONTENT" }
+}), "SubscribeToShardOutputFilterSensitiveLog");
+
+// src/protocols/Aws_json1_1.ts
+var se_AddTagsToStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("AddTagsToStream");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_AddTagsToStreamCommand");
+var se_CreateStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("CreateStream");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_CreateStreamCommand");
+var se_DecreaseStreamRetentionPeriodCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DecreaseStreamRetentionPeriod");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DecreaseStreamRetentionPeriodCommand");
+var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteResourcePolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteResourcePolicyCommand");
+var se_DeleteStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeleteStream");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeleteStreamCommand");
+var se_DeregisterStreamConsumerCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DeregisterStreamConsumer");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DeregisterStreamConsumerCommand");
+var se_DescribeLimitsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeLimits");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeLimitsCommand");
+var se_DescribeStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeStream");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStreamCommand");
+var se_DescribeStreamConsumerCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeStreamConsumer");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStreamConsumerCommand");
+var se_DescribeStreamSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DescribeStreamSummary");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DescribeStreamSummaryCommand");
+var se_DisableEnhancedMonitoringCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("DisableEnhancedMonitoring");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_DisableEnhancedMonitoringCommand");
+var se_EnableEnhancedMonitoringCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("EnableEnhancedMonitoring");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_EnableEnhancedMonitoringCommand");
+var se_GetRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetRecords");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetRecordsCommand");
+var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetResourcePolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetResourcePolicyCommand");
+var se_GetShardIteratorCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("GetShardIterator");
+ let body;
+ body = JSON.stringify(se_GetShardIteratorInput(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_GetShardIteratorCommand");
+var se_IncreaseStreamRetentionPeriodCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("IncreaseStreamRetentionPeriod");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_IncreaseStreamRetentionPeriodCommand");
+var se_ListShardsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListShards");
+ let body;
+ body = JSON.stringify(se_ListShardsInput(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListShardsCommand");
+var se_ListStreamConsumersCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListStreamConsumers");
+ let body;
+ body = JSON.stringify(se_ListStreamConsumersInput(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStreamConsumersCommand");
+var se_ListStreamsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListStreams");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListStreamsCommand");
+var se_ListTagsForStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("ListTagsForStream");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_ListTagsForStreamCommand");
+var se_MergeShardsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("MergeShards");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_MergeShardsCommand");
+var se_PutRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutRecord");
+ let body;
+ body = JSON.stringify(se_PutRecordInput(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutRecordCommand");
+var se_PutRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutRecords");
+ let body;
+ body = JSON.stringify(se_PutRecordsInput(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutRecordsCommand");
+var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("PutResourcePolicy");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_PutResourcePolicyCommand");
+var se_RegisterStreamConsumerCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("RegisterStreamConsumer");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_RegisterStreamConsumerCommand");
+var se_RemoveTagsFromStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("RemoveTagsFromStream");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_RemoveTagsFromStreamCommand");
+var se_SplitShardCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("SplitShard");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_SplitShardCommand");
+var se_StartStreamEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("StartStreamEncryption");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_StartStreamEncryptionCommand");
+var se_StopStreamEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("StopStreamEncryption");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_StopStreamEncryptionCommand");
+var se_SubscribeToShardCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("SubscribeToShard");
+ let body;
+ body = JSON.stringify(se_SubscribeToShardInput(input, context));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_SubscribeToShardCommand");
+var se_UpdateShardCountCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateShardCount");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateShardCountCommand");
+var se_UpdateStreamModeCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = sharedHeaders("UpdateStreamMode");
+ let body;
+ body = JSON.stringify((0, import_smithy_client._json)(input));
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_UpdateStreamModeCommand");
+var de_AddTagsToStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_AddTagsToStreamCommand");
+var de_CreateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_CreateStreamCommand");
+var de_DecreaseStreamRetentionPeriodCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DecreaseStreamRetentionPeriodCommand");
+var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteResourcePolicyCommand");
+var de_DeleteStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeleteStreamCommand");
+var de_DeregisterStreamConsumerCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_DeregisterStreamConsumerCommand");
+var de_DescribeLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeLimitsCommand");
+var de_DescribeStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStreamOutput(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStreamCommand");
+var de_DescribeStreamConsumerCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStreamConsumerOutput(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStreamConsumerCommand");
+var de_DescribeStreamSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_DescribeStreamSummaryOutput(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DescribeStreamSummaryCommand");
+var de_DisableEnhancedMonitoringCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_DisableEnhancedMonitoringCommand");
+var de_EnableEnhancedMonitoringCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_EnableEnhancedMonitoringCommand");
+var de_GetRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_GetRecordsOutput(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetRecordsCommand");
+var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetResourcePolicyCommand");
+var de_GetShardIteratorCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_GetShardIteratorCommand");
+var de_IncreaseStreamRetentionPeriodCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_IncreaseStreamRetentionPeriodCommand");
+var de_ListShardsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListShardsCommand");
+var de_ListStreamConsumersCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStreamConsumersOutput(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStreamConsumersCommand");
+var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_ListStreamsOutput(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListStreamsCommand");
+var de_ListTagsForStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_ListTagsForStreamCommand");
+var de_MergeShardsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_MergeShardsCommand");
+var de_PutRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutRecordCommand");
+var de_PutRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_PutRecordsCommand");
+var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_PutResourcePolicyCommand");
+var de_RegisterStreamConsumerCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = de_RegisterStreamConsumerOutput(data, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_RegisterStreamConsumerCommand");
+var de_RemoveTagsFromStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_RemoveTagsFromStreamCommand");
+var de_SplitShardCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_SplitShardCommand");
+var de_StartStreamEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_StartStreamEncryptionCommand");
+var de_StopStreamEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_StopStreamEncryptionCommand");
+var de_SubscribeToShardCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = { EventStream: de_SubscribeToShardEventStream(output.body, context) };
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_SubscribeToShardCommand");
+var de_UpdateShardCountCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ let contents = {};
+ contents = (0, import_smithy_client._json)(data);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_UpdateShardCountCommand");
+var de_UpdateStreamModeCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ const response = {
+ $metadata: deserializeMetadata(output)
+ };
+ return response;
+}, "de_UpdateStreamModeCommand");
+var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
+ };
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
+ switch (errorCode) {
+ case "AccessDeniedException":
+ case "com.amazonaws.kinesis#AccessDeniedException":
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
+ case "InvalidArgumentException":
+ case "com.amazonaws.kinesis#InvalidArgumentException":
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
+ case "LimitExceededException":
+ case "com.amazonaws.kinesis#LimitExceededException":
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
+ case "ResourceInUseException":
+ case "com.amazonaws.kinesis#ResourceInUseException":
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
+ case "ResourceNotFoundException":
+ case "com.amazonaws.kinesis#ResourceNotFoundException":
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
+ case "ExpiredIteratorException":
+ case "com.amazonaws.kinesis#ExpiredIteratorException":
+ throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
+ case "KMSAccessDeniedException":
+ case "com.amazonaws.kinesis#KMSAccessDeniedException":
+ throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
+ case "KMSDisabledException":
+ case "com.amazonaws.kinesis#KMSDisabledException":
+ throw await de_KMSDisabledExceptionRes(parsedOutput, context);
+ case "KMSInvalidStateException":
+ case "com.amazonaws.kinesis#KMSInvalidStateException":
+ throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
+ case "KMSNotFoundException":
+ case "com.amazonaws.kinesis#KMSNotFoundException":
+ throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
+ case "KMSOptInRequired":
+ case "com.amazonaws.kinesis#KMSOptInRequired":
+ throw await de_KMSOptInRequiredRes(parsedOutput, context);
+ case "KMSThrottlingException":
+ case "com.amazonaws.kinesis#KMSThrottlingException":
+ throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
+ case "ProvisionedThroughputExceededException":
+ case "com.amazonaws.kinesis#ProvisionedThroughputExceededException":
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
+ case "ExpiredNextTokenException":
+ case "com.amazonaws.kinesis#ExpiredNextTokenException":
+ throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
+ case "ValidationException":
+ case "com.amazonaws.kinesis#ValidationException":
+ throw await de_ValidationExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody,
+ errorCode
+ });
+ }
+}, "de_CommandError");
+var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new AccessDeniedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_AccessDeniedExceptionRes");
+var de_ExpiredIteratorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ExpiredIteratorException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ExpiredIteratorExceptionRes");
+var de_ExpiredNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ExpiredNextTokenException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ExpiredNextTokenExceptionRes");
+var de_InvalidArgumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new InvalidArgumentException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_InvalidArgumentExceptionRes");
+var de_KMSAccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new KMSAccessDeniedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_KMSAccessDeniedExceptionRes");
+var de_KMSDisabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new KMSDisabledException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_KMSDisabledExceptionRes");
+var de_KMSInvalidStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new KMSInvalidStateException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_KMSInvalidStateExceptionRes");
+var de_KMSNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new KMSNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_KMSNotFoundExceptionRes");
+var de_KMSOptInRequiredRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new KMSOptInRequired({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_KMSOptInRequiredRes");
+var de_KMSThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new KMSThrottlingException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_KMSThrottlingExceptionRes");
+var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new LimitExceededException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_LimitExceededExceptionRes");
+var de_ProvisionedThroughputExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ProvisionedThroughputExceededException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ProvisionedThroughputExceededExceptionRes");
+var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ResourceInUseException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ResourceInUseExceptionRes");
+var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ResourceNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ResourceNotFoundExceptionRes");
+var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new ValidationException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_ValidationExceptionRes");
+var de_SubscribeToShardEventStream = /* @__PURE__ */ __name((output, context) => {
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
+ if (event["SubscribeToShardEvent"] != null) {
+ return {
+ SubscribeToShardEvent: await de_SubscribeToShardEvent_event(event["SubscribeToShardEvent"], context)
+ };
+ }
+ if (event["ResourceNotFoundException"] != null) {
+ return {
+ ResourceNotFoundException: await de_ResourceNotFoundException_event(
+ event["ResourceNotFoundException"],
+ context
+ )
+ };
+ }
+ if (event["ResourceInUseException"] != null) {
+ return {
+ ResourceInUseException: await de_ResourceInUseException_event(event["ResourceInUseException"], context)
+ };
+ }
+ if (event["KMSDisabledException"] != null) {
+ return {
+ KMSDisabledException: await de_KMSDisabledException_event(event["KMSDisabledException"], context)
+ };
+ }
+ if (event["KMSInvalidStateException"] != null) {
+ return {
+ KMSInvalidStateException: await de_KMSInvalidStateException_event(event["KMSInvalidStateException"], context)
+ };
+ }
+ if (event["KMSAccessDeniedException"] != null) {
+ return {
+ KMSAccessDeniedException: await de_KMSAccessDeniedException_event(event["KMSAccessDeniedException"], context)
+ };
+ }
+ if (event["KMSNotFoundException"] != null) {
+ return {
+ KMSNotFoundException: await de_KMSNotFoundException_event(event["KMSNotFoundException"], context)
+ };
+ }
+ if (event["KMSOptInRequired"] != null) {
+ return {
+ KMSOptInRequired: await de_KMSOptInRequired_event(event["KMSOptInRequired"], context)
+ };
+ }
+ if (event["KMSThrottlingException"] != null) {
+ return {
+ KMSThrottlingException: await de_KMSThrottlingException_event(event["KMSThrottlingException"], context)
+ };
+ }
+ if (event["InternalFailureException"] != null) {
+ return {
+ InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context)
+ };
+ }
+ return { $unknown: output };
+ });
+}, "de_SubscribeToShardEventStream");
+var de_InternalFailureException_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_InternalFailureExceptionRes(parsedOutput, context);
+}, "de_InternalFailureException_event");
+var de_KMSAccessDeniedException_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_KMSAccessDeniedExceptionRes(parsedOutput, context);
+}, "de_KMSAccessDeniedException_event");
+var de_KMSDisabledException_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_KMSDisabledExceptionRes(parsedOutput, context);
+}, "de_KMSDisabledException_event");
+var de_KMSInvalidStateException_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_KMSInvalidStateExceptionRes(parsedOutput, context);
+}, "de_KMSInvalidStateException_event");
+var de_KMSNotFoundException_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_KMSNotFoundExceptionRes(parsedOutput, context);
+}, "de_KMSNotFoundException_event");
+var de_KMSOptInRequired_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_KMSOptInRequiredRes(parsedOutput, context);
+}, "de_KMSOptInRequired_event");
+var de_KMSThrottlingException_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_KMSThrottlingExceptionRes(parsedOutput, context);
+}, "de_KMSThrottlingException_event");
+var de_ResourceInUseException_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_ResourceInUseExceptionRes(parsedOutput, context);
+}, "de_ResourceInUseException_event");
+var de_ResourceNotFoundException_event = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
+ };
+ return de_ResourceNotFoundExceptionRes(parsedOutput, context);
+}, "de_ResourceNotFoundException_event");
+var de_SubscribeToShardEvent_event = /* @__PURE__ */ __name(async (output, context) => {
+ const contents = {};
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
+ Object.assign(contents, de_SubscribeToShardEvent(data, context));
+ return contents;
+}, "de_SubscribeToShardEvent_event");
+var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = (0, import_smithy_client._json)(body);
+ const exception = new InternalFailureException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
+}, "de_InternalFailureExceptionRes");
+var se_GetShardIteratorInput = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ ShardId: [],
+ ShardIteratorType: [],
+ StartingSequenceNumber: [],
+ StreamARN: [],
+ StreamName: [],
+ Timestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Timestamp")
+ });
+}, "se_GetShardIteratorInput");
+var se_ListShardsInput = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ ExclusiveStartShardId: [],
+ MaxResults: [],
+ NextToken: [],
+ ShardFilter: /* @__PURE__ */ __name((_) => se_ShardFilter(_, context), "ShardFilter"),
+ StreamARN: [],
+ StreamCreationTimestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StreamCreationTimestamp"),
+ StreamName: []
+ });
+}, "se_ListShardsInput");
+var se_ListStreamConsumersInput = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ MaxResults: [],
+ NextToken: [],
+ StreamARN: [],
+ StreamCreationTimestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StreamCreationTimestamp")
+ });
+}, "se_ListStreamConsumersInput");
+var se_PutRecordInput = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ Data: context.base64Encoder,
+ ExplicitHashKey: [],
+ PartitionKey: [],
+ SequenceNumberForOrdering: [],
+ StreamARN: [],
+ StreamName: []
+ });
+}, "se_PutRecordInput");
+var se_PutRecordsInput = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ Records: /* @__PURE__ */ __name((_) => se_PutRecordsRequestEntryList(_, context), "Records"),
+ StreamARN: [],
+ StreamName: []
+ });
+}, "se_PutRecordsInput");
+var se_PutRecordsRequestEntry = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ Data: context.base64Encoder,
+ ExplicitHashKey: [],
+ PartitionKey: []
+ });
+}, "se_PutRecordsRequestEntry");
+var se_PutRecordsRequestEntryList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ return se_PutRecordsRequestEntry(entry, context);
+ });
+}, "se_PutRecordsRequestEntryList");
+var se_ShardFilter = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ ShardId: [],
+ Timestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Timestamp"),
+ Type: []
+ });
+}, "se_ShardFilter");
+var se_StartingPosition = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ SequenceNumber: [],
+ Timestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Timestamp"),
+ Type: []
+ });
+}, "se_StartingPosition");
+var se_SubscribeToShardInput = /* @__PURE__ */ __name((input, context) => {
+ return (0, import_smithy_client.take)(input, {
+ ConsumerARN: [],
+ ShardId: [],
+ StartingPosition: /* @__PURE__ */ __name((_) => se_StartingPosition(_, context), "StartingPosition")
+ });
+}, "se_SubscribeToShardInput");
+var de_Consumer = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ ConsumerARN: import_smithy_client.expectString,
+ ConsumerCreationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ConsumerCreationTimestamp"),
+ ConsumerName: import_smithy_client.expectString,
+ ConsumerStatus: import_smithy_client.expectString
+ });
+}, "de_Consumer");
+var de_ConsumerDescription = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ ConsumerARN: import_smithy_client.expectString,
+ ConsumerCreationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ConsumerCreationTimestamp"),
+ ConsumerName: import_smithy_client.expectString,
+ ConsumerStatus: import_smithy_client.expectString,
+ StreamARN: import_smithy_client.expectString
+ });
+}, "de_ConsumerDescription");
+var de_ConsumerList = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_Consumer(entry, context);
+ });
+ return retVal;
+}, "de_ConsumerList");
+var de_DescribeStreamConsumerOutput = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ ConsumerDescription: /* @__PURE__ */ __name((_) => de_ConsumerDescription(_, context), "ConsumerDescription")
+ });
+}, "de_DescribeStreamConsumerOutput");
+var de_DescribeStreamOutput = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ StreamDescription: /* @__PURE__ */ __name((_) => de_StreamDescription(_, context), "StreamDescription")
+ });
+}, "de_DescribeStreamOutput");
+var de_DescribeStreamSummaryOutput = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ StreamDescriptionSummary: /* @__PURE__ */ __name((_) => de_StreamDescriptionSummary(_, context), "StreamDescriptionSummary")
+ });
+}, "de_DescribeStreamSummaryOutput");
+var de_GetRecordsOutput = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ ChildShards: import_smithy_client._json,
+ MillisBehindLatest: import_smithy_client.expectLong,
+ NextShardIterator: import_smithy_client.expectString,
+ Records: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "Records")
+ });
+}, "de_GetRecordsOutput");
+var de_ListStreamConsumersOutput = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ Consumers: /* @__PURE__ */ __name((_) => de_ConsumerList(_, context), "Consumers"),
+ NextToken: import_smithy_client.expectString
+ });
+}, "de_ListStreamConsumersOutput");
+var de_ListStreamsOutput = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ HasMoreStreams: import_smithy_client.expectBoolean,
+ NextToken: import_smithy_client.expectString,
+ StreamNames: import_smithy_client._json,
+ StreamSummaries: /* @__PURE__ */ __name((_) => de_StreamSummaryList(_, context), "StreamSummaries")
+ });
+}, "de_ListStreamsOutput");
+var de__Record = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ ApproximateArrivalTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ApproximateArrivalTimestamp"),
+ Data: context.base64Decoder,
+ EncryptionType: import_smithy_client.expectString,
+ PartitionKey: import_smithy_client.expectString,
+ SequenceNumber: import_smithy_client.expectString
+ });
+}, "de__Record");
+var de_RecordList = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de__Record(entry, context);
+ });
+ return retVal;
+}, "de_RecordList");
+var de_RegisterStreamConsumerOutput = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ Consumer: /* @__PURE__ */ __name((_) => de_Consumer(_, context), "Consumer")
+ });
+}, "de_RegisterStreamConsumerOutput");
+var de_StreamDescription = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ EncryptionType: import_smithy_client.expectString,
+ EnhancedMonitoring: import_smithy_client._json,
+ HasMoreShards: import_smithy_client.expectBoolean,
+ KeyId: import_smithy_client.expectString,
+ RetentionPeriodHours: import_smithy_client.expectInt32,
+ Shards: import_smithy_client._json,
+ StreamARN: import_smithy_client.expectString,
+ StreamCreationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StreamCreationTimestamp"),
+ StreamModeDetails: import_smithy_client._json,
+ StreamName: import_smithy_client.expectString,
+ StreamStatus: import_smithy_client.expectString
+ });
+}, "de_StreamDescription");
+var de_StreamDescriptionSummary = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ ConsumerCount: import_smithy_client.expectInt32,
+ EncryptionType: import_smithy_client.expectString,
+ EnhancedMonitoring: import_smithy_client._json,
+ KeyId: import_smithy_client.expectString,
+ OpenShardCount: import_smithy_client.expectInt32,
+ RetentionPeriodHours: import_smithy_client.expectInt32,
+ StreamARN: import_smithy_client.expectString,
+ StreamCreationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StreamCreationTimestamp"),
+ StreamModeDetails: import_smithy_client._json,
+ StreamName: import_smithy_client.expectString,
+ StreamStatus: import_smithy_client.expectString
+ });
+}, "de_StreamDescriptionSummary");
+var de_StreamSummary = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ StreamARN: import_smithy_client.expectString,
+ StreamCreationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StreamCreationTimestamp"),
+ StreamModeDetails: import_smithy_client._json,
+ StreamName: import_smithy_client.expectString,
+ StreamStatus: import_smithy_client.expectString
+ });
+}, "de_StreamSummary");
+var de_StreamSummaryList = /* @__PURE__ */ __name((output, context) => {
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
+ return de_StreamSummary(entry, context);
+ });
+ return retVal;
+}, "de_StreamSummaryList");
+var de_SubscribeToShardEvent = /* @__PURE__ */ __name((output, context) => {
+ return (0, import_smithy_client.take)(output, {
+ ChildShards: import_smithy_client._json,
+ ContinuationSequenceNumber: import_smithy_client.expectString,
+ MillisBehindLatest: import_smithy_client.expectLong,
+ Records: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "Records")
+ });
+}, "de_SubscribeToShardEvent");
+var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
+ httpStatusCode: output.statusCode,
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
+ extendedRequestId: output.headers["x-amz-id-2"],
+ cfId: output.headers["x-amz-cf-id"]
+}), "deserializeMetadata");
+var throwDefaultError = (0, import_smithy_client.withBaseException)(KinesisServiceException);
+var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const contents = {
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
+ headers
+ };
+ if (resolvedHostname !== void 0) {
+ contents.hostname = resolvedHostname;
+ }
+ if (body !== void 0) {
+ contents.body = body;
+ }
+ return new import_protocol_http.HttpRequest(contents);
+}, "buildHttpRpcRequest");
+function sharedHeaders(operation) {
+ return {
+ "content-type": "application/x-amz-json-1.1",
+ "x-amz-target": `Kinesis_20131202.${operation}`
+ };
+}
+__name(sharedHeaders, "sharedHeaders");
+
+// src/commands/AddTagsToStreamCommand.ts
+var AddTagsToStreamCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "AddTagsToStream", {}).n("KinesisClient", "AddTagsToStreamCommand").f(void 0, void 0).ser(se_AddTagsToStreamCommand).de(de_AddTagsToStreamCommand).build() {
+ static {
+ __name(this, "AddTagsToStreamCommand");
+ }
+};
+
+// src/commands/CreateStreamCommand.ts
+
+
+
+var CreateStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "CreateStream", {}).n("KinesisClient", "CreateStreamCommand").f(void 0, void 0).ser(se_CreateStreamCommand).de(de_CreateStreamCommand).build() {
+ static {
+ __name(this, "CreateStreamCommand");
+ }
+};
+
+// src/commands/DecreaseStreamRetentionPeriodCommand.ts
+
+
+
+var DecreaseStreamRetentionPeriodCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "DecreaseStreamRetentionPeriod", {}).n("KinesisClient", "DecreaseStreamRetentionPeriodCommand").f(void 0, void 0).ser(se_DecreaseStreamRetentionPeriodCommand).de(de_DecreaseStreamRetentionPeriodCommand).build() {
+ static {
+ __name(this, "DecreaseStreamRetentionPeriodCommand");
+ }
+};
+
+// src/commands/DeleteResourcePolicyCommand.ts
+
+
+
+var DeleteResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ ResourceARN: { type: "contextParams", name: "ResourceARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "DeleteResourcePolicy", {}).n("KinesisClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
+ static {
+ __name(this, "DeleteResourcePolicyCommand");
+ }
+};
+
+// src/commands/DeleteStreamCommand.ts
+
+
+
+var DeleteStreamCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "DeleteStream", {}).n("KinesisClient", "DeleteStreamCommand").f(void 0, void 0).ser(se_DeleteStreamCommand).de(de_DeleteStreamCommand).build() {
+ static {
+ __name(this, "DeleteStreamCommand");
+ }
+};
+
+// src/commands/DeregisterStreamConsumerCommand.ts
+
+
+
+var DeregisterStreamConsumerCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ ConsumerARN: { type: "contextParams", name: "ConsumerARN" },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "DeregisterStreamConsumer", {}).n("KinesisClient", "DeregisterStreamConsumerCommand").f(void 0, void 0).ser(se_DeregisterStreamConsumerCommand).de(de_DeregisterStreamConsumerCommand).build() {
+ static {
+ __name(this, "DeregisterStreamConsumerCommand");
+ }
+};
+
+// src/commands/DescribeLimitsCommand.ts
+
+
+
+var DescribeLimitsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "DescribeLimits", {}).n("KinesisClient", "DescribeLimitsCommand").f(void 0, void 0).ser(se_DescribeLimitsCommand).de(de_DescribeLimitsCommand).build() {
+ static {
+ __name(this, "DescribeLimitsCommand");
+ }
+};
+
+// src/commands/DescribeStreamCommand.ts
+
+
+
+var DescribeStreamCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "DescribeStream", {}).n("KinesisClient", "DescribeStreamCommand").f(void 0, void 0).ser(se_DescribeStreamCommand).de(de_DescribeStreamCommand).build() {
+ static {
+ __name(this, "DescribeStreamCommand");
+ }
+};
+
+// src/commands/DescribeStreamConsumerCommand.ts
+
+
+
+var DescribeStreamConsumerCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ ConsumerARN: { type: "contextParams", name: "ConsumerARN" },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "DescribeStreamConsumer", {}).n("KinesisClient", "DescribeStreamConsumerCommand").f(void 0, void 0).ser(se_DescribeStreamConsumerCommand).de(de_DescribeStreamConsumerCommand).build() {
+ static {
+ __name(this, "DescribeStreamConsumerCommand");
+ }
+};
+
+// src/commands/DescribeStreamSummaryCommand.ts
+
+
+
+var DescribeStreamSummaryCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "DescribeStreamSummary", {}).n("KinesisClient", "DescribeStreamSummaryCommand").f(void 0, void 0).ser(se_DescribeStreamSummaryCommand).de(de_DescribeStreamSummaryCommand).build() {
+ static {
+ __name(this, "DescribeStreamSummaryCommand");
+ }
+};
+
+// src/commands/DisableEnhancedMonitoringCommand.ts
+
+
+
+var DisableEnhancedMonitoringCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "DisableEnhancedMonitoring", {}).n("KinesisClient", "DisableEnhancedMonitoringCommand").f(void 0, void 0).ser(se_DisableEnhancedMonitoringCommand).de(de_DisableEnhancedMonitoringCommand).build() {
+ static {
+ __name(this, "DisableEnhancedMonitoringCommand");
+ }
+};
+
+// src/commands/EnableEnhancedMonitoringCommand.ts
+
+
+
+var EnableEnhancedMonitoringCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "EnableEnhancedMonitoring", {}).n("KinesisClient", "EnableEnhancedMonitoringCommand").f(void 0, void 0).ser(se_EnableEnhancedMonitoringCommand).de(de_EnableEnhancedMonitoringCommand).build() {
+ static {
+ __name(this, "EnableEnhancedMonitoringCommand");
+ }
+};
+
+// src/commands/GetRecordsCommand.ts
+
+
+
+var GetRecordsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `data` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "GetRecords", {}).n("KinesisClient", "GetRecordsCommand").f(void 0, void 0).ser(se_GetRecordsCommand).de(de_GetRecordsCommand).build() {
+ static {
+ __name(this, "GetRecordsCommand");
+ }
+};
+
+// src/commands/GetResourcePolicyCommand.ts
+
+
+
+var GetResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ ResourceARN: { type: "contextParams", name: "ResourceARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "GetResourcePolicy", {}).n("KinesisClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
+ static {
+ __name(this, "GetResourcePolicyCommand");
+ }
+};
+
+// src/commands/GetShardIteratorCommand.ts
+
+
+
+var GetShardIteratorCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `data` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "GetShardIterator", {}).n("KinesisClient", "GetShardIteratorCommand").f(void 0, void 0).ser(se_GetShardIteratorCommand).de(de_GetShardIteratorCommand).build() {
+ static {
+ __name(this, "GetShardIteratorCommand");
+ }
+};
+
+// src/commands/IncreaseStreamRetentionPeriodCommand.ts
+
+
+
+var IncreaseStreamRetentionPeriodCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "IncreaseStreamRetentionPeriod", {}).n("KinesisClient", "IncreaseStreamRetentionPeriodCommand").f(void 0, void 0).ser(se_IncreaseStreamRetentionPeriodCommand).de(de_IncreaseStreamRetentionPeriodCommand).build() {
+ static {
+ __name(this, "IncreaseStreamRetentionPeriodCommand");
+ }
+};
+
+// src/commands/ListShardsCommand.ts
+
+
+
+var ListShardsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "ListShards", {}).n("KinesisClient", "ListShardsCommand").f(void 0, void 0).ser(se_ListShardsCommand).de(de_ListShardsCommand).build() {
+ static {
+ __name(this, "ListShardsCommand");
+ }
+};
+
+// src/commands/ListStreamConsumersCommand.ts
+
+
+
+var ListStreamConsumersCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "ListStreamConsumers", {}).n("KinesisClient", "ListStreamConsumersCommand").f(void 0, void 0).ser(se_ListStreamConsumersCommand).de(de_ListStreamConsumersCommand).build() {
+ static {
+ __name(this, "ListStreamConsumersCommand");
+ }
+};
+
+// src/commands/ListStreamsCommand.ts
+
+
+
+var ListStreamsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "ListStreams", {}).n("KinesisClient", "ListStreamsCommand").f(void 0, void 0).ser(se_ListStreamsCommand).de(de_ListStreamsCommand).build() {
+ static {
+ __name(this, "ListStreamsCommand");
+ }
+};
+
+// src/commands/ListTagsForStreamCommand.ts
+
+
+
+var ListTagsForStreamCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "ListTagsForStream", {}).n("KinesisClient", "ListTagsForStreamCommand").f(void 0, void 0).ser(se_ListTagsForStreamCommand).de(de_ListTagsForStreamCommand).build() {
+ static {
+ __name(this, "ListTagsForStreamCommand");
+ }
+};
+
+// src/commands/MergeShardsCommand.ts
+
+
+
+var MergeShardsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "MergeShards", {}).n("KinesisClient", "MergeShardsCommand").f(void 0, void 0).ser(se_MergeShardsCommand).de(de_MergeShardsCommand).build() {
+ static {
+ __name(this, "MergeShardsCommand");
+ }
+};
+
+// src/commands/PutRecordCommand.ts
+
+
+
+var PutRecordCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `data` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "PutRecord", {}).n("KinesisClient", "PutRecordCommand").f(void 0, void 0).ser(se_PutRecordCommand).de(de_PutRecordCommand).build() {
+ static {
+ __name(this, "PutRecordCommand");
+ }
+};
+
+// src/commands/PutRecordsCommand.ts
+
+
+
+var PutRecordsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `data` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "PutRecords", {}).n("KinesisClient", "PutRecordsCommand").f(void 0, void 0).ser(se_PutRecordsCommand).de(de_PutRecordsCommand).build() {
+ static {
+ __name(this, "PutRecordsCommand");
+ }
+};
+
+// src/commands/PutResourcePolicyCommand.ts
+
+
+
+var PutResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ ResourceARN: { type: "contextParams", name: "ResourceARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "PutResourcePolicy", {}).n("KinesisClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
+ static {
+ __name(this, "PutResourcePolicyCommand");
+ }
+};
+
+// src/commands/RegisterStreamConsumerCommand.ts
+
+
+
+var RegisterStreamConsumerCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "RegisterStreamConsumer", {}).n("KinesisClient", "RegisterStreamConsumerCommand").f(void 0, void 0).ser(se_RegisterStreamConsumerCommand).de(de_RegisterStreamConsumerCommand).build() {
+ static {
+ __name(this, "RegisterStreamConsumerCommand");
+ }
+};
+
+// src/commands/RemoveTagsFromStreamCommand.ts
+
+
+
+var RemoveTagsFromStreamCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "RemoveTagsFromStream", {}).n("KinesisClient", "RemoveTagsFromStreamCommand").f(void 0, void 0).ser(se_RemoveTagsFromStreamCommand).de(de_RemoveTagsFromStreamCommand).build() {
+ static {
+ __name(this, "RemoveTagsFromStreamCommand");
+ }
+};
+
+// src/commands/SplitShardCommand.ts
+
+
+
+var SplitShardCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "SplitShard", {}).n("KinesisClient", "SplitShardCommand").f(void 0, void 0).ser(se_SplitShardCommand).de(de_SplitShardCommand).build() {
+ static {
+ __name(this, "SplitShardCommand");
+ }
+};
+
+// src/commands/StartStreamEncryptionCommand.ts
+
+
+
+var StartStreamEncryptionCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "StartStreamEncryption", {}).n("KinesisClient", "StartStreamEncryptionCommand").f(void 0, void 0).ser(se_StartStreamEncryptionCommand).de(de_StartStreamEncryptionCommand).build() {
+ static {
+ __name(this, "StartStreamEncryptionCommand");
+ }
+};
+
+// src/commands/StopStreamEncryptionCommand.ts
+
+
+
+var StopStreamEncryptionCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "StopStreamEncryption", {}).n("KinesisClient", "StopStreamEncryptionCommand").f(void 0, void 0).ser(se_StopStreamEncryptionCommand).de(de_StopStreamEncryptionCommand).build() {
+ static {
+ __name(this, "StopStreamEncryptionCommand");
+ }
+};
+
+// src/commands/SubscribeToShardCommand.ts
+
+
+
+var SubscribeToShardCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `data` },
+ ConsumerARN: { type: "contextParams", name: "ConsumerARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "SubscribeToShard", {
+ /**
+ * @internal
+ */
+ eventStream: {
+ output: true
+ }
+}).n("KinesisClient", "SubscribeToShardCommand").f(void 0, SubscribeToShardOutputFilterSensitiveLog).ser(se_SubscribeToShardCommand).de(de_SubscribeToShardCommand).build() {
+ static {
+ __name(this, "SubscribeToShardCommand");
+ }
+};
+
+// src/commands/UpdateShardCountCommand.ts
+
+
+
+var UpdateShardCountCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "UpdateShardCount", {}).n("KinesisClient", "UpdateShardCountCommand").f(void 0, void 0).ser(se_UpdateShardCountCommand).de(de_UpdateShardCountCommand).build() {
+ static {
+ __name(this, "UpdateShardCountCommand");
+ }
+};
+
+// src/commands/UpdateStreamModeCommand.ts
+
+
+
+var UpdateStreamModeCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ OperationType: { type: "staticContextParams", value: `control` },
+ StreamARN: { type: "contextParams", name: "StreamARN" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("Kinesis_20131202", "UpdateStreamMode", {}).n("KinesisClient", "UpdateStreamModeCommand").f(void 0, void 0).ser(se_UpdateStreamModeCommand).de(de_UpdateStreamModeCommand).build() {
+ static {
+ __name(this, "UpdateStreamModeCommand");
+ }
+};
+
+// src/Kinesis.ts
+var commands = {
+ AddTagsToStreamCommand,
+ CreateStreamCommand,
+ DecreaseStreamRetentionPeriodCommand,
+ DeleteResourcePolicyCommand,
+ DeleteStreamCommand,
+ DeregisterStreamConsumerCommand,
+ DescribeLimitsCommand,
+ DescribeStreamCommand,
+ DescribeStreamConsumerCommand,
+ DescribeStreamSummaryCommand,
+ DisableEnhancedMonitoringCommand,
+ EnableEnhancedMonitoringCommand,
+ GetRecordsCommand,
+ GetResourcePolicyCommand,
+ GetShardIteratorCommand,
+ IncreaseStreamRetentionPeriodCommand,
+ ListShardsCommand,
+ ListStreamConsumersCommand,
+ ListStreamsCommand,
+ ListTagsForStreamCommand,
+ MergeShardsCommand,
+ PutRecordCommand,
+ PutRecordsCommand,
+ PutResourcePolicyCommand,
+ RegisterStreamConsumerCommand,
+ RemoveTagsFromStreamCommand,
+ SplitShardCommand,
+ StartStreamEncryptionCommand,
+ StopStreamEncryptionCommand,
+ SubscribeToShardCommand,
+ UpdateShardCountCommand,
+ UpdateStreamModeCommand
+};
+var Kinesis = class extends KinesisClient {
+ static {
+ __name(this, "Kinesis");
+ }
+};
+(0, import_smithy_client.createAggregatedClient)(commands, Kinesis);
+
+// src/pagination/ListStreamConsumersPaginator.ts
+
+var paginateListStreamConsumers = (0, import_core.createPaginator)(KinesisClient, ListStreamConsumersCommand, "NextToken", "NextToken", "MaxResults");
+
+// src/pagination/ListStreamsPaginator.ts
+
+var paginateListStreams = (0, import_core.createPaginator)(KinesisClient, ListStreamsCommand, "NextToken", "NextToken", "Limit");
+
+// src/waiters/waitForStreamExists.ts
+var import_util_waiter = __nccwpck_require__(78011);
+var checkState = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeStreamCommand(input));
+ reason = result;
+ try {
+ const returnComparator = /* @__PURE__ */ __name(() => {
+ return result.StreamDescription.StreamStatus;
+ }, "returnComparator");
+ if (returnComparator() === "ACTIVE") {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ } catch (e) {
+ }
+ } catch (exception) {
+ reason = exception;
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForStreamExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 10, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
+}, "waitForStreamExists");
+var waitUntilStreamExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 10, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilStreamExists");
+
+// src/waiters/waitForStreamNotExists.ts
+
+var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new DescribeStreamCommand(input));
+ reason = result;
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "ResourceNotFoundException") {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForStreamNotExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 10, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
+}, "waitForStreamNotExists");
+var waitUntilStreamNotExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 10, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilStreamNotExists");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 86711:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const tslib_1 = __nccwpck_require__(4351);
+const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(85798));
+const core_1 = __nccwpck_require__(59963);
+const credential_provider_node_1 = __nccwpck_require__(75531);
+const util_user_agent_node_1 = __nccwpck_require__(98095);
+const config_resolver_1 = __nccwpck_require__(53098);
+const eventstream_serde_node_1 = __nccwpck_require__(77682);
+const hash_node_1 = __nccwpck_require__(3081);
+const middleware_retry_1 = __nccwpck_require__(96039);
+const node_config_provider_1 = __nccwpck_require__(33461);
+const node_http_handler_1 = __nccwpck_require__(20258);
+const util_body_length_node_1 = __nccwpck_require__(68075);
+const util_retry_1 = __nccwpck_require__(84902);
+const runtimeConfig_shared_1 = __nccwpck_require__(58291);
+const smithy_client_1 = __nccwpck_require__(63570);
+const util_defaults_mode_node_1 = __nccwpck_require__(72429);
+const smithy_client_2 = __nccwpck_require__(63570);
+const getRuntimeConfig = (config) => {
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
+ const profileConfig = { profile: config?.profile };
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "node",
+ defaultsMode,
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
+ region: config?.region ??
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
+ requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
+ retryMode: config?.retryMode ??
+ (0, node_config_provider_1.loadConfig)({
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
+ }, config),
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 58291:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const core_1 = __nccwpck_require__(59963);
+const smithy_client_1 = __nccwpck_require__(63570);
+const url_parser_1 = __nccwpck_require__(14681);
+const util_base64_1 = __nccwpck_require__(75600);
+const util_utf8_1 = __nccwpck_require__(41895);
+const httpAuthSchemeProvider_1 = __nccwpck_require__(80730);
+const endpointResolver_1 = __nccwpck_require__(83460);
+const getRuntimeConfig = (config) => {
+ return {
+ apiVersion: "2013-12-02",
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
+ disableHostPrefix: config?.disableHostPrefix ?? false,
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
+ extensions: config?.extensions ?? [],
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultKinesisHttpAuthSchemeProvider,
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
+ signer: new core_1.AwsSdkSigV4Signer(),
+ },
+ ],
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
+ serviceId: config?.serviceId ?? "Kinesis",
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 69023:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveHttpAuthSchemeConfig = exports.defaultS3HttpAuthSchemeProvider = exports.defaultS3HttpAuthSchemeParametersProvider = void 0;
+const core_1 = __nccwpck_require__(59963);
+const signature_v4_multi_region_1 = __nccwpck_require__(51856);
+const middleware_endpoint_1 = __nccwpck_require__(82918);
+const util_middleware_1 = __nccwpck_require__(2390);
+const endpointResolver_1 = __nccwpck_require__(3722);
+const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
+ if (!input) {
+ throw new Error(`Could not find \`input\` for \`defaultEndpointRuleSetHttpAuthSchemeParametersProvider\``);
+ }
+ const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
+ const instructionsFn = (0, util_middleware_1.getSmithyContext)(context)?.commandInstance?.constructor
+ ?.getEndpointParameterInstructions;
+ if (!instructionsFn) {
+ throw new Error(`getEndpointParameterInstructions() is not defined on \`${context.commandName}\``);
+ }
+ const endpointParameters = await (0, middleware_endpoint_1.resolveParams)(input, { getEndpointParameterInstructions: instructionsFn }, config);
+ return Object.assign(defaultParameters, endpointParameters);
+};
+const _defaultS3HttpAuthSchemeParametersProvider = async (config, context, input) => {
+ return {
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
+ (() => {
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
+ })(),
+ };
+};
+exports.defaultS3HttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultS3HttpAuthSchemeParametersProvider);
+function createAwsAuthSigv4HttpAuthOption(authParameters) {
+ return {
+ schemeId: "aws.auth#sigv4",
+ signingProperties: {
+ name: "s3",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config, context) => ({
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+function createAwsAuthSigv4aHttpAuthOption(authParameters) {
+ return {
+ schemeId: "aws.auth#sigv4a",
+ signingProperties: {
+ name: "s3",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config, context) => ({
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
+ const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
+ const endpoint = defaultEndpointResolver(authParameters);
+ const authSchemes = endpoint.properties?.authSchemes;
+ if (!authSchemes) {
+ return defaultHttpAuthSchemeResolver(authParameters);
+ }
+ const options = [];
+ for (const scheme of authSchemes) {
+ const { name: resolvedName, properties = {}, ...rest } = scheme;
+ const name = resolvedName.toLowerCase();
+ if (resolvedName !== name) {
+ console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${resolvedName}\` to \`${name}\``);
+ }
+ let schemeId;
+ if (name === "sigv4a") {
+ schemeId = "aws.auth#sigv4a";
+ const sigv4Present = authSchemes.find((s) => {
+ const name = s.name.toLowerCase();
+ return name !== "sigv4a" && name.startsWith("sigv4");
+ });
+ if (!signature_v4_multi_region_1.signatureV4CrtContainer.CrtSignerV4 && sigv4Present) {
+ continue;
+ }
+ }
+ else if (name.startsWith("sigv4")) {
+ schemeId = "aws.auth#sigv4";
+ }
+ else {
+ throw new Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${name}\``);
+ }
+ const createOption = createHttpAuthOptionFunctions[schemeId];
+ if (!createOption) {
+ throw new Error(`Could not find HttpAuthOption create function for \`${schemeId}\``);
+ }
+ const option = createOption(authParameters);
+ option.schemeId = schemeId;
+ option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
+ options.push(option);
+ }
+ return options;
+ };
+ return endpointRuleSetHttpAuthSchemeProvider;
+};
+const _defaultS3HttpAuthSchemeProvider = (authParameters) => {
+ const options = [];
+ switch (authParameters.operation) {
+ default: {
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
+ options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
+ }
+ }
+ return options;
+};
+exports.defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultS3HttpAuthSchemeProvider, {
+ "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
+ "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
+});
+const resolveHttpAuthSchemeConfig = (config) => {
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
+ const config_1 = (0, core_1.resolveAwsSdkSigV4AConfig)(config_0);
+ return Object.assign(config_1, {});
+};
+exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
+
+
+/***/ }),
+
+/***/ 3722:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defaultEndpointResolver = void 0;
+const util_endpoints_1 = __nccwpck_require__(13350);
+const util_endpoints_2 = __nccwpck_require__(45473);
+const ruleset_1 = __nccwpck_require__(76114);
+const cache = new util_endpoints_2.EndpointCache({
+ size: 50,
+ params: [
+ "Accelerate",
+ "Bucket",
+ "DisableAccessPoints",
+ "DisableMultiRegionAccessPoints",
+ "DisableS3ExpressSessionAuth",
+ "Endpoint",
+ "ForcePathStyle",
+ "Region",
+ "UseArnRegion",
+ "UseDualStack",
+ "UseFIPS",
+ "UseGlobalEndpoint",
+ "UseObjectLambdaEndpoint",
+ "UseS3ExpressControlEndpoint",
+ ],
+});
+const defaultEndpointResolver = (endpointParams, context = {}) => {
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
+ endpointParams: endpointParams,
+ logger: context.logger,
+ }));
+};
+exports.defaultEndpointResolver = defaultEndpointResolver;
+util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
+
+
+/***/ }),
+
+/***/ 76114:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ruleSet = void 0;
+const cp = "required", cq = "type", cr = "rules", cs = "conditions", ct = "fn", cu = "argv", cv = "ref", cw = "assign", cx = "url", cy = "properties", cz = "backend", cA = "authSchemes", cB = "disableDoubleEncoding", cC = "signingName", cD = "signingRegion", cE = "headers", cF = "signingRegionSet";
+const a = 6, b = false, c = true, d = "isSet", e = "booleanEquals", f = "error", g = "aws.partition", h = "stringEquals", i = "getAttr", j = "name", k = "substring", l = "bucketSuffix", m = "parseURL", n = "endpoint", o = "tree", p = "aws.isVirtualHostableS3Bucket", q = "{url#scheme}://{Bucket}.{url#authority}{url#path}", r = "not", s = "accessPointSuffix", t = "{url#scheme}://{url#authority}{url#path}", u = "hardwareType", v = "regionPrefix", w = "bucketAliasSuffix", x = "outpostId", y = "isValidHostLabel", z = "sigv4a", A = "s3-outposts", B = "s3", C = "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}", D = "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}", E = "https://{Bucket}.s3.{partitionResult#dnsSuffix}", F = "aws.parseArn", G = "bucketArn", H = "arnType", I = "", J = "s3-object-lambda", K = "accesspoint", L = "accessPointName", M = "{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}", N = "mrapPartition", O = "outpostType", P = "arnPrefix", Q = "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", R = "https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", S = "https://s3.{partitionResult#dnsSuffix}", T = { [cp]: false, [cq]: "String" }, U = { [cp]: true, "default": false, [cq]: "Boolean" }, V = { [cp]: false, [cq]: "Boolean" }, W = { [ct]: e, [cu]: [{ [cv]: "Accelerate" }, true] }, X = { [ct]: e, [cu]: [{ [cv]: "UseFIPS" }, true] }, Y = { [ct]: e, [cu]: [{ [cv]: "UseDualStack" }, true] }, Z = { [ct]: d, [cu]: [{ [cv]: "Endpoint" }] }, aa = { [ct]: g, [cu]: [{ [cv]: "Region" }], [cw]: "partitionResult" }, ab = { [ct]: h, [cu]: [{ [ct]: i, [cu]: [{ [cv]: "partitionResult" }, j] }, "aws-cn"] }, ac = { [ct]: d, [cu]: [{ [cv]: "Bucket" }] }, ad = { [cv]: "Bucket" }, ae = { [cs]: [Y], [f]: "S3Express does not support Dual-stack.", [cq]: f }, af = { [cs]: [W], [f]: "S3Express does not support S3 Accelerate.", [cq]: f }, ag = { [cs]: [Z, { [ct]: m, [cu]: [{ [cv]: "Endpoint" }], [cw]: "url" }], [cr]: [{ [cs]: [{ [ct]: d, [cu]: [{ [cv]: "DisableS3ExpressSessionAuth" }] }, { [ct]: e, [cu]: [{ [cv]: "DisableS3ExpressSessionAuth" }, true] }], [cr]: [{ [cs]: [{ [ct]: e, [cu]: [{ [ct]: i, [cu]: [{ [cv]: "url" }, "isIp"] }, true] }], [cr]: [{ [cs]: [{ [ct]: "uriEncode", [cu]: [ad], [cw]: "uri_encoded_bucket" }], [cr]: [{ [n]: { [cx]: "{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}", [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j]: "sigv4", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n }], [cq]: o }], [cq]: o }, { [cs]: [{ [ct]: p, [cu]: [ad, false] }], [cr]: [{ [n]: { [cx]: q, [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j]: "sigv4", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n }], [cq]: o }, { [f]: "S3Express bucket name is not a valid virtual hostable name.", [cq]: f }], [cq]: o }, { [cs]: [{ [ct]: e, [cu]: [{ [ct]: i, [cu]: [{ [cv]: "url" }, "isIp"] }, true] }], [cr]: [{ [cs]: [{ [ct]: "uriEncode", [cu]: [ad], [cw]: "uri_encoded_bucket" }], [cr]: [{ [n]: { [cx]: "{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}", [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j]: "sigv4-s3express", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n }], [cq]: o }], [cq]: o }, { [cs]: [{ [ct]: p, [cu]: [ad, false] }], [cr]: [{ [n]: { [cx]: q, [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j]: "sigv4-s3express", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n }], [cq]: o }, { [f]: "S3Express bucket name is not a valid virtual hostable name.", [cq]: f }], [cq]: o }, ah = { [ct]: m, [cu]: [{ [cv]: "Endpoint" }], [cw]: "url" }, ai = { [ct]: e, [cu]: [{ [ct]: i, [cu]: [{ [cv]: "url" }, "isIp"] }, true] }, aj = { [cv]: "url" }, ak = { [ct]: "uriEncode", [cu]: [ad], [cw]: "uri_encoded_bucket" }, al = { [cz]: "S3Express", [cA]: [{ [cB]: true, [j]: "sigv4", [cC]: "s3express", [cD]: "{Region}" }] }, am = {}, an = { [ct]: p, [cu]: [ad, false] }, ao = { [f]: "S3Express bucket name is not a valid virtual hostable name.", [cq]: f }, ap = { [ct]: d, [cu]: [{ [cv]: "UseS3ExpressControlEndpoint" }] }, aq = { [ct]: e, [cu]: [{ [cv]: "UseS3ExpressControlEndpoint" }, true] }, ar = { [ct]: r, [cu]: [Z] }, as = { [f]: "Unrecognized S3Express bucket name format.", [cq]: f }, at = { [ct]: r, [cu]: [ac] }, au = { [cv]: u }, av = { [cs]: [ar], [f]: "Expected a endpoint to be specified but no endpoint was found", [cq]: f }, aw = { [cA]: [{ [cB]: true, [j]: z, [cC]: A, [cF]: ["*"] }, { [cB]: true, [j]: "sigv4", [cC]: A, [cD]: "{Region}" }] }, ax = { [ct]: e, [cu]: [{ [cv]: "ForcePathStyle" }, false] }, ay = { [cv]: "ForcePathStyle" }, az = { [ct]: e, [cu]: [{ [cv]: "Accelerate" }, false] }, aA = { [ct]: h, [cu]: [{ [cv]: "Region" }, "aws-global"] }, aB = { [cA]: [{ [cB]: true, [j]: "sigv4", [cC]: B, [cD]: "us-east-1" }] }, aC = { [ct]: r, [cu]: [aA] }, aD = { [ct]: e, [cu]: [{ [cv]: "UseGlobalEndpoint" }, true] }, aE = { [cx]: "https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cy]: { [cA]: [{ [cB]: true, [j]: "sigv4", [cC]: B, [cD]: "{Region}" }] }, [cE]: {} }, aF = { [cA]: [{ [cB]: true, [j]: "sigv4", [cC]: B, [cD]: "{Region}" }] }, aG = { [ct]: e, [cu]: [{ [cv]: "UseGlobalEndpoint" }, false] }, aH = { [ct]: e, [cu]: [{ [cv]: "UseDualStack" }, false] }, aI = { [cx]: "https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} }, aJ = { [ct]: e, [cu]: [{ [cv]: "UseFIPS" }, false] }, aK = { [cx]: "https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} }, aL = { [cx]: "https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} }, aM = { [ct]: e, [cu]: [{ [ct]: i, [cu]: [aj, "isIp"] }, false] }, aN = { [cx]: C, [cy]: aF, [cE]: {} }, aO = { [cx]: q, [cy]: aF, [cE]: {} }, aP = { [n]: aO, [cq]: n }, aQ = { [cx]: D, [cy]: aF, [cE]: {} }, aR = { [cx]: "https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} }, aS = { [f]: "Invalid region: region was not a valid DNS name.", [cq]: f }, aT = { [cv]: G }, aU = { [cv]: H }, aV = { [ct]: i, [cu]: [aT, "service"] }, aW = { [cv]: L }, aX = { [cs]: [Y], [f]: "S3 Object Lambda does not support Dual-stack", [cq]: f }, aY = { [cs]: [W], [f]: "S3 Object Lambda does not support S3 Accelerate", [cq]: f }, aZ = { [cs]: [{ [ct]: d, [cu]: [{ [cv]: "DisableAccessPoints" }] }, { [ct]: e, [cu]: [{ [cv]: "DisableAccessPoints" }, true] }], [f]: "Access points are not supported for this operation", [cq]: f }, ba = { [cs]: [{ [ct]: d, [cu]: [{ [cv]: "UseArnRegion" }] }, { [ct]: e, [cu]: [{ [cv]: "UseArnRegion" }, false] }, { [ct]: r, [cu]: [{ [ct]: h, [cu]: [{ [ct]: i, [cu]: [aT, "region"] }, "{Region}"] }] }], [f]: "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [cq]: f }, bb = { [ct]: i, [cu]: [{ [cv]: "bucketPartition" }, j] }, bc = { [ct]: i, [cu]: [aT, "accountId"] }, bd = { [cA]: [{ [cB]: true, [j]: "sigv4", [cC]: J, [cD]: "{bucketArn#region}" }] }, be = { [f]: "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`", [cq]: f }, bf = { [f]: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", [cq]: f }, bg = { [f]: "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", [cq]: f }, bh = { [f]: "Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`", [cq]: f }, bi = { [f]: "Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.", [cq]: f }, bj = { [f]: "Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided", [cq]: f }, bk = { [cA]: [{ [cB]: true, [j]: "sigv4", [cC]: B, [cD]: "{bucketArn#region}" }] }, bl = { [cA]: [{ [cB]: true, [j]: z, [cC]: A, [cF]: ["*"] }, { [cB]: true, [j]: "sigv4", [cC]: A, [cD]: "{bucketArn#region}" }] }, bm = { [ct]: F, [cu]: [ad] }, bn = { [cx]: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aF, [cE]: {} }, bo = { [cx]: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aF, [cE]: {} }, bp = { [cx]: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aF, [cE]: {} }, bq = { [cx]: Q, [cy]: aF, [cE]: {} }, br = { [cx]: "https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aF, [cE]: {} }, bs = { [cv]: "UseObjectLambdaEndpoint" }, bt = { [cA]: [{ [cB]: true, [j]: "sigv4", [cC]: J, [cD]: "{Region}" }] }, bu = { [cx]: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} }, bv = { [cx]: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} }, bw = { [cx]: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} }, bx = { [cx]: t, [cy]: aF, [cE]: {} }, by = { [cx]: "https://s3.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} }, bz = [{ [cv]: "Region" }], bA = [{ [cv]: "Endpoint" }], bB = [ad], bC = [Y], bD = [W], bE = [Z, ah], bF = [{ [ct]: d, [cu]: [{ [cv]: "DisableS3ExpressSessionAuth" }] }, { [ct]: e, [cu]: [{ [cv]: "DisableS3ExpressSessionAuth" }, true] }], bG = [ak], bH = [an], bI = [aa], bJ = [X], bK = [{ [ct]: k, [cu]: [ad, 6, 14, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k, [cu]: [ad, 14, 16, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }], bL = [{ [cs]: [X], [n]: { [cx]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}", [cy]: al, [cE]: {} }, [cq]: n }, { [n]: { [cx]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}", [cy]: al, [cE]: {} }, [cq]: n }], bM = [{ [ct]: k, [cu]: [ad, 6, 15, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k, [cu]: [ad, 15, 17, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }], bN = [{ [ct]: k, [cu]: [ad, 6, 19, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k, [cu]: [ad, 19, 21, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }], bO = [{ [ct]: k, [cu]: [ad, 6, 20, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k, [cu]: [ad, 20, 22, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }], bP = [{ [ct]: k, [cu]: [ad, 6, 26, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k, [cu]: [ad, 26, 28, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }], bQ = [{ [cs]: [X], [n]: { [cx]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}", [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j]: "sigv4-s3express", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n }, { [n]: { [cx]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}", [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j]: "sigv4-s3express", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n }], bR = [ad, 0, 7, true], bS = [{ [ct]: k, [cu]: [ad, 7, 15, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k, [cu]: [ad, 15, 17, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }], bT = [{ [ct]: k, [cu]: [ad, 7, 16, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k, [cu]: [ad, 16, 18, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }], bU = [{ [ct]: k, [cu]: [ad, 7, 20, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k, [cu]: [ad, 20, 22, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }], bV = [{ [ct]: k, [cu]: [ad, 7, 21, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k, [cu]: [ad, 21, 23, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }], bW = [{ [ct]: k, [cu]: [ad, 7, 27, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k, [cu]: [ad, 27, 29, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }], bX = [ac], bY = [{ [ct]: y, [cu]: [{ [cv]: x }, false] }], bZ = [{ [ct]: h, [cu]: [{ [cv]: v }, "beta"] }], ca = ["*"], cb = [{ [ct]: y, [cu]: [{ [cv]: "Region" }, false] }], cc = [{ [ct]: h, [cu]: [{ [cv]: "Region" }, "us-east-1"] }], cd = [{ [ct]: h, [cu]: [aU, K] }], ce = [{ [ct]: i, [cu]: [aT, "resourceId[1]"], [cw]: L }, { [ct]: r, [cu]: [{ [ct]: h, [cu]: [aW, I] }] }], cf = [aT, "resourceId[1]"], cg = [{ [ct]: r, [cu]: [{ [ct]: h, [cu]: [{ [ct]: i, [cu]: [aT, "region"] }, I] }] }], ch = [{ [ct]: r, [cu]: [{ [ct]: d, [cu]: [{ [ct]: i, [cu]: [aT, "resourceId[2]"] }] }] }], ci = [aT, "resourceId[2]"], cj = [{ [ct]: g, [cu]: [{ [ct]: i, [cu]: [aT, "region"] }], [cw]: "bucketPartition" }], ck = [{ [ct]: h, [cu]: [bb, { [ct]: i, [cu]: [{ [cv]: "partitionResult" }, j] }] }], cl = [{ [ct]: y, [cu]: [{ [ct]: i, [cu]: [aT, "region"] }, true] }], cm = [{ [ct]: y, [cu]: [bc, false] }], cn = [{ [ct]: y, [cu]: [aW, false] }], co = [{ [ct]: y, [cu]: [{ [cv]: "Region" }, true] }];
+const _data = { version: "1.0", parameters: { Bucket: T, Region: T, UseFIPS: U, UseDualStack: U, Endpoint: T, ForcePathStyle: U, Accelerate: U, UseGlobalEndpoint: U, UseObjectLambdaEndpoint: V, Key: T, Prefix: T, CopySource: T, DisableAccessPoints: V, DisableMultiRegionAccessPoints: U, UseArnRegion: V, UseS3ExpressControlEndpoint: V, DisableS3ExpressSessionAuth: V }, [cr]: [{ [cs]: [{ [ct]: d, [cu]: bz }], [cr]: [{ [cs]: [W, X], error: "Accelerate cannot be used with FIPS", [cq]: f }, { [cs]: [Y, Z], error: "Cannot set dual-stack in combination with a custom endpoint.", [cq]: f }, { [cs]: [Z, X], error: "A custom endpoint cannot be combined with FIPS", [cq]: f }, { [cs]: [Z, W], error: "A custom endpoint cannot be combined with S3 Accelerate", [cq]: f }, { [cs]: [X, aa, ab], error: "Partition does not support FIPS", [cq]: f }, { [cs]: [ac, { [ct]: k, [cu]: [ad, 0, a, c], [cw]: l }, { [ct]: h, [cu]: [{ [cv]: l }, "--x-s3"] }], [cr]: [ae, af, ag, { [cs]: [ap, aq], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: [ak, ar], [cr]: [{ [cs]: bJ, endpoint: { [cx]: "https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: al, [cE]: am }, [cq]: n }, { endpoint: { [cx]: "https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: al, [cE]: am }, [cq]: n }], [cq]: o }], [cq]: o }], [cq]: o }, { [cs]: bH, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: bF, [cr]: [{ [cs]: bK, [cr]: bL, [cq]: o }, { [cs]: bM, [cr]: bL, [cq]: o }, { [cs]: bN, [cr]: bL, [cq]: o }, { [cs]: bO, [cr]: bL, [cq]: o }, { [cs]: bP, [cr]: bL, [cq]: o }, as], [cq]: o }, { [cs]: bK, [cr]: bQ, [cq]: o }, { [cs]: bM, [cr]: bQ, [cq]: o }, { [cs]: bN, [cr]: bQ, [cq]: o }, { [cs]: bO, [cr]: bQ, [cq]: o }, { [cs]: bP, [cr]: bQ, [cq]: o }, as], [cq]: o }], [cq]: o }, ao], [cq]: o }, { [cs]: [ac, { [ct]: k, [cu]: bR, [cw]: s }, { [ct]: h, [cu]: [{ [cv]: s }, "--xa-s3"] }], [cr]: [ae, af, ag, { [cs]: bH, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: bF, [cr]: [{ [cs]: bS, [cr]: bL, [cq]: o }, { [cs]: bT, [cr]: bL, [cq]: o }, { [cs]: bU, [cr]: bL, [cq]: o }, { [cs]: bV, [cr]: bL, [cq]: o }, { [cs]: bW, [cr]: bL, [cq]: o }, as], [cq]: o }, { [cs]: bS, [cr]: bQ, [cq]: o }, { [cs]: bT, [cr]: bQ, [cq]: o }, { [cs]: bU, [cr]: bQ, [cq]: o }, { [cs]: bV, [cr]: bQ, [cq]: o }, { [cs]: bW, [cr]: bQ, [cq]: o }, as], [cq]: o }], [cq]: o }, ao], [cq]: o }, { [cs]: [at, ap, aq], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: bE, endpoint: { [cx]: t, [cy]: al, [cE]: am }, [cq]: n }, { [cs]: bJ, endpoint: { [cx]: "https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}", [cy]: al, [cE]: am }, [cq]: n }, { endpoint: { [cx]: "https://s3express-control.{Region}.{partitionResult#dnsSuffix}", [cy]: al, [cE]: am }, [cq]: n }], [cq]: o }], [cq]: o }, { [cs]: [ac, { [ct]: k, [cu]: [ad, 49, 50, c], [cw]: u }, { [ct]: k, [cu]: [ad, 8, 12, c], [cw]: v }, { [ct]: k, [cu]: bR, [cw]: w }, { [ct]: k, [cu]: [ad, 32, 49, c], [cw]: x }, { [ct]: g, [cu]: bz, [cw]: "regionPartition" }, { [ct]: h, [cu]: [{ [cv]: w }, "--op-s3"] }], [cr]: [{ [cs]: bY, [cr]: [{ [cs]: [{ [ct]: h, [cu]: [au, "e"] }], [cr]: [{ [cs]: bZ, [cr]: [av, { [cs]: bE, endpoint: { [cx]: "https://{Bucket}.ec2.{url#authority}", [cy]: aw, [cE]: am }, [cq]: n }], [cq]: o }, { endpoint: { [cx]: "https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cy]: aw, [cE]: am }, [cq]: n }], [cq]: o }, { [cs]: [{ [ct]: h, [cu]: [au, "o"] }], [cr]: [{ [cs]: bZ, [cr]: [av, { [cs]: bE, endpoint: { [cx]: "https://{Bucket}.op-{outpostId}.{url#authority}", [cy]: aw, [cE]: am }, [cq]: n }], [cq]: o }, { endpoint: { [cx]: "https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cy]: aw, [cE]: am }, [cq]: n }], [cq]: o }, { error: "Unrecognized hardware type: \"Expected hardware type o or e but got {hardwareType}\"", [cq]: f }], [cq]: o }, { error: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.", [cq]: f }], [cq]: o }, { [cs]: bX, [cr]: [{ [cs]: [Z, { [ct]: r, [cu]: [{ [ct]: d, [cu]: [{ [ct]: m, [cu]: bA }] }] }], error: "Custom endpoint `{Endpoint}` was not a valid URI", [cq]: f }, { [cs]: [ax, an], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: cb, [cr]: [{ [cs]: [W, ab], error: "S3 Accelerate cannot be used in this region", [cq]: f }, { [cs]: [Y, X, az, ar, aA], endpoint: { [cx]: "https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [Y, X, az, ar, aC, aD], [cr]: [{ endpoint: aE, [cq]: n }], [cq]: o }, { [cs]: [Y, X, az, ar, aC, aG], endpoint: aE, [cq]: n }, { [cs]: [aH, X, az, ar, aA], endpoint: { [cx]: "https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aH, X, az, ar, aC, aD], [cr]: [{ endpoint: aI, [cq]: n }], [cq]: o }, { [cs]: [aH, X, az, ar, aC, aG], endpoint: aI, [cq]: n }, { [cs]: [Y, aJ, W, ar, aA], endpoint: { [cx]: "https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [Y, aJ, W, ar, aC, aD], [cr]: [{ endpoint: aK, [cq]: n }], [cq]: o }, { [cs]: [Y, aJ, W, ar, aC, aG], endpoint: aK, [cq]: n }, { [cs]: [Y, aJ, az, ar, aA], endpoint: { [cx]: "https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [Y, aJ, az, ar, aC, aD], [cr]: [{ endpoint: aL, [cq]: n }], [cq]: o }, { [cs]: [Y, aJ, az, ar, aC, aG], endpoint: aL, [cq]: n }, { [cs]: [aH, aJ, az, Z, ah, ai, aA], endpoint: { [cx]: C, [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aH, aJ, az, Z, ah, aM, aA], endpoint: { [cx]: q, [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aH, aJ, az, Z, ah, ai, aC, aD], [cr]: [{ [cs]: cc, endpoint: aN, [cq]: n }, { endpoint: aN, [cq]: n }], [cq]: o }, { [cs]: [aH, aJ, az, Z, ah, aM, aC, aD], [cr]: [{ [cs]: cc, endpoint: aO, [cq]: n }, aP], [cq]: o }, { [cs]: [aH, aJ, az, Z, ah, ai, aC, aG], endpoint: aN, [cq]: n }, { [cs]: [aH, aJ, az, Z, ah, aM, aC, aG], endpoint: aO, [cq]: n }, { [cs]: [aH, aJ, W, ar, aA], endpoint: { [cx]: D, [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aH, aJ, W, ar, aC, aD], [cr]: [{ [cs]: cc, endpoint: aQ, [cq]: n }, { endpoint: aQ, [cq]: n }], [cq]: o }, { [cs]: [aH, aJ, W, ar, aC, aG], endpoint: aQ, [cq]: n }, { [cs]: [aH, aJ, az, ar, aA], endpoint: { [cx]: E, [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aH, aJ, az, ar, aC, aD], [cr]: [{ [cs]: cc, endpoint: { [cx]: E, [cy]: aF, [cE]: am }, [cq]: n }, { endpoint: aR, [cq]: n }], [cq]: o }, { [cs]: [aH, aJ, az, ar, aC, aG], endpoint: aR, [cq]: n }], [cq]: o }, aS], [cq]: o }], [cq]: o }, { [cs]: [Z, ah, { [ct]: h, [cu]: [{ [ct]: i, [cu]: [aj, "scheme"] }, "http"] }, { [ct]: p, [cu]: [ad, c] }, ax, aJ, aH, az], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: cb, [cr]: [aP], [cq]: o }, aS], [cq]: o }], [cq]: o }, { [cs]: [ax, { [ct]: F, [cu]: bB, [cw]: G }], [cr]: [{ [cs]: [{ [ct]: i, [cu]: [aT, "resourceId[0]"], [cw]: H }, { [ct]: r, [cu]: [{ [ct]: h, [cu]: [aU, I] }] }], [cr]: [{ [cs]: [{ [ct]: h, [cu]: [aV, J] }], [cr]: [{ [cs]: cd, [cr]: [{ [cs]: ce, [cr]: [aX, aY, { [cs]: cg, [cr]: [aZ, { [cs]: ch, [cr]: [ba, { [cs]: cj, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: ck, [cr]: [{ [cs]: cl, [cr]: [{ [cs]: [{ [ct]: h, [cu]: [bc, I] }], error: "Invalid ARN: Missing account id", [cq]: f }, { [cs]: cm, [cr]: [{ [cs]: cn, [cr]: [{ [cs]: bE, endpoint: { [cx]: M, [cy]: bd, [cE]: am }, [cq]: n }, { [cs]: bJ, endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bd, [cE]: am }, [cq]: n }, { endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bd, [cE]: am }, [cq]: n }], [cq]: o }, be], [cq]: o }, bf], [cq]: o }, bg], [cq]: o }, bh], [cq]: o }], [cq]: o }], [cq]: o }, bi], [cq]: o }, { error: "Invalid ARN: bucket ARN is missing a region", [cq]: f }], [cq]: o }, bj], [cq]: o }, { error: "Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`", [cq]: f }], [cq]: o }, { [cs]: cd, [cr]: [{ [cs]: ce, [cr]: [{ [cs]: cg, [cr]: [{ [cs]: cd, [cr]: [{ [cs]: cg, [cr]: [aZ, { [cs]: ch, [cr]: [ba, { [cs]: cj, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: [{ [ct]: h, [cu]: [bb, "{partitionResult#name}"] }], [cr]: [{ [cs]: cl, [cr]: [{ [cs]: [{ [ct]: h, [cu]: [aV, B] }], [cr]: [{ [cs]: cm, [cr]: [{ [cs]: cn, [cr]: [{ [cs]: bD, error: "Access Points do not support S3 Accelerate", [cq]: f }, { [cs]: [X, Y], endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bk, [cE]: am }, [cq]: n }, { [cs]: [X, aH], endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bk, [cE]: am }, [cq]: n }, { [cs]: [aJ, Y], endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bk, [cE]: am }, [cq]: n }, { [cs]: [aJ, aH, Z, ah], endpoint: { [cx]: M, [cy]: bk, [cE]: am }, [cq]: n }, { [cs]: [aJ, aH], endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bk, [cE]: am }, [cq]: n }], [cq]: o }, be], [cq]: o }, bf], [cq]: o }, { error: "Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}", [cq]: f }], [cq]: o }, bg], [cq]: o }, bh], [cq]: o }], [cq]: o }], [cq]: o }, bi], [cq]: o }], [cq]: o }], [cq]: o }, { [cs]: [{ [ct]: y, [cu]: [aW, c] }], [cr]: [{ [cs]: bC, error: "S3 MRAP does not support dual-stack", [cq]: f }, { [cs]: bJ, error: "S3 MRAP does not support FIPS", [cq]: f }, { [cs]: bD, error: "S3 MRAP does not support S3 Accelerate", [cq]: f }, { [cs]: [{ [ct]: e, [cu]: [{ [cv]: "DisableMultiRegionAccessPoints" }, c] }], error: "Invalid configuration: Multi-Region Access Point ARNs are disabled.", [cq]: f }, { [cs]: [{ [ct]: g, [cu]: bz, [cw]: N }], [cr]: [{ [cs]: [{ [ct]: h, [cu]: [{ [ct]: i, [cu]: [{ [cv]: N }, j] }, { [ct]: i, [cu]: [aT, "partition"] }] }], [cr]: [{ endpoint: { [cx]: "https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}", [cy]: { [cA]: [{ [cB]: c, name: z, [cC]: B, [cF]: ca }] }, [cE]: am }, [cq]: n }], [cq]: o }, { error: "Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`", [cq]: f }], [cq]: o }], [cq]: o }, { error: "Invalid Access Point Name", [cq]: f }], [cq]: o }, bj], [cq]: o }, { [cs]: [{ [ct]: h, [cu]: [aV, A] }], [cr]: [{ [cs]: bC, error: "S3 Outposts does not support Dual-stack", [cq]: f }, { [cs]: bJ, error: "S3 Outposts does not support FIPS", [cq]: f }, { [cs]: bD, error: "S3 Outposts does not support S3 Accelerate", [cq]: f }, { [cs]: [{ [ct]: d, [cu]: [{ [ct]: i, [cu]: [aT, "resourceId[4]"] }] }], error: "Invalid Arn: Outpost Access Point ARN contains sub resources", [cq]: f }, { [cs]: [{ [ct]: i, [cu]: cf, [cw]: x }], [cr]: [{ [cs]: bY, [cr]: [ba, { [cs]: cj, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: ck, [cr]: [{ [cs]: cl, [cr]: [{ [cs]: cm, [cr]: [{ [cs]: [{ [ct]: i, [cu]: ci, [cw]: O }], [cr]: [{ [cs]: [{ [ct]: i, [cu]: [aT, "resourceId[3]"], [cw]: L }], [cr]: [{ [cs]: [{ [ct]: h, [cu]: [{ [cv]: O }, K] }], [cr]: [{ [cs]: bE, endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}", [cy]: bl, [cE]: am }, [cq]: n }, { endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bl, [cE]: am }, [cq]: n }], [cq]: o }, { error: "Expected an outpost type `accesspoint`, found {outpostType}", [cq]: f }], [cq]: o }, { error: "Invalid ARN: expected an access point name", [cq]: f }], [cq]: o }, { error: "Invalid ARN: Expected a 4-component resource", [cq]: f }], [cq]: o }, bf], [cq]: o }, bg], [cq]: o }, bh], [cq]: o }], [cq]: o }], [cq]: o }, { error: "Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`", [cq]: f }], [cq]: o }, { error: "Invalid ARN: The Outpost Id was not set", [cq]: f }], [cq]: o }, { error: "Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})", [cq]: f }], [cq]: o }, { error: "Invalid ARN: No ARN type specified", [cq]: f }], [cq]: o }, { [cs]: [{ [ct]: k, [cu]: [ad, 0, 4, b], [cw]: P }, { [ct]: h, [cu]: [{ [cv]: P }, "arn:"] }, { [ct]: r, [cu]: [{ [ct]: d, [cu]: [bm] }] }], error: "Invalid ARN: `{Bucket}` was not a valid ARN", [cq]: f }, { [cs]: [{ [ct]: e, [cu]: [ay, c] }, bm], error: "Path-style addressing cannot be used with ARN buckets", [cq]: f }, { [cs]: bG, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: [az], [cr]: [{ [cs]: [Y, ar, X, aA], endpoint: { [cx]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [Y, ar, X, aC, aD], [cr]: [{ endpoint: bn, [cq]: n }], [cq]: o }, { [cs]: [Y, ar, X, aC, aG], endpoint: bn, [cq]: n }, { [cs]: [aH, ar, X, aA], endpoint: { [cx]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aH, ar, X, aC, aD], [cr]: [{ endpoint: bo, [cq]: n }], [cq]: o }, { [cs]: [aH, ar, X, aC, aG], endpoint: bo, [cq]: n }, { [cs]: [Y, ar, aJ, aA], endpoint: { [cx]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [Y, ar, aJ, aC, aD], [cr]: [{ endpoint: bp, [cq]: n }], [cq]: o }, { [cs]: [Y, ar, aJ, aC, aG], endpoint: bp, [cq]: n }, { [cs]: [aH, Z, ah, aJ, aA], endpoint: { [cx]: Q, [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aH, Z, ah, aJ, aC, aD], [cr]: [{ [cs]: cc, endpoint: bq, [cq]: n }, { endpoint: bq, [cq]: n }], [cq]: o }, { [cs]: [aH, Z, ah, aJ, aC, aG], endpoint: bq, [cq]: n }, { [cs]: [aH, ar, aJ, aA], endpoint: { [cx]: R, [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aH, ar, aJ, aC, aD], [cr]: [{ [cs]: cc, endpoint: { [cx]: R, [cy]: aF, [cE]: am }, [cq]: n }, { endpoint: br, [cq]: n }], [cq]: o }, { [cs]: [aH, ar, aJ, aC, aG], endpoint: br, [cq]: n }], [cq]: o }, { error: "Path-style addressing cannot be used with S3 Accelerate", [cq]: f }], [cq]: o }], [cq]: o }], [cq]: o }, { [cs]: [{ [ct]: d, [cu]: [bs] }, { [ct]: e, [cu]: [bs, c] }], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: co, [cr]: [aX, aY, { [cs]: bE, endpoint: { [cx]: t, [cy]: bt, [cE]: am }, [cq]: n }, { [cs]: bJ, endpoint: { [cx]: "https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}", [cy]: bt, [cE]: am }, [cq]: n }, { endpoint: { [cx]: "https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}", [cy]: bt, [cE]: am }, [cq]: n }], [cq]: o }, aS], [cq]: o }], [cq]: o }, { [cs]: [at], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: co, [cr]: [{ [cs]: [X, Y, ar, aA], endpoint: { [cx]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [X, Y, ar, aC, aD], [cr]: [{ endpoint: bu, [cq]: n }], [cq]: o }, { [cs]: [X, Y, ar, aC, aG], endpoint: bu, [cq]: n }, { [cs]: [X, aH, ar, aA], endpoint: { [cx]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [X, aH, ar, aC, aD], [cr]: [{ endpoint: bv, [cq]: n }], [cq]: o }, { [cs]: [X, aH, ar, aC, aG], endpoint: bv, [cq]: n }, { [cs]: [aJ, Y, ar, aA], endpoint: { [cx]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aJ, Y, ar, aC, aD], [cr]: [{ endpoint: bw, [cq]: n }], [cq]: o }, { [cs]: [aJ, Y, ar, aC, aG], endpoint: bw, [cq]: n }, { [cs]: [aJ, aH, Z, ah, aA], endpoint: { [cx]: t, [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aJ, aH, Z, ah, aC, aD], [cr]: [{ [cs]: cc, endpoint: bx, [cq]: n }, { endpoint: bx, [cq]: n }], [cq]: o }, { [cs]: [aJ, aH, Z, ah, aC, aG], endpoint: bx, [cq]: n }, { [cs]: [aJ, aH, ar, aA], endpoint: { [cx]: S, [cy]: aB, [cE]: am }, [cq]: n }, { [cs]: [aJ, aH, ar, aC, aD], [cr]: [{ [cs]: cc, endpoint: { [cx]: S, [cy]: aF, [cE]: am }, [cq]: n }, { endpoint: by, [cq]: n }], [cq]: o }, { [cs]: [aJ, aH, ar, aC, aG], endpoint: by, [cq]: n }], [cq]: o }, aS], [cq]: o }], [cq]: o }], [cq]: o }, { error: "A region must be set when sending requests to S3.", [cq]: f }] };
+exports.ruleSet = _data;
+
+
+/***/ }),
+
+/***/ 19250:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ AbortMultipartUploadCommand: () => AbortMultipartUploadCommand,
+ AnalyticsFilter: () => AnalyticsFilter,
+ AnalyticsS3ExportFileFormat: () => AnalyticsS3ExportFileFormat,
+ ArchiveStatus: () => ArchiveStatus,
+ BucketAccelerateStatus: () => BucketAccelerateStatus,
+ BucketAlreadyExists: () => BucketAlreadyExists,
+ BucketAlreadyOwnedByYou: () => BucketAlreadyOwnedByYou,
+ BucketCannedACL: () => BucketCannedACL,
+ BucketLocationConstraint: () => BucketLocationConstraint,
+ BucketLogsPermission: () => BucketLogsPermission,
+ BucketType: () => BucketType,
+ BucketVersioningStatus: () => BucketVersioningStatus,
+ ChecksumAlgorithm: () => ChecksumAlgorithm,
+ ChecksumMode: () => ChecksumMode,
+ ChecksumType: () => ChecksumType,
+ CompleteMultipartUploadCommand: () => CompleteMultipartUploadCommand,
+ CompleteMultipartUploadOutputFilterSensitiveLog: () => CompleteMultipartUploadOutputFilterSensitiveLog,
+ CompleteMultipartUploadRequestFilterSensitiveLog: () => CompleteMultipartUploadRequestFilterSensitiveLog,
+ CompressionType: () => CompressionType,
+ CopyObjectCommand: () => CopyObjectCommand,
+ CopyObjectOutputFilterSensitiveLog: () => CopyObjectOutputFilterSensitiveLog,
+ CopyObjectRequestFilterSensitiveLog: () => CopyObjectRequestFilterSensitiveLog,
+ CreateBucketCommand: () => CreateBucketCommand,
+ CreateBucketMetadataTableConfigurationCommand: () => CreateBucketMetadataTableConfigurationCommand,
+ CreateMultipartUploadCommand: () => CreateMultipartUploadCommand,
+ CreateMultipartUploadOutputFilterSensitiveLog: () => CreateMultipartUploadOutputFilterSensitiveLog,
+ CreateMultipartUploadRequestFilterSensitiveLog: () => CreateMultipartUploadRequestFilterSensitiveLog,
+ CreateSessionCommand: () => CreateSessionCommand,
+ CreateSessionOutputFilterSensitiveLog: () => CreateSessionOutputFilterSensitiveLog,
+ CreateSessionRequestFilterSensitiveLog: () => CreateSessionRequestFilterSensitiveLog,
+ DataRedundancy: () => DataRedundancy,
+ DeleteBucketAnalyticsConfigurationCommand: () => DeleteBucketAnalyticsConfigurationCommand,
+ DeleteBucketCommand: () => DeleteBucketCommand,
+ DeleteBucketCorsCommand: () => DeleteBucketCorsCommand,
+ DeleteBucketEncryptionCommand: () => DeleteBucketEncryptionCommand,
+ DeleteBucketIntelligentTieringConfigurationCommand: () => DeleteBucketIntelligentTieringConfigurationCommand,
+ DeleteBucketInventoryConfigurationCommand: () => DeleteBucketInventoryConfigurationCommand,
+ DeleteBucketLifecycleCommand: () => DeleteBucketLifecycleCommand,
+ DeleteBucketMetadataTableConfigurationCommand: () => DeleteBucketMetadataTableConfigurationCommand,
+ DeleteBucketMetricsConfigurationCommand: () => DeleteBucketMetricsConfigurationCommand,
+ DeleteBucketOwnershipControlsCommand: () => DeleteBucketOwnershipControlsCommand,
+ DeleteBucketPolicyCommand: () => DeleteBucketPolicyCommand,
+ DeleteBucketReplicationCommand: () => DeleteBucketReplicationCommand,
+ DeleteBucketTaggingCommand: () => DeleteBucketTaggingCommand,
+ DeleteBucketWebsiteCommand: () => DeleteBucketWebsiteCommand,
+ DeleteMarkerReplicationStatus: () => DeleteMarkerReplicationStatus,
+ DeleteObjectCommand: () => DeleteObjectCommand,
+ DeleteObjectTaggingCommand: () => DeleteObjectTaggingCommand,
+ DeleteObjectsCommand: () => DeleteObjectsCommand,
+ DeletePublicAccessBlockCommand: () => DeletePublicAccessBlockCommand,
+ EncodingType: () => EncodingType,
+ EncryptionFilterSensitiveLog: () => EncryptionFilterSensitiveLog,
+ EncryptionTypeMismatch: () => EncryptionTypeMismatch,
+ Event: () => Event,
+ ExistingObjectReplicationStatus: () => ExistingObjectReplicationStatus,
+ ExpirationStatus: () => ExpirationStatus,
+ ExpressionType: () => ExpressionType,
+ FileHeaderInfo: () => FileHeaderInfo,
+ FilterRuleName: () => FilterRuleName,
+ GetBucketAccelerateConfigurationCommand: () => GetBucketAccelerateConfigurationCommand,
+ GetBucketAclCommand: () => GetBucketAclCommand,
+ GetBucketAnalyticsConfigurationCommand: () => GetBucketAnalyticsConfigurationCommand,
+ GetBucketCorsCommand: () => GetBucketCorsCommand,
+ GetBucketEncryptionCommand: () => GetBucketEncryptionCommand,
+ GetBucketEncryptionOutputFilterSensitiveLog: () => GetBucketEncryptionOutputFilterSensitiveLog,
+ GetBucketIntelligentTieringConfigurationCommand: () => GetBucketIntelligentTieringConfigurationCommand,
+ GetBucketInventoryConfigurationCommand: () => GetBucketInventoryConfigurationCommand,
+ GetBucketInventoryConfigurationOutputFilterSensitiveLog: () => GetBucketInventoryConfigurationOutputFilterSensitiveLog,
+ GetBucketLifecycleConfigurationCommand: () => GetBucketLifecycleConfigurationCommand,
+ GetBucketLocationCommand: () => GetBucketLocationCommand,
+ GetBucketLoggingCommand: () => GetBucketLoggingCommand,
+ GetBucketMetadataTableConfigurationCommand: () => GetBucketMetadataTableConfigurationCommand,
+ GetBucketMetricsConfigurationCommand: () => GetBucketMetricsConfigurationCommand,
+ GetBucketNotificationConfigurationCommand: () => GetBucketNotificationConfigurationCommand,
+ GetBucketOwnershipControlsCommand: () => GetBucketOwnershipControlsCommand,
+ GetBucketPolicyCommand: () => GetBucketPolicyCommand,
+ GetBucketPolicyStatusCommand: () => GetBucketPolicyStatusCommand,
+ GetBucketReplicationCommand: () => GetBucketReplicationCommand,
+ GetBucketRequestPaymentCommand: () => GetBucketRequestPaymentCommand,
+ GetBucketTaggingCommand: () => GetBucketTaggingCommand,
+ GetBucketVersioningCommand: () => GetBucketVersioningCommand,
+ GetBucketWebsiteCommand: () => GetBucketWebsiteCommand,
+ GetObjectAclCommand: () => GetObjectAclCommand,
+ GetObjectAttributesCommand: () => GetObjectAttributesCommand,
+ GetObjectAttributesRequestFilterSensitiveLog: () => GetObjectAttributesRequestFilterSensitiveLog,
+ GetObjectCommand: () => GetObjectCommand,
+ GetObjectLegalHoldCommand: () => GetObjectLegalHoldCommand,
+ GetObjectLockConfigurationCommand: () => GetObjectLockConfigurationCommand,
+ GetObjectOutputFilterSensitiveLog: () => GetObjectOutputFilterSensitiveLog,
+ GetObjectRequestFilterSensitiveLog: () => GetObjectRequestFilterSensitiveLog,
+ GetObjectRetentionCommand: () => GetObjectRetentionCommand,
+ GetObjectTaggingCommand: () => GetObjectTaggingCommand,
+ GetObjectTorrentCommand: () => GetObjectTorrentCommand,
+ GetObjectTorrentOutputFilterSensitiveLog: () => GetObjectTorrentOutputFilterSensitiveLog,
+ GetPublicAccessBlockCommand: () => GetPublicAccessBlockCommand,
+ HeadBucketCommand: () => HeadBucketCommand,
+ HeadObjectCommand: () => HeadObjectCommand,
+ HeadObjectOutputFilterSensitiveLog: () => HeadObjectOutputFilterSensitiveLog,
+ HeadObjectRequestFilterSensitiveLog: () => HeadObjectRequestFilterSensitiveLog,
+ IntelligentTieringAccessTier: () => IntelligentTieringAccessTier,
+ IntelligentTieringStatus: () => IntelligentTieringStatus,
+ InvalidObjectState: () => InvalidObjectState,
+ InvalidRequest: () => InvalidRequest,
+ InvalidWriteOffset: () => InvalidWriteOffset,
+ InventoryConfigurationFilterSensitiveLog: () => InventoryConfigurationFilterSensitiveLog,
+ InventoryDestinationFilterSensitiveLog: () => InventoryDestinationFilterSensitiveLog,
+ InventoryEncryptionFilterSensitiveLog: () => InventoryEncryptionFilterSensitiveLog,
+ InventoryFormat: () => InventoryFormat,
+ InventoryFrequency: () => InventoryFrequency,
+ InventoryIncludedObjectVersions: () => InventoryIncludedObjectVersions,
+ InventoryOptionalField: () => InventoryOptionalField,
+ InventoryS3BucketDestinationFilterSensitiveLog: () => InventoryS3BucketDestinationFilterSensitiveLog,
+ JSONType: () => JSONType,
+ ListBucketAnalyticsConfigurationsCommand: () => ListBucketAnalyticsConfigurationsCommand,
+ ListBucketIntelligentTieringConfigurationsCommand: () => ListBucketIntelligentTieringConfigurationsCommand,
+ ListBucketInventoryConfigurationsCommand: () => ListBucketInventoryConfigurationsCommand,
+ ListBucketInventoryConfigurationsOutputFilterSensitiveLog: () => ListBucketInventoryConfigurationsOutputFilterSensitiveLog,
+ ListBucketMetricsConfigurationsCommand: () => ListBucketMetricsConfigurationsCommand,
+ ListBucketsCommand: () => ListBucketsCommand,
+ ListDirectoryBucketsCommand: () => ListDirectoryBucketsCommand,
+ ListMultipartUploadsCommand: () => ListMultipartUploadsCommand,
+ ListObjectVersionsCommand: () => ListObjectVersionsCommand,
+ ListObjectsCommand: () => ListObjectsCommand,
+ ListObjectsV2Command: () => ListObjectsV2Command,
+ ListPartsCommand: () => ListPartsCommand,
+ ListPartsRequestFilterSensitiveLog: () => ListPartsRequestFilterSensitiveLog,
+ LocationType: () => LocationType,
+ MFADelete: () => MFADelete,
+ MFADeleteStatus: () => MFADeleteStatus,
+ MetadataDirective: () => MetadataDirective,
+ MetricsFilter: () => MetricsFilter,
+ MetricsStatus: () => MetricsStatus,
+ NoSuchBucket: () => NoSuchBucket,
+ NoSuchKey: () => NoSuchKey,
+ NoSuchUpload: () => NoSuchUpload,
+ NotFound: () => NotFound,
+ ObjectAlreadyInActiveTierError: () => ObjectAlreadyInActiveTierError,
+ ObjectAttributes: () => ObjectAttributes,
+ ObjectCannedACL: () => ObjectCannedACL,
+ ObjectLockEnabled: () => ObjectLockEnabled,
+ ObjectLockLegalHoldStatus: () => ObjectLockLegalHoldStatus,
+ ObjectLockMode: () => ObjectLockMode,
+ ObjectLockRetentionMode: () => ObjectLockRetentionMode,
+ ObjectNotInActiveTierError: () => ObjectNotInActiveTierError,
+ ObjectOwnership: () => ObjectOwnership,
+ ObjectStorageClass: () => ObjectStorageClass,
+ ObjectVersionStorageClass: () => ObjectVersionStorageClass,
+ OptionalObjectAttributes: () => OptionalObjectAttributes,
+ OutputLocationFilterSensitiveLog: () => OutputLocationFilterSensitiveLog,
+ OwnerOverride: () => OwnerOverride,
+ PartitionDateSource: () => PartitionDateSource,
+ Payer: () => Payer,
+ Permission: () => Permission,
+ Protocol: () => Protocol,
+ PutBucketAccelerateConfigurationCommand: () => PutBucketAccelerateConfigurationCommand,
+ PutBucketAclCommand: () => PutBucketAclCommand,
+ PutBucketAnalyticsConfigurationCommand: () => PutBucketAnalyticsConfigurationCommand,
+ PutBucketCorsCommand: () => PutBucketCorsCommand,
+ PutBucketEncryptionCommand: () => PutBucketEncryptionCommand,
+ PutBucketEncryptionRequestFilterSensitiveLog: () => PutBucketEncryptionRequestFilterSensitiveLog,
+ PutBucketIntelligentTieringConfigurationCommand: () => PutBucketIntelligentTieringConfigurationCommand,
+ PutBucketInventoryConfigurationCommand: () => PutBucketInventoryConfigurationCommand,
+ PutBucketInventoryConfigurationRequestFilterSensitiveLog: () => PutBucketInventoryConfigurationRequestFilterSensitiveLog,
+ PutBucketLifecycleConfigurationCommand: () => PutBucketLifecycleConfigurationCommand,
+ PutBucketLoggingCommand: () => PutBucketLoggingCommand,
+ PutBucketMetricsConfigurationCommand: () => PutBucketMetricsConfigurationCommand,
+ PutBucketNotificationConfigurationCommand: () => PutBucketNotificationConfigurationCommand,
+ PutBucketOwnershipControlsCommand: () => PutBucketOwnershipControlsCommand,
+ PutBucketPolicyCommand: () => PutBucketPolicyCommand,
+ PutBucketReplicationCommand: () => PutBucketReplicationCommand,
+ PutBucketRequestPaymentCommand: () => PutBucketRequestPaymentCommand,
+ PutBucketTaggingCommand: () => PutBucketTaggingCommand,
+ PutBucketVersioningCommand: () => PutBucketVersioningCommand,
+ PutBucketWebsiteCommand: () => PutBucketWebsiteCommand,
+ PutObjectAclCommand: () => PutObjectAclCommand,
+ PutObjectCommand: () => PutObjectCommand,
+ PutObjectLegalHoldCommand: () => PutObjectLegalHoldCommand,
+ PutObjectLockConfigurationCommand: () => PutObjectLockConfigurationCommand,
+ PutObjectOutputFilterSensitiveLog: () => PutObjectOutputFilterSensitiveLog,
+ PutObjectRequestFilterSensitiveLog: () => PutObjectRequestFilterSensitiveLog,
+ PutObjectRetentionCommand: () => PutObjectRetentionCommand,
+ PutObjectTaggingCommand: () => PutObjectTaggingCommand,
+ PutPublicAccessBlockCommand: () => PutPublicAccessBlockCommand,
+ QuoteFields: () => QuoteFields,
+ ReplicaModificationsStatus: () => ReplicaModificationsStatus,
+ ReplicationRuleStatus: () => ReplicationRuleStatus,
+ ReplicationStatus: () => ReplicationStatus,
+ ReplicationTimeStatus: () => ReplicationTimeStatus,
+ RequestCharged: () => RequestCharged,
+ RequestPayer: () => RequestPayer,
+ RestoreObjectCommand: () => RestoreObjectCommand,
+ RestoreObjectRequestFilterSensitiveLog: () => RestoreObjectRequestFilterSensitiveLog,
+ RestoreRequestFilterSensitiveLog: () => RestoreRequestFilterSensitiveLog,
+ RestoreRequestType: () => RestoreRequestType,
+ S3: () => S3,
+ S3Client: () => S3Client,
+ S3LocationFilterSensitiveLog: () => S3LocationFilterSensitiveLog,
+ S3ServiceException: () => S3ServiceException,
+ SSEKMSFilterSensitiveLog: () => SSEKMSFilterSensitiveLog,
+ SelectObjectContentCommand: () => SelectObjectContentCommand,
+ SelectObjectContentEventStream: () => SelectObjectContentEventStream,
+ SelectObjectContentEventStreamFilterSensitiveLog: () => SelectObjectContentEventStreamFilterSensitiveLog,
+ SelectObjectContentOutputFilterSensitiveLog: () => SelectObjectContentOutputFilterSensitiveLog,
+ SelectObjectContentRequestFilterSensitiveLog: () => SelectObjectContentRequestFilterSensitiveLog,
+ ServerSideEncryption: () => ServerSideEncryption,
+ ServerSideEncryptionByDefaultFilterSensitiveLog: () => ServerSideEncryptionByDefaultFilterSensitiveLog,
+ ServerSideEncryptionConfigurationFilterSensitiveLog: () => ServerSideEncryptionConfigurationFilterSensitiveLog,
+ ServerSideEncryptionRuleFilterSensitiveLog: () => ServerSideEncryptionRuleFilterSensitiveLog,
+ SessionCredentialsFilterSensitiveLog: () => SessionCredentialsFilterSensitiveLog,
+ SessionMode: () => SessionMode,
+ SseKmsEncryptedObjectsStatus: () => SseKmsEncryptedObjectsStatus,
+ StorageClass: () => StorageClass,
+ StorageClassAnalysisSchemaVersion: () => StorageClassAnalysisSchemaVersion,
+ TaggingDirective: () => TaggingDirective,
+ Tier: () => Tier,
+ TooManyParts: () => TooManyParts,
+ TransitionDefaultMinimumObjectSize: () => TransitionDefaultMinimumObjectSize,
+ TransitionStorageClass: () => TransitionStorageClass,
+ Type: () => Type,
+ UploadPartCommand: () => UploadPartCommand,
+ UploadPartCopyCommand: () => UploadPartCopyCommand,
+ UploadPartCopyOutputFilterSensitiveLog: () => UploadPartCopyOutputFilterSensitiveLog,
+ UploadPartCopyRequestFilterSensitiveLog: () => UploadPartCopyRequestFilterSensitiveLog,
+ UploadPartOutputFilterSensitiveLog: () => UploadPartOutputFilterSensitiveLog,
+ UploadPartRequestFilterSensitiveLog: () => UploadPartRequestFilterSensitiveLog,
+ WriteGetObjectResponseCommand: () => WriteGetObjectResponseCommand,
+ WriteGetObjectResponseRequestFilterSensitiveLog: () => WriteGetObjectResponseRequestFilterSensitiveLog,
+ __Client: () => import_smithy_client.Client,
+ paginateListBuckets: () => paginateListBuckets,
+ paginateListDirectoryBuckets: () => paginateListDirectoryBuckets,
+ paginateListObjectsV2: () => paginateListObjectsV2,
+ paginateListParts: () => paginateListParts,
+ waitForBucketExists: () => waitForBucketExists,
+ waitForBucketNotExists: () => waitForBucketNotExists,
+ waitForObjectExists: () => waitForObjectExists,
+ waitForObjectNotExists: () => waitForObjectNotExists,
+ waitUntilBucketExists: () => waitUntilBucketExists,
+ waitUntilBucketNotExists: () => waitUntilBucketNotExists,
+ waitUntilObjectExists: () => waitUntilObjectExists,
+ waitUntilObjectNotExists: () => waitUntilObjectNotExists
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/S3Client.ts
+var import_middleware_expect_continue = __nccwpck_require__(81990);
+var import_middleware_flexible_checksums = __nccwpck_require__(13799);
+var import_middleware_host_header = __nccwpck_require__(22545);
+var import_middleware_logger = __nccwpck_require__(20014);
+var import_middleware_recursion_detection = __nccwpck_require__(85525);
+var import_middleware_sdk_s32 = __nccwpck_require__(81139);
+var import_middleware_user_agent = __nccwpck_require__(64688);
+var import_config_resolver = __nccwpck_require__(53098);
+var import_core3 = __nccwpck_require__(55829);
+var import_eventstream_serde_config_resolver = __nccwpck_require__(16181);
+var import_middleware_content_length = __nccwpck_require__(82800);
+
+var import_middleware_retry = __nccwpck_require__(96039);
+
+var import_httpAuthSchemeProvider = __nccwpck_require__(69023);
+
+// src/commands/CreateSessionCommand.ts
+var import_middleware_sdk_s3 = __nccwpck_require__(81139);
+var import_middleware_endpoint = __nccwpck_require__(82918);
+var import_middleware_serde = __nccwpck_require__(81238);
+
+
+// src/endpoint/EndpointParameters.ts
+var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
+ return Object.assign(options, {
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
+ forcePathStyle: options.forcePathStyle ?? false,
+ useAccelerateEndpoint: options.useAccelerateEndpoint ?? false,
+ useGlobalEndpoint: options.useGlobalEndpoint ?? false,
+ disableMultiregionAccessPoints: options.disableMultiregionAccessPoints ?? false,
+ defaultSigningName: "s3"
+ });
+}, "resolveClientEndpointParameters");
+var commonParams = {
+ ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
+ DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
+ Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
+ DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" },
+ UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
+};
+
+// src/models/models_0.ts
+
+
+// src/models/S3ServiceException.ts
+var import_smithy_client = __nccwpck_require__(63570);
+var S3ServiceException = class _S3ServiceException extends import_smithy_client.ServiceException {
+ static {
+ __name(this, "S3ServiceException");
+ }
+ /**
+ * @internal
+ */
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, _S3ServiceException.prototype);
+ }
+};
+
+// src/models/models_0.ts
+var RequestCharged = {
+ requester: "requester"
+};
+var RequestPayer = {
+ requester: "requester"
+};
+var NoSuchUpload = class _NoSuchUpload extends S3ServiceException {
+ static {
+ __name(this, "NoSuchUpload");
+ }
+ name = "NoSuchUpload";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "NoSuchUpload",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _NoSuchUpload.prototype);
+ }
+};
+var BucketAccelerateStatus = {
+ Enabled: "Enabled",
+ Suspended: "Suspended"
+};
+var Type = {
+ AmazonCustomerByEmail: "AmazonCustomerByEmail",
+ CanonicalUser: "CanonicalUser",
+ Group: "Group"
+};
+var Permission = {
+ FULL_CONTROL: "FULL_CONTROL",
+ READ: "READ",
+ READ_ACP: "READ_ACP",
+ WRITE: "WRITE",
+ WRITE_ACP: "WRITE_ACP"
+};
+var OwnerOverride = {
+ Destination: "Destination"
+};
+var ChecksumType = {
+ COMPOSITE: "COMPOSITE",
+ FULL_OBJECT: "FULL_OBJECT"
+};
+var ServerSideEncryption = {
+ AES256: "AES256",
+ aws_kms: "aws:kms",
+ aws_kms_dsse: "aws:kms:dsse"
+};
+var ObjectCannedACL = {
+ authenticated_read: "authenticated-read",
+ aws_exec_read: "aws-exec-read",
+ bucket_owner_full_control: "bucket-owner-full-control",
+ bucket_owner_read: "bucket-owner-read",
+ private: "private",
+ public_read: "public-read",
+ public_read_write: "public-read-write"
+};
+var ChecksumAlgorithm = {
+ CRC32: "CRC32",
+ CRC32C: "CRC32C",
+ CRC64NVME: "CRC64NVME",
+ SHA1: "SHA1",
+ SHA256: "SHA256"
+};
+var MetadataDirective = {
+ COPY: "COPY",
+ REPLACE: "REPLACE"
+};
+var ObjectLockLegalHoldStatus = {
+ OFF: "OFF",
+ ON: "ON"
+};
+var ObjectLockMode = {
+ COMPLIANCE: "COMPLIANCE",
+ GOVERNANCE: "GOVERNANCE"
+};
+var StorageClass = {
+ DEEP_ARCHIVE: "DEEP_ARCHIVE",
+ EXPRESS_ONEZONE: "EXPRESS_ONEZONE",
+ GLACIER: "GLACIER",
+ GLACIER_IR: "GLACIER_IR",
+ INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
+ ONEZONE_IA: "ONEZONE_IA",
+ OUTPOSTS: "OUTPOSTS",
+ REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY",
+ SNOW: "SNOW",
+ STANDARD: "STANDARD",
+ STANDARD_IA: "STANDARD_IA"
+};
+var TaggingDirective = {
+ COPY: "COPY",
+ REPLACE: "REPLACE"
+};
+var ObjectNotInActiveTierError = class _ObjectNotInActiveTierError extends S3ServiceException {
+ static {
+ __name(this, "ObjectNotInActiveTierError");
+ }
+ name = "ObjectNotInActiveTierError";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ObjectNotInActiveTierError",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ObjectNotInActiveTierError.prototype);
+ }
+};
+var BucketAlreadyExists = class _BucketAlreadyExists extends S3ServiceException {
+ static {
+ __name(this, "BucketAlreadyExists");
+ }
+ name = "BucketAlreadyExists";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "BucketAlreadyExists",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _BucketAlreadyExists.prototype);
+ }
+};
+var BucketAlreadyOwnedByYou = class _BucketAlreadyOwnedByYou extends S3ServiceException {
+ static {
+ __name(this, "BucketAlreadyOwnedByYou");
+ }
+ name = "BucketAlreadyOwnedByYou";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "BucketAlreadyOwnedByYou",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _BucketAlreadyOwnedByYou.prototype);
+ }
+};
+var BucketCannedACL = {
+ authenticated_read: "authenticated-read",
+ private: "private",
+ public_read: "public-read",
+ public_read_write: "public-read-write"
+};
+var DataRedundancy = {
+ SingleAvailabilityZone: "SingleAvailabilityZone",
+ SingleLocalZone: "SingleLocalZone"
+};
+var BucketType = {
+ Directory: "Directory"
+};
+var LocationType = {
+ AvailabilityZone: "AvailabilityZone",
+ LocalZone: "LocalZone"
+};
+var BucketLocationConstraint = {
+ EU: "EU",
+ af_south_1: "af-south-1",
+ ap_east_1: "ap-east-1",
+ ap_northeast_1: "ap-northeast-1",
+ ap_northeast_2: "ap-northeast-2",
+ ap_northeast_3: "ap-northeast-3",
+ ap_south_1: "ap-south-1",
+ ap_south_2: "ap-south-2",
+ ap_southeast_1: "ap-southeast-1",
+ ap_southeast_2: "ap-southeast-2",
+ ap_southeast_3: "ap-southeast-3",
+ ap_southeast_4: "ap-southeast-4",
+ ap_southeast_5: "ap-southeast-5",
+ ca_central_1: "ca-central-1",
+ cn_north_1: "cn-north-1",
+ cn_northwest_1: "cn-northwest-1",
+ eu_central_1: "eu-central-1",
+ eu_central_2: "eu-central-2",
+ eu_north_1: "eu-north-1",
+ eu_south_1: "eu-south-1",
+ eu_south_2: "eu-south-2",
+ eu_west_1: "eu-west-1",
+ eu_west_2: "eu-west-2",
+ eu_west_3: "eu-west-3",
+ il_central_1: "il-central-1",
+ me_central_1: "me-central-1",
+ me_south_1: "me-south-1",
+ sa_east_1: "sa-east-1",
+ us_east_2: "us-east-2",
+ us_gov_east_1: "us-gov-east-1",
+ us_gov_west_1: "us-gov-west-1",
+ us_west_1: "us-west-1",
+ us_west_2: "us-west-2"
+};
+var ObjectOwnership = {
+ BucketOwnerEnforced: "BucketOwnerEnforced",
+ BucketOwnerPreferred: "BucketOwnerPreferred",
+ ObjectWriter: "ObjectWriter"
+};
+var SessionMode = {
+ ReadOnly: "ReadOnly",
+ ReadWrite: "ReadWrite"
+};
+var NoSuchBucket = class _NoSuchBucket extends S3ServiceException {
+ static {
+ __name(this, "NoSuchBucket");
+ }
+ name = "NoSuchBucket";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "NoSuchBucket",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _NoSuchBucket.prototype);
+ }
+};
+var AnalyticsFilter;
+((AnalyticsFilter2) => {
+ AnalyticsFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
+ if (value.Prefix !== void 0) return visitor.Prefix(value.Prefix);
+ if (value.Tag !== void 0) return visitor.Tag(value.Tag);
+ if (value.And !== void 0) return visitor.And(value.And);
+ return visitor._(value.$unknown[0], value.$unknown[1]);
+ }, "visit");
+})(AnalyticsFilter || (AnalyticsFilter = {}));
+var AnalyticsS3ExportFileFormat = {
+ CSV: "CSV"
+};
+var StorageClassAnalysisSchemaVersion = {
+ V_1: "V_1"
+};
+var IntelligentTieringStatus = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var IntelligentTieringAccessTier = {
+ ARCHIVE_ACCESS: "ARCHIVE_ACCESS",
+ DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS"
+};
+var InventoryFormat = {
+ CSV: "CSV",
+ ORC: "ORC",
+ Parquet: "Parquet"
+};
+var InventoryIncludedObjectVersions = {
+ All: "All",
+ Current: "Current"
+};
+var InventoryOptionalField = {
+ BucketKeyStatus: "BucketKeyStatus",
+ ChecksumAlgorithm: "ChecksumAlgorithm",
+ ETag: "ETag",
+ EncryptionStatus: "EncryptionStatus",
+ IntelligentTieringAccessTier: "IntelligentTieringAccessTier",
+ IsMultipartUploaded: "IsMultipartUploaded",
+ LastModifiedDate: "LastModifiedDate",
+ ObjectAccessControlList: "ObjectAccessControlList",
+ ObjectLockLegalHoldStatus: "ObjectLockLegalHoldStatus",
+ ObjectLockMode: "ObjectLockMode",
+ ObjectLockRetainUntilDate: "ObjectLockRetainUntilDate",
+ ObjectOwner: "ObjectOwner",
+ ReplicationStatus: "ReplicationStatus",
+ Size: "Size",
+ StorageClass: "StorageClass"
+};
+var InventoryFrequency = {
+ Daily: "Daily",
+ Weekly: "Weekly"
+};
+var TransitionStorageClass = {
+ DEEP_ARCHIVE: "DEEP_ARCHIVE",
+ GLACIER: "GLACIER",
+ GLACIER_IR: "GLACIER_IR",
+ INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
+ ONEZONE_IA: "ONEZONE_IA",
+ STANDARD_IA: "STANDARD_IA"
+};
+var ExpirationStatus = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var TransitionDefaultMinimumObjectSize = {
+ all_storage_classes_128K: "all_storage_classes_128K",
+ varies_by_storage_class: "varies_by_storage_class"
+};
+var BucketLogsPermission = {
+ FULL_CONTROL: "FULL_CONTROL",
+ READ: "READ",
+ WRITE: "WRITE"
+};
+var PartitionDateSource = {
+ DeliveryTime: "DeliveryTime",
+ EventTime: "EventTime"
+};
+var MetricsFilter;
+((MetricsFilter2) => {
+ MetricsFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
+ if (value.Prefix !== void 0) return visitor.Prefix(value.Prefix);
+ if (value.Tag !== void 0) return visitor.Tag(value.Tag);
+ if (value.AccessPointArn !== void 0) return visitor.AccessPointArn(value.AccessPointArn);
+ if (value.And !== void 0) return visitor.And(value.And);
+ return visitor._(value.$unknown[0], value.$unknown[1]);
+ }, "visit");
+})(MetricsFilter || (MetricsFilter = {}));
+var Event = {
+ s3_IntelligentTiering: "s3:IntelligentTiering",
+ s3_LifecycleExpiration_: "s3:LifecycleExpiration:*",
+ s3_LifecycleExpiration_Delete: "s3:LifecycleExpiration:Delete",
+ s3_LifecycleExpiration_DeleteMarkerCreated: "s3:LifecycleExpiration:DeleteMarkerCreated",
+ s3_LifecycleTransition: "s3:LifecycleTransition",
+ s3_ObjectAcl_Put: "s3:ObjectAcl:Put",
+ s3_ObjectCreated_: "s3:ObjectCreated:*",
+ s3_ObjectCreated_CompleteMultipartUpload: "s3:ObjectCreated:CompleteMultipartUpload",
+ s3_ObjectCreated_Copy: "s3:ObjectCreated:Copy",
+ s3_ObjectCreated_Post: "s3:ObjectCreated:Post",
+ s3_ObjectCreated_Put: "s3:ObjectCreated:Put",
+ s3_ObjectRemoved_: "s3:ObjectRemoved:*",
+ s3_ObjectRemoved_Delete: "s3:ObjectRemoved:Delete",
+ s3_ObjectRemoved_DeleteMarkerCreated: "s3:ObjectRemoved:DeleteMarkerCreated",
+ s3_ObjectRestore_: "s3:ObjectRestore:*",
+ s3_ObjectRestore_Completed: "s3:ObjectRestore:Completed",
+ s3_ObjectRestore_Delete: "s3:ObjectRestore:Delete",
+ s3_ObjectRestore_Post: "s3:ObjectRestore:Post",
+ s3_ObjectTagging_: "s3:ObjectTagging:*",
+ s3_ObjectTagging_Delete: "s3:ObjectTagging:Delete",
+ s3_ObjectTagging_Put: "s3:ObjectTagging:Put",
+ s3_ReducedRedundancyLostObject: "s3:ReducedRedundancyLostObject",
+ s3_Replication_: "s3:Replication:*",
+ s3_Replication_OperationFailedReplication: "s3:Replication:OperationFailedReplication",
+ s3_Replication_OperationMissedThreshold: "s3:Replication:OperationMissedThreshold",
+ s3_Replication_OperationNotTracked: "s3:Replication:OperationNotTracked",
+ s3_Replication_OperationReplicatedAfterThreshold: "s3:Replication:OperationReplicatedAfterThreshold"
+};
+var FilterRuleName = {
+ prefix: "prefix",
+ suffix: "suffix"
+};
+var DeleteMarkerReplicationStatus = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var MetricsStatus = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var ReplicationTimeStatus = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var ExistingObjectReplicationStatus = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var ReplicaModificationsStatus = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var SseKmsEncryptedObjectsStatus = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var ReplicationRuleStatus = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var Payer = {
+ BucketOwner: "BucketOwner",
+ Requester: "Requester"
+};
+var MFADeleteStatus = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var BucketVersioningStatus = {
+ Enabled: "Enabled",
+ Suspended: "Suspended"
+};
+var Protocol = {
+ http: "http",
+ https: "https"
+};
+var ReplicationStatus = {
+ COMPLETE: "COMPLETE",
+ COMPLETED: "COMPLETED",
+ FAILED: "FAILED",
+ PENDING: "PENDING",
+ REPLICA: "REPLICA"
+};
+var ChecksumMode = {
+ ENABLED: "ENABLED"
+};
+var InvalidObjectState = class _InvalidObjectState extends S3ServiceException {
+ static {
+ __name(this, "InvalidObjectState");
+ }
+ name = "InvalidObjectState";
+ $fault = "client";
+ StorageClass;
+ AccessTier;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidObjectState",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidObjectState.prototype);
+ this.StorageClass = opts.StorageClass;
+ this.AccessTier = opts.AccessTier;
+ }
+};
+var NoSuchKey = class _NoSuchKey extends S3ServiceException {
+ static {
+ __name(this, "NoSuchKey");
+ }
+ name = "NoSuchKey";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "NoSuchKey",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _NoSuchKey.prototype);
+ }
+};
+var ObjectAttributes = {
+ CHECKSUM: "Checksum",
+ ETAG: "ETag",
+ OBJECT_PARTS: "ObjectParts",
+ OBJECT_SIZE: "ObjectSize",
+ STORAGE_CLASS: "StorageClass"
+};
+var ObjectLockEnabled = {
+ Enabled: "Enabled"
+};
+var ObjectLockRetentionMode = {
+ COMPLIANCE: "COMPLIANCE",
+ GOVERNANCE: "GOVERNANCE"
+};
+var NotFound = class _NotFound extends S3ServiceException {
+ static {
+ __name(this, "NotFound");
+ }
+ name = "NotFound";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "NotFound",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _NotFound.prototype);
+ }
+};
+var ArchiveStatus = {
+ ARCHIVE_ACCESS: "ARCHIVE_ACCESS",
+ DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS"
+};
+var EncodingType = {
+ url: "url"
+};
+var ObjectStorageClass = {
+ DEEP_ARCHIVE: "DEEP_ARCHIVE",
+ EXPRESS_ONEZONE: "EXPRESS_ONEZONE",
+ GLACIER: "GLACIER",
+ GLACIER_IR: "GLACIER_IR",
+ INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
+ ONEZONE_IA: "ONEZONE_IA",
+ OUTPOSTS: "OUTPOSTS",
+ REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY",
+ SNOW: "SNOW",
+ STANDARD: "STANDARD",
+ STANDARD_IA: "STANDARD_IA"
+};
+var OptionalObjectAttributes = {
+ RESTORE_STATUS: "RestoreStatus"
+};
+var ObjectVersionStorageClass = {
+ STANDARD: "STANDARD"
+};
+var CompleteMultipartUploadOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
+}), "CompleteMultipartUploadOutputFilterSensitiveLog");
+var CompleteMultipartUploadRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
+}), "CompleteMultipartUploadRequestFilterSensitiveLog");
+var CopyObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
+}), "CopyObjectOutputFilterSensitiveLog");
+var CopyObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING },
+ ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client.SENSITIVE_STRING }
+}), "CopyObjectRequestFilterSensitiveLog");
+var CreateMultipartUploadOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
+}), "CreateMultipartUploadOutputFilterSensitiveLog");
+var CreateMultipartUploadRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
+}), "CreateMultipartUploadRequestFilterSensitiveLog");
+var SessionCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SessionToken && { SessionToken: import_smithy_client.SENSITIVE_STRING }
+}), "SessionCredentialsFilterSensitiveLog");
+var CreateSessionOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING },
+ ...obj.Credentials && { Credentials: SessionCredentialsFilterSensitiveLog(obj.Credentials) }
+}), "CreateSessionOutputFilterSensitiveLog");
+var CreateSessionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
+}), "CreateSessionRequestFilterSensitiveLog");
+var ServerSideEncryptionByDefaultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.KMSMasterKeyID && { KMSMasterKeyID: import_smithy_client.SENSITIVE_STRING }
+}), "ServerSideEncryptionByDefaultFilterSensitiveLog");
+var ServerSideEncryptionRuleFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.ApplyServerSideEncryptionByDefault && {
+ ApplyServerSideEncryptionByDefault: ServerSideEncryptionByDefaultFilterSensitiveLog(
+ obj.ApplyServerSideEncryptionByDefault
+ )
+ }
+}), "ServerSideEncryptionRuleFilterSensitiveLog");
+var ServerSideEncryptionConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.Rules && { Rules: obj.Rules.map((item) => ServerSideEncryptionRuleFilterSensitiveLog(item)) }
+}), "ServerSideEncryptionConfigurationFilterSensitiveLog");
+var GetBucketEncryptionOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.ServerSideEncryptionConfiguration && {
+ ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog(
+ obj.ServerSideEncryptionConfiguration
+ )
+ }
+}), "GetBucketEncryptionOutputFilterSensitiveLog");
+var SSEKMSFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.KeyId && { KeyId: import_smithy_client.SENSITIVE_STRING }
+}), "SSEKMSFilterSensitiveLog");
+var InventoryEncryptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMS && { SSEKMS: SSEKMSFilterSensitiveLog(obj.SSEKMS) }
+}), "InventoryEncryptionFilterSensitiveLog");
+var InventoryS3BucketDestinationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.Encryption && { Encryption: InventoryEncryptionFilterSensitiveLog(obj.Encryption) }
+}), "InventoryS3BucketDestinationFilterSensitiveLog");
+var InventoryDestinationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.S3BucketDestination && {
+ S3BucketDestination: InventoryS3BucketDestinationFilterSensitiveLog(obj.S3BucketDestination)
+ }
+}), "InventoryDestinationFilterSensitiveLog");
+var InventoryConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.Destination && { Destination: InventoryDestinationFilterSensitiveLog(obj.Destination) }
+}), "InventoryConfigurationFilterSensitiveLog");
+var GetBucketInventoryConfigurationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.InventoryConfiguration && {
+ InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration)
+ }
+}), "GetBucketInventoryConfigurationOutputFilterSensitiveLog");
+var GetObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
+}), "GetObjectOutputFilterSensitiveLog");
+var GetObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
+}), "GetObjectRequestFilterSensitiveLog");
+var GetObjectAttributesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
+}), "GetObjectAttributesRequestFilterSensitiveLog");
+var GetObjectTorrentOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj
+}), "GetObjectTorrentOutputFilterSensitiveLog");
+var HeadObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
+}), "HeadObjectOutputFilterSensitiveLog");
+var HeadObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
+}), "HeadObjectRequestFilterSensitiveLog");
+var ListBucketInventoryConfigurationsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.InventoryConfigurationList && {
+ InventoryConfigurationList: obj.InventoryConfigurationList.map(
+ (item) => InventoryConfigurationFilterSensitiveLog(item)
+ )
+ }
+}), "ListBucketInventoryConfigurationsOutputFilterSensitiveLog");
+var ListPartsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
+}), "ListPartsRequestFilterSensitiveLog");
+
+// src/protocols/Aws_restXml.ts
+var import_core = __nccwpck_require__(59963);
+var import_xml_builder = __nccwpck_require__(42329);
+var import_core2 = __nccwpck_require__(55829);
+var import_protocol_http = __nccwpck_require__(64418);
+
+
+// src/models/models_1.ts
+
+var MFADelete = {
+ Disabled: "Disabled",
+ Enabled: "Enabled"
+};
+var EncryptionTypeMismatch = class _EncryptionTypeMismatch extends S3ServiceException {
+ static {
+ __name(this, "EncryptionTypeMismatch");
+ }
+ name = "EncryptionTypeMismatch";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "EncryptionTypeMismatch",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _EncryptionTypeMismatch.prototype);
+ }
+};
+var InvalidRequest = class _InvalidRequest extends S3ServiceException {
+ static {
+ __name(this, "InvalidRequest");
+ }
+ name = "InvalidRequest";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidRequest",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidRequest.prototype);
+ }
+};
+var InvalidWriteOffset = class _InvalidWriteOffset extends S3ServiceException {
+ static {
+ __name(this, "InvalidWriteOffset");
+ }
+ name = "InvalidWriteOffset";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidWriteOffset",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidWriteOffset.prototype);
+ }
+};
+var TooManyParts = class _TooManyParts extends S3ServiceException {
+ static {
+ __name(this, "TooManyParts");
+ }
+ name = "TooManyParts";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "TooManyParts",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _TooManyParts.prototype);
+ }
+};
+var ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError extends S3ServiceException {
+ static {
+ __name(this, "ObjectAlreadyInActiveTierError");
+ }
+ name = "ObjectAlreadyInActiveTierError";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ObjectAlreadyInActiveTierError",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ObjectAlreadyInActiveTierError.prototype);
+ }
+};
+var Tier = {
+ Bulk: "Bulk",
+ Expedited: "Expedited",
+ Standard: "Standard"
+};
+var ExpressionType = {
+ SQL: "SQL"
+};
+var CompressionType = {
+ BZIP2: "BZIP2",
+ GZIP: "GZIP",
+ NONE: "NONE"
+};
+var FileHeaderInfo = {
+ IGNORE: "IGNORE",
+ NONE: "NONE",
+ USE: "USE"
+};
+var JSONType = {
+ DOCUMENT: "DOCUMENT",
+ LINES: "LINES"
+};
+var QuoteFields = {
+ ALWAYS: "ALWAYS",
+ ASNEEDED: "ASNEEDED"
+};
+var RestoreRequestType = {
+ SELECT: "SELECT"
+};
+var SelectObjectContentEventStream;
+((SelectObjectContentEventStream3) => {
+ SelectObjectContentEventStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
+ if (value.Records !== void 0) return visitor.Records(value.Records);
+ if (value.Stats !== void 0) return visitor.Stats(value.Stats);
+ if (value.Progress !== void 0) return visitor.Progress(value.Progress);
+ if (value.Cont !== void 0) return visitor.Cont(value.Cont);
+ if (value.End !== void 0) return visitor.End(value.End);
+ return visitor._(value.$unknown[0], value.$unknown[1]);
+ }, "visit");
+})(SelectObjectContentEventStream || (SelectObjectContentEventStream = {}));
+var PutBucketEncryptionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.ServerSideEncryptionConfiguration && {
+ ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog(
+ obj.ServerSideEncryptionConfiguration
+ )
+ }
+}), "PutBucketEncryptionRequestFilterSensitiveLog");
+var PutBucketInventoryConfigurationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.InventoryConfiguration && {
+ InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration)
+ }
+}), "PutBucketInventoryConfigurationRequestFilterSensitiveLog");
+var PutObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
+}), "PutObjectOutputFilterSensitiveLog");
+var PutObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING },
+ ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client.SENSITIVE_STRING }
+}), "PutObjectRequestFilterSensitiveLog");
+var EncryptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.KMSKeyId && { KMSKeyId: import_smithy_client.SENSITIVE_STRING }
+}), "EncryptionFilterSensitiveLog");
+var S3LocationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.Encryption && { Encryption: EncryptionFilterSensitiveLog(obj.Encryption) }
+}), "S3LocationFilterSensitiveLog");
+var OutputLocationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.S3 && { S3: S3LocationFilterSensitiveLog(obj.S3) }
+}), "OutputLocationFilterSensitiveLog");
+var RestoreRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.OutputLocation && { OutputLocation: OutputLocationFilterSensitiveLog(obj.OutputLocation) }
+}), "RestoreRequestFilterSensitiveLog");
+var RestoreObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.RestoreRequest && { RestoreRequest: RestoreRequestFilterSensitiveLog(obj.RestoreRequest) }
+}), "RestoreObjectRequestFilterSensitiveLog");
+var SelectObjectContentEventStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
+ if (obj.Records !== void 0) return { Records: obj.Records };
+ if (obj.Stats !== void 0) return { Stats: obj.Stats };
+ if (obj.Progress !== void 0) return { Progress: obj.Progress };
+ if (obj.Cont !== void 0) return { Cont: obj.Cont };
+ if (obj.End !== void 0) return { End: obj.End };
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
+}, "SelectObjectContentEventStreamFilterSensitiveLog");
+var SelectObjectContentOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.Payload && { Payload: "STREAMING_CONTENT" }
+}), "SelectObjectContentOutputFilterSensitiveLog");
+var SelectObjectContentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
+}), "SelectObjectContentRequestFilterSensitiveLog");
+var UploadPartOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
+}), "UploadPartOutputFilterSensitiveLog");
+var UploadPartRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING }
+}), "UploadPartRequestFilterSensitiveLog");
+var UploadPartCopyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
+}), "UploadPartCopyOutputFilterSensitiveLog");
+var UploadPartCopyRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client.SENSITIVE_STRING },
+ ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client.SENSITIVE_STRING }
+}), "UploadPartCopyRequestFilterSensitiveLog");
+var WriteGetObjectResponseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client.SENSITIVE_STRING }
+}), "WriteGetObjectResponseRequestFilterSensitiveLog");
+
+// src/protocols/Aws_restXml.ts
+var se_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO],
+ [_xaimit]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMIT]), () => (0, import_smithy_client.dateToUtcString)(input[_IMIT]).toString()]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_xi]: [, "AbortMultipartUpload"],
+ [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_UI], `UploadId`)]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_AbortMultipartUploadCommand");
+var se_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xacc]: input[_CCRC],
+ [_xacc_]: input[_CCRCC],
+ [_xacc__]: input[_CCRCNVME],
+ [_xacs]: input[_CSHA],
+ [_xacs_]: input[_CSHAh],
+ [_xact]: input[_CT],
+ [_xamos]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_MOS]), () => input[_MOS].toString()],
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO],
+ [_im]: input[_IM],
+ [_inm]: input[_INM],
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_UI], `UploadId`)]
+ });
+ let body;
+ let contents;
+ if (input.MultipartUpload !== void 0) {
+ contents = se_CompletedMultipartUpload(input.MultipartUpload, context);
+ contents = contents.n("CompleteMultipartUpload");
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("POST").h(headers).q(query).b(body);
+ return b.build();
+}, "se_CompleteMultipartUploadCommand");
+var se_CopyObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaa]: input[_ACL],
+ [_cc]: input[_CC],
+ [_xaca]: input[_CA],
+ [_cd]: input[_CD],
+ [_ce]: input[_CE],
+ [_cl]: input[_CL],
+ [_ct]: input[_CTo],
+ [_xacs__]: input[_CS],
+ [_xacsim]: input[_CSIM],
+ [_xacsims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client.dateToUtcString)(input[_CSIMS]).toString()],
+ [_xacsinm]: input[_CSINM],
+ [_xacsius]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client.dateToUtcString)(input[_CSIUS]).toString()],
+ [_e]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client.dateToUtcString)(input[_E]).toString()],
+ [_xagfc]: input[_GFC],
+ [_xagr]: input[_GR],
+ [_xagra]: input[_GRACP],
+ [_xagwa]: input[_GWACP],
+ [_xamd]: input[_MD],
+ [_xatd]: input[_TD],
+ [_xasse]: input[_SSE],
+ [_xasc]: input[_SC],
+ [_xawrl]: input[_WRL],
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD],
+ [_xasseakki]: input[_SSEKMSKI],
+ [_xassec]: input[_SSEKMSEC],
+ [_xassebke]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()],
+ [_xacssseca]: input[_CSSSECA],
+ [_xacssseck]: input[_CSSSECK],
+ [_xacssseckm]: input[_CSSSECKMD],
+ [_xarp]: input[_RP],
+ [_xat]: input[_T],
+ [_xaolm]: input[_OLM],
+ [_xaolrud]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client.serializeDateTime)(input[_OLRUD]).toString()],
+ [_xaollh]: input[_OLLHS],
+ [_xaebo]: input[_EBO],
+ [_xasebo]: input[_ESBO],
+ ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => {
+ acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix];
+ return acc;
+ }, {})
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_xi]: [, "CopyObject"]
+ });
+ let body;
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_CopyObjectCommand");
+var se_CreateBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xaa]: input[_ACL],
+ [_xagfc]: input[_GFC],
+ [_xagr]: input[_GR],
+ [_xagra]: input[_GRACP],
+ [_xagw]: input[_GW],
+ [_xagwa]: input[_GWACP],
+ [_xabole]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_OLEFB]), () => input[_OLEFB].toString()],
+ [_xaoo]: input[_OO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ let body;
+ let contents;
+ if (input.CreateBucketConfiguration !== void 0) {
+ contents = se_CreateBucketConfiguration(input.CreateBucketConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).b(body);
+ return b.build();
+}, "se_CreateBucketCommand");
+var se_CreateBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_mT]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.MetadataTableConfiguration !== void 0) {
+ contents = se_MetadataTableConfiguration(input.MetadataTableConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("POST").h(headers).q(query).b(body);
+ return b.build();
+}, "se_CreateBucketMetadataTableConfigurationCommand");
+var se_CreateMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaa]: input[_ACL],
+ [_cc]: input[_CC],
+ [_cd]: input[_CD],
+ [_ce]: input[_CE],
+ [_cl]: input[_CL],
+ [_ct]: input[_CTo],
+ [_e]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client.dateToUtcString)(input[_E]).toString()],
+ [_xagfc]: input[_GFC],
+ [_xagr]: input[_GR],
+ [_xagra]: input[_GRACP],
+ [_xagwa]: input[_GWACP],
+ [_xasse]: input[_SSE],
+ [_xasc]: input[_SC],
+ [_xawrl]: input[_WRL],
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD],
+ [_xasseakki]: input[_SSEKMSKI],
+ [_xassec]: input[_SSEKMSEC],
+ [_xassebke]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()],
+ [_xarp]: input[_RP],
+ [_xat]: input[_T],
+ [_xaolm]: input[_OLM],
+ [_xaolrud]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client.serializeDateTime)(input[_OLRUD]).toString()],
+ [_xaollh]: input[_OLLHS],
+ [_xaebo]: input[_EBO],
+ [_xaca]: input[_CA],
+ [_xact]: input[_CT],
+ ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => {
+ acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix];
+ return acc;
+ }, {})
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_u]: [, ""]
+ });
+ let body;
+ b.m("POST").h(headers).q(query).b(body);
+ return b.build();
+}, "se_CreateMultipartUploadCommand");
+var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xacsm]: input[_SM],
+ [_xasse]: input[_SSE],
+ [_xasseakki]: input[_SSEKMSKI],
+ [_xassec]: input[_SSEKMSEC],
+ [_xassebke]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_s]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_CreateSessionCommand");
+var se_DeleteBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ let body;
+ b.m("DELETE").h(headers).b(body);
+ return b.build();
+}, "se_DeleteBucketCommand");
+var se_DeleteBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_a]: [, ""],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketAnalyticsConfigurationCommand");
+var se_DeleteBucketCorsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_c]: [, ""]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketCorsCommand");
+var se_DeleteBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_en]: [, ""]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketEncryptionCommand");
+var se_DeleteBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = {};
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_it]: [, ""],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketIntelligentTieringConfigurationCommand");
+var se_DeleteBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_in]: [, ""],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketInventoryConfigurationCommand");
+var se_DeleteBucketLifecycleCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_l]: [, ""]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketLifecycleCommand");
+var se_DeleteBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_mT]: [, ""]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketMetadataTableConfigurationCommand");
+var se_DeleteBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_m]: [, ""],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketMetricsConfigurationCommand");
+var se_DeleteBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_oC]: [, ""]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketOwnershipControlsCommand");
+var se_DeleteBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_p]: [, ""]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketPolicyCommand");
+var se_DeleteBucketReplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_r]: [, ""]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketReplicationCommand");
+var se_DeleteBucketTaggingCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_t]: [, ""]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketTaggingCommand");
+var se_DeleteBucketWebsiteCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_w]: [, ""]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteBucketWebsiteCommand");
+var se_DeleteObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xam]: input[_MFA],
+ [_xarp]: input[_RP],
+ [_xabgr]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()],
+ [_xaebo]: input[_EBO],
+ [_im]: input[_IM],
+ [_xaimlmt]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMLMT]), () => (0, import_smithy_client.dateToUtcString)(input[_IMLMT]).toString()],
+ [_xaims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMS]), () => input[_IMS].toString()]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_xi]: [, "DeleteObject"],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteObjectCommand");
+var se_DeleteObjectsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xam]: input[_MFA],
+ [_xarp]: input[_RP],
+ [_xabgr]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()],
+ [_xaebo]: input[_EBO],
+ [_xasca]: input[_CA]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_d]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.Delete !== void 0) {
+ contents = se_Delete(input.Delete, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("POST").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteObjectsCommand");
+var se_DeleteObjectTaggingCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_t]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeleteObjectTaggingCommand");
+var se_DeletePublicAccessBlockCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_pAB]: [, ""]
+ });
+ let body;
+ b.m("DELETE").h(headers).q(query).b(body);
+ return b.build();
+}, "se_DeletePublicAccessBlockCommand");
+var se_GetBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO],
+ [_xarp]: input[_RP]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_ac]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketAccelerateConfigurationCommand");
+var se_GetBucketAclCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_acl]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketAclCommand");
+var se_GetBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_a]: [, ""],
+ [_xi]: [, "GetBucketAnalyticsConfiguration"],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketAnalyticsConfigurationCommand");
+var se_GetBucketCorsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_c]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketCorsCommand");
+var se_GetBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_en]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketEncryptionCommand");
+var se_GetBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = {};
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_it]: [, ""],
+ [_xi]: [, "GetBucketIntelligentTieringConfiguration"],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketIntelligentTieringConfigurationCommand");
+var se_GetBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_in]: [, ""],
+ [_xi]: [, "GetBucketInventoryConfiguration"],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketInventoryConfigurationCommand");
+var se_GetBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_l]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketLifecycleConfigurationCommand");
+var se_GetBucketLocationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_lo]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketLocationCommand");
+var se_GetBucketLoggingCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_log]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketLoggingCommand");
+var se_GetBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_mT]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketMetadataTableConfigurationCommand");
+var se_GetBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_m]: [, ""],
+ [_xi]: [, "GetBucketMetricsConfiguration"],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketMetricsConfigurationCommand");
+var se_GetBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_n]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketNotificationConfigurationCommand");
+var se_GetBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_oC]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketOwnershipControlsCommand");
+var se_GetBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_p]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketPolicyCommand");
+var se_GetBucketPolicyStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_pS]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketPolicyStatusCommand");
+var se_GetBucketReplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_r]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketReplicationCommand");
+var se_GetBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_rP]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketRequestPaymentCommand");
+var se_GetBucketTaggingCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_t]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketTaggingCommand");
+var se_GetBucketVersioningCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_v]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketVersioningCommand");
+var se_GetBucketWebsiteCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_w]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetBucketWebsiteCommand");
+var se_GetObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_im]: input[_IM],
+ [_ims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client.dateToUtcString)(input[_IMSf]).toString()],
+ [_inm]: input[_INM],
+ [_ius]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client.dateToUtcString)(input[_IUS]).toString()],
+ [_ra]: input[_R],
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD],
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO],
+ [_xacm]: input[_CM]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_xi]: [, "GetObject"],
+ [_rcc]: [, input[_RCC]],
+ [_rcd]: [, input[_RCD]],
+ [_rce]: [, input[_RCE]],
+ [_rcl]: [, input[_RCL]],
+ [_rct]: [, input[_RCT]],
+ [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client.dateToUtcString)(input[_RE]).toString()],
+ [_vI]: [, input[_VI]],
+ [_pN]: [() => input.PartNumber !== void 0, () => input[_PN].toString()]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetObjectCommand");
+var se_GetObjectAclCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_acl]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetObjectAclCommand");
+var se_GetObjectAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xamp]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_MP]), () => input[_MP].toString()],
+ [_xapnm]: input[_PNM],
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD],
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO],
+ [_xaoa]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_OA]), () => (input[_OA] || []).map(import_smithy_client.quoteHeader).join(", ")]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_at]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetObjectAttributesCommand");
+var se_GetObjectLegalHoldCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_lh]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetObjectLegalHoldCommand");
+var se_GetObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_ol]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetObjectLockConfigurationCommand");
+var se_GetObjectRetentionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_ret]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetObjectRetentionCommand");
+var se_GetObjectTaggingCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO],
+ [_xarp]: input[_RP]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_t]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetObjectTaggingCommand");
+var se_GetObjectTorrentCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_to]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetObjectTorrentCommand");
+var se_GetPublicAccessBlockCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_pAB]: [, ""]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetPublicAccessBlockCommand");
+var se_HeadBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ let body;
+ b.m("HEAD").h(headers).b(body);
+ return b.build();
+}, "se_HeadBucketCommand");
+var se_HeadObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_im]: input[_IM],
+ [_ims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client.dateToUtcString)(input[_IMSf]).toString()],
+ [_inm]: input[_INM],
+ [_ius]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client.dateToUtcString)(input[_IUS]).toString()],
+ [_ra]: input[_R],
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD],
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO],
+ [_xacm]: input[_CM]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_rcc]: [, input[_RCC]],
+ [_rcd]: [, input[_RCD]],
+ [_rce]: [, input[_RCE]],
+ [_rcl]: [, input[_RCL]],
+ [_rct]: [, input[_RCT]],
+ [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client.dateToUtcString)(input[_RE]).toString()],
+ [_vI]: [, input[_VI]],
+ [_pN]: [() => input.PartNumber !== void 0, () => input[_PN].toString()]
+ });
+ let body;
+ b.m("HEAD").h(headers).q(query).b(body);
+ return b.build();
+}, "se_HeadObjectCommand");
+var se_ListBucketAnalyticsConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_a]: [, ""],
+ [_xi]: [, "ListBucketAnalyticsConfigurations"],
+ [_ct_]: [, input[_CTon]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListBucketAnalyticsConfigurationsCommand");
+var se_ListBucketIntelligentTieringConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = {};
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_it]: [, ""],
+ [_xi]: [, "ListBucketIntelligentTieringConfigurations"],
+ [_ct_]: [, input[_CTon]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListBucketIntelligentTieringConfigurationsCommand");
+var se_ListBucketInventoryConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_in]: [, ""],
+ [_xi]: [, "ListBucketInventoryConfigurations"],
+ [_ct_]: [, input[_CTon]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListBucketInventoryConfigurationsCommand");
+var se_ListBucketMetricsConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_m]: [, ""],
+ [_xi]: [, "ListBucketMetricsConfigurations"],
+ [_ct_]: [, input[_CTon]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListBucketMetricsConfigurationsCommand");
+var se_ListBucketsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = {};
+ b.bp("/");
+ const query = (0, import_smithy_client.map)({
+ [_xi]: [, "ListBuckets"],
+ [_mb]: [() => input.MaxBuckets !== void 0, () => input[_MB].toString()],
+ [_ct_]: [, input[_CTon]],
+ [_pr]: [, input[_P]],
+ [_br]: [, input[_BR]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListBucketsCommand");
+var se_ListDirectoryBucketsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = {};
+ b.bp("/");
+ const query = (0, import_smithy_client.map)({
+ [_xi]: [, "ListDirectoryBuckets"],
+ [_ct_]: [, input[_CTon]],
+ [_mdb]: [() => input.MaxDirectoryBuckets !== void 0, () => input[_MDB].toString()]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListDirectoryBucketsCommand");
+var se_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO],
+ [_xarp]: input[_RP]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_u]: [, ""],
+ [_de]: [, input[_D]],
+ [_et]: [, input[_ET]],
+ [_km]: [, input[_KM]],
+ [_mu]: [() => input.MaxUploads !== void 0, () => input[_MU].toString()],
+ [_pr]: [, input[_P]],
+ [_uim]: [, input[_UIM]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListMultipartUploadsCommand");
+var se_ListObjectsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO],
+ [_xaooa]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client.quoteHeader).join(", ")]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_de]: [, input[_D]],
+ [_et]: [, input[_ET]],
+ [_ma]: [, input[_M]],
+ [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()],
+ [_pr]: [, input[_P]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListObjectsCommand");
+var se_ListObjectsV2Command = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO],
+ [_xaooa]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client.quoteHeader).join(", ")]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_lt]: [, "2"],
+ [_de]: [, input[_D]],
+ [_et]: [, input[_ET]],
+ [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()],
+ [_pr]: [, input[_P]],
+ [_ct_]: [, input[_CTon]],
+ [_fo]: [() => input.FetchOwner !== void 0, () => input[_FO].toString()],
+ [_sa]: [, input[_SA]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListObjectsV2Command");
+var se_ListObjectVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xaebo]: input[_EBO],
+ [_xarp]: input[_RP],
+ [_xaooa]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client.quoteHeader).join(", ")]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_ver]: [, ""],
+ [_de]: [, input[_D]],
+ [_et]: [, input[_ET]],
+ [_km]: [, input[_KM]],
+ [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()],
+ [_pr]: [, input[_P]],
+ [_vim]: [, input[_VIM]]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListObjectVersionsCommand");
+var se_ListPartsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO],
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_xi]: [, "ListParts"],
+ [_mp]: [() => input.MaxParts !== void 0, () => input[_MP].toString()],
+ [_pnm]: [, input[_PNM]],
+ [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_UI], `UploadId`)]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListPartsCommand");
+var se_PutBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xaebo]: input[_EBO],
+ [_xasca]: input[_CA]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_ac]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.AccelerateConfiguration !== void 0) {
+ contents = se_AccelerateConfiguration(input.AccelerateConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketAccelerateConfigurationCommand");
+var se_PutBucketAclCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xaa]: input[_ACL],
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xagfc]: input[_GFC],
+ [_xagr]: input[_GR],
+ [_xagra]: input[_GRACP],
+ [_xagw]: input[_GW],
+ [_xagwa]: input[_GWACP],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_acl]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.AccessControlPolicy !== void 0) {
+ contents = se_AccessControlPolicy(input.AccessControlPolicy, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketAclCommand");
+var se_PutBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_a]: [, ""],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ let contents;
+ if (input.AnalyticsConfiguration !== void 0) {
+ contents = se_AnalyticsConfiguration(input.AnalyticsConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketAnalyticsConfigurationCommand");
+var se_PutBucketCorsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_c]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.CORSConfiguration !== void 0) {
+ contents = se_CORSConfiguration(input.CORSConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketCorsCommand");
+var se_PutBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_en]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.ServerSideEncryptionConfiguration !== void 0) {
+ contents = se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketEncryptionCommand");
+var se_PutBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = {
+ "content-type": "application/xml"
+ };
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_it]: [, ""],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ let contents;
+ if (input.IntelligentTieringConfiguration !== void 0) {
+ contents = se_IntelligentTieringConfiguration(input.IntelligentTieringConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketIntelligentTieringConfigurationCommand");
+var se_PutBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_in]: [, ""],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ let contents;
+ if (input.InventoryConfiguration !== void 0) {
+ contents = se_InventoryConfiguration(input.InventoryConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketInventoryConfigurationCommand");
+var se_PutBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO],
+ [_xatdmos]: input[_TDMOS]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_l]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.LifecycleConfiguration !== void 0) {
+ contents = se_BucketLifecycleConfiguration(input.LifecycleConfiguration, context);
+ contents = contents.n("LifecycleConfiguration");
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketLifecycleConfigurationCommand");
+var se_PutBucketLoggingCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_log]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.BucketLoggingStatus !== void 0) {
+ contents = se_BucketLoggingStatus(input.BucketLoggingStatus, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketLoggingCommand");
+var se_PutBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_m]: [, ""],
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_I], `Id`)]
+ });
+ let body;
+ let contents;
+ if (input.MetricsConfiguration !== void 0) {
+ contents = se_MetricsConfiguration(input.MetricsConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketMetricsConfigurationCommand");
+var se_PutBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xaebo]: input[_EBO],
+ [_xasdv]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_SDV]), () => input[_SDV].toString()]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_n]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.NotificationConfiguration !== void 0) {
+ contents = se_NotificationConfiguration(input.NotificationConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketNotificationConfigurationCommand");
+var se_PutBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_oC]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.OwnershipControls !== void 0) {
+ contents = se_OwnershipControls(input.OwnershipControls, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketOwnershipControlsCommand");
+var se_PutBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "text/plain",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xacrsba]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_CRSBA]), () => input[_CRSBA].toString()],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_p]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.Policy !== void 0) {
+ contents = input.Policy;
+ body = contents;
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketPolicyCommand");
+var se_PutBucketReplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xabolt]: input[_To],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_r]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.ReplicationConfiguration !== void 0) {
+ contents = se_ReplicationConfiguration(input.ReplicationConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketReplicationCommand");
+var se_PutBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_rP]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.RequestPaymentConfiguration !== void 0) {
+ contents = se_RequestPaymentConfiguration(input.RequestPaymentConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketRequestPaymentCommand");
+var se_PutBucketTaggingCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_t]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.Tagging !== void 0) {
+ contents = se_Tagging(input.Tagging, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketTaggingCommand");
+var se_PutBucketVersioningCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xam]: input[_MFA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_v]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.VersioningConfiguration !== void 0) {
+ contents = se_VersioningConfiguration(input.VersioningConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketVersioningCommand");
+var se_PutBucketWebsiteCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_w]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.WebsiteConfiguration !== void 0) {
+ contents = se_WebsiteConfiguration(input.WebsiteConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutBucketWebsiteCommand");
+var se_PutObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_ct]: input[_CTo] || "application/octet-stream",
+ [_xaa]: input[_ACL],
+ [_cc]: input[_CC],
+ [_cd]: input[_CD],
+ [_ce]: input[_CE],
+ [_cl]: input[_CL],
+ [_cl_]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()],
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xacc]: input[_CCRC],
+ [_xacc_]: input[_CCRCC],
+ [_xacc__]: input[_CCRCNVME],
+ [_xacs]: input[_CSHA],
+ [_xacs_]: input[_CSHAh],
+ [_e]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client.dateToUtcString)(input[_E]).toString()],
+ [_im]: input[_IM],
+ [_inm]: input[_INM],
+ [_xagfc]: input[_GFC],
+ [_xagr]: input[_GR],
+ [_xagra]: input[_GRACP],
+ [_xagwa]: input[_GWACP],
+ [_xawob]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_WOB]), () => input[_WOB].toString()],
+ [_xasse]: input[_SSE],
+ [_xasc]: input[_SC],
+ [_xawrl]: input[_WRL],
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD],
+ [_xasseakki]: input[_SSEKMSKI],
+ [_xassec]: input[_SSEKMSEC],
+ [_xassebke]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()],
+ [_xarp]: input[_RP],
+ [_xat]: input[_T],
+ [_xaolm]: input[_OLM],
+ [_xaolrud]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client.serializeDateTime)(input[_OLRUD]).toString()],
+ [_xaollh]: input[_OLLHS],
+ [_xaebo]: input[_EBO],
+ ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => {
+ acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix];
+ return acc;
+ }, {})
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_xi]: [, "PutObject"]
+ });
+ let body;
+ let contents;
+ if (input.Body !== void 0) {
+ contents = input.Body;
+ body = contents;
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutObjectCommand");
+var se_PutObjectAclCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xaa]: input[_ACL],
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xagfc]: input[_GFC],
+ [_xagr]: input[_GR],
+ [_xagra]: input[_GRACP],
+ [_xagw]: input[_GW],
+ [_xagwa]: input[_GWACP],
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_acl]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ let contents;
+ if (input.AccessControlPolicy !== void 0) {
+ contents = se_AccessControlPolicy(input.AccessControlPolicy, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutObjectAclCommand");
+var se_PutObjectLegalHoldCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xarp]: input[_RP],
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_lh]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ let contents;
+ if (input.LegalHold !== void 0) {
+ contents = se_ObjectLockLegalHold(input.LegalHold, context);
+ contents = contents.n("LegalHold");
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutObjectLegalHoldCommand");
+var se_PutObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xarp]: input[_RP],
+ [_xabolt]: input[_To],
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_ol]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.ObjectLockConfiguration !== void 0) {
+ contents = se_ObjectLockConfiguration(input.ObjectLockConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutObjectLockConfigurationCommand");
+var se_PutObjectRetentionCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xarp]: input[_RP],
+ [_xabgr]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()],
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_ret]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ let contents;
+ if (input.Retention !== void 0) {
+ contents = se_ObjectLockRetention(input.Retention, context);
+ contents = contents.n("Retention");
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutObjectRetentionCommand");
+var se_PutObjectTaggingCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO],
+ [_xarp]: input[_RP]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_t]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ let contents;
+ if (input.Tagging !== void 0) {
+ contents = se_Tagging(input.Tagging, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutObjectTaggingCommand");
+var se_PutPublicAccessBlockCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ const query = (0, import_smithy_client.map)({
+ [_pAB]: [, ""]
+ });
+ let body;
+ let contents;
+ if (input.PublicAccessBlockConfiguration !== void 0) {
+ contents = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_PutPublicAccessBlockCommand");
+var se_RestoreObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xarp]: input[_RP],
+ [_xasca]: input[_CA],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_res]: [, ""],
+ [_vI]: [, input[_VI]]
+ });
+ let body;
+ let contents;
+ if (input.RestoreRequest !== void 0) {
+ contents = se_RestoreRequest(input.RestoreRequest, context);
+ body = _ve;
+ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ body += contents.toString();
+ }
+ b.m("POST").h(headers).q(query).b(body);
+ return b.build();
+}, "se_RestoreObjectCommand");
+var se_SelectObjectContentCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/xml",
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_se]: [, ""],
+ [_st]: [, "2"]
+ });
+ let body;
+ body = _ve;
+ const bn = new import_xml_builder.XmlNode(_SOCR);
+ bn.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
+ bn.cc(input, _Ex);
+ bn.cc(input, _ETx);
+ if (input[_IS] != null) {
+ bn.c(se_InputSerialization(input[_IS], context).n(_IS));
+ }
+ if (input[_OS] != null) {
+ bn.c(se_OutputSerialization(input[_OS], context).n(_OS));
+ }
+ if (input[_RPe] != null) {
+ bn.c(se_RequestProgress(input[_RPe], context).n(_RPe));
+ }
+ if (input[_SR] != null) {
+ bn.c(se_ScanRange(input[_SR], context).n(_SR));
+ }
+ body += bn.toString();
+ b.m("POST").h(headers).q(query).b(body);
+ return b.build();
+}, "se_SelectObjectContentCommand");
+var se_UploadPartCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "content-type": "application/octet-stream",
+ [_cl_]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()],
+ [_cm]: input[_CMD],
+ [_xasca]: input[_CA],
+ [_xacc]: input[_CCRC],
+ [_xacc_]: input[_CCRCC],
+ [_xacc__]: input[_CCRCNVME],
+ [_xacs]: input[_CSHA],
+ [_xacs_]: input[_CSHAh],
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD],
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_xi]: [, "UploadPart"],
+ [_pN]: [(0, import_smithy_client.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()],
+ [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_UI], `UploadId`)]
+ });
+ let body;
+ let contents;
+ if (input.Body !== void 0) {
+ contents = input.Body;
+ body = contents;
+ }
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_UploadPartCommand");
+var se_UploadPartCopyCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xacs__]: input[_CS],
+ [_xacsim]: input[_CSIM],
+ [_xacsims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client.dateToUtcString)(input[_CSIMS]).toString()],
+ [_xacsinm]: input[_CSINM],
+ [_xacsius]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client.dateToUtcString)(input[_CSIUS]).toString()],
+ [_xacsr]: input[_CSR],
+ [_xasseca]: input[_SSECA],
+ [_xasseck]: input[_SSECK],
+ [_xasseckm]: input[_SSECKMD],
+ [_xacssseca]: input[_CSSSECA],
+ [_xacssseck]: input[_CSSSECK],
+ [_xacssseckm]: input[_CSSSECKMD],
+ [_xarp]: input[_RP],
+ [_xaebo]: input[_EBO],
+ [_xasebo]: input[_ESBO]
+ });
+ b.bp("/{Key+}");
+ b.p("Bucket", () => input.Bucket, "{Bucket}", false);
+ b.p("Key", () => input.Key, "{Key+}", true);
+ const query = (0, import_smithy_client.map)({
+ [_xi]: [, "UploadPartCopy"],
+ [_pN]: [(0, import_smithy_client.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()],
+ [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_UI], `UploadId`)]
+ });
+ let body;
+ b.m("PUT").h(headers).q(query).b(body);
+ return b.build();
+}, "se_UploadPartCopyCommand");
+var se_WriteGetObjectResponseCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core2.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ "x-amz-content-sha256": "UNSIGNED-PAYLOAD",
+ "content-type": "application/octet-stream",
+ [_xarr]: input[_RR],
+ [_xart]: input[_RT],
+ [_xafs]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_SCt]), () => input[_SCt].toString()],
+ [_xafec]: input[_EC],
+ [_xafem]: input[_EM],
+ [_xafhar]: input[_AR],
+ [_xafhcc]: input[_CC],
+ [_xafhcd]: input[_CD],
+ [_xafhce]: input[_CE],
+ [_xafhcl]: input[_CL],
+ [_cl_]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()],
+ [_xafhcr]: input[_CR],
+ [_xafhct]: input[_CTo],
+ [_xafhxacc]: input[_CCRC],
+ [_xafhxacc_]: input[_CCRCC],
+ [_xafhxacc__]: input[_CCRCNVME],
+ [_xafhxacs]: input[_CSHA],
+ [_xafhxacs_]: input[_CSHAh],
+ [_xafhxadm]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_DM]), () => input[_DM].toString()],
+ [_xafhe]: input[_ETa],
+ [_xafhe_]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client.dateToUtcString)(input[_E]).toString()],
+ [_xafhxae]: input[_Exp],
+ [_xafhlm]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_LM]), () => (0, import_smithy_client.dateToUtcString)(input[_LM]).toString()],
+ [_xafhxamm]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_MM]), () => input[_MM].toString()],
+ [_xafhxaolm]: input[_OLM],
+ [_xafhxaollh]: input[_OLLHS],
+ [_xafhxaolrud]: [
+ () => (0, import_smithy_client.isSerializableHeaderValue)(input[_OLRUD]),
+ () => (0, import_smithy_client.serializeDateTime)(input[_OLRUD]).toString()
+ ],
+ [_xafhxampc]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_PC]), () => input[_PC].toString()],
+ [_xafhxars]: input[_RS],
+ [_xafhxarc]: input[_RC],
+ [_xafhxar]: input[_Re],
+ [_xafhxasse]: input[_SSE],
+ [_xafhxasseca]: input[_SSECA],
+ [_xafhxasseakki]: input[_SSEKMSKI],
+ [_xafhxasseckm]: input[_SSECKMD],
+ [_xafhxasc]: input[_SC],
+ [_xafhxatc]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_TC]), () => input[_TC].toString()],
+ [_xafhxavi]: input[_VI],
+ [_xafhxassebke]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()],
+ ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => {
+ acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix];
+ return acc;
+ }, {})
+ });
+ b.bp("/WriteGetObjectResponse");
+ let body;
+ let contents;
+ if (input.Body !== void 0) {
+ contents = input.Body;
+ body = contents;
+ }
+ let { hostname: resolvedHostname } = await context.endpoint();
+ if (context.disableHostPrefix !== true) {
+ resolvedHostname = "{RequestRoute}." + resolvedHostname;
+ if (input.RequestRoute === void 0) {
+ throw new Error("Empty value provided for input host prefix: RequestRoute.");
+ }
+ resolvedHostname = resolvedHostname.replace("{RequestRoute}", input.RequestRoute);
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
+ }
+ }
+ b.hn(resolvedHostname);
+ b.m("POST").h(headers).b(body);
+ return b.build();
+}, "se_WriteGetObjectResponseCommand");
+var de_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_AbortMultipartUploadCommand");
+var de_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_Exp]: [, output.headers[_xae]],
+ [_SSE]: [, output.headers[_xasse]],
+ [_VI]: [, output.headers[_xavi]],
+ [_SSEKMSKI]: [, output.headers[_xasseakki]],
+ [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_B] != null) {
+ contents[_B] = (0, import_smithy_client.expectString)(data[_B]);
+ }
+ if (data[_CCRC] != null) {
+ contents[_CCRC] = (0, import_smithy_client.expectString)(data[_CCRC]);
+ }
+ if (data[_CCRCC] != null) {
+ contents[_CCRCC] = (0, import_smithy_client.expectString)(data[_CCRCC]);
+ }
+ if (data[_CCRCNVME] != null) {
+ contents[_CCRCNVME] = (0, import_smithy_client.expectString)(data[_CCRCNVME]);
+ }
+ if (data[_CSHA] != null) {
+ contents[_CSHA] = (0, import_smithy_client.expectString)(data[_CSHA]);
+ }
+ if (data[_CSHAh] != null) {
+ contents[_CSHAh] = (0, import_smithy_client.expectString)(data[_CSHAh]);
+ }
+ if (data[_CT] != null) {
+ contents[_CT] = (0, import_smithy_client.expectString)(data[_CT]);
+ }
+ if (data[_ETa] != null) {
+ contents[_ETa] = (0, import_smithy_client.expectString)(data[_ETa]);
+ }
+ if (data[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(data[_K]);
+ }
+ if (data[_L] != null) {
+ contents[_L] = (0, import_smithy_client.expectString)(data[_L]);
+ }
+ return contents;
+}, "de_CompleteMultipartUploadCommand");
+var de_CopyObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_Exp]: [, output.headers[_xae]],
+ [_CSVI]: [, output.headers[_xacsvi]],
+ [_VI]: [, output.headers[_xavi]],
+ [_SSE]: [, output.headers[_xasse]],
+ [_SSECA]: [, output.headers[_xasseca]],
+ [_SSECKMD]: [, output.headers[_xasseckm]],
+ [_SSEKMSKI]: [, output.headers[_xasseakki]],
+ [_SSEKMSEC]: [, output.headers[_xassec]],
+ [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.CopyObjectResult = de_CopyObjectResult(data, context);
+ return contents;
+}, "de_CopyObjectCommand");
+var de_CreateBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_L]: [, output.headers[_lo]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_CreateBucketCommand");
+var de_CreateBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_CreateBucketMetadataTableConfigurationCommand");
+var de_CreateMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_AD]: [
+ () => void 0 !== output.headers[_xaad],
+ () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_xaad]))
+ ],
+ [_ARI]: [, output.headers[_xaari]],
+ [_SSE]: [, output.headers[_xasse]],
+ [_SSECA]: [, output.headers[_xasseca]],
+ [_SSECKMD]: [, output.headers[_xasseckm]],
+ [_SSEKMSKI]: [, output.headers[_xasseakki]],
+ [_SSEKMSEC]: [, output.headers[_xassec]],
+ [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
+ [_RC]: [, output.headers[_xarc]],
+ [_CA]: [, output.headers[_xaca]],
+ [_CT]: [, output.headers[_xact]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_B] != null) {
+ contents[_B] = (0, import_smithy_client.expectString)(data[_B]);
+ }
+ if (data[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(data[_K]);
+ }
+ if (data[_UI] != null) {
+ contents[_UI] = (0, import_smithy_client.expectString)(data[_UI]);
+ }
+ return contents;
+}, "de_CreateMultipartUploadCommand");
+var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_SSE]: [, output.headers[_xasse]],
+ [_SSEKMSKI]: [, output.headers[_xasseakki]],
+ [_SSEKMSEC]: [, output.headers[_xassec]],
+ [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_C] != null) {
+ contents[_C] = de_SessionCredentials(data[_C], context);
+ }
+ return contents;
+}, "de_CreateSessionCommand");
+var de_DeleteBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketCommand");
+var de_DeleteBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketAnalyticsConfigurationCommand");
+var de_DeleteBucketCorsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketCorsCommand");
+var de_DeleteBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketEncryptionCommand");
+var de_DeleteBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketIntelligentTieringConfigurationCommand");
+var de_DeleteBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketInventoryConfigurationCommand");
+var de_DeleteBucketLifecycleCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketLifecycleCommand");
+var de_DeleteBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketMetadataTableConfigurationCommand");
+var de_DeleteBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketMetricsConfigurationCommand");
+var de_DeleteBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketOwnershipControlsCommand");
+var de_DeleteBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketPolicyCommand");
+var de_DeleteBucketReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketReplicationCommand");
+var de_DeleteBucketTaggingCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketTaggingCommand");
+var de_DeleteBucketWebsiteCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteBucketWebsiteCommand");
+var de_DeleteObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client.parseBoolean)(output.headers[_xadm])],
+ [_VI]: [, output.headers[_xavi]],
+ [_RC]: [, output.headers[_xarc]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteObjectCommand");
+var de_DeleteObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.Deleted === "") {
+ contents[_De] = [];
+ } else if (data[_De] != null) {
+ contents[_De] = de_DeletedObjects((0, import_smithy_client.getArrayIfSingleItem)(data[_De]), context);
+ }
+ if (data.Error === "") {
+ contents[_Err] = [];
+ } else if (data[_Er] != null) {
+ contents[_Err] = de_Errors((0, import_smithy_client.getArrayIfSingleItem)(data[_Er]), context);
+ }
+ return contents;
+}, "de_DeleteObjectsCommand");
+var de_DeleteObjectTaggingCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_VI]: [, output.headers[_xavi]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeleteObjectTaggingCommand");
+var de_DeletePublicAccessBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_DeletePublicAccessBlockCommand");
+var de_GetBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(data[_S]);
+ }
+ return contents;
+}, "de_GetBucketAccelerateConfigurationCommand");
+var de_GetBucketAclCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.AccessControlList === "") {
+ contents[_Gr] = [];
+ } else if (data[_ACLc] != null && data[_ACLc][_G] != null) {
+ contents[_Gr] = de_Grants((0, import_smithy_client.getArrayIfSingleItem)(data[_ACLc][_G]), context);
+ }
+ if (data[_O] != null) {
+ contents[_O] = de_Owner(data[_O], context);
+ }
+ return contents;
+}, "de_GetBucketAclCommand");
+var de_GetBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.AnalyticsConfiguration = de_AnalyticsConfiguration(data, context);
+ return contents;
+}, "de_GetBucketAnalyticsConfigurationCommand");
+var de_GetBucketCorsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.CORSRule === "") {
+ contents[_CORSRu] = [];
+ } else if (data[_CORSR] != null) {
+ contents[_CORSRu] = de_CORSRules((0, import_smithy_client.getArrayIfSingleItem)(data[_CORSR]), context);
+ }
+ return contents;
+}, "de_GetBucketCorsCommand");
+var de_GetBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.ServerSideEncryptionConfiguration = de_ServerSideEncryptionConfiguration(data, context);
+ return contents;
+}, "de_GetBucketEncryptionCommand");
+var de_GetBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.IntelligentTieringConfiguration = de_IntelligentTieringConfiguration(data, context);
+ return contents;
+}, "de_GetBucketIntelligentTieringConfigurationCommand");
+var de_GetBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.InventoryConfiguration = de_InventoryConfiguration(data, context);
+ return contents;
+}, "de_GetBucketInventoryConfigurationCommand");
+var de_GetBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_TDMOS]: [, output.headers[_xatdmos]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.Rule === "") {
+ contents[_Rul] = [];
+ } else if (data[_Ru] != null) {
+ contents[_Rul] = de_LifecycleRules((0, import_smithy_client.getArrayIfSingleItem)(data[_Ru]), context);
+ }
+ return contents;
+}, "de_GetBucketLifecycleConfigurationCommand");
+var de_GetBucketLocationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_LC] != null) {
+ contents[_LC] = (0, import_smithy_client.expectString)(data[_LC]);
+ }
+ return contents;
+}, "de_GetBucketLocationCommand");
+var de_GetBucketLoggingCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_LE] != null) {
+ contents[_LE] = de_LoggingEnabled(data[_LE], context);
+ }
+ return contents;
+}, "de_GetBucketLoggingCommand");
+var de_GetBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.GetBucketMetadataTableConfigurationResult = de_GetBucketMetadataTableConfigurationResult(data, context);
+ return contents;
+}, "de_GetBucketMetadataTableConfigurationCommand");
+var de_GetBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.MetricsConfiguration = de_MetricsConfiguration(data, context);
+ return contents;
+}, "de_GetBucketMetricsConfigurationCommand");
+var de_GetBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_EBC] != null) {
+ contents[_EBC] = de_EventBridgeConfiguration(data[_EBC], context);
+ }
+ if (data.CloudFunctionConfiguration === "") {
+ contents[_LFC] = [];
+ } else if (data[_CFC] != null) {
+ contents[_LFC] = de_LambdaFunctionConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_CFC]), context);
+ }
+ if (data.QueueConfiguration === "") {
+ contents[_QCu] = [];
+ } else if (data[_QC] != null) {
+ contents[_QCu] = de_QueueConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_QC]), context);
+ }
+ if (data.TopicConfiguration === "") {
+ contents[_TCop] = [];
+ } else if (data[_TCo] != null) {
+ contents[_TCop] = de_TopicConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_TCo]), context);
+ }
+ return contents;
+}, "de_GetBucketNotificationConfigurationCommand");
+var de_GetBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.OwnershipControls = de_OwnershipControls(data, context);
+ return contents;
+}, "de_GetBucketOwnershipControlsCommand");
+var de_GetBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = await collectBodyString(output.body, context);
+ contents.Policy = (0, import_smithy_client.expectString)(data);
+ return contents;
+}, "de_GetBucketPolicyCommand");
+var de_GetBucketPolicyStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.PolicyStatus = de_PolicyStatus(data, context);
+ return contents;
+}, "de_GetBucketPolicyStatusCommand");
+var de_GetBucketReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.ReplicationConfiguration = de_ReplicationConfiguration(data, context);
+ return contents;
+}, "de_GetBucketReplicationCommand");
+var de_GetBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_Pa] != null) {
+ contents[_Pa] = (0, import_smithy_client.expectString)(data[_Pa]);
+ }
+ return contents;
+}, "de_GetBucketRequestPaymentCommand");
+var de_GetBucketTaggingCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.TagSet === "") {
+ contents[_TS] = [];
+ } else if (data[_TS] != null && data[_TS][_Ta] != null) {
+ contents[_TS] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(data[_TS][_Ta]), context);
+ }
+ return contents;
+}, "de_GetBucketTaggingCommand");
+var de_GetBucketVersioningCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_MDf] != null) {
+ contents[_MFAD] = (0, import_smithy_client.expectString)(data[_MDf]);
+ }
+ if (data[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(data[_S]);
+ }
+ return contents;
+}, "de_GetBucketVersioningCommand");
+var de_GetBucketWebsiteCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_ED] != null) {
+ contents[_ED] = de_ErrorDocument(data[_ED], context);
+ }
+ if (data[_ID] != null) {
+ contents[_ID] = de_IndexDocument(data[_ID], context);
+ }
+ if (data[_RART] != null) {
+ contents[_RART] = de_RedirectAllRequestsTo(data[_RART], context);
+ }
+ if (data.RoutingRules === "") {
+ contents[_RRo] = [];
+ } else if (data[_RRo] != null && data[_RRo][_RRou] != null) {
+ contents[_RRo] = de_RoutingRules((0, import_smithy_client.getArrayIfSingleItem)(data[_RRo][_RRou]), context);
+ }
+ return contents;
+}, "de_GetBucketWebsiteCommand");
+var de_GetObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client.parseBoolean)(output.headers[_xadm])],
+ [_AR]: [, output.headers[_ar]],
+ [_Exp]: [, output.headers[_xae]],
+ [_Re]: [, output.headers[_xar]],
+ [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_lm]))],
+ [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client.strictParseLong)(output.headers[_cl_])],
+ [_ETa]: [, output.headers[_eta]],
+ [_CCRC]: [, output.headers[_xacc]],
+ [_CCRCC]: [, output.headers[_xacc_]],
+ [_CCRCNVME]: [, output.headers[_xacc__]],
+ [_CSHA]: [, output.headers[_xacs]],
+ [_CSHAh]: [, output.headers[_xacs_]],
+ [_CT]: [, output.headers[_xact]],
+ [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xamm])],
+ [_VI]: [, output.headers[_xavi]],
+ [_CC]: [, output.headers[_cc]],
+ [_CD]: [, output.headers[_cd]],
+ [_CE]: [, output.headers[_ce]],
+ [_CL]: [, output.headers[_cl]],
+ [_CR]: [, output.headers[_cr]],
+ [_CTo]: [, output.headers[_ct]],
+ [_E]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_e]))],
+ [_ES]: [, output.headers[_ex]],
+ [_WRL]: [, output.headers[_xawrl]],
+ [_SSE]: [, output.headers[_xasse]],
+ [_SSECA]: [, output.headers[_xasseca]],
+ [_SSECKMD]: [, output.headers[_xasseckm]],
+ [_SSEKMSKI]: [, output.headers[_xasseakki]],
+ [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
+ [_SC]: [, output.headers[_xasc]],
+ [_RC]: [, output.headers[_xarc]],
+ [_RS]: [, output.headers[_xars]],
+ [_PC]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xampc])],
+ [_TC]: [() => void 0 !== output.headers[_xatc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatc])],
+ [_OLM]: [, output.headers[_xaolm]],
+ [_OLRUD]: [
+ () => void 0 !== output.headers[_xaolrud],
+ () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud]))
+ ],
+ [_OLLHS]: [, output.headers[_xaollh]],
+ Metadata: [
+ ,
+ Object.keys(output.headers).filter((header) => header.startsWith("x-amz-meta-")).reduce((acc, header) => {
+ acc[header.substring(11)] = output.headers[header];
+ return acc;
+ }, {})
+ ]
+ });
+ const data = output.body;
+ context.sdkStreamMixin(data);
+ contents.Body = data;
+ return contents;
+}, "de_GetObjectCommand");
+var de_GetObjectAclCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.AccessControlList === "") {
+ contents[_Gr] = [];
+ } else if (data[_ACLc] != null && data[_ACLc][_G] != null) {
+ contents[_Gr] = de_Grants((0, import_smithy_client.getArrayIfSingleItem)(data[_ACLc][_G]), context);
+ }
+ if (data[_O] != null) {
+ contents[_O] = de_Owner(data[_O], context);
+ }
+ return contents;
+}, "de_GetObjectAclCommand");
+var de_GetObjectAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client.parseBoolean)(output.headers[_xadm])],
+ [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_lm]))],
+ [_VI]: [, output.headers[_xavi]],
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_Ch] != null) {
+ contents[_Ch] = de_Checksum(data[_Ch], context);
+ }
+ if (data[_ETa] != null) {
+ contents[_ETa] = (0, import_smithy_client.expectString)(data[_ETa]);
+ }
+ if (data[_OP] != null) {
+ contents[_OP] = de_GetObjectAttributesParts(data[_OP], context);
+ }
+ if (data[_OSb] != null) {
+ contents[_OSb] = (0, import_smithy_client.strictParseLong)(data[_OSb]);
+ }
+ if (data[_SC] != null) {
+ contents[_SC] = (0, import_smithy_client.expectString)(data[_SC]);
+ }
+ return contents;
+}, "de_GetObjectAttributesCommand");
+var de_GetObjectLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.LegalHold = de_ObjectLockLegalHold(data, context);
+ return contents;
+}, "de_GetObjectLegalHoldCommand");
+var de_GetObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.ObjectLockConfiguration = de_ObjectLockConfiguration(data, context);
+ return contents;
+}, "de_GetObjectLockConfigurationCommand");
+var de_GetObjectRetentionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.Retention = de_ObjectLockRetention(data, context);
+ return contents;
+}, "de_GetObjectRetentionCommand");
+var de_GetObjectTaggingCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_VI]: [, output.headers[_xavi]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.TagSet === "") {
+ contents[_TS] = [];
+ } else if (data[_TS] != null && data[_TS][_Ta] != null) {
+ contents[_TS] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(data[_TS][_Ta]), context);
+ }
+ return contents;
+}, "de_GetObjectTaggingCommand");
+var de_GetObjectTorrentCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = output.body;
+ context.sdkStreamMixin(data);
+ contents.Body = data;
+ return contents;
+}, "de_GetObjectTorrentCommand");
+var de_GetPublicAccessBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.PublicAccessBlockConfiguration = de_PublicAccessBlockConfiguration(data, context);
+ return contents;
+}, "de_GetPublicAccessBlockCommand");
+var de_HeadBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_BLT]: [, output.headers[_xablt]],
+ [_BLN]: [, output.headers[_xabln]],
+ [_BR]: [, output.headers[_xabr]],
+ [_APA]: [() => void 0 !== output.headers[_xaapa], () => (0, import_smithy_client.parseBoolean)(output.headers[_xaapa])]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_HeadBucketCommand");
+var de_HeadObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client.parseBoolean)(output.headers[_xadm])],
+ [_AR]: [, output.headers[_ar]],
+ [_Exp]: [, output.headers[_xae]],
+ [_Re]: [, output.headers[_xar]],
+ [_AS]: [, output.headers[_xaas]],
+ [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_lm]))],
+ [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client.strictParseLong)(output.headers[_cl_])],
+ [_CCRC]: [, output.headers[_xacc]],
+ [_CCRCC]: [, output.headers[_xacc_]],
+ [_CCRCNVME]: [, output.headers[_xacc__]],
+ [_CSHA]: [, output.headers[_xacs]],
+ [_CSHAh]: [, output.headers[_xacs_]],
+ [_CT]: [, output.headers[_xact]],
+ [_ETa]: [, output.headers[_eta]],
+ [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xamm])],
+ [_VI]: [, output.headers[_xavi]],
+ [_CC]: [, output.headers[_cc]],
+ [_CD]: [, output.headers[_cd]],
+ [_CE]: [, output.headers[_ce]],
+ [_CL]: [, output.headers[_cl]],
+ [_CTo]: [, output.headers[_ct]],
+ [_CR]: [, output.headers[_cr]],
+ [_E]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_e]))],
+ [_ES]: [, output.headers[_ex]],
+ [_WRL]: [, output.headers[_xawrl]],
+ [_SSE]: [, output.headers[_xasse]],
+ [_SSECA]: [, output.headers[_xasseca]],
+ [_SSECKMD]: [, output.headers[_xasseckm]],
+ [_SSEKMSKI]: [, output.headers[_xasseakki]],
+ [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
+ [_SC]: [, output.headers[_xasc]],
+ [_RC]: [, output.headers[_xarc]],
+ [_RS]: [, output.headers[_xars]],
+ [_PC]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xampc])],
+ [_OLM]: [, output.headers[_xaolm]],
+ [_OLRUD]: [
+ () => void 0 !== output.headers[_xaolrud],
+ () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud]))
+ ],
+ [_OLLHS]: [, output.headers[_xaollh]],
+ Metadata: [
+ ,
+ Object.keys(output.headers).filter((header) => header.startsWith("x-amz-meta-")).reduce((acc, header) => {
+ acc[header.substring(11)] = output.headers[header];
+ return acc;
+ }, {})
+ ]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_HeadObjectCommand");
+var de_ListBucketAnalyticsConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.AnalyticsConfiguration === "") {
+ contents[_ACLn] = [];
+ } else if (data[_AC] != null) {
+ contents[_ACLn] = de_AnalyticsConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_AC]), context);
+ }
+ if (data[_CTon] != null) {
+ contents[_CTon] = (0, import_smithy_client.expectString)(data[_CTon]);
+ }
+ if (data[_IT] != null) {
+ contents[_IT] = (0, import_smithy_client.parseBoolean)(data[_IT]);
+ }
+ if (data[_NCT] != null) {
+ contents[_NCT] = (0, import_smithy_client.expectString)(data[_NCT]);
+ }
+ return contents;
+}, "de_ListBucketAnalyticsConfigurationsCommand");
+var de_ListBucketIntelligentTieringConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_CTon] != null) {
+ contents[_CTon] = (0, import_smithy_client.expectString)(data[_CTon]);
+ }
+ if (data.IntelligentTieringConfiguration === "") {
+ contents[_ITCL] = [];
+ } else if (data[_ITC] != null) {
+ contents[_ITCL] = de_IntelligentTieringConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_ITC]), context);
+ }
+ if (data[_IT] != null) {
+ contents[_IT] = (0, import_smithy_client.parseBoolean)(data[_IT]);
+ }
+ if (data[_NCT] != null) {
+ contents[_NCT] = (0, import_smithy_client.expectString)(data[_NCT]);
+ }
+ return contents;
+}, "de_ListBucketIntelligentTieringConfigurationsCommand");
+var de_ListBucketInventoryConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_CTon] != null) {
+ contents[_CTon] = (0, import_smithy_client.expectString)(data[_CTon]);
+ }
+ if (data.InventoryConfiguration === "") {
+ contents[_ICL] = [];
+ } else if (data[_IC] != null) {
+ contents[_ICL] = de_InventoryConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_IC]), context);
+ }
+ if (data[_IT] != null) {
+ contents[_IT] = (0, import_smithy_client.parseBoolean)(data[_IT]);
+ }
+ if (data[_NCT] != null) {
+ contents[_NCT] = (0, import_smithy_client.expectString)(data[_NCT]);
+ }
+ return contents;
+}, "de_ListBucketInventoryConfigurationsCommand");
+var de_ListBucketMetricsConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_CTon] != null) {
+ contents[_CTon] = (0, import_smithy_client.expectString)(data[_CTon]);
+ }
+ if (data[_IT] != null) {
+ contents[_IT] = (0, import_smithy_client.parseBoolean)(data[_IT]);
+ }
+ if (data.MetricsConfiguration === "") {
+ contents[_MCL] = [];
+ } else if (data[_MC] != null) {
+ contents[_MCL] = de_MetricsConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_MC]), context);
+ }
+ if (data[_NCT] != null) {
+ contents[_NCT] = (0, import_smithy_client.expectString)(data[_NCT]);
+ }
+ return contents;
+}, "de_ListBucketMetricsConfigurationsCommand");
+var de_ListBucketsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.Buckets === "") {
+ contents[_Bu] = [];
+ } else if (data[_Bu] != null && data[_Bu][_B] != null) {
+ contents[_Bu] = de_Buckets((0, import_smithy_client.getArrayIfSingleItem)(data[_Bu][_B]), context);
+ }
+ if (data[_CTon] != null) {
+ contents[_CTon] = (0, import_smithy_client.expectString)(data[_CTon]);
+ }
+ if (data[_O] != null) {
+ contents[_O] = de_Owner(data[_O], context);
+ }
+ if (data[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(data[_P]);
+ }
+ return contents;
+}, "de_ListBucketsCommand");
+var de_ListDirectoryBucketsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.Buckets === "") {
+ contents[_Bu] = [];
+ } else if (data[_Bu] != null && data[_Bu][_B] != null) {
+ contents[_Bu] = de_Buckets((0, import_smithy_client.getArrayIfSingleItem)(data[_Bu][_B]), context);
+ }
+ if (data[_CTon] != null) {
+ contents[_CTon] = (0, import_smithy_client.expectString)(data[_CTon]);
+ }
+ return contents;
+}, "de_ListDirectoryBucketsCommand");
+var de_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_B] != null) {
+ contents[_B] = (0, import_smithy_client.expectString)(data[_B]);
+ }
+ if (data.CommonPrefixes === "") {
+ contents[_CP] = [];
+ } else if (data[_CP] != null) {
+ contents[_CP] = de_CommonPrefixList((0, import_smithy_client.getArrayIfSingleItem)(data[_CP]), context);
+ }
+ if (data[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(data[_D]);
+ }
+ if (data[_ET] != null) {
+ contents[_ET] = (0, import_smithy_client.expectString)(data[_ET]);
+ }
+ if (data[_IT] != null) {
+ contents[_IT] = (0, import_smithy_client.parseBoolean)(data[_IT]);
+ }
+ if (data[_KM] != null) {
+ contents[_KM] = (0, import_smithy_client.expectString)(data[_KM]);
+ }
+ if (data[_MU] != null) {
+ contents[_MU] = (0, import_smithy_client.strictParseInt32)(data[_MU]);
+ }
+ if (data[_NKM] != null) {
+ contents[_NKM] = (0, import_smithy_client.expectString)(data[_NKM]);
+ }
+ if (data[_NUIM] != null) {
+ contents[_NUIM] = (0, import_smithy_client.expectString)(data[_NUIM]);
+ }
+ if (data[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(data[_P]);
+ }
+ if (data[_UIM] != null) {
+ contents[_UIM] = (0, import_smithy_client.expectString)(data[_UIM]);
+ }
+ if (data.Upload === "") {
+ contents[_Up] = [];
+ } else if (data[_U] != null) {
+ contents[_Up] = de_MultipartUploadList((0, import_smithy_client.getArrayIfSingleItem)(data[_U]), context);
+ }
+ return contents;
+}, "de_ListMultipartUploadsCommand");
+var de_ListObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.CommonPrefixes === "") {
+ contents[_CP] = [];
+ } else if (data[_CP] != null) {
+ contents[_CP] = de_CommonPrefixList((0, import_smithy_client.getArrayIfSingleItem)(data[_CP]), context);
+ }
+ if (data.Contents === "") {
+ contents[_Co] = [];
+ } else if (data[_Co] != null) {
+ contents[_Co] = de_ObjectList((0, import_smithy_client.getArrayIfSingleItem)(data[_Co]), context);
+ }
+ if (data[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(data[_D]);
+ }
+ if (data[_ET] != null) {
+ contents[_ET] = (0, import_smithy_client.expectString)(data[_ET]);
+ }
+ if (data[_IT] != null) {
+ contents[_IT] = (0, import_smithy_client.parseBoolean)(data[_IT]);
+ }
+ if (data[_M] != null) {
+ contents[_M] = (0, import_smithy_client.expectString)(data[_M]);
+ }
+ if (data[_MK] != null) {
+ contents[_MK] = (0, import_smithy_client.strictParseInt32)(data[_MK]);
+ }
+ if (data[_N] != null) {
+ contents[_N] = (0, import_smithy_client.expectString)(data[_N]);
+ }
+ if (data[_NM] != null) {
+ contents[_NM] = (0, import_smithy_client.expectString)(data[_NM]);
+ }
+ if (data[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(data[_P]);
+ }
+ return contents;
+}, "de_ListObjectsCommand");
+var de_ListObjectsV2Command = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.CommonPrefixes === "") {
+ contents[_CP] = [];
+ } else if (data[_CP] != null) {
+ contents[_CP] = de_CommonPrefixList((0, import_smithy_client.getArrayIfSingleItem)(data[_CP]), context);
+ }
+ if (data.Contents === "") {
+ contents[_Co] = [];
+ } else if (data[_Co] != null) {
+ contents[_Co] = de_ObjectList((0, import_smithy_client.getArrayIfSingleItem)(data[_Co]), context);
+ }
+ if (data[_CTon] != null) {
+ contents[_CTon] = (0, import_smithy_client.expectString)(data[_CTon]);
+ }
+ if (data[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(data[_D]);
+ }
+ if (data[_ET] != null) {
+ contents[_ET] = (0, import_smithy_client.expectString)(data[_ET]);
+ }
+ if (data[_IT] != null) {
+ contents[_IT] = (0, import_smithy_client.parseBoolean)(data[_IT]);
+ }
+ if (data[_KC] != null) {
+ contents[_KC] = (0, import_smithy_client.strictParseInt32)(data[_KC]);
+ }
+ if (data[_MK] != null) {
+ contents[_MK] = (0, import_smithy_client.strictParseInt32)(data[_MK]);
+ }
+ if (data[_N] != null) {
+ contents[_N] = (0, import_smithy_client.expectString)(data[_N]);
+ }
+ if (data[_NCT] != null) {
+ contents[_NCT] = (0, import_smithy_client.expectString)(data[_NCT]);
+ }
+ if (data[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(data[_P]);
+ }
+ if (data[_SA] != null) {
+ contents[_SA] = (0, import_smithy_client.expectString)(data[_SA]);
+ }
+ return contents;
+}, "de_ListObjectsV2Command");
+var de_ListObjectVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data.CommonPrefixes === "") {
+ contents[_CP] = [];
+ } else if (data[_CP] != null) {
+ contents[_CP] = de_CommonPrefixList((0, import_smithy_client.getArrayIfSingleItem)(data[_CP]), context);
+ }
+ if (data.DeleteMarker === "") {
+ contents[_DMe] = [];
+ } else if (data[_DM] != null) {
+ contents[_DMe] = de_DeleteMarkers((0, import_smithy_client.getArrayIfSingleItem)(data[_DM]), context);
+ }
+ if (data[_D] != null) {
+ contents[_D] = (0, import_smithy_client.expectString)(data[_D]);
+ }
+ if (data[_ET] != null) {
+ contents[_ET] = (0, import_smithy_client.expectString)(data[_ET]);
+ }
+ if (data[_IT] != null) {
+ contents[_IT] = (0, import_smithy_client.parseBoolean)(data[_IT]);
+ }
+ if (data[_KM] != null) {
+ contents[_KM] = (0, import_smithy_client.expectString)(data[_KM]);
+ }
+ if (data[_MK] != null) {
+ contents[_MK] = (0, import_smithy_client.strictParseInt32)(data[_MK]);
+ }
+ if (data[_N] != null) {
+ contents[_N] = (0, import_smithy_client.expectString)(data[_N]);
+ }
+ if (data[_NKM] != null) {
+ contents[_NKM] = (0, import_smithy_client.expectString)(data[_NKM]);
+ }
+ if (data[_NVIM] != null) {
+ contents[_NVIM] = (0, import_smithy_client.expectString)(data[_NVIM]);
+ }
+ if (data[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(data[_P]);
+ }
+ if (data[_VIM] != null) {
+ contents[_VIM] = (0, import_smithy_client.expectString)(data[_VIM]);
+ }
+ if (data.Version === "") {
+ contents[_Ve] = [];
+ } else if (data[_V] != null) {
+ contents[_Ve] = de_ObjectVersionList((0, import_smithy_client.getArrayIfSingleItem)(data[_V]), context);
+ }
+ return contents;
+}, "de_ListObjectVersionsCommand");
+var de_ListPartsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_AD]: [
+ () => void 0 !== output.headers[_xaad],
+ () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_xaad]))
+ ],
+ [_ARI]: [, output.headers[_xaari]],
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
+ if (data[_B] != null) {
+ contents[_B] = (0, import_smithy_client.expectString)(data[_B]);
+ }
+ if (data[_CA] != null) {
+ contents[_CA] = (0, import_smithy_client.expectString)(data[_CA]);
+ }
+ if (data[_CT] != null) {
+ contents[_CT] = (0, import_smithy_client.expectString)(data[_CT]);
+ }
+ if (data[_In] != null) {
+ contents[_In] = de_Initiator(data[_In], context);
+ }
+ if (data[_IT] != null) {
+ contents[_IT] = (0, import_smithy_client.parseBoolean)(data[_IT]);
+ }
+ if (data[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(data[_K]);
+ }
+ if (data[_MP] != null) {
+ contents[_MP] = (0, import_smithy_client.strictParseInt32)(data[_MP]);
+ }
+ if (data[_NPNM] != null) {
+ contents[_NPNM] = (0, import_smithy_client.expectString)(data[_NPNM]);
+ }
+ if (data[_O] != null) {
+ contents[_O] = de_Owner(data[_O], context);
+ }
+ if (data[_PNM] != null) {
+ contents[_PNM] = (0, import_smithy_client.expectString)(data[_PNM]);
+ }
+ if (data.Part === "") {
+ contents[_Part] = [];
+ } else if (data[_Par] != null) {
+ contents[_Part] = de_Parts((0, import_smithy_client.getArrayIfSingleItem)(data[_Par]), context);
+ }
+ if (data[_SC] != null) {
+ contents[_SC] = (0, import_smithy_client.expectString)(data[_SC]);
+ }
+ if (data[_UI] != null) {
+ contents[_UI] = (0, import_smithy_client.expectString)(data[_UI]);
+ }
+ return contents;
+}, "de_ListPartsCommand");
+var de_PutBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketAccelerateConfigurationCommand");
+var de_PutBucketAclCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketAclCommand");
+var de_PutBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketAnalyticsConfigurationCommand");
+var de_PutBucketCorsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketCorsCommand");
+var de_PutBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketEncryptionCommand");
+var de_PutBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketIntelligentTieringConfigurationCommand");
+var de_PutBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketInventoryConfigurationCommand");
+var de_PutBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_TDMOS]: [, output.headers[_xatdmos]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketLifecycleConfigurationCommand");
+var de_PutBucketLoggingCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketLoggingCommand");
+var de_PutBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketMetricsConfigurationCommand");
+var de_PutBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketNotificationConfigurationCommand");
+var de_PutBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketOwnershipControlsCommand");
+var de_PutBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketPolicyCommand");
+var de_PutBucketReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketReplicationCommand");
+var de_PutBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketRequestPaymentCommand");
+var de_PutBucketTaggingCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketTaggingCommand");
+var de_PutBucketVersioningCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketVersioningCommand");
+var de_PutBucketWebsiteCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutBucketWebsiteCommand");
+var de_PutObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_Exp]: [, output.headers[_xae]],
+ [_ETa]: [, output.headers[_eta]],
+ [_CCRC]: [, output.headers[_xacc]],
+ [_CCRCC]: [, output.headers[_xacc_]],
+ [_CCRCNVME]: [, output.headers[_xacc__]],
+ [_CSHA]: [, output.headers[_xacs]],
+ [_CSHAh]: [, output.headers[_xacs_]],
+ [_CT]: [, output.headers[_xact]],
+ [_SSE]: [, output.headers[_xasse]],
+ [_VI]: [, output.headers[_xavi]],
+ [_SSECA]: [, output.headers[_xasseca]],
+ [_SSECKMD]: [, output.headers[_xasseckm]],
+ [_SSEKMSKI]: [, output.headers[_xasseakki]],
+ [_SSEKMSEC]: [, output.headers[_xassec]],
+ [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
+ [_Si]: [() => void 0 !== output.headers[_xaos], () => (0, import_smithy_client.strictParseLong)(output.headers[_xaos])],
+ [_RC]: [, output.headers[_xarc]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutObjectCommand");
+var de_PutObjectAclCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutObjectAclCommand");
+var de_PutObjectLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutObjectLegalHoldCommand");
+var de_PutObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutObjectLockConfigurationCommand");
+var de_PutObjectRetentionCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutObjectRetentionCommand");
+var de_PutObjectTaggingCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_VI]: [, output.headers[_xavi]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutObjectTaggingCommand");
+var de_PutPublicAccessBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_PutPublicAccessBlockCommand");
+var de_RestoreObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_RC]: [, output.headers[_xarc]],
+ [_ROP]: [, output.headers[_xarop]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_RestoreObjectCommand");
+var de_SelectObjectContentCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = output.body;
+ contents.Payload = de_SelectObjectContentEventStream(data, context);
+ return contents;
+}, "de_SelectObjectContentCommand");
+var de_UploadPartCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_SSE]: [, output.headers[_xasse]],
+ [_ETa]: [, output.headers[_eta]],
+ [_CCRC]: [, output.headers[_xacc]],
+ [_CCRCC]: [, output.headers[_xacc_]],
+ [_CCRCNVME]: [, output.headers[_xacc__]],
+ [_CSHA]: [, output.headers[_xacs]],
+ [_CSHAh]: [, output.headers[_xacs_]],
+ [_SSECA]: [, output.headers[_xasseca]],
+ [_SSECKMD]: [, output.headers[_xasseckm]],
+ [_SSEKMSKI]: [, output.headers[_xasseakki]],
+ [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
+ [_RC]: [, output.headers[_xarc]]
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_UploadPartCommand");
+var de_UploadPartCopyCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output),
+ [_CSVI]: [, output.headers[_xacsvi]],
+ [_SSE]: [, output.headers[_xasse]],
+ [_SSECA]: [, output.headers[_xasseca]],
+ [_SSECKMD]: [, output.headers[_xasseckm]],
+ [_SSEKMSKI]: [, output.headers[_xasseakki]],
+ [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
+ [_RC]: [, output.headers[_xarc]]
+ });
+ const data = (0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context));
+ contents.CopyPartResult = de_CopyPartResult(data, context);
+ return contents;
+}, "de_UploadPartCopyCommand");
+var de_WriteGetObjectResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_WriteGetObjectResponseCommand");
+var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core.parseXmlErrorBody)(output.body, context)
+ };
+ const errorCode = (0, import_core.loadRestXmlErrorCode)(output, parsedOutput.body);
+ switch (errorCode) {
+ case "NoSuchUpload":
+ case "com.amazonaws.s3#NoSuchUpload":
+ throw await de_NoSuchUploadRes(parsedOutput, context);
+ case "ObjectNotInActiveTierError":
+ case "com.amazonaws.s3#ObjectNotInActiveTierError":
+ throw await de_ObjectNotInActiveTierErrorRes(parsedOutput, context);
+ case "BucketAlreadyExists":
+ case "com.amazonaws.s3#BucketAlreadyExists":
+ throw await de_BucketAlreadyExistsRes(parsedOutput, context);
+ case "BucketAlreadyOwnedByYou":
+ case "com.amazonaws.s3#BucketAlreadyOwnedByYou":
+ throw await de_BucketAlreadyOwnedByYouRes(parsedOutput, context);
+ case "NoSuchBucket":
+ case "com.amazonaws.s3#NoSuchBucket":
+ throw await de_NoSuchBucketRes(parsedOutput, context);
+ case "InvalidObjectState":
+ case "com.amazonaws.s3#InvalidObjectState":
+ throw await de_InvalidObjectStateRes(parsedOutput, context);
+ case "NoSuchKey":
+ case "com.amazonaws.s3#NoSuchKey":
+ throw await de_NoSuchKeyRes(parsedOutput, context);
+ case "NotFound":
+ case "com.amazonaws.s3#NotFound":
+ throw await de_NotFoundRes(parsedOutput, context);
+ case "EncryptionTypeMismatch":
+ case "com.amazonaws.s3#EncryptionTypeMismatch":
+ throw await de_EncryptionTypeMismatchRes(parsedOutput, context);
+ case "InvalidRequest":
+ case "com.amazonaws.s3#InvalidRequest":
+ throw await de_InvalidRequestRes(parsedOutput, context);
+ case "InvalidWriteOffset":
+ case "com.amazonaws.s3#InvalidWriteOffset":
+ throw await de_InvalidWriteOffsetRes(parsedOutput, context);
+ case "TooManyParts":
+ case "com.amazonaws.s3#TooManyParts":
+ throw await de_TooManyPartsRes(parsedOutput, context);
+ case "ObjectAlreadyInActiveTierError":
+ case "com.amazonaws.s3#ObjectAlreadyInActiveTierError":
+ throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody,
+ errorCode
+ });
+ }
+}, "de_CommandError");
+var throwDefaultError = (0, import_smithy_client.withBaseException)(S3ServiceException);
+var de_BucketAlreadyExistsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new BucketAlreadyExists({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_BucketAlreadyExistsRes");
+var de_BucketAlreadyOwnedByYouRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new BucketAlreadyOwnedByYou({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_BucketAlreadyOwnedByYouRes");
+var de_EncryptionTypeMismatchRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new EncryptionTypeMismatch({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_EncryptionTypeMismatchRes");
+var de_InvalidObjectStateRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ if (data[_AT] != null) {
+ contents[_AT] = (0, import_smithy_client.expectString)(data[_AT]);
+ }
+ if (data[_SC] != null) {
+ contents[_SC] = (0, import_smithy_client.expectString)(data[_SC]);
+ }
+ const exception = new InvalidObjectState({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_InvalidObjectStateRes");
+var de_InvalidRequestRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new InvalidRequest({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_InvalidRequestRes");
+var de_InvalidWriteOffsetRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new InvalidWriteOffset({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_InvalidWriteOffsetRes");
+var de_NoSuchBucketRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new NoSuchBucket({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_NoSuchBucketRes");
+var de_NoSuchKeyRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new NoSuchKey({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_NoSuchKeyRes");
+var de_NoSuchUploadRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new NoSuchUpload({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_NoSuchUploadRes");
+var de_NotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new NotFound({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_NotFoundRes");
+var de_ObjectAlreadyInActiveTierErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new ObjectAlreadyInActiveTierError({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_ObjectAlreadyInActiveTierErrorRes");
+var de_ObjectNotInActiveTierErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new ObjectNotInActiveTierError({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_ObjectNotInActiveTierErrorRes");
+var de_TooManyPartsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const exception = new TooManyParts({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_TooManyPartsRes");
+var de_SelectObjectContentEventStream = /* @__PURE__ */ __name((output, context) => {
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
+ if (event["Records"] != null) {
+ return {
+ Records: await de_RecordsEvent_event(event["Records"], context)
+ };
+ }
+ if (event["Stats"] != null) {
+ return {
+ Stats: await de_StatsEvent_event(event["Stats"], context)
+ };
+ }
+ if (event["Progress"] != null) {
+ return {
+ Progress: await de_ProgressEvent_event(event["Progress"], context)
+ };
+ }
+ if (event["Cont"] != null) {
+ return {
+ Cont: await de_ContinuationEvent_event(event["Cont"], context)
+ };
+ }
+ if (event["End"] != null) {
+ return {
+ End: await de_EndEvent_event(event["End"], context)
+ };
+ }
+ return { $unknown: output };
+ });
+}, "de_SelectObjectContentEventStream");
+var de_ContinuationEvent_event = /* @__PURE__ */ __name(async (output, context) => {
+ const contents = {};
+ const data = await (0, import_core.parseXmlBody)(output.body, context);
+ Object.assign(contents, de_ContinuationEvent(data, context));
+ return contents;
+}, "de_ContinuationEvent_event");
+var de_EndEvent_event = /* @__PURE__ */ __name(async (output, context) => {
+ const contents = {};
+ const data = await (0, import_core.parseXmlBody)(output.body, context);
+ Object.assign(contents, de_EndEvent(data, context));
+ return contents;
+}, "de_EndEvent_event");
+var de_ProgressEvent_event = /* @__PURE__ */ __name(async (output, context) => {
+ const contents = {};
+ const data = await (0, import_core.parseXmlBody)(output.body, context);
+ contents.Details = de_Progress(data, context);
+ return contents;
+}, "de_ProgressEvent_event");
+var de_RecordsEvent_event = /* @__PURE__ */ __name(async (output, context) => {
+ const contents = {};
+ contents.Payload = output.body;
+ return contents;
+}, "de_RecordsEvent_event");
+var de_StatsEvent_event = /* @__PURE__ */ __name(async (output, context) => {
+ const contents = {};
+ const data = await (0, import_core.parseXmlBody)(output.body, context);
+ contents.Details = de_Stats(data, context);
+ return contents;
+}, "de_StatsEvent_event");
+var se_AbortIncompleteMultipartUpload = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_AIMU);
+ if (input[_DAI] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_DAI, String(input[_DAI])).n(_DAI));
+ }
+ return bn;
+}, "se_AbortIncompleteMultipartUpload");
+var se_AccelerateConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ACc);
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_BAS, input[_S]).n(_S));
+ }
+ return bn;
+}, "se_AccelerateConfiguration");
+var se_AccessControlPolicy = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ACP);
+ bn.lc(input, "Grants", "AccessControlList", () => se_Grants(input[_Gr], context));
+ if (input[_O] != null) {
+ bn.c(se_Owner(input[_O], context).n(_O));
+ }
+ return bn;
+}, "se_AccessControlPolicy");
+var se_AccessControlTranslation = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ACT);
+ if (input[_O] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OOw, input[_O]).n(_O));
+ }
+ return bn;
+}, "se_AccessControlTranslation");
+var se_AllowedHeaders = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = import_xml_builder.XmlNode.of(_AH, entry);
+ return n.n(_me);
+ });
+}, "se_AllowedHeaders");
+var se_AllowedMethods = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = import_xml_builder.XmlNode.of(_AM, entry);
+ return n.n(_me);
+ });
+}, "se_AllowedMethods");
+var se_AllowedOrigins = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = import_xml_builder.XmlNode.of(_AO, entry);
+ return n.n(_me);
+ });
+}, "se_AllowedOrigins");
+var se_AnalyticsAndOperator = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_AAO);
+ bn.cc(input, _P);
+ bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context));
+ return bn;
+}, "se_AnalyticsAndOperator");
+var se_AnalyticsConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_AC);
+ if (input[_I] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_AI, input[_I]).n(_I));
+ }
+ if (input[_F] != null) {
+ bn.c(se_AnalyticsFilter(input[_F], context).n(_F));
+ }
+ if (input[_SCA] != null) {
+ bn.c(se_StorageClassAnalysis(input[_SCA], context).n(_SCA));
+ }
+ return bn;
+}, "se_AnalyticsConfiguration");
+var se_AnalyticsExportDestination = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_AED);
+ if (input[_SBD] != null) {
+ bn.c(se_AnalyticsS3BucketDestination(input[_SBD], context).n(_SBD));
+ }
+ return bn;
+}, "se_AnalyticsExportDestination");
+var se_AnalyticsFilter = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_AF);
+ AnalyticsFilter.visit(input, {
+ Prefix: /* @__PURE__ */ __name((value) => {
+ if (input[_P] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_P, value).n(_P));
+ }
+ }, "Prefix"),
+ Tag: /* @__PURE__ */ __name((value) => {
+ if (input[_Ta] != null) {
+ bn.c(se_Tag(value, context).n(_Ta));
+ }
+ }, "Tag"),
+ And: /* @__PURE__ */ __name((value) => {
+ if (input[_A] != null) {
+ bn.c(se_AnalyticsAndOperator(value, context).n(_A));
+ }
+ }, "And"),
+ _: /* @__PURE__ */ __name((name, value) => {
+ if (!(value instanceof import_xml_builder.XmlNode || value instanceof import_xml_builder.XmlText)) {
+ throw new Error("Unable to serialize unknown union members in XML.");
+ }
+ bn.c(new import_xml_builder.XmlNode(name).c(value));
+ }, "_")
+ });
+ return bn;
+}, "se_AnalyticsFilter");
+var se_AnalyticsS3BucketDestination = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ASBD);
+ if (input[_Fo] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_ASEFF, input[_Fo]).n(_Fo));
+ }
+ if (input[_BAI] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_AIc, input[_BAI]).n(_BAI));
+ }
+ if (input[_B] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_BN, input[_B]).n(_B));
+ }
+ bn.cc(input, _P);
+ return bn;
+}, "se_AnalyticsS3BucketDestination");
+var se_BucketInfo = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_BI);
+ bn.cc(input, _DR);
+ if (input[_Ty] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_BT, input[_Ty]).n(_Ty));
+ }
+ return bn;
+}, "se_BucketInfo");
+var se_BucketLifecycleConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_BLC);
+ bn.l(input, "Rules", "Rule", () => se_LifecycleRules(input[_Rul], context));
+ return bn;
+}, "se_BucketLifecycleConfiguration");
+var se_BucketLoggingStatus = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_BLS);
+ if (input[_LE] != null) {
+ bn.c(se_LoggingEnabled(input[_LE], context).n(_LE));
+ }
+ return bn;
+}, "se_BucketLoggingStatus");
+var se_CompletedMultipartUpload = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_CMU);
+ bn.l(input, "Parts", "Part", () => se_CompletedPartList(input[_Part], context));
+ return bn;
+}, "se_CompletedMultipartUpload");
+var se_CompletedPart = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_CPo);
+ bn.cc(input, _ETa);
+ bn.cc(input, _CCRC);
+ bn.cc(input, _CCRCC);
+ bn.cc(input, _CCRCNVME);
+ bn.cc(input, _CSHA);
+ bn.cc(input, _CSHAh);
+ if (input[_PN] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_PN, String(input[_PN])).n(_PN));
+ }
+ return bn;
+}, "se_CompletedPart");
+var se_CompletedPartList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_CompletedPart(entry, context);
+ return n.n(_me);
+ });
+}, "se_CompletedPartList");
+var se_Condition = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_Con);
+ bn.cc(input, _HECRE);
+ bn.cc(input, _KPE);
+ return bn;
+}, "se_Condition");
+var se_CORSConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_CORSC);
+ bn.l(input, "CORSRules", "CORSRule", () => se_CORSRules(input[_CORSRu], context));
+ return bn;
+}, "se_CORSConfiguration");
+var se_CORSRule = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_CORSR);
+ bn.cc(input, _ID_);
+ bn.l(input, "AllowedHeaders", "AllowedHeader", () => se_AllowedHeaders(input[_AHl], context));
+ bn.l(input, "AllowedMethods", "AllowedMethod", () => se_AllowedMethods(input[_AMl], context));
+ bn.l(input, "AllowedOrigins", "AllowedOrigin", () => se_AllowedOrigins(input[_AOl], context));
+ bn.l(input, "ExposeHeaders", "ExposeHeader", () => se_ExposeHeaders(input[_EH], context));
+ if (input[_MAS] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_MAS, String(input[_MAS])).n(_MAS));
+ }
+ return bn;
+}, "se_CORSRule");
+var se_CORSRules = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_CORSRule(entry, context);
+ return n.n(_me);
+ });
+}, "se_CORSRules");
+var se_CreateBucketConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_CBC);
+ if (input[_LC] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_BLCu, input[_LC]).n(_LC));
+ }
+ if (input[_L] != null) {
+ bn.c(se_LocationInfo(input[_L], context).n(_L));
+ }
+ if (input[_B] != null) {
+ bn.c(se_BucketInfo(input[_B], context).n(_B));
+ }
+ return bn;
+}, "se_CreateBucketConfiguration");
+var se_CSVInput = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_CSVIn);
+ bn.cc(input, _FHI);
+ bn.cc(input, _Com);
+ bn.cc(input, _QEC);
+ bn.cc(input, _RD);
+ bn.cc(input, _FD);
+ bn.cc(input, _QCuo);
+ if (input[_AQRD] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_AQRD, String(input[_AQRD])).n(_AQRD));
+ }
+ return bn;
+}, "se_CSVInput");
+var se_CSVOutput = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_CSVO);
+ bn.cc(input, _QF);
+ bn.cc(input, _QEC);
+ bn.cc(input, _RD);
+ bn.cc(input, _FD);
+ bn.cc(input, _QCuo);
+ return bn;
+}, "se_CSVOutput");
+var se_DefaultRetention = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_DRe);
+ if (input[_Mo] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OLRM, input[_Mo]).n(_Mo));
+ }
+ if (input[_Da] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Da, String(input[_Da])).n(_Da));
+ }
+ if (input[_Y] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Y, String(input[_Y])).n(_Y));
+ }
+ return bn;
+}, "se_DefaultRetention");
+var se_Delete = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_Del);
+ bn.l(input, "Objects", "Object", () => se_ObjectIdentifierList(input[_Ob], context));
+ if (input[_Q] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Q, String(input[_Q])).n(_Q));
+ }
+ return bn;
+}, "se_Delete");
+var se_DeleteMarkerReplication = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_DMR);
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_DMRS, input[_S]).n(_S));
+ }
+ return bn;
+}, "se_DeleteMarkerReplication");
+var se_Destination = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_Des);
+ if (input[_B] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_BN, input[_B]).n(_B));
+ }
+ if (input[_Ac] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_AIc, input[_Ac]).n(_Ac));
+ }
+ bn.cc(input, _SC);
+ if (input[_ACT] != null) {
+ bn.c(se_AccessControlTranslation(input[_ACT], context).n(_ACT));
+ }
+ if (input[_ECn] != null) {
+ bn.c(se_EncryptionConfiguration(input[_ECn], context).n(_ECn));
+ }
+ if (input[_RTe] != null) {
+ bn.c(se_ReplicationTime(input[_RTe], context).n(_RTe));
+ }
+ if (input[_Me] != null) {
+ bn.c(se_Metrics(input[_Me], context).n(_Me));
+ }
+ return bn;
+}, "se_Destination");
+var se_Encryption = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_En);
+ if (input[_ETn] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_SSE, input[_ETn]).n(_ETn));
+ }
+ if (input[_KMSKI] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_SSEKMSKI, input[_KMSKI]).n(_KMSKI));
+ }
+ bn.cc(input, _KMSC);
+ return bn;
+}, "se_Encryption");
+var se_EncryptionConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ECn);
+ bn.cc(input, _RKKID);
+ return bn;
+}, "se_EncryptionConfiguration");
+var se_ErrorDocument = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ED);
+ if (input[_K] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OK, input[_K]).n(_K));
+ }
+ return bn;
+}, "se_ErrorDocument");
+var se_EventBridgeConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_EBC);
+ return bn;
+}, "se_EventBridgeConfiguration");
+var se_EventList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = import_xml_builder.XmlNode.of(_Ev, entry);
+ return n.n(_me);
+ });
+}, "se_EventList");
+var se_ExistingObjectReplication = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_EOR);
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_EORS, input[_S]).n(_S));
+ }
+ return bn;
+}, "se_ExistingObjectReplication");
+var se_ExposeHeaders = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = import_xml_builder.XmlNode.of(_EHx, entry);
+ return n.n(_me);
+ });
+}, "se_ExposeHeaders");
+var se_FilterRule = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_FR);
+ if (input[_N] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_FRN, input[_N]).n(_N));
+ }
+ if (input[_Va] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_FRV, input[_Va]).n(_Va));
+ }
+ return bn;
+}, "se_FilterRule");
+var se_FilterRuleList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_FilterRule(entry, context);
+ return n.n(_me);
+ });
+}, "se_FilterRuleList");
+var se_GlacierJobParameters = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_GJP);
+ bn.cc(input, _Ti);
+ return bn;
+}, "se_GlacierJobParameters");
+var se_Grant = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_G);
+ if (input[_Gra] != null) {
+ const n = se_Grantee(input[_Gra], context).n(_Gra);
+ n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
+ bn.c(n);
+ }
+ bn.cc(input, _Pe);
+ return bn;
+}, "se_Grant");
+var se_Grantee = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_Gra);
+ bn.cc(input, _DN);
+ bn.cc(input, _EA);
+ bn.cc(input, _ID_);
+ bn.cc(input, _URI);
+ bn.a("xsi:type", input[_Ty]);
+ return bn;
+}, "se_Grantee");
+var se_Grants = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_Grant(entry, context);
+ return n.n(_G);
+ });
+}, "se_Grants");
+var se_IndexDocument = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ID);
+ bn.cc(input, _Su);
+ return bn;
+}, "se_IndexDocument");
+var se_InputSerialization = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_IS);
+ if (input[_CSV] != null) {
+ bn.c(se_CSVInput(input[_CSV], context).n(_CSV));
+ }
+ bn.cc(input, _CTom);
+ if (input[_JSON] != null) {
+ bn.c(se_JSONInput(input[_JSON], context).n(_JSON));
+ }
+ if (input[_Parq] != null) {
+ bn.c(se_ParquetInput(input[_Parq], context).n(_Parq));
+ }
+ return bn;
+}, "se_InputSerialization");
+var se_IntelligentTieringAndOperator = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ITAO);
+ bn.cc(input, _P);
+ bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context));
+ return bn;
+}, "se_IntelligentTieringAndOperator");
+var se_IntelligentTieringConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ITC);
+ if (input[_I] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_ITI, input[_I]).n(_I));
+ }
+ if (input[_F] != null) {
+ bn.c(se_IntelligentTieringFilter(input[_F], context).n(_F));
+ }
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_ITS, input[_S]).n(_S));
+ }
+ bn.l(input, "Tierings", "Tiering", () => se_TieringList(input[_Tie], context));
+ return bn;
+}, "se_IntelligentTieringConfiguration");
+var se_IntelligentTieringFilter = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ITF);
+ bn.cc(input, _P);
+ if (input[_Ta] != null) {
+ bn.c(se_Tag(input[_Ta], context).n(_Ta));
+ }
+ if (input[_A] != null) {
+ bn.c(se_IntelligentTieringAndOperator(input[_A], context).n(_A));
+ }
+ return bn;
+}, "se_IntelligentTieringFilter");
+var se_InventoryConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_IC);
+ if (input[_Des] != null) {
+ bn.c(se_InventoryDestination(input[_Des], context).n(_Des));
+ }
+ if (input[_IE] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_IE, String(input[_IE])).n(_IE));
+ }
+ if (input[_F] != null) {
+ bn.c(se_InventoryFilter(input[_F], context).n(_F));
+ }
+ if (input[_I] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_II, input[_I]).n(_I));
+ }
+ if (input[_IOV] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_IIOV, input[_IOV]).n(_IOV));
+ }
+ bn.lc(input, "OptionalFields", "OptionalFields", () => se_InventoryOptionalFields(input[_OF], context));
+ if (input[_Sc] != null) {
+ bn.c(se_InventorySchedule(input[_Sc], context).n(_Sc));
+ }
+ return bn;
+}, "se_InventoryConfiguration");
+var se_InventoryDestination = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_IDn);
+ if (input[_SBD] != null) {
+ bn.c(se_InventoryS3BucketDestination(input[_SBD], context).n(_SBD));
+ }
+ return bn;
+}, "se_InventoryDestination");
+var se_InventoryEncryption = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_IEn);
+ if (input[_SSES] != null) {
+ bn.c(se_SSES3(input[_SSES], context).n(_SS));
+ }
+ if (input[_SSEKMS] != null) {
+ bn.c(se_SSEKMS(input[_SSEKMS], context).n(_SK));
+ }
+ return bn;
+}, "se_InventoryEncryption");
+var se_InventoryFilter = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_IF);
+ bn.cc(input, _P);
+ return bn;
+}, "se_InventoryFilter");
+var se_InventoryOptionalFields = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = import_xml_builder.XmlNode.of(_IOF, entry);
+ return n.n(_Fi);
+ });
+}, "se_InventoryOptionalFields");
+var se_InventoryS3BucketDestination = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ISBD);
+ bn.cc(input, _AIc);
+ if (input[_B] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_BN, input[_B]).n(_B));
+ }
+ if (input[_Fo] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_IFn, input[_Fo]).n(_Fo));
+ }
+ bn.cc(input, _P);
+ if (input[_En] != null) {
+ bn.c(se_InventoryEncryption(input[_En], context).n(_En));
+ }
+ return bn;
+}, "se_InventoryS3BucketDestination");
+var se_InventorySchedule = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ISn);
+ if (input[_Fr] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_IFnv, input[_Fr]).n(_Fr));
+ }
+ return bn;
+}, "se_InventorySchedule");
+var se_JSONInput = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_JSONI);
+ if (input[_Ty] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_JSONT, input[_Ty]).n(_Ty));
+ }
+ return bn;
+}, "se_JSONInput");
+var se_JSONOutput = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_JSONO);
+ bn.cc(input, _RD);
+ return bn;
+}, "se_JSONOutput");
+var se_LambdaFunctionConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_LFCa);
+ if (input[_I] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_NI, input[_I]).n(_I));
+ }
+ if (input[_LFA] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_LFA, input[_LFA]).n(_CF));
+ }
+ bn.l(input, "Events", "Event", () => se_EventList(input[_Eve], context));
+ if (input[_F] != null) {
+ bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F));
+ }
+ return bn;
+}, "se_LambdaFunctionConfiguration");
+var se_LambdaFunctionConfigurationList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_LambdaFunctionConfiguration(entry, context);
+ return n.n(_me);
+ });
+}, "se_LambdaFunctionConfigurationList");
+var se_LifecycleExpiration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_LEi);
+ if (input[_Dat] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client.serializeDateTime)(input[_Dat]).toString()).n(_Dat));
+ }
+ if (input[_Da] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Da, String(input[_Da])).n(_Da));
+ }
+ if (input[_EODM] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_EODM, String(input[_EODM])).n(_EODM));
+ }
+ return bn;
+}, "se_LifecycleExpiration");
+var se_LifecycleRule = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_LR);
+ if (input[_Exp] != null) {
+ bn.c(se_LifecycleExpiration(input[_Exp], context).n(_Exp));
+ }
+ bn.cc(input, _ID_);
+ bn.cc(input, _P);
+ if (input[_F] != null) {
+ bn.c(se_LifecycleRuleFilter(input[_F], context).n(_F));
+ }
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_ESx, input[_S]).n(_S));
+ }
+ bn.l(input, "Transitions", "Transition", () => se_TransitionList(input[_Tr], context));
+ bn.l(
+ input,
+ "NoncurrentVersionTransitions",
+ "NoncurrentVersionTransition",
+ () => se_NoncurrentVersionTransitionList(input[_NVT], context)
+ );
+ if (input[_NVE] != null) {
+ bn.c(se_NoncurrentVersionExpiration(input[_NVE], context).n(_NVE));
+ }
+ if (input[_AIMU] != null) {
+ bn.c(se_AbortIncompleteMultipartUpload(input[_AIMU], context).n(_AIMU));
+ }
+ return bn;
+}, "se_LifecycleRule");
+var se_LifecycleRuleAndOperator = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_LRAO);
+ bn.cc(input, _P);
+ bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context));
+ if (input[_OSGT] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT));
+ }
+ if (input[_OSLT] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT));
+ }
+ return bn;
+}, "se_LifecycleRuleAndOperator");
+var se_LifecycleRuleFilter = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_LRF);
+ bn.cc(input, _P);
+ if (input[_Ta] != null) {
+ bn.c(se_Tag(input[_Ta], context).n(_Ta));
+ }
+ if (input[_OSGT] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT));
+ }
+ if (input[_OSLT] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT));
+ }
+ if (input[_A] != null) {
+ bn.c(se_LifecycleRuleAndOperator(input[_A], context).n(_A));
+ }
+ return bn;
+}, "se_LifecycleRuleFilter");
+var se_LifecycleRules = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_LifecycleRule(entry, context);
+ return n.n(_me);
+ });
+}, "se_LifecycleRules");
+var se_LocationInfo = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_LI);
+ if (input[_Ty] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_LT, input[_Ty]).n(_Ty));
+ }
+ if (input[_N] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_LNAS, input[_N]).n(_N));
+ }
+ return bn;
+}, "se_LocationInfo");
+var se_LoggingEnabled = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_LE);
+ bn.cc(input, _TB);
+ bn.lc(input, "TargetGrants", "TargetGrants", () => se_TargetGrants(input[_TG], context));
+ bn.cc(input, _TP);
+ if (input[_TOKF] != null) {
+ bn.c(se_TargetObjectKeyFormat(input[_TOKF], context).n(_TOKF));
+ }
+ return bn;
+}, "se_LoggingEnabled");
+var se_MetadataEntry = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_ME);
+ if (input[_N] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_MKe, input[_N]).n(_N));
+ }
+ if (input[_Va] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_MV, input[_Va]).n(_Va));
+ }
+ return bn;
+}, "se_MetadataEntry");
+var se_MetadataTableConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_MTC);
+ if (input[_STD] != null) {
+ bn.c(se_S3TablesDestination(input[_STD], context).n(_STD));
+ }
+ return bn;
+}, "se_MetadataTableConfiguration");
+var se_Metrics = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_Me);
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_MS, input[_S]).n(_S));
+ }
+ if (input[_ETv] != null) {
+ bn.c(se_ReplicationTimeValue(input[_ETv], context).n(_ETv));
+ }
+ return bn;
+}, "se_Metrics");
+var se_MetricsAndOperator = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_MAO);
+ bn.cc(input, _P);
+ bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context));
+ bn.cc(input, _APAc);
+ return bn;
+}, "se_MetricsAndOperator");
+var se_MetricsConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_MC);
+ if (input[_I] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_MI, input[_I]).n(_I));
+ }
+ if (input[_F] != null) {
+ bn.c(se_MetricsFilter(input[_F], context).n(_F));
+ }
+ return bn;
+}, "se_MetricsConfiguration");
+var se_MetricsFilter = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_MF);
+ MetricsFilter.visit(input, {
+ Prefix: /* @__PURE__ */ __name((value) => {
+ if (input[_P] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_P, value).n(_P));
+ }
+ }, "Prefix"),
+ Tag: /* @__PURE__ */ __name((value) => {
+ if (input[_Ta] != null) {
+ bn.c(se_Tag(value, context).n(_Ta));
+ }
+ }, "Tag"),
+ AccessPointArn: /* @__PURE__ */ __name((value) => {
+ if (input[_APAc] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_APAc, value).n(_APAc));
+ }
+ }, "AccessPointArn"),
+ And: /* @__PURE__ */ __name((value) => {
+ if (input[_A] != null) {
+ bn.c(se_MetricsAndOperator(value, context).n(_A));
+ }
+ }, "And"),
+ _: /* @__PURE__ */ __name((name, value) => {
+ if (!(value instanceof import_xml_builder.XmlNode || value instanceof import_xml_builder.XmlText)) {
+ throw new Error("Unable to serialize unknown union members in XML.");
+ }
+ bn.c(new import_xml_builder.XmlNode(name).c(value));
+ }, "_")
+ });
+ return bn;
+}, "se_MetricsFilter");
+var se_NoncurrentVersionExpiration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_NVE);
+ if (input[_ND] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Da, String(input[_ND])).n(_ND));
+ }
+ if (input[_NNV] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_VC, String(input[_NNV])).n(_NNV));
+ }
+ return bn;
+}, "se_NoncurrentVersionExpiration");
+var se_NoncurrentVersionTransition = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_NVTo);
+ if (input[_ND] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Da, String(input[_ND])).n(_ND));
+ }
+ if (input[_SC] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_TSC, input[_SC]).n(_SC));
+ }
+ if (input[_NNV] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_VC, String(input[_NNV])).n(_NNV));
+ }
+ return bn;
+}, "se_NoncurrentVersionTransition");
+var se_NoncurrentVersionTransitionList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_NoncurrentVersionTransition(entry, context);
+ return n.n(_me);
+ });
+}, "se_NoncurrentVersionTransitionList");
+var se_NotificationConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_NC);
+ bn.l(input, "TopicConfigurations", "TopicConfiguration", () => se_TopicConfigurationList(input[_TCop], context));
+ bn.l(input, "QueueConfigurations", "QueueConfiguration", () => se_QueueConfigurationList(input[_QCu], context));
+ bn.l(
+ input,
+ "LambdaFunctionConfigurations",
+ "CloudFunctionConfiguration",
+ () => se_LambdaFunctionConfigurationList(input[_LFC], context)
+ );
+ if (input[_EBC] != null) {
+ bn.c(se_EventBridgeConfiguration(input[_EBC], context).n(_EBC));
+ }
+ return bn;
+}, "se_NotificationConfiguration");
+var se_NotificationConfigurationFilter = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_NCF);
+ if (input[_K] != null) {
+ bn.c(se_S3KeyFilter(input[_K], context).n(_SKe));
+ }
+ return bn;
+}, "se_NotificationConfigurationFilter");
+var se_ObjectIdentifier = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_OI);
+ if (input[_K] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OK, input[_K]).n(_K));
+ }
+ if (input[_VI] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OVI, input[_VI]).n(_VI));
+ }
+ bn.cc(input, _ETa);
+ if (input[_LMT] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_LMT, (0, import_smithy_client.dateToUtcString)(input[_LMT]).toString()).n(_LMT));
+ }
+ if (input[_Si] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Si, String(input[_Si])).n(_Si));
+ }
+ return bn;
+}, "se_ObjectIdentifier");
+var se_ObjectIdentifierList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_ObjectIdentifier(entry, context);
+ return n.n(_me);
+ });
+}, "se_ObjectIdentifierList");
+var se_ObjectLockConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_OLC);
+ bn.cc(input, _OLE);
+ if (input[_Ru] != null) {
+ bn.c(se_ObjectLockRule(input[_Ru], context).n(_Ru));
+ }
+ return bn;
+}, "se_ObjectLockConfiguration");
+var se_ObjectLockLegalHold = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_OLLH);
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OLLHS, input[_S]).n(_S));
+ }
+ return bn;
+}, "se_ObjectLockLegalHold");
+var se_ObjectLockRetention = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_OLR);
+ if (input[_Mo] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OLRM, input[_Mo]).n(_Mo));
+ }
+ if (input[_RUD] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client.serializeDateTime)(input[_RUD]).toString()).n(_RUD));
+ }
+ return bn;
+}, "se_ObjectLockRetention");
+var se_ObjectLockRule = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_OLRb);
+ if (input[_DRe] != null) {
+ bn.c(se_DefaultRetention(input[_DRe], context).n(_DRe));
+ }
+ return bn;
+}, "se_ObjectLockRule");
+var se_OutputLocation = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_OL);
+ if (input[_S_] != null) {
+ bn.c(se_S3Location(input[_S_], context).n(_S_));
+ }
+ return bn;
+}, "se_OutputLocation");
+var se_OutputSerialization = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_OS);
+ if (input[_CSV] != null) {
+ bn.c(se_CSVOutput(input[_CSV], context).n(_CSV));
+ }
+ if (input[_JSON] != null) {
+ bn.c(se_JSONOutput(input[_JSON], context).n(_JSON));
+ }
+ return bn;
+}, "se_OutputSerialization");
+var se_Owner = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_O);
+ bn.cc(input, _DN);
+ bn.cc(input, _ID_);
+ return bn;
+}, "se_Owner");
+var se_OwnershipControls = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_OC);
+ bn.l(input, "Rules", "Rule", () => se_OwnershipControlsRules(input[_Rul], context));
+ return bn;
+}, "se_OwnershipControls");
+var se_OwnershipControlsRule = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_OCR);
+ bn.cc(input, _OO);
+ return bn;
+}, "se_OwnershipControlsRule");
+var se_OwnershipControlsRules = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_OwnershipControlsRule(entry, context);
+ return n.n(_me);
+ });
+}, "se_OwnershipControlsRules");
+var se_ParquetInput = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_PI);
+ return bn;
+}, "se_ParquetInput");
+var se_PartitionedPrefix = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_PP);
+ bn.cc(input, _PDS);
+ return bn;
+}, "se_PartitionedPrefix");
+var se_PublicAccessBlockConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_PABC);
+ if (input[_BPA] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Se, String(input[_BPA])).n(_BPA));
+ }
+ if (input[_IPA] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Se, String(input[_IPA])).n(_IPA));
+ }
+ if (input[_BPP] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Se, String(input[_BPP])).n(_BPP));
+ }
+ if (input[_RPB] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Se, String(input[_RPB])).n(_RPB));
+ }
+ return bn;
+}, "se_PublicAccessBlockConfiguration");
+var se_QueueConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_QC);
+ if (input[_I] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_NI, input[_I]).n(_I));
+ }
+ if (input[_QA] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_QA, input[_QA]).n(_Qu));
+ }
+ bn.l(input, "Events", "Event", () => se_EventList(input[_Eve], context));
+ if (input[_F] != null) {
+ bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F));
+ }
+ return bn;
+}, "se_QueueConfiguration");
+var se_QueueConfigurationList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_QueueConfiguration(entry, context);
+ return n.n(_me);
+ });
+}, "se_QueueConfigurationList");
+var se_Redirect = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_Red);
+ bn.cc(input, _HN);
+ bn.cc(input, _HRC);
+ bn.cc(input, _Pr);
+ bn.cc(input, _RKPW);
+ bn.cc(input, _RKW);
+ return bn;
+}, "se_Redirect");
+var se_RedirectAllRequestsTo = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RART);
+ bn.cc(input, _HN);
+ bn.cc(input, _Pr);
+ return bn;
+}, "se_RedirectAllRequestsTo");
+var se_ReplicaModifications = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RM);
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_RMS, input[_S]).n(_S));
+ }
+ return bn;
+}, "se_ReplicaModifications");
+var se_ReplicationConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RCe);
+ bn.cc(input, _Ro);
+ bn.l(input, "Rules", "Rule", () => se_ReplicationRules(input[_Rul], context));
+ return bn;
+}, "se_ReplicationConfiguration");
+var se_ReplicationRule = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RRe);
+ bn.cc(input, _ID_);
+ if (input[_Pri] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Pri, String(input[_Pri])).n(_Pri));
+ }
+ bn.cc(input, _P);
+ if (input[_F] != null) {
+ bn.c(se_ReplicationRuleFilter(input[_F], context).n(_F));
+ }
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_RRS, input[_S]).n(_S));
+ }
+ if (input[_SSC] != null) {
+ bn.c(se_SourceSelectionCriteria(input[_SSC], context).n(_SSC));
+ }
+ if (input[_EOR] != null) {
+ bn.c(se_ExistingObjectReplication(input[_EOR], context).n(_EOR));
+ }
+ if (input[_Des] != null) {
+ bn.c(se_Destination(input[_Des], context).n(_Des));
+ }
+ if (input[_DMR] != null) {
+ bn.c(se_DeleteMarkerReplication(input[_DMR], context).n(_DMR));
+ }
+ return bn;
+}, "se_ReplicationRule");
+var se_ReplicationRuleAndOperator = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RRAO);
+ bn.cc(input, _P);
+ bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context));
+ return bn;
+}, "se_ReplicationRuleAndOperator");
+var se_ReplicationRuleFilter = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RRF);
+ bn.cc(input, _P);
+ if (input[_Ta] != null) {
+ bn.c(se_Tag(input[_Ta], context).n(_Ta));
+ }
+ if (input[_A] != null) {
+ bn.c(se_ReplicationRuleAndOperator(input[_A], context).n(_A));
+ }
+ return bn;
+}, "se_ReplicationRuleFilter");
+var se_ReplicationRules = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_ReplicationRule(entry, context);
+ return n.n(_me);
+ });
+}, "se_ReplicationRules");
+var se_ReplicationTime = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RTe);
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_RTS, input[_S]).n(_S));
+ }
+ if (input[_Tim] != null) {
+ bn.c(se_ReplicationTimeValue(input[_Tim], context).n(_Tim));
+ }
+ return bn;
+}, "se_ReplicationTime");
+var se_ReplicationTimeValue = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RTV);
+ if (input[_Mi] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Mi, String(input[_Mi])).n(_Mi));
+ }
+ return bn;
+}, "se_ReplicationTimeValue");
+var se_RequestPaymentConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RPC);
+ bn.cc(input, _Pa);
+ return bn;
+}, "se_RequestPaymentConfiguration");
+var se_RequestProgress = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RPe);
+ if (input[_Ena] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_ERP, String(input[_Ena])).n(_Ena));
+ }
+ return bn;
+}, "se_RequestProgress");
+var se_RestoreRequest = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RRes);
+ if (input[_Da] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Da, String(input[_Da])).n(_Da));
+ }
+ if (input[_GJP] != null) {
+ bn.c(se_GlacierJobParameters(input[_GJP], context).n(_GJP));
+ }
+ if (input[_Ty] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_RRT, input[_Ty]).n(_Ty));
+ }
+ bn.cc(input, _Ti);
+ bn.cc(input, _Desc);
+ if (input[_SP] != null) {
+ bn.c(se_SelectParameters(input[_SP], context).n(_SP));
+ }
+ if (input[_OL] != null) {
+ bn.c(se_OutputLocation(input[_OL], context).n(_OL));
+ }
+ return bn;
+}, "se_RestoreRequest");
+var se_RoutingRule = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_RRou);
+ if (input[_Con] != null) {
+ bn.c(se_Condition(input[_Con], context).n(_Con));
+ }
+ if (input[_Red] != null) {
+ bn.c(se_Redirect(input[_Red], context).n(_Red));
+ }
+ return bn;
+}, "se_RoutingRule");
+var se_RoutingRules = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_RoutingRule(entry, context);
+ return n.n(_RRou);
+ });
+}, "se_RoutingRules");
+var se_S3KeyFilter = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SKF);
+ bn.l(input, "FilterRules", "FilterRule", () => se_FilterRuleList(input[_FRi], context));
+ return bn;
+}, "se_S3KeyFilter");
+var se_S3Location = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SL);
+ bn.cc(input, _BN);
+ if (input[_P] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_LP, input[_P]).n(_P));
+ }
+ if (input[_En] != null) {
+ bn.c(se_Encryption(input[_En], context).n(_En));
+ }
+ if (input[_CACL] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OCACL, input[_CACL]).n(_CACL));
+ }
+ bn.lc(input, "AccessControlList", "AccessControlList", () => se_Grants(input[_ACLc], context));
+ if (input[_T] != null) {
+ bn.c(se_Tagging(input[_T], context).n(_T));
+ }
+ bn.lc(input, "UserMetadata", "UserMetadata", () => se_UserMetadata(input[_UM], context));
+ bn.cc(input, _SC);
+ return bn;
+}, "se_S3Location");
+var se_S3TablesDestination = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_STD);
+ if (input[_TBA] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_STBA, input[_TBA]).n(_TBA));
+ }
+ if (input[_TN] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_STN, input[_TN]).n(_TN));
+ }
+ return bn;
+}, "se_S3TablesDestination");
+var se_ScanRange = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SR);
+ if (input[_St] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_St, String(input[_St])).n(_St));
+ }
+ if (input[_End] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_End, String(input[_End])).n(_End));
+ }
+ return bn;
+}, "se_ScanRange");
+var se_SelectParameters = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SP);
+ if (input[_IS] != null) {
+ bn.c(se_InputSerialization(input[_IS], context).n(_IS));
+ }
+ bn.cc(input, _ETx);
+ bn.cc(input, _Ex);
+ if (input[_OS] != null) {
+ bn.c(se_OutputSerialization(input[_OS], context).n(_OS));
+ }
+ return bn;
+}, "se_SelectParameters");
+var se_ServerSideEncryptionByDefault = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SSEBD);
+ if (input[_SSEA] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_SSE, input[_SSEA]).n(_SSEA));
+ }
+ if (input[_KMSMKID] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_SSEKMSKI, input[_KMSMKID]).n(_KMSMKID));
+ }
+ return bn;
+}, "se_ServerSideEncryptionByDefault");
+var se_ServerSideEncryptionConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SSEC);
+ bn.l(input, "Rules", "Rule", () => se_ServerSideEncryptionRules(input[_Rul], context));
+ return bn;
+}, "se_ServerSideEncryptionConfiguration");
+var se_ServerSideEncryptionRule = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SSER);
+ if (input[_ASSEBD] != null) {
+ bn.c(se_ServerSideEncryptionByDefault(input[_ASSEBD], context).n(_ASSEBD));
+ }
+ if (input[_BKE] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_BKE, String(input[_BKE])).n(_BKE));
+ }
+ return bn;
+}, "se_ServerSideEncryptionRule");
+var se_ServerSideEncryptionRules = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_ServerSideEncryptionRule(entry, context);
+ return n.n(_me);
+ });
+}, "se_ServerSideEncryptionRules");
+var se_SimplePrefix = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SPi);
+ return bn;
+}, "se_SimplePrefix");
+var se_SourceSelectionCriteria = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SSC);
+ if (input[_SKEO] != null) {
+ bn.c(se_SseKmsEncryptedObjects(input[_SKEO], context).n(_SKEO));
+ }
+ if (input[_RM] != null) {
+ bn.c(se_ReplicaModifications(input[_RM], context).n(_RM));
+ }
+ return bn;
+}, "se_SourceSelectionCriteria");
+var se_SSEKMS = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SK);
+ if (input[_KI] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_SSEKMSKI, input[_KI]).n(_KI));
+ }
+ return bn;
+}, "se_SSEKMS");
+var se_SseKmsEncryptedObjects = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SKEO);
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_SKEOS, input[_S]).n(_S));
+ }
+ return bn;
+}, "se_SseKmsEncryptedObjects");
+var se_SSES3 = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SS);
+ return bn;
+}, "se_SSES3");
+var se_StorageClassAnalysis = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SCA);
+ if (input[_DE] != null) {
+ bn.c(se_StorageClassAnalysisDataExport(input[_DE], context).n(_DE));
+ }
+ return bn;
+}, "se_StorageClassAnalysis");
+var se_StorageClassAnalysisDataExport = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_SCADE);
+ if (input[_OSV] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_SCASV, input[_OSV]).n(_OSV));
+ }
+ if (input[_Des] != null) {
+ bn.c(se_AnalyticsExportDestination(input[_Des], context).n(_Des));
+ }
+ return bn;
+}, "se_StorageClassAnalysisDataExport");
+var se_Tag = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_Ta);
+ if (input[_K] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_OK, input[_K]).n(_K));
+ }
+ bn.cc(input, _Va);
+ return bn;
+}, "se_Tag");
+var se_Tagging = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_T);
+ bn.lc(input, "TagSet", "TagSet", () => se_TagSet(input[_TS], context));
+ return bn;
+}, "se_Tagging");
+var se_TagSet = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_Tag(entry, context);
+ return n.n(_Ta);
+ });
+}, "se_TagSet");
+var se_TargetGrant = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_TGa);
+ if (input[_Gra] != null) {
+ const n = se_Grantee(input[_Gra], context).n(_Gra);
+ n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
+ bn.c(n);
+ }
+ if (input[_Pe] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_BLP, input[_Pe]).n(_Pe));
+ }
+ return bn;
+}, "se_TargetGrant");
+var se_TargetGrants = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_TargetGrant(entry, context);
+ return n.n(_G);
+ });
+}, "se_TargetGrants");
+var se_TargetObjectKeyFormat = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_TOKF);
+ if (input[_SPi] != null) {
+ bn.c(se_SimplePrefix(input[_SPi], context).n(_SPi));
+ }
+ if (input[_PP] != null) {
+ bn.c(se_PartitionedPrefix(input[_PP], context).n(_PP));
+ }
+ return bn;
+}, "se_TargetObjectKeyFormat");
+var se_Tiering = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_Tier);
+ if (input[_Da] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_ITD, String(input[_Da])).n(_Da));
+ }
+ if (input[_AT] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_ITAT, input[_AT]).n(_AT));
+ }
+ return bn;
+}, "se_Tiering");
+var se_TieringList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_Tiering(entry, context);
+ return n.n(_me);
+ });
+}, "se_TieringList");
+var se_TopicConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_TCo);
+ if (input[_I] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_NI, input[_I]).n(_I));
+ }
+ if (input[_TA] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_TA, input[_TA]).n(_Top));
+ }
+ bn.l(input, "Events", "Event", () => se_EventList(input[_Eve], context));
+ if (input[_F] != null) {
+ bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F));
+ }
+ return bn;
+}, "se_TopicConfiguration");
+var se_TopicConfigurationList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_TopicConfiguration(entry, context);
+ return n.n(_me);
+ });
+}, "se_TopicConfigurationList");
+var se_Transition = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_Tra);
+ if (input[_Dat] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client.serializeDateTime)(input[_Dat]).toString()).n(_Dat));
+ }
+ if (input[_Da] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_Da, String(input[_Da])).n(_Da));
+ }
+ if (input[_SC] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_TSC, input[_SC]).n(_SC));
+ }
+ return bn;
+}, "se_Transition");
+var se_TransitionList = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_Transition(entry, context);
+ return n.n(_me);
+ });
+}, "se_TransitionList");
+var se_UserMetadata = /* @__PURE__ */ __name((input, context) => {
+ return input.filter((e) => e != null).map((entry) => {
+ const n = se_MetadataEntry(entry, context);
+ return n.n(_ME);
+ });
+}, "se_UserMetadata");
+var se_VersioningConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_VCe);
+ if (input[_MFAD] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_MFAD, input[_MFAD]).n(_MDf));
+ }
+ if (input[_S] != null) {
+ bn.c(import_xml_builder.XmlNode.of(_BVS, input[_S]).n(_S));
+ }
+ return bn;
+}, "se_VersioningConfiguration");
+var se_WebsiteConfiguration = /* @__PURE__ */ __name((input, context) => {
+ const bn = new import_xml_builder.XmlNode(_WC);
+ if (input[_ED] != null) {
+ bn.c(se_ErrorDocument(input[_ED], context).n(_ED));
+ }
+ if (input[_ID] != null) {
+ bn.c(se_IndexDocument(input[_ID], context).n(_ID));
+ }
+ if (input[_RART] != null) {
+ bn.c(se_RedirectAllRequestsTo(input[_RART], context).n(_RART));
+ }
+ bn.lc(input, "RoutingRules", "RoutingRules", () => se_RoutingRules(input[_RRo], context));
+ return bn;
+}, "se_WebsiteConfiguration");
+var de_AbortIncompleteMultipartUpload = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_DAI] != null) {
+ contents[_DAI] = (0, import_smithy_client.strictParseInt32)(output[_DAI]);
+ }
+ return contents;
+}, "de_AbortIncompleteMultipartUpload");
+var de_AccessControlTranslation = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_O] != null) {
+ contents[_O] = (0, import_smithy_client.expectString)(output[_O]);
+ }
+ return contents;
+}, "de_AccessControlTranslation");
+var de_AllowedHeaders = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_AllowedHeaders");
+var de_AllowedMethods = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_AllowedMethods");
+var de_AllowedOrigins = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_AllowedOrigins");
+var de_AnalyticsAndOperator = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output.Tag === "") {
+ contents[_Tag] = [];
+ } else if (output[_Ta] != null) {
+ contents[_Tag] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta]), context);
+ }
+ return contents;
+}, "de_AnalyticsAndOperator");
+var de_AnalyticsConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_I] != null) {
+ contents[_I] = (0, import_smithy_client.expectString)(output[_I]);
+ }
+ if (output.Filter === "") {
+ } else if (output[_F] != null) {
+ contents[_F] = de_AnalyticsFilter((0, import_smithy_client.expectUnion)(output[_F]), context);
+ }
+ if (output[_SCA] != null) {
+ contents[_SCA] = de_StorageClassAnalysis(output[_SCA], context);
+ }
+ return contents;
+}, "de_AnalyticsConfiguration");
+var de_AnalyticsConfigurationList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_AnalyticsConfiguration(entry, context);
+ });
+}, "de_AnalyticsConfigurationList");
+var de_AnalyticsExportDestination = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SBD] != null) {
+ contents[_SBD] = de_AnalyticsS3BucketDestination(output[_SBD], context);
+ }
+ return contents;
+}, "de_AnalyticsExportDestination");
+var de_AnalyticsFilter = /* @__PURE__ */ __name((output, context) => {
+ if (output[_P] != null) {
+ return {
+ Prefix: (0, import_smithy_client.expectString)(output[_P])
+ };
+ }
+ if (output[_Ta] != null) {
+ return {
+ Tag: de_Tag(output[_Ta], context)
+ };
+ }
+ if (output[_A] != null) {
+ return {
+ And: de_AnalyticsAndOperator(output[_A], context)
+ };
+ }
+ return { $unknown: Object.entries(output)[0] };
+}, "de_AnalyticsFilter");
+var de_AnalyticsS3BucketDestination = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Fo] != null) {
+ contents[_Fo] = (0, import_smithy_client.expectString)(output[_Fo]);
+ }
+ if (output[_BAI] != null) {
+ contents[_BAI] = (0, import_smithy_client.expectString)(output[_BAI]);
+ }
+ if (output[_B] != null) {
+ contents[_B] = (0, import_smithy_client.expectString)(output[_B]);
+ }
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ return contents;
+}, "de_AnalyticsS3BucketDestination");
+var de_Bucket = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_N] != null) {
+ contents[_N] = (0, import_smithy_client.expectString)(output[_N]);
+ }
+ if (output[_CDr] != null) {
+ contents[_CDr] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CDr]));
+ }
+ if (output[_BR] != null) {
+ contents[_BR] = (0, import_smithy_client.expectString)(output[_BR]);
+ }
+ return contents;
+}, "de_Bucket");
+var de_Buckets = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Bucket(entry, context);
+ });
+}, "de_Buckets");
+var de_Checksum = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_CCRC] != null) {
+ contents[_CCRC] = (0, import_smithy_client.expectString)(output[_CCRC]);
+ }
+ if (output[_CCRCC] != null) {
+ contents[_CCRCC] = (0, import_smithy_client.expectString)(output[_CCRCC]);
+ }
+ if (output[_CCRCNVME] != null) {
+ contents[_CCRCNVME] = (0, import_smithy_client.expectString)(output[_CCRCNVME]);
+ }
+ if (output[_CSHA] != null) {
+ contents[_CSHA] = (0, import_smithy_client.expectString)(output[_CSHA]);
+ }
+ if (output[_CSHAh] != null) {
+ contents[_CSHAh] = (0, import_smithy_client.expectString)(output[_CSHAh]);
+ }
+ if (output[_CT] != null) {
+ contents[_CT] = (0, import_smithy_client.expectString)(output[_CT]);
+ }
+ return contents;
+}, "de_Checksum");
+var de_ChecksumAlgorithmList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_ChecksumAlgorithmList");
+var de_CommonPrefix = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ return contents;
+}, "de_CommonPrefix");
+var de_CommonPrefixList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_CommonPrefix(entry, context);
+ });
+}, "de_CommonPrefixList");
+var de_Condition = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_HECRE] != null) {
+ contents[_HECRE] = (0, import_smithy_client.expectString)(output[_HECRE]);
+ }
+ if (output[_KPE] != null) {
+ contents[_KPE] = (0, import_smithy_client.expectString)(output[_KPE]);
+ }
+ return contents;
+}, "de_Condition");
+var de_ContinuationEvent = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_ContinuationEvent");
+var de_CopyObjectResult = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ETa] != null) {
+ contents[_ETa] = (0, import_smithy_client.expectString)(output[_ETa]);
+ }
+ if (output[_LM] != null) {
+ contents[_LM] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LM]));
+ }
+ if (output[_CT] != null) {
+ contents[_CT] = (0, import_smithy_client.expectString)(output[_CT]);
+ }
+ if (output[_CCRC] != null) {
+ contents[_CCRC] = (0, import_smithy_client.expectString)(output[_CCRC]);
+ }
+ if (output[_CCRCC] != null) {
+ contents[_CCRCC] = (0, import_smithy_client.expectString)(output[_CCRCC]);
+ }
+ if (output[_CCRCNVME] != null) {
+ contents[_CCRCNVME] = (0, import_smithy_client.expectString)(output[_CCRCNVME]);
+ }
+ if (output[_CSHA] != null) {
+ contents[_CSHA] = (0, import_smithy_client.expectString)(output[_CSHA]);
+ }
+ if (output[_CSHAh] != null) {
+ contents[_CSHAh] = (0, import_smithy_client.expectString)(output[_CSHAh]);
+ }
+ return contents;
+}, "de_CopyObjectResult");
+var de_CopyPartResult = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ETa] != null) {
+ contents[_ETa] = (0, import_smithy_client.expectString)(output[_ETa]);
+ }
+ if (output[_LM] != null) {
+ contents[_LM] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LM]));
+ }
+ if (output[_CCRC] != null) {
+ contents[_CCRC] = (0, import_smithy_client.expectString)(output[_CCRC]);
+ }
+ if (output[_CCRCC] != null) {
+ contents[_CCRCC] = (0, import_smithy_client.expectString)(output[_CCRCC]);
+ }
+ if (output[_CCRCNVME] != null) {
+ contents[_CCRCNVME] = (0, import_smithy_client.expectString)(output[_CCRCNVME]);
+ }
+ if (output[_CSHA] != null) {
+ contents[_CSHA] = (0, import_smithy_client.expectString)(output[_CSHA]);
+ }
+ if (output[_CSHAh] != null) {
+ contents[_CSHAh] = (0, import_smithy_client.expectString)(output[_CSHAh]);
+ }
+ return contents;
+}, "de_CopyPartResult");
+var de_CORSRule = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ID_] != null) {
+ contents[_ID_] = (0, import_smithy_client.expectString)(output[_ID_]);
+ }
+ if (output.AllowedHeader === "") {
+ contents[_AHl] = [];
+ } else if (output[_AH] != null) {
+ contents[_AHl] = de_AllowedHeaders((0, import_smithy_client.getArrayIfSingleItem)(output[_AH]), context);
+ }
+ if (output.AllowedMethod === "") {
+ contents[_AMl] = [];
+ } else if (output[_AM] != null) {
+ contents[_AMl] = de_AllowedMethods((0, import_smithy_client.getArrayIfSingleItem)(output[_AM]), context);
+ }
+ if (output.AllowedOrigin === "") {
+ contents[_AOl] = [];
+ } else if (output[_AO] != null) {
+ contents[_AOl] = de_AllowedOrigins((0, import_smithy_client.getArrayIfSingleItem)(output[_AO]), context);
+ }
+ if (output.ExposeHeader === "") {
+ contents[_EH] = [];
+ } else if (output[_EHx] != null) {
+ contents[_EH] = de_ExposeHeaders((0, import_smithy_client.getArrayIfSingleItem)(output[_EHx]), context);
+ }
+ if (output[_MAS] != null) {
+ contents[_MAS] = (0, import_smithy_client.strictParseInt32)(output[_MAS]);
+ }
+ return contents;
+}, "de_CORSRule");
+var de_CORSRules = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_CORSRule(entry, context);
+ });
+}, "de_CORSRules");
+var de_DefaultRetention = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Mo] != null) {
+ contents[_Mo] = (0, import_smithy_client.expectString)(output[_Mo]);
+ }
+ if (output[_Da] != null) {
+ contents[_Da] = (0, import_smithy_client.strictParseInt32)(output[_Da]);
+ }
+ if (output[_Y] != null) {
+ contents[_Y] = (0, import_smithy_client.strictParseInt32)(output[_Y]);
+ }
+ return contents;
+}, "de_DefaultRetention");
+var de_DeletedObject = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
+ }
+ if (output[_VI] != null) {
+ contents[_VI] = (0, import_smithy_client.expectString)(output[_VI]);
+ }
+ if (output[_DM] != null) {
+ contents[_DM] = (0, import_smithy_client.parseBoolean)(output[_DM]);
+ }
+ if (output[_DMVI] != null) {
+ contents[_DMVI] = (0, import_smithy_client.expectString)(output[_DMVI]);
+ }
+ return contents;
+}, "de_DeletedObject");
+var de_DeletedObjects = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_DeletedObject(entry, context);
+ });
+}, "de_DeletedObjects");
+var de_DeleteMarkerEntry = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_O] != null) {
+ contents[_O] = de_Owner(output[_O], context);
+ }
+ if (output[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
+ }
+ if (output[_VI] != null) {
+ contents[_VI] = (0, import_smithy_client.expectString)(output[_VI]);
+ }
+ if (output[_IL] != null) {
+ contents[_IL] = (0, import_smithy_client.parseBoolean)(output[_IL]);
+ }
+ if (output[_LM] != null) {
+ contents[_LM] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LM]));
+ }
+ return contents;
+}, "de_DeleteMarkerEntry");
+var de_DeleteMarkerReplication = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ return contents;
+}, "de_DeleteMarkerReplication");
+var de_DeleteMarkers = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_DeleteMarkerEntry(entry, context);
+ });
+}, "de_DeleteMarkers");
+var de_Destination = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_B] != null) {
+ contents[_B] = (0, import_smithy_client.expectString)(output[_B]);
+ }
+ if (output[_Ac] != null) {
+ contents[_Ac] = (0, import_smithy_client.expectString)(output[_Ac]);
+ }
+ if (output[_SC] != null) {
+ contents[_SC] = (0, import_smithy_client.expectString)(output[_SC]);
+ }
+ if (output[_ACT] != null) {
+ contents[_ACT] = de_AccessControlTranslation(output[_ACT], context);
+ }
+ if (output[_ECn] != null) {
+ contents[_ECn] = de_EncryptionConfiguration(output[_ECn], context);
+ }
+ if (output[_RTe] != null) {
+ contents[_RTe] = de_ReplicationTime(output[_RTe], context);
+ }
+ if (output[_Me] != null) {
+ contents[_Me] = de_Metrics(output[_Me], context);
+ }
+ return contents;
+}, "de_Destination");
+var de_EncryptionConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_RKKID] != null) {
+ contents[_RKKID] = (0, import_smithy_client.expectString)(output[_RKKID]);
+ }
+ return contents;
+}, "de_EncryptionConfiguration");
+var de_EndEvent = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_EndEvent");
+var de__Error = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
+ }
+ if (output[_VI] != null) {
+ contents[_VI] = (0, import_smithy_client.expectString)(output[_VI]);
+ }
+ if (output[_Cod] != null) {
+ contents[_Cod] = (0, import_smithy_client.expectString)(output[_Cod]);
+ }
+ if (output[_Mes] != null) {
+ contents[_Mes] = (0, import_smithy_client.expectString)(output[_Mes]);
+ }
+ return contents;
+}, "de__Error");
+var de_ErrorDetails = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_EC] != null) {
+ contents[_EC] = (0, import_smithy_client.expectString)(output[_EC]);
+ }
+ if (output[_EM] != null) {
+ contents[_EM] = (0, import_smithy_client.expectString)(output[_EM]);
+ }
+ return contents;
+}, "de_ErrorDetails");
+var de_ErrorDocument = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
+ }
+ return contents;
+}, "de_ErrorDocument");
+var de_Errors = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de__Error(entry, context);
+ });
+}, "de_Errors");
+var de_EventBridgeConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_EventBridgeConfiguration");
+var de_EventList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_EventList");
+var de_ExistingObjectReplication = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ return contents;
+}, "de_ExistingObjectReplication");
+var de_ExposeHeaders = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_ExposeHeaders");
+var de_FilterRule = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_N] != null) {
+ contents[_N] = (0, import_smithy_client.expectString)(output[_N]);
+ }
+ if (output[_Va] != null) {
+ contents[_Va] = (0, import_smithy_client.expectString)(output[_Va]);
+ }
+ return contents;
+}, "de_FilterRule");
+var de_FilterRuleList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_FilterRule(entry, context);
+ });
+}, "de_FilterRuleList");
+var de_GetBucketMetadataTableConfigurationResult = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_MTCR] != null) {
+ contents[_MTCR] = de_MetadataTableConfigurationResult(output[_MTCR], context);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_Er] != null) {
+ contents[_Er] = de_ErrorDetails(output[_Er], context);
+ }
+ return contents;
+}, "de_GetBucketMetadataTableConfigurationResult");
+var de_GetObjectAttributesParts = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PC] != null) {
+ contents[_TPC] = (0, import_smithy_client.strictParseInt32)(output[_PC]);
+ }
+ if (output[_PNM] != null) {
+ contents[_PNM] = (0, import_smithy_client.expectString)(output[_PNM]);
+ }
+ if (output[_NPNM] != null) {
+ contents[_NPNM] = (0, import_smithy_client.expectString)(output[_NPNM]);
+ }
+ if (output[_MP] != null) {
+ contents[_MP] = (0, import_smithy_client.strictParseInt32)(output[_MP]);
+ }
+ if (output[_IT] != null) {
+ contents[_IT] = (0, import_smithy_client.parseBoolean)(output[_IT]);
+ }
+ if (output.Part === "") {
+ contents[_Part] = [];
+ } else if (output[_Par] != null) {
+ contents[_Part] = de_PartsList((0, import_smithy_client.getArrayIfSingleItem)(output[_Par]), context);
+ }
+ return contents;
+}, "de_GetObjectAttributesParts");
+var de_Grant = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Gra] != null) {
+ contents[_Gra] = de_Grantee(output[_Gra], context);
+ }
+ if (output[_Pe] != null) {
+ contents[_Pe] = (0, import_smithy_client.expectString)(output[_Pe]);
+ }
+ return contents;
+}, "de_Grant");
+var de_Grantee = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_DN] != null) {
+ contents[_DN] = (0, import_smithy_client.expectString)(output[_DN]);
+ }
+ if (output[_EA] != null) {
+ contents[_EA] = (0, import_smithy_client.expectString)(output[_EA]);
+ }
+ if (output[_ID_] != null) {
+ contents[_ID_] = (0, import_smithy_client.expectString)(output[_ID_]);
+ }
+ if (output[_URI] != null) {
+ contents[_URI] = (0, import_smithy_client.expectString)(output[_URI]);
+ }
+ if (output[_x] != null) {
+ contents[_Ty] = (0, import_smithy_client.expectString)(output[_x]);
+ }
+ return contents;
+}, "de_Grantee");
+var de_Grants = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Grant(entry, context);
+ });
+}, "de_Grants");
+var de_IndexDocument = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Su] != null) {
+ contents[_Su] = (0, import_smithy_client.expectString)(output[_Su]);
+ }
+ return contents;
+}, "de_IndexDocument");
+var de_Initiator = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ID_] != null) {
+ contents[_ID_] = (0, import_smithy_client.expectString)(output[_ID_]);
+ }
+ if (output[_DN] != null) {
+ contents[_DN] = (0, import_smithy_client.expectString)(output[_DN]);
+ }
+ return contents;
+}, "de_Initiator");
+var de_IntelligentTieringAndOperator = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output.Tag === "") {
+ contents[_Tag] = [];
+ } else if (output[_Ta] != null) {
+ contents[_Tag] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta]), context);
+ }
+ return contents;
+}, "de_IntelligentTieringAndOperator");
+var de_IntelligentTieringConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_I] != null) {
+ contents[_I] = (0, import_smithy_client.expectString)(output[_I]);
+ }
+ if (output[_F] != null) {
+ contents[_F] = de_IntelligentTieringFilter(output[_F], context);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output.Tiering === "") {
+ contents[_Tie] = [];
+ } else if (output[_Tier] != null) {
+ contents[_Tie] = de_TieringList((0, import_smithy_client.getArrayIfSingleItem)(output[_Tier]), context);
+ }
+ return contents;
+}, "de_IntelligentTieringConfiguration");
+var de_IntelligentTieringConfigurationList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_IntelligentTieringConfiguration(entry, context);
+ });
+}, "de_IntelligentTieringConfigurationList");
+var de_IntelligentTieringFilter = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output[_Ta] != null) {
+ contents[_Ta] = de_Tag(output[_Ta], context);
+ }
+ if (output[_A] != null) {
+ contents[_A] = de_IntelligentTieringAndOperator(output[_A], context);
+ }
+ return contents;
+}, "de_IntelligentTieringFilter");
+var de_InventoryConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Des] != null) {
+ contents[_Des] = de_InventoryDestination(output[_Des], context);
+ }
+ if (output[_IE] != null) {
+ contents[_IE] = (0, import_smithy_client.parseBoolean)(output[_IE]);
+ }
+ if (output[_F] != null) {
+ contents[_F] = de_InventoryFilter(output[_F], context);
+ }
+ if (output[_I] != null) {
+ contents[_I] = (0, import_smithy_client.expectString)(output[_I]);
+ }
+ if (output[_IOV] != null) {
+ contents[_IOV] = (0, import_smithy_client.expectString)(output[_IOV]);
+ }
+ if (output.OptionalFields === "") {
+ contents[_OF] = [];
+ } else if (output[_OF] != null && output[_OF][_Fi] != null) {
+ contents[_OF] = de_InventoryOptionalFields((0, import_smithy_client.getArrayIfSingleItem)(output[_OF][_Fi]), context);
+ }
+ if (output[_Sc] != null) {
+ contents[_Sc] = de_InventorySchedule(output[_Sc], context);
+ }
+ return contents;
+}, "de_InventoryConfiguration");
+var de_InventoryConfigurationList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_InventoryConfiguration(entry, context);
+ });
+}, "de_InventoryConfigurationList");
+var de_InventoryDestination = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SBD] != null) {
+ contents[_SBD] = de_InventoryS3BucketDestination(output[_SBD], context);
+ }
+ return contents;
+}, "de_InventoryDestination");
+var de_InventoryEncryption = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SS] != null) {
+ contents[_SSES] = de_SSES3(output[_SS], context);
+ }
+ if (output[_SK] != null) {
+ contents[_SSEKMS] = de_SSEKMS(output[_SK], context);
+ }
+ return contents;
+}, "de_InventoryEncryption");
+var de_InventoryFilter = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ return contents;
+}, "de_InventoryFilter");
+var de_InventoryOptionalFields = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return (0, import_smithy_client.expectString)(entry);
+ });
+}, "de_InventoryOptionalFields");
+var de_InventoryS3BucketDestination = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_AIc] != null) {
+ contents[_AIc] = (0, import_smithy_client.expectString)(output[_AIc]);
+ }
+ if (output[_B] != null) {
+ contents[_B] = (0, import_smithy_client.expectString)(output[_B]);
+ }
+ if (output[_Fo] != null) {
+ contents[_Fo] = (0, import_smithy_client.expectString)(output[_Fo]);
+ }
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output[_En] != null) {
+ contents[_En] = de_InventoryEncryption(output[_En], context);
+ }
+ return contents;
+}, "de_InventoryS3BucketDestination");
+var de_InventorySchedule = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Fr] != null) {
+ contents[_Fr] = (0, import_smithy_client.expectString)(output[_Fr]);
+ }
+ return contents;
+}, "de_InventorySchedule");
+var de_LambdaFunctionConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_I] != null) {
+ contents[_I] = (0, import_smithy_client.expectString)(output[_I]);
+ }
+ if (output[_CF] != null) {
+ contents[_LFA] = (0, import_smithy_client.expectString)(output[_CF]);
+ }
+ if (output.Event === "") {
+ contents[_Eve] = [];
+ } else if (output[_Ev] != null) {
+ contents[_Eve] = de_EventList((0, import_smithy_client.getArrayIfSingleItem)(output[_Ev]), context);
+ }
+ if (output[_F] != null) {
+ contents[_F] = de_NotificationConfigurationFilter(output[_F], context);
+ }
+ return contents;
+}, "de_LambdaFunctionConfiguration");
+var de_LambdaFunctionConfigurationList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_LambdaFunctionConfiguration(entry, context);
+ });
+}, "de_LambdaFunctionConfigurationList");
+var de_LifecycleExpiration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Dat] != null) {
+ contents[_Dat] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_Dat]));
+ }
+ if (output[_Da] != null) {
+ contents[_Da] = (0, import_smithy_client.strictParseInt32)(output[_Da]);
+ }
+ if (output[_EODM] != null) {
+ contents[_EODM] = (0, import_smithy_client.parseBoolean)(output[_EODM]);
+ }
+ return contents;
+}, "de_LifecycleExpiration");
+var de_LifecycleRule = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Exp] != null) {
+ contents[_Exp] = de_LifecycleExpiration(output[_Exp], context);
+ }
+ if (output[_ID_] != null) {
+ contents[_ID_] = (0, import_smithy_client.expectString)(output[_ID_]);
+ }
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output[_F] != null) {
+ contents[_F] = de_LifecycleRuleFilter(output[_F], context);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output.Transition === "") {
+ contents[_Tr] = [];
+ } else if (output[_Tra] != null) {
+ contents[_Tr] = de_TransitionList((0, import_smithy_client.getArrayIfSingleItem)(output[_Tra]), context);
+ }
+ if (output.NoncurrentVersionTransition === "") {
+ contents[_NVT] = [];
+ } else if (output[_NVTo] != null) {
+ contents[_NVT] = de_NoncurrentVersionTransitionList((0, import_smithy_client.getArrayIfSingleItem)(output[_NVTo]), context);
+ }
+ if (output[_NVE] != null) {
+ contents[_NVE] = de_NoncurrentVersionExpiration(output[_NVE], context);
+ }
+ if (output[_AIMU] != null) {
+ contents[_AIMU] = de_AbortIncompleteMultipartUpload(output[_AIMU], context);
+ }
+ return contents;
+}, "de_LifecycleRule");
+var de_LifecycleRuleAndOperator = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output.Tag === "") {
+ contents[_Tag] = [];
+ } else if (output[_Ta] != null) {
+ contents[_Tag] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta]), context);
+ }
+ if (output[_OSGT] != null) {
+ contents[_OSGT] = (0, import_smithy_client.strictParseLong)(output[_OSGT]);
+ }
+ if (output[_OSLT] != null) {
+ contents[_OSLT] = (0, import_smithy_client.strictParseLong)(output[_OSLT]);
+ }
+ return contents;
+}, "de_LifecycleRuleAndOperator");
+var de_LifecycleRuleFilter = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output[_Ta] != null) {
+ contents[_Ta] = de_Tag(output[_Ta], context);
+ }
+ if (output[_OSGT] != null) {
+ contents[_OSGT] = (0, import_smithy_client.strictParseLong)(output[_OSGT]);
+ }
+ if (output[_OSLT] != null) {
+ contents[_OSLT] = (0, import_smithy_client.strictParseLong)(output[_OSLT]);
+ }
+ if (output[_A] != null) {
+ contents[_A] = de_LifecycleRuleAndOperator(output[_A], context);
+ }
+ return contents;
+}, "de_LifecycleRuleFilter");
+var de_LifecycleRules = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_LifecycleRule(entry, context);
+ });
+}, "de_LifecycleRules");
+var de_LoggingEnabled = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_TB] != null) {
+ contents[_TB] = (0, import_smithy_client.expectString)(output[_TB]);
+ }
+ if (output.TargetGrants === "") {
+ contents[_TG] = [];
+ } else if (output[_TG] != null && output[_TG][_G] != null) {
+ contents[_TG] = de_TargetGrants((0, import_smithy_client.getArrayIfSingleItem)(output[_TG][_G]), context);
+ }
+ if (output[_TP] != null) {
+ contents[_TP] = (0, import_smithy_client.expectString)(output[_TP]);
+ }
+ if (output[_TOKF] != null) {
+ contents[_TOKF] = de_TargetObjectKeyFormat(output[_TOKF], context);
+ }
+ return contents;
+}, "de_LoggingEnabled");
+var de_MetadataTableConfigurationResult = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_STDR] != null) {
+ contents[_STDR] = de_S3TablesDestinationResult(output[_STDR], context);
+ }
+ return contents;
+}, "de_MetadataTableConfigurationResult");
+var de_Metrics = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_ETv] != null) {
+ contents[_ETv] = de_ReplicationTimeValue(output[_ETv], context);
+ }
+ return contents;
+}, "de_Metrics");
+var de_MetricsAndOperator = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output.Tag === "") {
+ contents[_Tag] = [];
+ } else if (output[_Ta] != null) {
+ contents[_Tag] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta]), context);
+ }
+ if (output[_APAc] != null) {
+ contents[_APAc] = (0, import_smithy_client.expectString)(output[_APAc]);
+ }
+ return contents;
+}, "de_MetricsAndOperator");
+var de_MetricsConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_I] != null) {
+ contents[_I] = (0, import_smithy_client.expectString)(output[_I]);
+ }
+ if (output.Filter === "") {
+ } else if (output[_F] != null) {
+ contents[_F] = de_MetricsFilter((0, import_smithy_client.expectUnion)(output[_F]), context);
+ }
+ return contents;
+}, "de_MetricsConfiguration");
+var de_MetricsConfigurationList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_MetricsConfiguration(entry, context);
+ });
+}, "de_MetricsConfigurationList");
+var de_MetricsFilter = /* @__PURE__ */ __name((output, context) => {
+ if (output[_P] != null) {
+ return {
+ Prefix: (0, import_smithy_client.expectString)(output[_P])
+ };
+ }
+ if (output[_Ta] != null) {
+ return {
+ Tag: de_Tag(output[_Ta], context)
+ };
+ }
+ if (output[_APAc] != null) {
+ return {
+ AccessPointArn: (0, import_smithy_client.expectString)(output[_APAc])
+ };
+ }
+ if (output[_A] != null) {
+ return {
+ And: de_MetricsAndOperator(output[_A], context)
+ };
+ }
+ return { $unknown: Object.entries(output)[0] };
+}, "de_MetricsFilter");
+var de_MultipartUpload = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_UI] != null) {
+ contents[_UI] = (0, import_smithy_client.expectString)(output[_UI]);
+ }
+ if (output[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
+ }
+ if (output[_Ini] != null) {
+ contents[_Ini] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_Ini]));
+ }
+ if (output[_SC] != null) {
+ contents[_SC] = (0, import_smithy_client.expectString)(output[_SC]);
+ }
+ if (output[_O] != null) {
+ contents[_O] = de_Owner(output[_O], context);
+ }
+ if (output[_In] != null) {
+ contents[_In] = de_Initiator(output[_In], context);
+ }
+ if (output[_CA] != null) {
+ contents[_CA] = (0, import_smithy_client.expectString)(output[_CA]);
+ }
+ if (output[_CT] != null) {
+ contents[_CT] = (0, import_smithy_client.expectString)(output[_CT]);
+ }
+ return contents;
+}, "de_MultipartUpload");
+var de_MultipartUploadList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_MultipartUpload(entry, context);
+ });
+}, "de_MultipartUploadList");
+var de_NoncurrentVersionExpiration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ND] != null) {
+ contents[_ND] = (0, import_smithy_client.strictParseInt32)(output[_ND]);
+ }
+ if (output[_NNV] != null) {
+ contents[_NNV] = (0, import_smithy_client.strictParseInt32)(output[_NNV]);
+ }
+ return contents;
+}, "de_NoncurrentVersionExpiration");
+var de_NoncurrentVersionTransition = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ND] != null) {
+ contents[_ND] = (0, import_smithy_client.strictParseInt32)(output[_ND]);
+ }
+ if (output[_SC] != null) {
+ contents[_SC] = (0, import_smithy_client.expectString)(output[_SC]);
+ }
+ if (output[_NNV] != null) {
+ contents[_NNV] = (0, import_smithy_client.strictParseInt32)(output[_NNV]);
+ }
+ return contents;
+}, "de_NoncurrentVersionTransition");
+var de_NoncurrentVersionTransitionList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_NoncurrentVersionTransition(entry, context);
+ });
+}, "de_NoncurrentVersionTransitionList");
+var de_NotificationConfigurationFilter = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SKe] != null) {
+ contents[_K] = de_S3KeyFilter(output[_SKe], context);
+ }
+ return contents;
+}, "de_NotificationConfigurationFilter");
+var de__Object = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
+ }
+ if (output[_LM] != null) {
+ contents[_LM] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LM]));
+ }
+ if (output[_ETa] != null) {
+ contents[_ETa] = (0, import_smithy_client.expectString)(output[_ETa]);
+ }
+ if (output.ChecksumAlgorithm === "") {
+ contents[_CA] = [];
+ } else if (output[_CA] != null) {
+ contents[_CA] = de_ChecksumAlgorithmList((0, import_smithy_client.getArrayIfSingleItem)(output[_CA]), context);
+ }
+ if (output[_CT] != null) {
+ contents[_CT] = (0, import_smithy_client.expectString)(output[_CT]);
+ }
+ if (output[_Si] != null) {
+ contents[_Si] = (0, import_smithy_client.strictParseLong)(output[_Si]);
+ }
+ if (output[_SC] != null) {
+ contents[_SC] = (0, import_smithy_client.expectString)(output[_SC]);
+ }
+ if (output[_O] != null) {
+ contents[_O] = de_Owner(output[_O], context);
+ }
+ if (output[_RSe] != null) {
+ contents[_RSe] = de_RestoreStatus(output[_RSe], context);
+ }
+ return contents;
+}, "de__Object");
+var de_ObjectList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de__Object(entry, context);
+ });
+}, "de_ObjectList");
+var de_ObjectLockConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OLE] != null) {
+ contents[_OLE] = (0, import_smithy_client.expectString)(output[_OLE]);
+ }
+ if (output[_Ru] != null) {
+ contents[_Ru] = de_ObjectLockRule(output[_Ru], context);
+ }
+ return contents;
+}, "de_ObjectLockConfiguration");
+var de_ObjectLockLegalHold = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ return contents;
+}, "de_ObjectLockLegalHold");
+var de_ObjectLockRetention = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Mo] != null) {
+ contents[_Mo] = (0, import_smithy_client.expectString)(output[_Mo]);
+ }
+ if (output[_RUD] != null) {
+ contents[_RUD] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_RUD]));
+ }
+ return contents;
+}, "de_ObjectLockRetention");
+var de_ObjectLockRule = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_DRe] != null) {
+ contents[_DRe] = de_DefaultRetention(output[_DRe], context);
+ }
+ return contents;
+}, "de_ObjectLockRule");
+var de_ObjectPart = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PN] != null) {
+ contents[_PN] = (0, import_smithy_client.strictParseInt32)(output[_PN]);
+ }
+ if (output[_Si] != null) {
+ contents[_Si] = (0, import_smithy_client.strictParseLong)(output[_Si]);
+ }
+ if (output[_CCRC] != null) {
+ contents[_CCRC] = (0, import_smithy_client.expectString)(output[_CCRC]);
+ }
+ if (output[_CCRCC] != null) {
+ contents[_CCRCC] = (0, import_smithy_client.expectString)(output[_CCRCC]);
+ }
+ if (output[_CCRCNVME] != null) {
+ contents[_CCRCNVME] = (0, import_smithy_client.expectString)(output[_CCRCNVME]);
+ }
+ if (output[_CSHA] != null) {
+ contents[_CSHA] = (0, import_smithy_client.expectString)(output[_CSHA]);
+ }
+ if (output[_CSHAh] != null) {
+ contents[_CSHAh] = (0, import_smithy_client.expectString)(output[_CSHAh]);
+ }
+ return contents;
+}, "de_ObjectPart");
+var de_ObjectVersion = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ETa] != null) {
+ contents[_ETa] = (0, import_smithy_client.expectString)(output[_ETa]);
+ }
+ if (output.ChecksumAlgorithm === "") {
+ contents[_CA] = [];
+ } else if (output[_CA] != null) {
+ contents[_CA] = de_ChecksumAlgorithmList((0, import_smithy_client.getArrayIfSingleItem)(output[_CA]), context);
+ }
+ if (output[_CT] != null) {
+ contents[_CT] = (0, import_smithy_client.expectString)(output[_CT]);
+ }
+ if (output[_Si] != null) {
+ contents[_Si] = (0, import_smithy_client.strictParseLong)(output[_Si]);
+ }
+ if (output[_SC] != null) {
+ contents[_SC] = (0, import_smithy_client.expectString)(output[_SC]);
+ }
+ if (output[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
+ }
+ if (output[_VI] != null) {
+ contents[_VI] = (0, import_smithy_client.expectString)(output[_VI]);
+ }
+ if (output[_IL] != null) {
+ contents[_IL] = (0, import_smithy_client.parseBoolean)(output[_IL]);
+ }
+ if (output[_LM] != null) {
+ contents[_LM] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LM]));
+ }
+ if (output[_O] != null) {
+ contents[_O] = de_Owner(output[_O], context);
+ }
+ if (output[_RSe] != null) {
+ contents[_RSe] = de_RestoreStatus(output[_RSe], context);
+ }
+ return contents;
+}, "de_ObjectVersion");
+var de_ObjectVersionList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ObjectVersion(entry, context);
+ });
+}, "de_ObjectVersionList");
+var de_Owner = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_DN] != null) {
+ contents[_DN] = (0, import_smithy_client.expectString)(output[_DN]);
+ }
+ if (output[_ID_] != null) {
+ contents[_ID_] = (0, import_smithy_client.expectString)(output[_ID_]);
+ }
+ return contents;
+}, "de_Owner");
+var de_OwnershipControls = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Rule === "") {
+ contents[_Rul] = [];
+ } else if (output[_Ru] != null) {
+ contents[_Rul] = de_OwnershipControlsRules((0, import_smithy_client.getArrayIfSingleItem)(output[_Ru]), context);
+ }
+ return contents;
+}, "de_OwnershipControls");
+var de_OwnershipControlsRule = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OO] != null) {
+ contents[_OO] = (0, import_smithy_client.expectString)(output[_OO]);
+ }
+ return contents;
+}, "de_OwnershipControlsRule");
+var de_OwnershipControlsRules = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_OwnershipControlsRule(entry, context);
+ });
+}, "de_OwnershipControlsRules");
+var de_Part = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PN] != null) {
+ contents[_PN] = (0, import_smithy_client.strictParseInt32)(output[_PN]);
+ }
+ if (output[_LM] != null) {
+ contents[_LM] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_LM]));
+ }
+ if (output[_ETa] != null) {
+ contents[_ETa] = (0, import_smithy_client.expectString)(output[_ETa]);
+ }
+ if (output[_Si] != null) {
+ contents[_Si] = (0, import_smithy_client.strictParseLong)(output[_Si]);
+ }
+ if (output[_CCRC] != null) {
+ contents[_CCRC] = (0, import_smithy_client.expectString)(output[_CCRC]);
+ }
+ if (output[_CCRCC] != null) {
+ contents[_CCRCC] = (0, import_smithy_client.expectString)(output[_CCRCC]);
+ }
+ if (output[_CCRCNVME] != null) {
+ contents[_CCRCNVME] = (0, import_smithy_client.expectString)(output[_CCRCNVME]);
+ }
+ if (output[_CSHA] != null) {
+ contents[_CSHA] = (0, import_smithy_client.expectString)(output[_CSHA]);
+ }
+ if (output[_CSHAh] != null) {
+ contents[_CSHAh] = (0, import_smithy_client.expectString)(output[_CSHAh]);
+ }
+ return contents;
+}, "de_Part");
+var de_PartitionedPrefix = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_PDS] != null) {
+ contents[_PDS] = (0, import_smithy_client.expectString)(output[_PDS]);
+ }
+ return contents;
+}, "de_PartitionedPrefix");
+var de_Parts = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Part(entry, context);
+ });
+}, "de_Parts");
+var de_PartsList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ObjectPart(entry, context);
+ });
+}, "de_PartsList");
+var de_PolicyStatus = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_IP] != null) {
+ contents[_IP] = (0, import_smithy_client.parseBoolean)(output[_IP]);
+ }
+ return contents;
+}, "de_PolicyStatus");
+var de_Progress = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_BS] != null) {
+ contents[_BS] = (0, import_smithy_client.strictParseLong)(output[_BS]);
+ }
+ if (output[_BP] != null) {
+ contents[_BP] = (0, import_smithy_client.strictParseLong)(output[_BP]);
+ }
+ if (output[_BRy] != null) {
+ contents[_BRy] = (0, import_smithy_client.strictParseLong)(output[_BRy]);
+ }
+ return contents;
+}, "de_Progress");
+var de_PublicAccessBlockConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_BPA] != null) {
+ contents[_BPA] = (0, import_smithy_client.parseBoolean)(output[_BPA]);
+ }
+ if (output[_IPA] != null) {
+ contents[_IPA] = (0, import_smithy_client.parseBoolean)(output[_IPA]);
+ }
+ if (output[_BPP] != null) {
+ contents[_BPP] = (0, import_smithy_client.parseBoolean)(output[_BPP]);
+ }
+ if (output[_RPB] != null) {
+ contents[_RPB] = (0, import_smithy_client.parseBoolean)(output[_RPB]);
+ }
+ return contents;
+}, "de_PublicAccessBlockConfiguration");
+var de_QueueConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_I] != null) {
+ contents[_I] = (0, import_smithy_client.expectString)(output[_I]);
+ }
+ if (output[_Qu] != null) {
+ contents[_QA] = (0, import_smithy_client.expectString)(output[_Qu]);
+ }
+ if (output.Event === "") {
+ contents[_Eve] = [];
+ } else if (output[_Ev] != null) {
+ contents[_Eve] = de_EventList((0, import_smithy_client.getArrayIfSingleItem)(output[_Ev]), context);
+ }
+ if (output[_F] != null) {
+ contents[_F] = de_NotificationConfigurationFilter(output[_F], context);
+ }
+ return contents;
+}, "de_QueueConfiguration");
+var de_QueueConfigurationList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_QueueConfiguration(entry, context);
+ });
+}, "de_QueueConfigurationList");
+var de_Redirect = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_HN] != null) {
+ contents[_HN] = (0, import_smithy_client.expectString)(output[_HN]);
+ }
+ if (output[_HRC] != null) {
+ contents[_HRC] = (0, import_smithy_client.expectString)(output[_HRC]);
+ }
+ if (output[_Pr] != null) {
+ contents[_Pr] = (0, import_smithy_client.expectString)(output[_Pr]);
+ }
+ if (output[_RKPW] != null) {
+ contents[_RKPW] = (0, import_smithy_client.expectString)(output[_RKPW]);
+ }
+ if (output[_RKW] != null) {
+ contents[_RKW] = (0, import_smithy_client.expectString)(output[_RKW]);
+ }
+ return contents;
+}, "de_Redirect");
+var de_RedirectAllRequestsTo = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_HN] != null) {
+ contents[_HN] = (0, import_smithy_client.expectString)(output[_HN]);
+ }
+ if (output[_Pr] != null) {
+ contents[_Pr] = (0, import_smithy_client.expectString)(output[_Pr]);
+ }
+ return contents;
+}, "de_RedirectAllRequestsTo");
+var de_ReplicaModifications = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ return contents;
+}, "de_ReplicaModifications");
+var de_ReplicationConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Ro] != null) {
+ contents[_Ro] = (0, import_smithy_client.expectString)(output[_Ro]);
+ }
+ if (output.Rule === "") {
+ contents[_Rul] = [];
+ } else if (output[_Ru] != null) {
+ contents[_Rul] = de_ReplicationRules((0, import_smithy_client.getArrayIfSingleItem)(output[_Ru]), context);
+ }
+ return contents;
+}, "de_ReplicationConfiguration");
+var de_ReplicationRule = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ID_] != null) {
+ contents[_ID_] = (0, import_smithy_client.expectString)(output[_ID_]);
+ }
+ if (output[_Pri] != null) {
+ contents[_Pri] = (0, import_smithy_client.strictParseInt32)(output[_Pri]);
+ }
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output[_F] != null) {
+ contents[_F] = de_ReplicationRuleFilter(output[_F], context);
+ }
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_SSC] != null) {
+ contents[_SSC] = de_SourceSelectionCriteria(output[_SSC], context);
+ }
+ if (output[_EOR] != null) {
+ contents[_EOR] = de_ExistingObjectReplication(output[_EOR], context);
+ }
+ if (output[_Des] != null) {
+ contents[_Des] = de_Destination(output[_Des], context);
+ }
+ if (output[_DMR] != null) {
+ contents[_DMR] = de_DeleteMarkerReplication(output[_DMR], context);
+ }
+ return contents;
+}, "de_ReplicationRule");
+var de_ReplicationRuleAndOperator = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output.Tag === "") {
+ contents[_Tag] = [];
+ } else if (output[_Ta] != null) {
+ contents[_Tag] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta]), context);
+ }
+ return contents;
+}, "de_ReplicationRuleAndOperator");
+var de_ReplicationRuleFilter = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_P] != null) {
+ contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
+ }
+ if (output[_Ta] != null) {
+ contents[_Ta] = de_Tag(output[_Ta], context);
+ }
+ if (output[_A] != null) {
+ contents[_A] = de_ReplicationRuleAndOperator(output[_A], context);
+ }
+ return contents;
+}, "de_ReplicationRuleFilter");
+var de_ReplicationRules = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ReplicationRule(entry, context);
+ });
+}, "de_ReplicationRules");
+var de_ReplicationTime = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ if (output[_Tim] != null) {
+ contents[_Tim] = de_ReplicationTimeValue(output[_Tim], context);
+ }
+ return contents;
+}, "de_ReplicationTime");
+var de_ReplicationTimeValue = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Mi] != null) {
+ contents[_Mi] = (0, import_smithy_client.strictParseInt32)(output[_Mi]);
+ }
+ return contents;
+}, "de_ReplicationTimeValue");
+var de_RestoreStatus = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_IRIP] != null) {
+ contents[_IRIP] = (0, import_smithy_client.parseBoolean)(output[_IRIP]);
+ }
+ if (output[_RED] != null) {
+ contents[_RED] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_RED]));
+ }
+ return contents;
+}, "de_RestoreStatus");
+var de_RoutingRule = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Con] != null) {
+ contents[_Con] = de_Condition(output[_Con], context);
+ }
+ if (output[_Red] != null) {
+ contents[_Red] = de_Redirect(output[_Red], context);
+ }
+ return contents;
+}, "de_RoutingRule");
+var de_RoutingRules = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_RoutingRule(entry, context);
+ });
+}, "de_RoutingRules");
+var de_S3KeyFilter = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.FilterRule === "") {
+ contents[_FRi] = [];
+ } else if (output[_FR] != null) {
+ contents[_FRi] = de_FilterRuleList((0, import_smithy_client.getArrayIfSingleItem)(output[_FR]), context);
+ }
+ return contents;
+}, "de_S3KeyFilter");
+var de_S3TablesDestinationResult = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_TBA] != null) {
+ contents[_TBA] = (0, import_smithy_client.expectString)(output[_TBA]);
+ }
+ if (output[_TN] != null) {
+ contents[_TN] = (0, import_smithy_client.expectString)(output[_TN]);
+ }
+ if (output[_TAa] != null) {
+ contents[_TAa] = (0, import_smithy_client.expectString)(output[_TAa]);
+ }
+ if (output[_TNa] != null) {
+ contents[_TNa] = (0, import_smithy_client.expectString)(output[_TNa]);
+ }
+ return contents;
+}, "de_S3TablesDestinationResult");
+var de_ServerSideEncryptionByDefault = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SSEA] != null) {
+ contents[_SSEA] = (0, import_smithy_client.expectString)(output[_SSEA]);
+ }
+ if (output[_KMSMKID] != null) {
+ contents[_KMSMKID] = (0, import_smithy_client.expectString)(output[_KMSMKID]);
+ }
+ return contents;
+}, "de_ServerSideEncryptionByDefault");
+var de_ServerSideEncryptionConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output.Rule === "") {
+ contents[_Rul] = [];
+ } else if (output[_Ru] != null) {
+ contents[_Rul] = de_ServerSideEncryptionRules((0, import_smithy_client.getArrayIfSingleItem)(output[_Ru]), context);
+ }
+ return contents;
+}, "de_ServerSideEncryptionConfiguration");
+var de_ServerSideEncryptionRule = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ASSEBD] != null) {
+ contents[_ASSEBD] = de_ServerSideEncryptionByDefault(output[_ASSEBD], context);
+ }
+ if (output[_BKE] != null) {
+ contents[_BKE] = (0, import_smithy_client.parseBoolean)(output[_BKE]);
+ }
+ return contents;
+}, "de_ServerSideEncryptionRule");
+var de_ServerSideEncryptionRules = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_ServerSideEncryptionRule(entry, context);
+ });
+}, "de_ServerSideEncryptionRules");
+var de_SessionCredentials = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_AKI] != null) {
+ contents[_AKI] = (0, import_smithy_client.expectString)(output[_AKI]);
+ }
+ if (output[_SAK] != null) {
+ contents[_SAK] = (0, import_smithy_client.expectString)(output[_SAK]);
+ }
+ if (output[_ST] != null) {
+ contents[_ST] = (0, import_smithy_client.expectString)(output[_ST]);
+ }
+ if (output[_Exp] != null) {
+ contents[_Exp] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_Exp]));
+ }
+ return contents;
+}, "de_SessionCredentials");
+var de_SimplePrefix = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_SimplePrefix");
+var de_SourceSelectionCriteria = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SKEO] != null) {
+ contents[_SKEO] = de_SseKmsEncryptedObjects(output[_SKEO], context);
+ }
+ if (output[_RM] != null) {
+ contents[_RM] = de_ReplicaModifications(output[_RM], context);
+ }
+ return contents;
+}, "de_SourceSelectionCriteria");
+var de_SSEKMS = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_KI] != null) {
+ contents[_KI] = (0, import_smithy_client.expectString)(output[_KI]);
+ }
+ return contents;
+}, "de_SSEKMS");
+var de_SseKmsEncryptedObjects = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_S] != null) {
+ contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
+ }
+ return contents;
+}, "de_SseKmsEncryptedObjects");
+var de_SSES3 = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ return contents;
+}, "de_SSES3");
+var de_Stats = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_BS] != null) {
+ contents[_BS] = (0, import_smithy_client.strictParseLong)(output[_BS]);
+ }
+ if (output[_BP] != null) {
+ contents[_BP] = (0, import_smithy_client.strictParseLong)(output[_BP]);
+ }
+ if (output[_BRy] != null) {
+ contents[_BRy] = (0, import_smithy_client.strictParseLong)(output[_BRy]);
+ }
+ return contents;
+}, "de_Stats");
+var de_StorageClassAnalysis = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_DE] != null) {
+ contents[_DE] = de_StorageClassAnalysisDataExport(output[_DE], context);
+ }
+ return contents;
+}, "de_StorageClassAnalysis");
+var de_StorageClassAnalysisDataExport = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_OSV] != null) {
+ contents[_OSV] = (0, import_smithy_client.expectString)(output[_OSV]);
+ }
+ if (output[_Des] != null) {
+ contents[_Des] = de_AnalyticsExportDestination(output[_Des], context);
+ }
+ return contents;
+}, "de_StorageClassAnalysisDataExport");
+var de_Tag = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_K] != null) {
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
+ }
+ if (output[_Va] != null) {
+ contents[_Va] = (0, import_smithy_client.expectString)(output[_Va]);
+ }
+ return contents;
+}, "de_Tag");
+var de_TagSet = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Tag(entry, context);
+ });
+}, "de_TagSet");
+var de_TargetGrant = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Gra] != null) {
+ contents[_Gra] = de_Grantee(output[_Gra], context);
+ }
+ if (output[_Pe] != null) {
+ contents[_Pe] = (0, import_smithy_client.expectString)(output[_Pe]);
+ }
+ return contents;
+}, "de_TargetGrant");
+var de_TargetGrants = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_TargetGrant(entry, context);
+ });
+}, "de_TargetGrants");
+var de_TargetObjectKeyFormat = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_SPi] != null) {
+ contents[_SPi] = de_SimplePrefix(output[_SPi], context);
+ }
+ if (output[_PP] != null) {
+ contents[_PP] = de_PartitionedPrefix(output[_PP], context);
+ }
+ return contents;
+}, "de_TargetObjectKeyFormat");
+var de_Tiering = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Da] != null) {
+ contents[_Da] = (0, import_smithy_client.strictParseInt32)(output[_Da]);
+ }
+ if (output[_AT] != null) {
+ contents[_AT] = (0, import_smithy_client.expectString)(output[_AT]);
+ }
+ return contents;
+}, "de_Tiering");
+var de_TieringList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Tiering(entry, context);
+ });
+}, "de_TieringList");
+var de_TopicConfiguration = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_I] != null) {
+ contents[_I] = (0, import_smithy_client.expectString)(output[_I]);
+ }
+ if (output[_Top] != null) {
+ contents[_TA] = (0, import_smithy_client.expectString)(output[_Top]);
+ }
+ if (output.Event === "") {
+ contents[_Eve] = [];
+ } else if (output[_Ev] != null) {
+ contents[_Eve] = de_EventList((0, import_smithy_client.getArrayIfSingleItem)(output[_Ev]), context);
+ }
+ if (output[_F] != null) {
+ contents[_F] = de_NotificationConfigurationFilter(output[_F], context);
+ }
+ return contents;
+}, "de_TopicConfiguration");
+var de_TopicConfigurationList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_TopicConfiguration(entry, context);
+ });
+}, "de_TopicConfigurationList");
+var de_Transition = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_Dat] != null) {
+ contents[_Dat] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_Dat]));
+ }
+ if (output[_Da] != null) {
+ contents[_Da] = (0, import_smithy_client.strictParseInt32)(output[_Da]);
+ }
+ if (output[_SC] != null) {
+ contents[_SC] = (0, import_smithy_client.expectString)(output[_SC]);
+ }
+ return contents;
+}, "de_Transition");
+var de_TransitionList = /* @__PURE__ */ __name((output, context) => {
+ return (output || []).filter((e) => e != null).map((entry) => {
+ return de_Transition(entry, context);
+ });
+}, "de_TransitionList");
+var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
+ httpStatusCode: output.statusCode,
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
+ extendedRequestId: output.headers["x-amz-id-2"],
+ cfId: output.headers["x-amz-cf-id"]
+}), "deserializeMetadata");
+var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
+var _A = "And";
+var _AAO = "AnalyticsAndOperator";
+var _AC = "AnalyticsConfiguration";
+var _ACL = "ACL";
+var _ACLc = "AccessControlList";
+var _ACLn = "AnalyticsConfigurationList";
+var _ACP = "AccessControlPolicy";
+var _ACT = "AccessControlTranslation";
+var _ACc = "AccelerateConfiguration";
+var _AD = "AbortDate";
+var _AED = "AnalyticsExportDestination";
+var _AF = "AnalyticsFilter";
+var _AH = "AllowedHeader";
+var _AHl = "AllowedHeaders";
+var _AI = "AnalyticsId";
+var _AIMU = "AbortIncompleteMultipartUpload";
+var _AIc = "AccountId";
+var _AKI = "AccessKeyId";
+var _AM = "AllowedMethod";
+var _AMl = "AllowedMethods";
+var _AO = "AllowedOrigin";
+var _AOl = "AllowedOrigins";
+var _APA = "AccessPointAlias";
+var _APAc = "AccessPointArn";
+var _AQRD = "AllowQuotedRecordDelimiter";
+var _AR = "AcceptRanges";
+var _ARI = "AbortRuleId";
+var _AS = "ArchiveStatus";
+var _ASBD = "AnalyticsS3BucketDestination";
+var _ASEFF = "AnalyticsS3ExportFileFormat";
+var _ASSEBD = "ApplyServerSideEncryptionByDefault";
+var _AT = "AccessTier";
+var _Ac = "Account";
+var _B = "Bucket";
+var _BAI = "BucketAccountId";
+var _BAS = "BucketAccelerateStatus";
+var _BGR = "BypassGovernanceRetention";
+var _BI = "BucketInfo";
+var _BKE = "BucketKeyEnabled";
+var _BLC = "BucketLifecycleConfiguration";
+var _BLCu = "BucketLocationConstraint";
+var _BLN = "BucketLocationName";
+var _BLP = "BucketLogsPermission";
+var _BLS = "BucketLoggingStatus";
+var _BLT = "BucketLocationType";
+var _BN = "BucketName";
+var _BP = "BytesProcessed";
+var _BPA = "BlockPublicAcls";
+var _BPP = "BlockPublicPolicy";
+var _BR = "BucketRegion";
+var _BRy = "BytesReturned";
+var _BS = "BytesScanned";
+var _BT = "BucketType";
+var _BVS = "BucketVersioningStatus";
+var _Bu = "Buckets";
+var _C = "Credentials";
+var _CA = "ChecksumAlgorithm";
+var _CACL = "CannedACL";
+var _CBC = "CreateBucketConfiguration";
+var _CC = "CacheControl";
+var _CCRC = "ChecksumCRC32";
+var _CCRCC = "ChecksumCRC32C";
+var _CCRCNVME = "ChecksumCRC64NVME";
+var _CD = "ContentDisposition";
+var _CDr = "CreationDate";
+var _CE = "ContentEncoding";
+var _CF = "CloudFunction";
+var _CFC = "CloudFunctionConfiguration";
+var _CL = "ContentLanguage";
+var _CLo = "ContentLength";
+var _CM = "ChecksumMode";
+var _CMD = "ContentMD5";
+var _CMU = "CompletedMultipartUpload";
+var _CORSC = "CORSConfiguration";
+var _CORSR = "CORSRule";
+var _CORSRu = "CORSRules";
+var _CP = "CommonPrefixes";
+var _CPo = "CompletedPart";
+var _CR = "ContentRange";
+var _CRSBA = "ConfirmRemoveSelfBucketAccess";
+var _CS = "CopySource";
+var _CSHA = "ChecksumSHA1";
+var _CSHAh = "ChecksumSHA256";
+var _CSIM = "CopySourceIfMatch";
+var _CSIMS = "CopySourceIfModifiedSince";
+var _CSINM = "CopySourceIfNoneMatch";
+var _CSIUS = "CopySourceIfUnmodifiedSince";
+var _CSR = "CopySourceRange";
+var _CSSSECA = "CopySourceSSECustomerAlgorithm";
+var _CSSSECK = "CopySourceSSECustomerKey";
+var _CSSSECKMD = "CopySourceSSECustomerKeyMD5";
+var _CSV = "CSV";
+var _CSVI = "CopySourceVersionId";
+var _CSVIn = "CSVInput";
+var _CSVO = "CSVOutput";
+var _CT = "ChecksumType";
+var _CTo = "ContentType";
+var _CTom = "CompressionType";
+var _CTon = "ContinuationToken";
+var _Ch = "Checksum";
+var _Co = "Contents";
+var _Cod = "Code";
+var _Com = "Comments";
+var _Con = "Condition";
+var _D = "Delimiter";
+var _DAI = "DaysAfterInitiation";
+var _DE = "DataExport";
+var _DM = "DeleteMarker";
+var _DMR = "DeleteMarkerReplication";
+var _DMRS = "DeleteMarkerReplicationStatus";
+var _DMVI = "DeleteMarkerVersionId";
+var _DMe = "DeleteMarkers";
+var _DN = "DisplayName";
+var _DR = "DataRedundancy";
+var _DRe = "DefaultRetention";
+var _Da = "Days";
+var _Dat = "Date";
+var _De = "Deleted";
+var _Del = "Delete";
+var _Des = "Destination";
+var _Desc = "Description";
+var _E = "Expires";
+var _EA = "EmailAddress";
+var _EBC = "EventBridgeConfiguration";
+var _EBO = "ExpectedBucketOwner";
+var _EC = "ErrorCode";
+var _ECn = "EncryptionConfiguration";
+var _ED = "ErrorDocument";
+var _EH = "ExposeHeaders";
+var _EHx = "ExposeHeader";
+var _EM = "ErrorMessage";
+var _EODM = "ExpiredObjectDeleteMarker";
+var _EOR = "ExistingObjectReplication";
+var _EORS = "ExistingObjectReplicationStatus";
+var _ERP = "EnableRequestProgress";
+var _ES = "ExpiresString";
+var _ESBO = "ExpectedSourceBucketOwner";
+var _ESx = "ExpirationStatus";
+var _ET = "EncodingType";
+var _ETa = "ETag";
+var _ETn = "EncryptionType";
+var _ETv = "EventThreshold";
+var _ETx = "ExpressionType";
+var _En = "Encryption";
+var _Ena = "Enabled";
+var _End = "End";
+var _Er = "Error";
+var _Err = "Errors";
+var _Ev = "Event";
+var _Eve = "Events";
+var _Ex = "Expression";
+var _Exp = "Expiration";
+var _F = "Filter";
+var _FD = "FieldDelimiter";
+var _FHI = "FileHeaderInfo";
+var _FO = "FetchOwner";
+var _FR = "FilterRule";
+var _FRN = "FilterRuleName";
+var _FRV = "FilterRuleValue";
+var _FRi = "FilterRules";
+var _Fi = "Field";
+var _Fo = "Format";
+var _Fr = "Frequency";
+var _G = "Grant";
+var _GFC = "GrantFullControl";
+var _GJP = "GlacierJobParameters";
+var _GR = "GrantRead";
+var _GRACP = "GrantReadACP";
+var _GW = "GrantWrite";
+var _GWACP = "GrantWriteACP";
+var _Gr = "Grants";
+var _Gra = "Grantee";
+var _HECRE = "HttpErrorCodeReturnedEquals";
+var _HN = "HostName";
+var _HRC = "HttpRedirectCode";
+var _I = "Id";
+var _IC = "InventoryConfiguration";
+var _ICL = "InventoryConfigurationList";
+var _ID = "IndexDocument";
+var _ID_ = "ID";
+var _IDn = "InventoryDestination";
+var _IE = "IsEnabled";
+var _IEn = "InventoryEncryption";
+var _IF = "InventoryFilter";
+var _IFn = "InventoryFormat";
+var _IFnv = "InventoryFrequency";
+var _II = "InventoryId";
+var _IIOV = "InventoryIncludedObjectVersions";
+var _IL = "IsLatest";
+var _IM = "IfMatch";
+var _IMIT = "IfMatchInitiatedTime";
+var _IMLMT = "IfMatchLastModifiedTime";
+var _IMS = "IfMatchSize";
+var _IMSf = "IfModifiedSince";
+var _INM = "IfNoneMatch";
+var _IOF = "InventoryOptionalField";
+var _IOV = "IncludedObjectVersions";
+var _IP = "IsPublic";
+var _IPA = "IgnorePublicAcls";
+var _IRIP = "IsRestoreInProgress";
+var _IS = "InputSerialization";
+var _ISBD = "InventoryS3BucketDestination";
+var _ISn = "InventorySchedule";
+var _IT = "IsTruncated";
+var _ITAO = "IntelligentTieringAndOperator";
+var _ITAT = "IntelligentTieringAccessTier";
+var _ITC = "IntelligentTieringConfiguration";
+var _ITCL = "IntelligentTieringConfigurationList";
+var _ITD = "IntelligentTieringDays";
+var _ITF = "IntelligentTieringFilter";
+var _ITI = "IntelligentTieringId";
+var _ITS = "IntelligentTieringStatus";
+var _IUS = "IfUnmodifiedSince";
+var _In = "Initiator";
+var _Ini = "Initiated";
+var _JSON = "JSON";
+var _JSONI = "JSONInput";
+var _JSONO = "JSONOutput";
+var _JSONT = "JSONType";
+var _K = "Key";
+var _KC = "KeyCount";
+var _KI = "KeyId";
+var _KM = "KeyMarker";
+var _KMSC = "KMSContext";
+var _KMSKI = "KMSKeyId";
+var _KMSMKID = "KMSMasterKeyID";
+var _KPE = "KeyPrefixEquals";
+var _L = "Location";
+var _LC = "LocationConstraint";
+var _LE = "LoggingEnabled";
+var _LEi = "LifecycleExpiration";
+var _LFA = "LambdaFunctionArn";
+var _LFC = "LambdaFunctionConfigurations";
+var _LFCa = "LambdaFunctionConfiguration";
+var _LI = "LocationInfo";
+var _LM = "LastModified";
+var _LMT = "LastModifiedTime";
+var _LNAS = "LocationNameAsString";
+var _LP = "LocationPrefix";
+var _LR = "LifecycleRule";
+var _LRAO = "LifecycleRuleAndOperator";
+var _LRF = "LifecycleRuleFilter";
+var _LT = "LocationType";
+var _M = "Marker";
+var _MAO = "MetricsAndOperator";
+var _MAS = "MaxAgeSeconds";
+var _MB = "MaxBuckets";
+var _MC = "MetricsConfiguration";
+var _MCL = "MetricsConfigurationList";
+var _MD = "MetadataDirective";
+var _MDB = "MaxDirectoryBuckets";
+var _MDf = "MfaDelete";
+var _ME = "MetadataEntry";
+var _MF = "MetricsFilter";
+var _MFA = "MFA";
+var _MFAD = "MFADelete";
+var _MI = "MetricsId";
+var _MK = "MaxKeys";
+var _MKe = "MetadataKey";
+var _MM = "MissingMeta";
+var _MOS = "MpuObjectSize";
+var _MP = "MaxParts";
+var _MS = "MetricsStatus";
+var _MTC = "MetadataTableConfiguration";
+var _MTCR = "MetadataTableConfigurationResult";
+var _MU = "MaxUploads";
+var _MV = "MetadataValue";
+var _Me = "Metrics";
+var _Mes = "Message";
+var _Mi = "Minutes";
+var _Mo = "Mode";
+var _N = "Name";
+var _NC = "NotificationConfiguration";
+var _NCF = "NotificationConfigurationFilter";
+var _NCT = "NextContinuationToken";
+var _ND = "NoncurrentDays";
+var _NI = "NotificationId";
+var _NKM = "NextKeyMarker";
+var _NM = "NextMarker";
+var _NNV = "NewerNoncurrentVersions";
+var _NPNM = "NextPartNumberMarker";
+var _NUIM = "NextUploadIdMarker";
+var _NVE = "NoncurrentVersionExpiration";
+var _NVIM = "NextVersionIdMarker";
+var _NVT = "NoncurrentVersionTransitions";
+var _NVTo = "NoncurrentVersionTransition";
+var _O = "Owner";
+var _OA = "ObjectAttributes";
+var _OC = "OwnershipControls";
+var _OCACL = "ObjectCannedACL";
+var _OCR = "OwnershipControlsRule";
+var _OF = "OptionalFields";
+var _OI = "ObjectIdentifier";
+var _OK = "ObjectKey";
+var _OL = "OutputLocation";
+var _OLC = "ObjectLockConfiguration";
+var _OLE = "ObjectLockEnabled";
+var _OLEFB = "ObjectLockEnabledForBucket";
+var _OLLH = "ObjectLockLegalHold";
+var _OLLHS = "ObjectLockLegalHoldStatus";
+var _OLM = "ObjectLockMode";
+var _OLR = "ObjectLockRetention";
+var _OLRM = "ObjectLockRetentionMode";
+var _OLRUD = "ObjectLockRetainUntilDate";
+var _OLRb = "ObjectLockRule";
+var _OO = "ObjectOwnership";
+var _OOA = "OptionalObjectAttributes";
+var _OOw = "OwnerOverride";
+var _OP = "ObjectParts";
+var _OS = "OutputSerialization";
+var _OSGT = "ObjectSizeGreaterThan";
+var _OSGTB = "ObjectSizeGreaterThanBytes";
+var _OSLT = "ObjectSizeLessThan";
+var _OSLTB = "ObjectSizeLessThanBytes";
+var _OSV = "OutputSchemaVersion";
+var _OSb = "ObjectSize";
+var _OVI = "ObjectVersionId";
+var _Ob = "Objects";
+var _P = "Prefix";
+var _PABC = "PublicAccessBlockConfiguration";
+var _PC = "PartsCount";
+var _PDS = "PartitionDateSource";
+var _PI = "ParquetInput";
+var _PN = "PartNumber";
+var _PNM = "PartNumberMarker";
+var _PP = "PartitionedPrefix";
+var _Pa = "Payer";
+var _Par = "Part";
+var _Parq = "Parquet";
+var _Part = "Parts";
+var _Pe = "Permission";
+var _Pr = "Protocol";
+var _Pri = "Priority";
+var _Q = "Quiet";
+var _QA = "QueueArn";
+var _QC = "QueueConfiguration";
+var _QCu = "QueueConfigurations";
+var _QCuo = "QuoteCharacter";
+var _QEC = "QuoteEscapeCharacter";
+var _QF = "QuoteFields";
+var _Qu = "Queue";
+var _R = "Range";
+var _RART = "RedirectAllRequestsTo";
+var _RC = "RequestCharged";
+var _RCC = "ResponseCacheControl";
+var _RCD = "ResponseContentDisposition";
+var _RCE = "ResponseContentEncoding";
+var _RCL = "ResponseContentLanguage";
+var _RCT = "ResponseContentType";
+var _RCe = "ReplicationConfiguration";
+var _RD = "RecordDelimiter";
+var _RE = "ResponseExpires";
+var _RED = "RestoreExpiryDate";
+var _RKKID = "ReplicaKmsKeyID";
+var _RKPW = "ReplaceKeyPrefixWith";
+var _RKW = "ReplaceKeyWith";
+var _RM = "ReplicaModifications";
+var _RMS = "ReplicaModificationsStatus";
+var _ROP = "RestoreOutputPath";
+var _RP = "RequestPayer";
+var _RPB = "RestrictPublicBuckets";
+var _RPC = "RequestPaymentConfiguration";
+var _RPe = "RequestProgress";
+var _RR = "RequestRoute";
+var _RRAO = "ReplicationRuleAndOperator";
+var _RRF = "ReplicationRuleFilter";
+var _RRS = "ReplicationRuleStatus";
+var _RRT = "RestoreRequestType";
+var _RRe = "ReplicationRule";
+var _RRes = "RestoreRequest";
+var _RRo = "RoutingRules";
+var _RRou = "RoutingRule";
+var _RS = "ReplicationStatus";
+var _RSe = "RestoreStatus";
+var _RT = "RequestToken";
+var _RTS = "ReplicationTimeStatus";
+var _RTV = "ReplicationTimeValue";
+var _RTe = "ReplicationTime";
+var _RUD = "RetainUntilDate";
+var _Re = "Restore";
+var _Red = "Redirect";
+var _Ro = "Role";
+var _Ru = "Rule";
+var _Rul = "Rules";
+var _S = "Status";
+var _SA = "StartAfter";
+var _SAK = "SecretAccessKey";
+var _SBD = "S3BucketDestination";
+var _SC = "StorageClass";
+var _SCA = "StorageClassAnalysis";
+var _SCADE = "StorageClassAnalysisDataExport";
+var _SCASV = "StorageClassAnalysisSchemaVersion";
+var _SCt = "StatusCode";
+var _SDV = "SkipDestinationValidation";
+var _SK = "SSE-KMS";
+var _SKEO = "SseKmsEncryptedObjects";
+var _SKEOS = "SseKmsEncryptedObjectsStatus";
+var _SKF = "S3KeyFilter";
+var _SKe = "S3Key";
+var _SL = "S3Location";
+var _SM = "SessionMode";
+var _SOCR = "SelectObjectContentRequest";
+var _SP = "SelectParameters";
+var _SPi = "SimplePrefix";
+var _SR = "ScanRange";
+var _SS = "SSE-S3";
+var _SSC = "SourceSelectionCriteria";
+var _SSE = "ServerSideEncryption";
+var _SSEA = "SSEAlgorithm";
+var _SSEBD = "ServerSideEncryptionByDefault";
+var _SSEC = "ServerSideEncryptionConfiguration";
+var _SSECA = "SSECustomerAlgorithm";
+var _SSECK = "SSECustomerKey";
+var _SSECKMD = "SSECustomerKeyMD5";
+var _SSEKMS = "SSEKMS";
+var _SSEKMSEC = "SSEKMSEncryptionContext";
+var _SSEKMSKI = "SSEKMSKeyId";
+var _SSER = "ServerSideEncryptionRule";
+var _SSES = "SSES3";
+var _ST = "SessionToken";
+var _STBA = "S3TablesBucketArn";
+var _STD = "S3TablesDestination";
+var _STDR = "S3TablesDestinationResult";
+var _STN = "S3TablesName";
+var _S_ = "S3";
+var _Sc = "Schedule";
+var _Se = "Setting";
+var _Si = "Size";
+var _St = "Start";
+var _Su = "Suffix";
+var _T = "Tagging";
+var _TA = "TopicArn";
+var _TAa = "TableArn";
+var _TB = "TargetBucket";
+var _TBA = "TableBucketArn";
+var _TC = "TagCount";
+var _TCo = "TopicConfiguration";
+var _TCop = "TopicConfigurations";
+var _TD = "TaggingDirective";
+var _TDMOS = "TransitionDefaultMinimumObjectSize";
+var _TG = "TargetGrants";
+var _TGa = "TargetGrant";
+var _TN = "TableName";
+var _TNa = "TableNamespace";
+var _TOKF = "TargetObjectKeyFormat";
+var _TP = "TargetPrefix";
+var _TPC = "TotalPartsCount";
+var _TS = "TagSet";
+var _TSC = "TransitionStorageClass";
+var _Ta = "Tag";
+var _Tag = "Tags";
+var _Ti = "Tier";
+var _Tie = "Tierings";
+var _Tier = "Tiering";
+var _Tim = "Time";
+var _To = "Token";
+var _Top = "Topic";
+var _Tr = "Transitions";
+var _Tra = "Transition";
+var _Ty = "Type";
+var _U = "Upload";
+var _UI = "UploadId";
+var _UIM = "UploadIdMarker";
+var _UM = "UserMetadata";
+var _URI = "URI";
+var _Up = "Uploads";
+var _V = "Version";
+var _VC = "VersionCount";
+var _VCe = "VersioningConfiguration";
+var _VI = "VersionId";
+var _VIM = "VersionIdMarker";
+var _Va = "Value";
+var _Ve = "Versions";
+var _WC = "WebsiteConfiguration";
+var _WOB = "WriteOffsetBytes";
+var _WRL = "WebsiteRedirectLocation";
+var _Y = "Years";
+var _a = "analytics";
+var _ac = "accelerate";
+var _acl = "acl";
+var _ar = "accept-ranges";
+var _at = "attributes";
+var _br = "bucket-region";
+var _c = "cors";
+var _cc = "cache-control";
+var _cd = "content-disposition";
+var _ce = "content-encoding";
+var _cl = "content-language";
+var _cl_ = "content-length";
+var _cm = "content-md5";
+var _cr = "content-range";
+var _ct = "content-type";
+var _ct_ = "continuation-token";
+var _d = "delete";
+var _de = "delimiter";
+var _e = "expires";
+var _en = "encryption";
+var _et = "encoding-type";
+var _eta = "etag";
+var _ex = "expiresstring";
+var _fo = "fetch-owner";
+var _i = "id";
+var _im = "if-match";
+var _ims = "if-modified-since";
+var _in = "inventory";
+var _inm = "if-none-match";
+var _it = "intelligent-tiering";
+var _ius = "if-unmodified-since";
+var _km = "key-marker";
+var _l = "lifecycle";
+var _lh = "legal-hold";
+var _lm = "last-modified";
+var _lo = "location";
+var _log = "logging";
+var _lt = "list-type";
+var _m = "metrics";
+var _mT = "metadataTable";
+var _ma = "marker";
+var _mb = "max-buckets";
+var _mdb = "max-directory-buckets";
+var _me = "member";
+var _mk = "max-keys";
+var _mp = "max-parts";
+var _mu = "max-uploads";
+var _n = "notification";
+var _oC = "ownershipControls";
+var _ol = "object-lock";
+var _p = "policy";
+var _pAB = "publicAccessBlock";
+var _pN = "partNumber";
+var _pS = "policyStatus";
+var _pnm = "part-number-marker";
+var _pr = "prefix";
+var _r = "replication";
+var _rP = "requestPayment";
+var _ra = "range";
+var _rcc = "response-cache-control";
+var _rcd = "response-content-disposition";
+var _rce = "response-content-encoding";
+var _rcl = "response-content-language";
+var _rct = "response-content-type";
+var _re = "response-expires";
+var _res = "restore";
+var _ret = "retention";
+var _s = "session";
+var _sa = "start-after";
+var _se = "select";
+var _st = "select-type";
+var _t = "tagging";
+var _to = "torrent";
+var _u = "uploads";
+var _uI = "uploadId";
+var _uim = "upload-id-marker";
+var _v = "versioning";
+var _vI = "versionId";
+var _ve = '';
+var _ver = "versions";
+var _vim = "version-id-marker";
+var _w = "website";
+var _x = "xsi:type";
+var _xaa = "x-amz-acl";
+var _xaad = "x-amz-abort-date";
+var _xaapa = "x-amz-access-point-alias";
+var _xaari = "x-amz-abort-rule-id";
+var _xaas = "x-amz-archive-status";
+var _xabgr = "x-amz-bypass-governance-retention";
+var _xabln = "x-amz-bucket-location-name";
+var _xablt = "x-amz-bucket-location-type";
+var _xabole = "x-amz-bucket-object-lock-enabled";
+var _xabolt = "x-amz-bucket-object-lock-token";
+var _xabr = "x-amz-bucket-region";
+var _xaca = "x-amz-checksum-algorithm";
+var _xacc = "x-amz-checksum-crc32";
+var _xacc_ = "x-amz-checksum-crc32c";
+var _xacc__ = "x-amz-checksum-crc64nvme";
+var _xacm = "x-amz-checksum-mode";
+var _xacrsba = "x-amz-confirm-remove-self-bucket-access";
+var _xacs = "x-amz-checksum-sha1";
+var _xacs_ = "x-amz-checksum-sha256";
+var _xacs__ = "x-amz-copy-source";
+var _xacsim = "x-amz-copy-source-if-match";
+var _xacsims = "x-amz-copy-source-if-modified-since";
+var _xacsinm = "x-amz-copy-source-if-none-match";
+var _xacsius = "x-amz-copy-source-if-unmodified-since";
+var _xacsm = "x-amz-create-session-mode";
+var _xacsr = "x-amz-copy-source-range";
+var _xacssseca = "x-amz-copy-source-server-side-encryption-customer-algorithm";
+var _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key";
+var _xacssseckm = "x-amz-copy-source-server-side-encryption-customer-key-md5";
+var _xacsvi = "x-amz-copy-source-version-id";
+var _xact = "x-amz-checksum-type";
+var _xadm = "x-amz-delete-marker";
+var _xae = "x-amz-expiration";
+var _xaebo = "x-amz-expected-bucket-owner";
+var _xafec = "x-amz-fwd-error-code";
+var _xafem = "x-amz-fwd-error-message";
+var _xafhar = "x-amz-fwd-header-accept-ranges";
+var _xafhcc = "x-amz-fwd-header-cache-control";
+var _xafhcd = "x-amz-fwd-header-content-disposition";
+var _xafhce = "x-amz-fwd-header-content-encoding";
+var _xafhcl = "x-amz-fwd-header-content-language";
+var _xafhcr = "x-amz-fwd-header-content-range";
+var _xafhct = "x-amz-fwd-header-content-type";
+var _xafhe = "x-amz-fwd-header-etag";
+var _xafhe_ = "x-amz-fwd-header-expires";
+var _xafhlm = "x-amz-fwd-header-last-modified";
+var _xafhxacc = "x-amz-fwd-header-x-amz-checksum-crc32";
+var _xafhxacc_ = "x-amz-fwd-header-x-amz-checksum-crc32c";
+var _xafhxacc__ = "x-amz-fwd-header-x-amz-checksum-crc64nvme";
+var _xafhxacs = "x-amz-fwd-header-x-amz-checksum-sha1";
+var _xafhxacs_ = "x-amz-fwd-header-x-amz-checksum-sha256";
+var _xafhxadm = "x-amz-fwd-header-x-amz-delete-marker";
+var _xafhxae = "x-amz-fwd-header-x-amz-expiration";
+var _xafhxamm = "x-amz-fwd-header-x-amz-missing-meta";
+var _xafhxampc = "x-amz-fwd-header-x-amz-mp-parts-count";
+var _xafhxaollh = "x-amz-fwd-header-x-amz-object-lock-legal-hold";
+var _xafhxaolm = "x-amz-fwd-header-x-amz-object-lock-mode";
+var _xafhxaolrud = "x-amz-fwd-header-x-amz-object-lock-retain-until-date";
+var _xafhxar = "x-amz-fwd-header-x-amz-restore";
+var _xafhxarc = "x-amz-fwd-header-x-amz-request-charged";
+var _xafhxars = "x-amz-fwd-header-x-amz-replication-status";
+var _xafhxasc = "x-amz-fwd-header-x-amz-storage-class";
+var _xafhxasse = "x-amz-fwd-header-x-amz-server-side-encryption";
+var _xafhxasseakki = "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id";
+var _xafhxassebke = "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled";
+var _xafhxasseca = "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm";
+var _xafhxasseckm = "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5";
+var _xafhxatc = "x-amz-fwd-header-x-amz-tagging-count";
+var _xafhxavi = "x-amz-fwd-header-x-amz-version-id";
+var _xafs = "x-amz-fwd-status";
+var _xagfc = "x-amz-grant-full-control";
+var _xagr = "x-amz-grant-read";
+var _xagra = "x-amz-grant-read-acp";
+var _xagw = "x-amz-grant-write";
+var _xagwa = "x-amz-grant-write-acp";
+var _xaimit = "x-amz-if-match-initiated-time";
+var _xaimlmt = "x-amz-if-match-last-modified-time";
+var _xaims = "x-amz-if-match-size";
+var _xam = "x-amz-mfa";
+var _xamd = "x-amz-metadata-directive";
+var _xamm = "x-amz-missing-meta";
+var _xamos = "x-amz-mp-object-size";
+var _xamp = "x-amz-max-parts";
+var _xampc = "x-amz-mp-parts-count";
+var _xaoa = "x-amz-object-attributes";
+var _xaollh = "x-amz-object-lock-legal-hold";
+var _xaolm = "x-amz-object-lock-mode";
+var _xaolrud = "x-amz-object-lock-retain-until-date";
+var _xaoo = "x-amz-object-ownership";
+var _xaooa = "x-amz-optional-object-attributes";
+var _xaos = "x-amz-object-size";
+var _xapnm = "x-amz-part-number-marker";
+var _xar = "x-amz-restore";
+var _xarc = "x-amz-request-charged";
+var _xarop = "x-amz-restore-output-path";
+var _xarp = "x-amz-request-payer";
+var _xarr = "x-amz-request-route";
+var _xars = "x-amz-replication-status";
+var _xart = "x-amz-request-token";
+var _xasc = "x-amz-storage-class";
+var _xasca = "x-amz-sdk-checksum-algorithm";
+var _xasdv = "x-amz-skip-destination-validation";
+var _xasebo = "x-amz-source-expected-bucket-owner";
+var _xasse = "x-amz-server-side-encryption";
+var _xasseakki = "x-amz-server-side-encryption-aws-kms-key-id";
+var _xassebke = "x-amz-server-side-encryption-bucket-key-enabled";
+var _xassec = "x-amz-server-side-encryption-context";
+var _xasseca = "x-amz-server-side-encryption-customer-algorithm";
+var _xasseck = "x-amz-server-side-encryption-customer-key";
+var _xasseckm = "x-amz-server-side-encryption-customer-key-md5";
+var _xat = "x-amz-tagging";
+var _xatc = "x-amz-tagging-count";
+var _xatd = "x-amz-tagging-directive";
+var _xatdmos = "x-amz-transition-default-minimum-object-size";
+var _xavi = "x-amz-version-id";
+var _xawob = "x-amz-write-offset-bytes";
+var _xawrl = "x-amz-website-redirect-location";
+var _xi = "x-id";
+
+// src/commands/CreateSessionCommand.ts
+var CreateSessionCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s3.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "CreateSession", {}).n("S3Client", "CreateSessionCommand").f(CreateSessionRequestFilterSensitiveLog, CreateSessionOutputFilterSensitiveLog).ser(se_CreateSessionCommand).de(de_CreateSessionCommand).build() {
+ static {
+ __name(this, "CreateSessionCommand");
+ }
+};
+
+// src/S3Client.ts
+var import_runtimeConfig = __nccwpck_require__(12714);
+
+// src/runtimeExtensions.ts
+var import_region_config_resolver = __nccwpck_require__(18156);
+
+
+
+// src/auth/httpAuthExtensionConfiguration.ts
+var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
+ let _credentials = runtimeConfig.credentials;
+ return {
+ setHttpAuthScheme(httpAuthScheme) {
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
+ if (index === -1) {
+ _httpAuthSchemes.push(httpAuthScheme);
+ } else {
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
+ }
+ },
+ httpAuthSchemes() {
+ return _httpAuthSchemes;
+ },
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
+ },
+ httpAuthSchemeProvider() {
+ return _httpAuthSchemeProvider;
+ },
+ setCredentials(credentials) {
+ _credentials = credentials;
+ },
+ credentials() {
+ return _credentials;
+ }
+ };
+}, "getHttpAuthExtensionConfiguration");
+var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
+ return {
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials()
+ };
+}, "resolveHttpAuthRuntimeConfig");
+
+// src/runtimeExtensions.ts
+var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
+ const extensionConfiguration = Object.assign(
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
+ getHttpAuthExtensionConfiguration(runtimeConfig)
+ );
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
+ return Object.assign(
+ runtimeConfig,
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
+ );
+}, "resolveRuntimeExtensions");
+
+// src/S3Client.ts
+var S3Client = class extends import_smithy_client.Client {
+ static {
+ __name(this, "S3Client");
+ }
+ /**
+ * The resolved configuration of S3Client class. This is resolved and normalized from the {@link S3ClientConfig | constructor configuration interface}.
+ */
+ config;
+ constructor(...[configuration]) {
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
+ super(_config_0);
+ this.initConfig = _config_0;
+ const _config_1 = resolveClientEndpointParameters(_config_0);
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
+ const _config_3 = (0, import_middleware_flexible_checksums.resolveFlexibleChecksumsConfig)(_config_2);
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
+ const _config_5 = (0, import_config_resolver.resolveRegionConfig)(_config_4);
+ const _config_6 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_5);
+ const _config_7 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_6);
+ const _config_8 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_7);
+ const _config_9 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_8);
+ const _config_10 = (0, import_middleware_sdk_s32.resolveS3Config)(_config_9, { session: [() => this, CreateSessionCommand] });
+ const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
+ this.config = _config_11;
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
+ this.middlewareStack.use(
+ (0, import_core3.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultS3HttpAuthSchemeParametersProvider,
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core3.DefaultIdentityProviderConfig({
+ "aws.auth#sigv4": config.credentials,
+ "aws.auth#sigv4a": config.credentials
+ }), "identityProviderConfigProvider")
+ })
+ );
+ this.middlewareStack.use((0, import_core3.getHttpSigningPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_sdk_s32.getValidateBucketNamePlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_expect_continue.getAddExpectContinuePlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_sdk_s32.getRegionRedirectMiddlewarePlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_sdk_s32.getS3ExpressPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_sdk_s32.getS3ExpressHttpSigningPlugin)(this.config));
+ }
+ /**
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
+ */
+ destroy() {
+ super.destroy();
+ }
+};
+
+// src/S3.ts
+
+
+// src/commands/AbortMultipartUploadCommand.ts
+var import_middleware_sdk_s33 = __nccwpck_require__(81139);
+
+
+
+var AbortMultipartUploadCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s33.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "AbortMultipartUpload", {}).n("S3Client", "AbortMultipartUploadCommand").f(void 0, void 0).ser(se_AbortMultipartUploadCommand).de(de_AbortMultipartUploadCommand).build() {
+ static {
+ __name(this, "AbortMultipartUploadCommand");
+ }
+};
+
+// src/commands/CompleteMultipartUploadCommand.ts
+var import_middleware_sdk_s34 = __nccwpck_require__(81139);
+var import_middleware_ssec = __nccwpck_require__(49718);
+
+
+
+var CompleteMultipartUploadCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s34.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_ssec.getSsecPlugin)(config)
+ ];
+}).s("AmazonS3", "CompleteMultipartUpload", {}).n("S3Client", "CompleteMultipartUploadCommand").f(CompleteMultipartUploadRequestFilterSensitiveLog, CompleteMultipartUploadOutputFilterSensitiveLog).ser(se_CompleteMultipartUploadCommand).de(de_CompleteMultipartUploadCommand).build() {
+ static {
+ __name(this, "CompleteMultipartUploadCommand");
+ }
+};
+
+// src/commands/CopyObjectCommand.ts
+var import_middleware_sdk_s35 = __nccwpck_require__(81139);
+
+
+
+
+var CopyObjectCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" },
+ CopySource: { type: "contextParams", name: "CopySource" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s35.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_ssec.getSsecPlugin)(config)
+ ];
+}).s("AmazonS3", "CopyObject", {}).n("S3Client", "CopyObjectCommand").f(CopyObjectRequestFilterSensitiveLog, CopyObjectOutputFilterSensitiveLog).ser(se_CopyObjectCommand).de(de_CopyObjectCommand).build() {
+ static {
+ __name(this, "CopyObjectCommand");
+ }
+};
+
+// src/commands/CreateBucketCommand.ts
+var import_middleware_location_constraint = __nccwpck_require__(42098);
+var import_middleware_sdk_s36 = __nccwpck_require__(81139);
+
+
+
+var CreateBucketCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ DisableAccessPoints: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s36.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_location_constraint.getLocationConstraintPlugin)(config)
+ ];
+}).s("AmazonS3", "CreateBucket", {}).n("S3Client", "CreateBucketCommand").f(void 0, void 0).ser(se_CreateBucketCommand).de(de_CreateBucketCommand).build() {
+ static {
+ __name(this, "CreateBucketCommand");
+ }
+};
+
+// src/commands/CreateBucketMetadataTableConfigurationCommand.ts
+
+
+
+
+var CreateBucketMetadataTableConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "CreateBucketMetadataTableConfiguration", {}).n("S3Client", "CreateBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_CreateBucketMetadataTableConfigurationCommand).de(de_CreateBucketMetadataTableConfigurationCommand).build() {
+ static {
+ __name(this, "CreateBucketMetadataTableConfigurationCommand");
+ }
+};
+
+// src/commands/CreateMultipartUploadCommand.ts
+var import_middleware_sdk_s37 = __nccwpck_require__(81139);
+
+
+
+
+var CreateMultipartUploadCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s37.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_ssec.getSsecPlugin)(config)
+ ];
+}).s("AmazonS3", "CreateMultipartUpload", {}).n("S3Client", "CreateMultipartUploadCommand").f(CreateMultipartUploadRequestFilterSensitiveLog, CreateMultipartUploadOutputFilterSensitiveLog).ser(se_CreateMultipartUploadCommand).de(de_CreateMultipartUploadCommand).build() {
+ static {
+ __name(this, "CreateMultipartUploadCommand");
+ }
+};
+
+// src/commands/DeleteBucketAnalyticsConfigurationCommand.ts
+
+
+
+var DeleteBucketAnalyticsConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {}).n("S3Client", "DeleteBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketAnalyticsConfigurationCommand).de(de_DeleteBucketAnalyticsConfigurationCommand).build() {
+ static {
+ __name(this, "DeleteBucketAnalyticsConfigurationCommand");
+ }
+};
+
+// src/commands/DeleteBucketCommand.ts
+
+
+
+var DeleteBucketCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucket", {}).n("S3Client", "DeleteBucketCommand").f(void 0, void 0).ser(se_DeleteBucketCommand).de(de_DeleteBucketCommand).build() {
+ static {
+ __name(this, "DeleteBucketCommand");
+ }
+};
+
+// src/commands/DeleteBucketCorsCommand.ts
+
+
+
+var DeleteBucketCorsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketCors", {}).n("S3Client", "DeleteBucketCorsCommand").f(void 0, void 0).ser(se_DeleteBucketCorsCommand).de(de_DeleteBucketCorsCommand).build() {
+ static {
+ __name(this, "DeleteBucketCorsCommand");
+ }
+};
+
+// src/commands/DeleteBucketEncryptionCommand.ts
+
+
+
+var DeleteBucketEncryptionCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketEncryption", {}).n("S3Client", "DeleteBucketEncryptionCommand").f(void 0, void 0).ser(se_DeleteBucketEncryptionCommand).de(de_DeleteBucketEncryptionCommand).build() {
+ static {
+ __name(this, "DeleteBucketEncryptionCommand");
+ }
+};
+
+// src/commands/DeleteBucketIntelligentTieringConfigurationCommand.ts
+
+
+
+var DeleteBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketIntelligentTieringConfiguration", {}).n("S3Client", "DeleteBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketIntelligentTieringConfigurationCommand).de(de_DeleteBucketIntelligentTieringConfigurationCommand).build() {
+ static {
+ __name(this, "DeleteBucketIntelligentTieringConfigurationCommand");
+ }
+};
+
+// src/commands/DeleteBucketInventoryConfigurationCommand.ts
+
+
+
+var DeleteBucketInventoryConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketInventoryConfiguration", {}).n("S3Client", "DeleteBucketInventoryConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketInventoryConfigurationCommand).de(de_DeleteBucketInventoryConfigurationCommand).build() {
+ static {
+ __name(this, "DeleteBucketInventoryConfigurationCommand");
+ }
+};
+
+// src/commands/DeleteBucketLifecycleCommand.ts
+
+
+
+var DeleteBucketLifecycleCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketLifecycle", {}).n("S3Client", "DeleteBucketLifecycleCommand").f(void 0, void 0).ser(se_DeleteBucketLifecycleCommand).de(de_DeleteBucketLifecycleCommand).build() {
+ static {
+ __name(this, "DeleteBucketLifecycleCommand");
+ }
+};
+
+// src/commands/DeleteBucketMetadataTableConfigurationCommand.ts
+
+
+
+var DeleteBucketMetadataTableConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketMetadataTableConfiguration", {}).n("S3Client", "DeleteBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketMetadataTableConfigurationCommand).de(de_DeleteBucketMetadataTableConfigurationCommand).build() {
+ static {
+ __name(this, "DeleteBucketMetadataTableConfigurationCommand");
+ }
+};
+
+// src/commands/DeleteBucketMetricsConfigurationCommand.ts
+
+
+
+var DeleteBucketMetricsConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketMetricsConfiguration", {}).n("S3Client", "DeleteBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketMetricsConfigurationCommand).de(de_DeleteBucketMetricsConfigurationCommand).build() {
+ static {
+ __name(this, "DeleteBucketMetricsConfigurationCommand");
+ }
+};
+
+// src/commands/DeleteBucketOwnershipControlsCommand.ts
+
+
+
+var DeleteBucketOwnershipControlsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketOwnershipControls", {}).n("S3Client", "DeleteBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_DeleteBucketOwnershipControlsCommand).de(de_DeleteBucketOwnershipControlsCommand).build() {
+ static {
+ __name(this, "DeleteBucketOwnershipControlsCommand");
+ }
+};
+
+// src/commands/DeleteBucketPolicyCommand.ts
+
+
+
+var DeleteBucketPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketPolicy", {}).n("S3Client", "DeleteBucketPolicyCommand").f(void 0, void 0).ser(se_DeleteBucketPolicyCommand).de(de_DeleteBucketPolicyCommand).build() {
+ static {
+ __name(this, "DeleteBucketPolicyCommand");
+ }
+};
+
+// src/commands/DeleteBucketReplicationCommand.ts
+
+
+
+var DeleteBucketReplicationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketReplication", {}).n("S3Client", "DeleteBucketReplicationCommand").f(void 0, void 0).ser(se_DeleteBucketReplicationCommand).de(de_DeleteBucketReplicationCommand).build() {
+ static {
+ __name(this, "DeleteBucketReplicationCommand");
+ }
+};
+
+// src/commands/DeleteBucketTaggingCommand.ts
+
+
+
+var DeleteBucketTaggingCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketTagging", {}).n("S3Client", "DeleteBucketTaggingCommand").f(void 0, void 0).ser(se_DeleteBucketTaggingCommand).de(de_DeleteBucketTaggingCommand).build() {
+ static {
+ __name(this, "DeleteBucketTaggingCommand");
+ }
+};
+
+// src/commands/DeleteBucketWebsiteCommand.ts
+
+
+
+var DeleteBucketWebsiteCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeleteBucketWebsite", {}).n("S3Client", "DeleteBucketWebsiteCommand").f(void 0, void 0).ser(se_DeleteBucketWebsiteCommand).de(de_DeleteBucketWebsiteCommand).build() {
+ static {
+ __name(this, "DeleteBucketWebsiteCommand");
+ }
+};
+
+// src/commands/DeleteObjectCommand.ts
+var import_middleware_sdk_s38 = __nccwpck_require__(81139);
+
+
+
+var DeleteObjectCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s38.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "DeleteObject", {}).n("S3Client", "DeleteObjectCommand").f(void 0, void 0).ser(se_DeleteObjectCommand).de(de_DeleteObjectCommand).build() {
+ static {
+ __name(this, "DeleteObjectCommand");
+ }
+};
+
+// src/commands/DeleteObjectsCommand.ts
+
+var import_middleware_sdk_s39 = __nccwpck_require__(81139);
+
+
+
+var DeleteObjectsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ }),
+ (0, import_middleware_sdk_s39.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "DeleteObjects", {}).n("S3Client", "DeleteObjectsCommand").f(void 0, void 0).ser(se_DeleteObjectsCommand).de(de_DeleteObjectsCommand).build() {
+ static {
+ __name(this, "DeleteObjectsCommand");
+ }
+};
+
+// src/commands/DeleteObjectTaggingCommand.ts
+var import_middleware_sdk_s310 = __nccwpck_require__(81139);
+
+
+
+var DeleteObjectTaggingCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s310.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "DeleteObjectTagging", {}).n("S3Client", "DeleteObjectTaggingCommand").f(void 0, void 0).ser(se_DeleteObjectTaggingCommand).de(de_DeleteObjectTaggingCommand).build() {
+ static {
+ __name(this, "DeleteObjectTaggingCommand");
+ }
+};
+
+// src/commands/DeletePublicAccessBlockCommand.ts
+
+
+
+var DeletePublicAccessBlockCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "DeletePublicAccessBlock", {}).n("S3Client", "DeletePublicAccessBlockCommand").f(void 0, void 0).ser(se_DeletePublicAccessBlockCommand).de(de_DeletePublicAccessBlockCommand).build() {
+ static {
+ __name(this, "DeletePublicAccessBlockCommand");
+ }
+};
+
+// src/commands/GetBucketAccelerateConfigurationCommand.ts
+var import_middleware_sdk_s311 = __nccwpck_require__(81139);
+
+
+
+var GetBucketAccelerateConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s311.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketAccelerateConfiguration", {}).n("S3Client", "GetBucketAccelerateConfigurationCommand").f(void 0, void 0).ser(se_GetBucketAccelerateConfigurationCommand).de(de_GetBucketAccelerateConfigurationCommand).build() {
+ static {
+ __name(this, "GetBucketAccelerateConfigurationCommand");
+ }
+};
+
+// src/commands/GetBucketAclCommand.ts
+var import_middleware_sdk_s312 = __nccwpck_require__(81139);
+
+
+
+var GetBucketAclCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s312.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketAcl", {}).n("S3Client", "GetBucketAclCommand").f(void 0, void 0).ser(se_GetBucketAclCommand).de(de_GetBucketAclCommand).build() {
+ static {
+ __name(this, "GetBucketAclCommand");
+ }
+};
+
+// src/commands/GetBucketAnalyticsConfigurationCommand.ts
+var import_middleware_sdk_s313 = __nccwpck_require__(81139);
+
+
+
+var GetBucketAnalyticsConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s313.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketAnalyticsConfiguration", {}).n("S3Client", "GetBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_GetBucketAnalyticsConfigurationCommand).de(de_GetBucketAnalyticsConfigurationCommand).build() {
+ static {
+ __name(this, "GetBucketAnalyticsConfigurationCommand");
+ }
+};
+
+// src/commands/GetBucketCorsCommand.ts
+var import_middleware_sdk_s314 = __nccwpck_require__(81139);
+
+
+
+var GetBucketCorsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s314.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketCors", {}).n("S3Client", "GetBucketCorsCommand").f(void 0, void 0).ser(se_GetBucketCorsCommand).de(de_GetBucketCorsCommand).build() {
+ static {
+ __name(this, "GetBucketCorsCommand");
+ }
+};
+
+// src/commands/GetBucketEncryptionCommand.ts
+var import_middleware_sdk_s315 = __nccwpck_require__(81139);
+
+
+
+var GetBucketEncryptionCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s315.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketEncryption", {}).n("S3Client", "GetBucketEncryptionCommand").f(void 0, GetBucketEncryptionOutputFilterSensitiveLog).ser(se_GetBucketEncryptionCommand).de(de_GetBucketEncryptionCommand).build() {
+ static {
+ __name(this, "GetBucketEncryptionCommand");
+ }
+};
+
+// src/commands/GetBucketIntelligentTieringConfigurationCommand.ts
+var import_middleware_sdk_s316 = __nccwpck_require__(81139);
+
+
+
+var GetBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s316.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketIntelligentTieringConfiguration", {}).n("S3Client", "GetBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_GetBucketIntelligentTieringConfigurationCommand).de(de_GetBucketIntelligentTieringConfigurationCommand).build() {
+ static {
+ __name(this, "GetBucketIntelligentTieringConfigurationCommand");
+ }
+};
+
+// src/commands/GetBucketInventoryConfigurationCommand.ts
+var import_middleware_sdk_s317 = __nccwpck_require__(81139);
+
+
+
+var GetBucketInventoryConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s317.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketInventoryConfiguration", {}).n("S3Client", "GetBucketInventoryConfigurationCommand").f(void 0, GetBucketInventoryConfigurationOutputFilterSensitiveLog).ser(se_GetBucketInventoryConfigurationCommand).de(de_GetBucketInventoryConfigurationCommand).build() {
+ static {
+ __name(this, "GetBucketInventoryConfigurationCommand");
+ }
+};
+
+// src/commands/GetBucketLifecycleConfigurationCommand.ts
+var import_middleware_sdk_s318 = __nccwpck_require__(81139);
+
+
+
+var GetBucketLifecycleConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s318.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketLifecycleConfiguration", {}).n("S3Client", "GetBucketLifecycleConfigurationCommand").f(void 0, void 0).ser(se_GetBucketLifecycleConfigurationCommand).de(de_GetBucketLifecycleConfigurationCommand).build() {
+ static {
+ __name(this, "GetBucketLifecycleConfigurationCommand");
+ }
+};
+
+// src/commands/GetBucketLocationCommand.ts
+var import_middleware_sdk_s319 = __nccwpck_require__(81139);
+
+
+
+var GetBucketLocationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s319.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketLocation", {}).n("S3Client", "GetBucketLocationCommand").f(void 0, void 0).ser(se_GetBucketLocationCommand).de(de_GetBucketLocationCommand).build() {
+ static {
+ __name(this, "GetBucketLocationCommand");
+ }
+};
+
+// src/commands/GetBucketLoggingCommand.ts
+var import_middleware_sdk_s320 = __nccwpck_require__(81139);
+
+
+
+var GetBucketLoggingCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s320.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketLogging", {}).n("S3Client", "GetBucketLoggingCommand").f(void 0, void 0).ser(se_GetBucketLoggingCommand).de(de_GetBucketLoggingCommand).build() {
+ static {
+ __name(this, "GetBucketLoggingCommand");
+ }
+};
+
+// src/commands/GetBucketMetadataTableConfigurationCommand.ts
+var import_middleware_sdk_s321 = __nccwpck_require__(81139);
+
+
+
+var GetBucketMetadataTableConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s321.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketMetadataTableConfiguration", {}).n("S3Client", "GetBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_GetBucketMetadataTableConfigurationCommand).de(de_GetBucketMetadataTableConfigurationCommand).build() {
+ static {
+ __name(this, "GetBucketMetadataTableConfigurationCommand");
+ }
+};
+
+// src/commands/GetBucketMetricsConfigurationCommand.ts
+var import_middleware_sdk_s322 = __nccwpck_require__(81139);
+
+
+
+var GetBucketMetricsConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s322.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketMetricsConfiguration", {}).n("S3Client", "GetBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_GetBucketMetricsConfigurationCommand).de(de_GetBucketMetricsConfigurationCommand).build() {
+ static {
+ __name(this, "GetBucketMetricsConfigurationCommand");
+ }
+};
+
+// src/commands/GetBucketNotificationConfigurationCommand.ts
+var import_middleware_sdk_s323 = __nccwpck_require__(81139);
+
+
+
+var GetBucketNotificationConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s323.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketNotificationConfiguration", {}).n("S3Client", "GetBucketNotificationConfigurationCommand").f(void 0, void 0).ser(se_GetBucketNotificationConfigurationCommand).de(de_GetBucketNotificationConfigurationCommand).build() {
+ static {
+ __name(this, "GetBucketNotificationConfigurationCommand");
+ }
+};
+
+// src/commands/GetBucketOwnershipControlsCommand.ts
+var import_middleware_sdk_s324 = __nccwpck_require__(81139);
+
+
+
+var GetBucketOwnershipControlsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s324.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketOwnershipControls", {}).n("S3Client", "GetBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_GetBucketOwnershipControlsCommand).de(de_GetBucketOwnershipControlsCommand).build() {
+ static {
+ __name(this, "GetBucketOwnershipControlsCommand");
+ }
+};
+
+// src/commands/GetBucketPolicyCommand.ts
+var import_middleware_sdk_s325 = __nccwpck_require__(81139);
+
+
+
+var GetBucketPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s325.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketPolicy", {}).n("S3Client", "GetBucketPolicyCommand").f(void 0, void 0).ser(se_GetBucketPolicyCommand).de(de_GetBucketPolicyCommand).build() {
+ static {
+ __name(this, "GetBucketPolicyCommand");
+ }
+};
+
+// src/commands/GetBucketPolicyStatusCommand.ts
+var import_middleware_sdk_s326 = __nccwpck_require__(81139);
+
+
+
+var GetBucketPolicyStatusCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s326.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketPolicyStatus", {}).n("S3Client", "GetBucketPolicyStatusCommand").f(void 0, void 0).ser(se_GetBucketPolicyStatusCommand).de(de_GetBucketPolicyStatusCommand).build() {
+ static {
+ __name(this, "GetBucketPolicyStatusCommand");
+ }
+};
+
+// src/commands/GetBucketReplicationCommand.ts
+var import_middleware_sdk_s327 = __nccwpck_require__(81139);
+
+
+
+var GetBucketReplicationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s327.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketReplication", {}).n("S3Client", "GetBucketReplicationCommand").f(void 0, void 0).ser(se_GetBucketReplicationCommand).de(de_GetBucketReplicationCommand).build() {
+ static {
+ __name(this, "GetBucketReplicationCommand");
+ }
+};
+
+// src/commands/GetBucketRequestPaymentCommand.ts
+var import_middleware_sdk_s328 = __nccwpck_require__(81139);
+
+
+
+var GetBucketRequestPaymentCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s328.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketRequestPayment", {}).n("S3Client", "GetBucketRequestPaymentCommand").f(void 0, void 0).ser(se_GetBucketRequestPaymentCommand).de(de_GetBucketRequestPaymentCommand).build() {
+ static {
+ __name(this, "GetBucketRequestPaymentCommand");
+ }
+};
+
+// src/commands/GetBucketTaggingCommand.ts
+var import_middleware_sdk_s329 = __nccwpck_require__(81139);
+
+
+
+var GetBucketTaggingCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s329.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketTagging", {}).n("S3Client", "GetBucketTaggingCommand").f(void 0, void 0).ser(se_GetBucketTaggingCommand).de(de_GetBucketTaggingCommand).build() {
+ static {
+ __name(this, "GetBucketTaggingCommand");
+ }
+};
+
+// src/commands/GetBucketVersioningCommand.ts
+var import_middleware_sdk_s330 = __nccwpck_require__(81139);
+
+
+
+var GetBucketVersioningCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s330.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketVersioning", {}).n("S3Client", "GetBucketVersioningCommand").f(void 0, void 0).ser(se_GetBucketVersioningCommand).de(de_GetBucketVersioningCommand).build() {
+ static {
+ __name(this, "GetBucketVersioningCommand");
+ }
+};
+
+// src/commands/GetBucketWebsiteCommand.ts
+var import_middleware_sdk_s331 = __nccwpck_require__(81139);
+
+
+
+var GetBucketWebsiteCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s331.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetBucketWebsite", {}).n("S3Client", "GetBucketWebsiteCommand").f(void 0, void 0).ser(se_GetBucketWebsiteCommand).de(de_GetBucketWebsiteCommand).build() {
+ static {
+ __name(this, "GetBucketWebsiteCommand");
+ }
+};
+
+// src/commands/GetObjectAclCommand.ts
+var import_middleware_sdk_s332 = __nccwpck_require__(81139);
+
+
+
+var GetObjectAclCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s332.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetObjectAcl", {}).n("S3Client", "GetObjectAclCommand").f(void 0, void 0).ser(se_GetObjectAclCommand).de(de_GetObjectAclCommand).build() {
+ static {
+ __name(this, "GetObjectAclCommand");
+ }
+};
+
+// src/commands/GetObjectAttributesCommand.ts
+var import_middleware_sdk_s333 = __nccwpck_require__(81139);
+
+
+
+
+var GetObjectAttributesCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s333.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_ssec.getSsecPlugin)(config)
+ ];
+}).s("AmazonS3", "GetObjectAttributes", {}).n("S3Client", "GetObjectAttributesCommand").f(GetObjectAttributesRequestFilterSensitiveLog, void 0).ser(se_GetObjectAttributesCommand).de(de_GetObjectAttributesCommand).build() {
+ static {
+ __name(this, "GetObjectAttributesCommand");
+ }
+};
+
+// src/commands/GetObjectCommand.ts
+
+var import_middleware_sdk_s334 = __nccwpck_require__(81139);
+
+
+
+
+var GetObjectCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestChecksumRequired: false,
+ requestValidationModeMember: "ChecksumMode",
+ responseAlgorithms: ["CRC64NVME", "CRC32", "CRC32C", "SHA256", "SHA1"]
+ }),
+ (0, import_middleware_ssec.getSsecPlugin)(config),
+ (0, import_middleware_sdk_s334.getS3ExpiresMiddlewarePlugin)(config)
+ ];
+}).s("AmazonS3", "GetObject", {}).n("S3Client", "GetObjectCommand").f(GetObjectRequestFilterSensitiveLog, GetObjectOutputFilterSensitiveLog).ser(se_GetObjectCommand).de(de_GetObjectCommand).build() {
+ static {
+ __name(this, "GetObjectCommand");
+ }
+};
+
+// src/commands/GetObjectLegalHoldCommand.ts
+var import_middleware_sdk_s335 = __nccwpck_require__(81139);
+
+
+
+var GetObjectLegalHoldCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s335.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetObjectLegalHold", {}).n("S3Client", "GetObjectLegalHoldCommand").f(void 0, void 0).ser(se_GetObjectLegalHoldCommand).de(de_GetObjectLegalHoldCommand).build() {
+ static {
+ __name(this, "GetObjectLegalHoldCommand");
+ }
+};
+
+// src/commands/GetObjectLockConfigurationCommand.ts
+var import_middleware_sdk_s336 = __nccwpck_require__(81139);
+
+
+
+var GetObjectLockConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s336.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetObjectLockConfiguration", {}).n("S3Client", "GetObjectLockConfigurationCommand").f(void 0, void 0).ser(se_GetObjectLockConfigurationCommand).de(de_GetObjectLockConfigurationCommand).build() {
+ static {
+ __name(this, "GetObjectLockConfigurationCommand");
+ }
+};
+
+// src/commands/GetObjectRetentionCommand.ts
+var import_middleware_sdk_s337 = __nccwpck_require__(81139);
+
+
+
+var GetObjectRetentionCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s337.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetObjectRetention", {}).n("S3Client", "GetObjectRetentionCommand").f(void 0, void 0).ser(se_GetObjectRetentionCommand).de(de_GetObjectRetentionCommand).build() {
+ static {
+ __name(this, "GetObjectRetentionCommand");
+ }
+};
+
+// src/commands/GetObjectTaggingCommand.ts
+var import_middleware_sdk_s338 = __nccwpck_require__(81139);
+
+
+
+var GetObjectTaggingCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s338.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetObjectTagging", {}).n("S3Client", "GetObjectTaggingCommand").f(void 0, void 0).ser(se_GetObjectTaggingCommand).de(de_GetObjectTaggingCommand).build() {
+ static {
+ __name(this, "GetObjectTaggingCommand");
+ }
+};
+
+// src/commands/GetObjectTorrentCommand.ts
+
+
+
+var GetObjectTorrentCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "GetObjectTorrent", {}).n("S3Client", "GetObjectTorrentCommand").f(void 0, GetObjectTorrentOutputFilterSensitiveLog).ser(se_GetObjectTorrentCommand).de(de_GetObjectTorrentCommand).build() {
+ static {
+ __name(this, "GetObjectTorrentCommand");
+ }
+};
+
+// src/commands/GetPublicAccessBlockCommand.ts
+var import_middleware_sdk_s339 = __nccwpck_require__(81139);
+
+
+
+var GetPublicAccessBlockCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s339.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "GetPublicAccessBlock", {}).n("S3Client", "GetPublicAccessBlockCommand").f(void 0, void 0).ser(se_GetPublicAccessBlockCommand).de(de_GetPublicAccessBlockCommand).build() {
+ static {
+ __name(this, "GetPublicAccessBlockCommand");
+ }
+};
+
+// src/commands/HeadBucketCommand.ts
+var import_middleware_sdk_s340 = __nccwpck_require__(81139);
+
+
+
+var HeadBucketCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s340.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "HeadBucket", {}).n("S3Client", "HeadBucketCommand").f(void 0, void 0).ser(se_HeadBucketCommand).de(de_HeadBucketCommand).build() {
+ static {
+ __name(this, "HeadBucketCommand");
+ }
+};
+
+// src/commands/HeadObjectCommand.ts
+var import_middleware_sdk_s341 = __nccwpck_require__(81139);
+
+
+
+
+var HeadObjectCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s341.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_ssec.getSsecPlugin)(config),
+ (0, import_middleware_sdk_s341.getS3ExpiresMiddlewarePlugin)(config)
+ ];
+}).s("AmazonS3", "HeadObject", {}).n("S3Client", "HeadObjectCommand").f(HeadObjectRequestFilterSensitiveLog, HeadObjectOutputFilterSensitiveLog).ser(se_HeadObjectCommand).de(de_HeadObjectCommand).build() {
+ static {
+ __name(this, "HeadObjectCommand");
+ }
+};
+
+// src/commands/ListBucketAnalyticsConfigurationsCommand.ts
+var import_middleware_sdk_s342 = __nccwpck_require__(81139);
+
+
+
+var ListBucketAnalyticsConfigurationsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s342.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "ListBucketAnalyticsConfigurations", {}).n("S3Client", "ListBucketAnalyticsConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketAnalyticsConfigurationsCommand).de(de_ListBucketAnalyticsConfigurationsCommand).build() {
+ static {
+ __name(this, "ListBucketAnalyticsConfigurationsCommand");
+ }
+};
+
+// src/commands/ListBucketIntelligentTieringConfigurationsCommand.ts
+var import_middleware_sdk_s343 = __nccwpck_require__(81139);
+
+
+
+var ListBucketIntelligentTieringConfigurationsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s343.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "ListBucketIntelligentTieringConfigurations", {}).n("S3Client", "ListBucketIntelligentTieringConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketIntelligentTieringConfigurationsCommand).de(de_ListBucketIntelligentTieringConfigurationsCommand).build() {
+ static {
+ __name(this, "ListBucketIntelligentTieringConfigurationsCommand");
+ }
+};
+
+// src/commands/ListBucketInventoryConfigurationsCommand.ts
+var import_middleware_sdk_s344 = __nccwpck_require__(81139);
+
+
+
+var ListBucketInventoryConfigurationsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s344.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "ListBucketInventoryConfigurations", {}).n("S3Client", "ListBucketInventoryConfigurationsCommand").f(void 0, ListBucketInventoryConfigurationsOutputFilterSensitiveLog).ser(se_ListBucketInventoryConfigurationsCommand).de(de_ListBucketInventoryConfigurationsCommand).build() {
+ static {
+ __name(this, "ListBucketInventoryConfigurationsCommand");
+ }
+};
+
+// src/commands/ListBucketMetricsConfigurationsCommand.ts
+var import_middleware_sdk_s345 = __nccwpck_require__(81139);
+
+
+
+var ListBucketMetricsConfigurationsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s345.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "ListBucketMetricsConfigurations", {}).n("S3Client", "ListBucketMetricsConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketMetricsConfigurationsCommand).de(de_ListBucketMetricsConfigurationsCommand).build() {
+ static {
+ __name(this, "ListBucketMetricsConfigurationsCommand");
+ }
+};
+
+// src/commands/ListBucketsCommand.ts
+var import_middleware_sdk_s346 = __nccwpck_require__(81139);
+
+
+
+var ListBucketsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s346.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "ListBuckets", {}).n("S3Client", "ListBucketsCommand").f(void 0, void 0).ser(se_ListBucketsCommand).de(de_ListBucketsCommand).build() {
+ static {
+ __name(this, "ListBucketsCommand");
+ }
+};
+
+// src/commands/ListDirectoryBucketsCommand.ts
+var import_middleware_sdk_s347 = __nccwpck_require__(81139);
+
+
+
+var ListDirectoryBucketsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s347.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "ListDirectoryBuckets", {}).n("S3Client", "ListDirectoryBucketsCommand").f(void 0, void 0).ser(se_ListDirectoryBucketsCommand).de(de_ListDirectoryBucketsCommand).build() {
+ static {
+ __name(this, "ListDirectoryBucketsCommand");
+ }
+};
+
+// src/commands/ListMultipartUploadsCommand.ts
+var import_middleware_sdk_s348 = __nccwpck_require__(81139);
+
+
+
+var ListMultipartUploadsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Prefix: { type: "contextParams", name: "Prefix" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s348.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "ListMultipartUploads", {}).n("S3Client", "ListMultipartUploadsCommand").f(void 0, void 0).ser(se_ListMultipartUploadsCommand).de(de_ListMultipartUploadsCommand).build() {
+ static {
+ __name(this, "ListMultipartUploadsCommand");
+ }
+};
+
+// src/commands/ListObjectsCommand.ts
+var import_middleware_sdk_s349 = __nccwpck_require__(81139);
+
+
+
+var ListObjectsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Prefix: { type: "contextParams", name: "Prefix" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s349.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "ListObjects", {}).n("S3Client", "ListObjectsCommand").f(void 0, void 0).ser(se_ListObjectsCommand).de(de_ListObjectsCommand).build() {
+ static {
+ __name(this, "ListObjectsCommand");
+ }
+};
+
+// src/commands/ListObjectsV2Command.ts
+var import_middleware_sdk_s350 = __nccwpck_require__(81139);
+
+
+
+var ListObjectsV2Command = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Prefix: { type: "contextParams", name: "Prefix" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s350.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "ListObjectsV2", {}).n("S3Client", "ListObjectsV2Command").f(void 0, void 0).ser(se_ListObjectsV2Command).de(de_ListObjectsV2Command).build() {
+ static {
+ __name(this, "ListObjectsV2Command");
+ }
+};
+
+// src/commands/ListObjectVersionsCommand.ts
+var import_middleware_sdk_s351 = __nccwpck_require__(81139);
+
+
+
+var ListObjectVersionsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Prefix: { type: "contextParams", name: "Prefix" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s351.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "ListObjectVersions", {}).n("S3Client", "ListObjectVersionsCommand").f(void 0, void 0).ser(se_ListObjectVersionsCommand).de(de_ListObjectVersionsCommand).build() {
+ static {
+ __name(this, "ListObjectVersionsCommand");
+ }
+};
+
+// src/commands/ListPartsCommand.ts
+var import_middleware_sdk_s352 = __nccwpck_require__(81139);
+
+
+
+
+var ListPartsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s352.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_ssec.getSsecPlugin)(config)
+ ];
+}).s("AmazonS3", "ListParts", {}).n("S3Client", "ListPartsCommand").f(ListPartsRequestFilterSensitiveLog, void 0).ser(se_ListPartsCommand).de(de_ListPartsCommand).build() {
+ static {
+ __name(this, "ListPartsCommand");
+ }
+};
+
+// src/commands/PutBucketAccelerateConfigurationCommand.ts
+
+
+
+
+var PutBucketAccelerateConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: false
+ })
+ ];
+}).s("AmazonS3", "PutBucketAccelerateConfiguration", {}).n("S3Client", "PutBucketAccelerateConfigurationCommand").f(void 0, void 0).ser(se_PutBucketAccelerateConfigurationCommand).de(de_PutBucketAccelerateConfigurationCommand).build() {
+ static {
+ __name(this, "PutBucketAccelerateConfigurationCommand");
+ }
+};
+
+// src/commands/PutBucketAclCommand.ts
+
+
+
+
+var PutBucketAclCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketAcl", {}).n("S3Client", "PutBucketAclCommand").f(void 0, void 0).ser(se_PutBucketAclCommand).de(de_PutBucketAclCommand).build() {
+ static {
+ __name(this, "PutBucketAclCommand");
+ }
+};
+
+// src/commands/PutBucketAnalyticsConfigurationCommand.ts
+
+
+
+var PutBucketAnalyticsConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "PutBucketAnalyticsConfiguration", {}).n("S3Client", "PutBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_PutBucketAnalyticsConfigurationCommand).de(de_PutBucketAnalyticsConfigurationCommand).build() {
+ static {
+ __name(this, "PutBucketAnalyticsConfigurationCommand");
+ }
+};
+
+// src/commands/PutBucketCorsCommand.ts
+
+
+
+
+var PutBucketCorsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketCors", {}).n("S3Client", "PutBucketCorsCommand").f(void 0, void 0).ser(se_PutBucketCorsCommand).de(de_PutBucketCorsCommand).build() {
+ static {
+ __name(this, "PutBucketCorsCommand");
+ }
+};
+
+// src/commands/PutBucketEncryptionCommand.ts
+
+
+
+
+var PutBucketEncryptionCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketEncryption", {}).n("S3Client", "PutBucketEncryptionCommand").f(PutBucketEncryptionRequestFilterSensitiveLog, void 0).ser(se_PutBucketEncryptionCommand).de(de_PutBucketEncryptionCommand).build() {
+ static {
+ __name(this, "PutBucketEncryptionCommand");
+ }
+};
+
+// src/commands/PutBucketIntelligentTieringConfigurationCommand.ts
+
+
+
+var PutBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "PutBucketIntelligentTieringConfiguration", {}).n("S3Client", "PutBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_PutBucketIntelligentTieringConfigurationCommand).de(de_PutBucketIntelligentTieringConfigurationCommand).build() {
+ static {
+ __name(this, "PutBucketIntelligentTieringConfigurationCommand");
+ }
+};
+
+// src/commands/PutBucketInventoryConfigurationCommand.ts
+
+
+
+var PutBucketInventoryConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "PutBucketInventoryConfiguration", {}).n("S3Client", "PutBucketInventoryConfigurationCommand").f(PutBucketInventoryConfigurationRequestFilterSensitiveLog, void 0).ser(se_PutBucketInventoryConfigurationCommand).de(de_PutBucketInventoryConfigurationCommand).build() {
+ static {
+ __name(this, "PutBucketInventoryConfigurationCommand");
+ }
+};
+
+// src/commands/PutBucketLifecycleConfigurationCommand.ts
+
+var import_middleware_sdk_s353 = __nccwpck_require__(81139);
+
+
+
+var PutBucketLifecycleConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ }),
+ (0, import_middleware_sdk_s353.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "PutBucketLifecycleConfiguration", {}).n("S3Client", "PutBucketLifecycleConfigurationCommand").f(void 0, void 0).ser(se_PutBucketLifecycleConfigurationCommand).de(de_PutBucketLifecycleConfigurationCommand).build() {
+ static {
+ __name(this, "PutBucketLifecycleConfigurationCommand");
+ }
+};
+
+// src/commands/PutBucketLoggingCommand.ts
+
+
+
+
+var PutBucketLoggingCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketLogging", {}).n("S3Client", "PutBucketLoggingCommand").f(void 0, void 0).ser(se_PutBucketLoggingCommand).de(de_PutBucketLoggingCommand).build() {
+ static {
+ __name(this, "PutBucketLoggingCommand");
+ }
+};
+
+// src/commands/PutBucketMetricsConfigurationCommand.ts
+
+
+
+var PutBucketMetricsConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "PutBucketMetricsConfiguration", {}).n("S3Client", "PutBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_PutBucketMetricsConfigurationCommand).de(de_PutBucketMetricsConfigurationCommand).build() {
+ static {
+ __name(this, "PutBucketMetricsConfigurationCommand");
+ }
+};
+
+// src/commands/PutBucketNotificationConfigurationCommand.ts
+
+
+
+var PutBucketNotificationConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "PutBucketNotificationConfiguration", {}).n("S3Client", "PutBucketNotificationConfigurationCommand").f(void 0, void 0).ser(se_PutBucketNotificationConfigurationCommand).de(de_PutBucketNotificationConfigurationCommand).build() {
+ static {
+ __name(this, "PutBucketNotificationConfigurationCommand");
+ }
+};
+
+// src/commands/PutBucketOwnershipControlsCommand.ts
+
+
+
+
+var PutBucketOwnershipControlsCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketOwnershipControls", {}).n("S3Client", "PutBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_PutBucketOwnershipControlsCommand).de(de_PutBucketOwnershipControlsCommand).build() {
+ static {
+ __name(this, "PutBucketOwnershipControlsCommand");
+ }
+};
+
+// src/commands/PutBucketPolicyCommand.ts
+
+
+
+
+var PutBucketPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketPolicy", {}).n("S3Client", "PutBucketPolicyCommand").f(void 0, void 0).ser(se_PutBucketPolicyCommand).de(de_PutBucketPolicyCommand).build() {
+ static {
+ __name(this, "PutBucketPolicyCommand");
+ }
+};
+
+// src/commands/PutBucketReplicationCommand.ts
+
+
+
+
+var PutBucketReplicationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketReplication", {}).n("S3Client", "PutBucketReplicationCommand").f(void 0, void 0).ser(se_PutBucketReplicationCommand).de(de_PutBucketReplicationCommand).build() {
+ static {
+ __name(this, "PutBucketReplicationCommand");
+ }
+};
+
+// src/commands/PutBucketRequestPaymentCommand.ts
+
+
+
+
+var PutBucketRequestPaymentCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketRequestPayment", {}).n("S3Client", "PutBucketRequestPaymentCommand").f(void 0, void 0).ser(se_PutBucketRequestPaymentCommand).de(de_PutBucketRequestPaymentCommand).build() {
+ static {
+ __name(this, "PutBucketRequestPaymentCommand");
+ }
+};
+
+// src/commands/PutBucketTaggingCommand.ts
+
+
+
+
+var PutBucketTaggingCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketTagging", {}).n("S3Client", "PutBucketTaggingCommand").f(void 0, void 0).ser(se_PutBucketTaggingCommand).de(de_PutBucketTaggingCommand).build() {
+ static {
+ __name(this, "PutBucketTaggingCommand");
+ }
+};
+
+// src/commands/PutBucketVersioningCommand.ts
+
+
+
+
+var PutBucketVersioningCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketVersioning", {}).n("S3Client", "PutBucketVersioningCommand").f(void 0, void 0).ser(se_PutBucketVersioningCommand).de(de_PutBucketVersioningCommand).build() {
+ static {
+ __name(this, "PutBucketVersioningCommand");
+ }
+};
+
+// src/commands/PutBucketWebsiteCommand.ts
+
+
+
+
+var PutBucketWebsiteCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutBucketWebsite", {}).n("S3Client", "PutBucketWebsiteCommand").f(void 0, void 0).ser(se_PutBucketWebsiteCommand).de(de_PutBucketWebsiteCommand).build() {
+ static {
+ __name(this, "PutBucketWebsiteCommand");
+ }
+};
+
+// src/commands/PutObjectAclCommand.ts
+
+var import_middleware_sdk_s354 = __nccwpck_require__(81139);
+
+
+
+var PutObjectAclCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ }),
+ (0, import_middleware_sdk_s354.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "PutObjectAcl", {}).n("S3Client", "PutObjectAclCommand").f(void 0, void 0).ser(se_PutObjectAclCommand).de(de_PutObjectAclCommand).build() {
+ static {
+ __name(this, "PutObjectAclCommand");
+ }
+};
+
+// src/commands/PutObjectCommand.ts
+
+var import_middleware_sdk_s355 = __nccwpck_require__(81139);
+
+
+
+
+var PutObjectCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: false
+ }),
+ (0, import_middleware_sdk_s355.getCheckContentLengthHeaderPlugin)(config),
+ (0, import_middleware_sdk_s355.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_ssec.getSsecPlugin)(config)
+ ];
+}).s("AmazonS3", "PutObject", {}).n("S3Client", "PutObjectCommand").f(PutObjectRequestFilterSensitiveLog, PutObjectOutputFilterSensitiveLog).ser(se_PutObjectCommand).de(de_PutObjectCommand).build() {
+ static {
+ __name(this, "PutObjectCommand");
+ }
+};
+
+// src/commands/PutObjectLegalHoldCommand.ts
+
+var import_middleware_sdk_s356 = __nccwpck_require__(81139);
+
+
+
+var PutObjectLegalHoldCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ }),
+ (0, import_middleware_sdk_s356.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "PutObjectLegalHold", {}).n("S3Client", "PutObjectLegalHoldCommand").f(void 0, void 0).ser(se_PutObjectLegalHoldCommand).de(de_PutObjectLegalHoldCommand).build() {
+ static {
+ __name(this, "PutObjectLegalHoldCommand");
+ }
+};
+
+// src/commands/PutObjectLockConfigurationCommand.ts
+
+var import_middleware_sdk_s357 = __nccwpck_require__(81139);
+
+
+
+var PutObjectLockConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ }),
+ (0, import_middleware_sdk_s357.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "PutObjectLockConfiguration", {}).n("S3Client", "PutObjectLockConfigurationCommand").f(void 0, void 0).ser(se_PutObjectLockConfigurationCommand).de(de_PutObjectLockConfigurationCommand).build() {
+ static {
+ __name(this, "PutObjectLockConfigurationCommand");
+ }
+};
+
+// src/commands/PutObjectRetentionCommand.ts
+
+var import_middleware_sdk_s358 = __nccwpck_require__(81139);
+
+
+
+var PutObjectRetentionCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ }),
+ (0, import_middleware_sdk_s358.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "PutObjectRetention", {}).n("S3Client", "PutObjectRetentionCommand").f(void 0, void 0).ser(se_PutObjectRetentionCommand).de(de_PutObjectRetentionCommand).build() {
+ static {
+ __name(this, "PutObjectRetentionCommand");
+ }
+};
+
+// src/commands/PutObjectTaggingCommand.ts
+
+var import_middleware_sdk_s359 = __nccwpck_require__(81139);
+
+
+
+var PutObjectTaggingCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ }),
+ (0, import_middleware_sdk_s359.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "PutObjectTagging", {}).n("S3Client", "PutObjectTaggingCommand").f(void 0, void 0).ser(se_PutObjectTaggingCommand).de(de_PutObjectTaggingCommand).build() {
+ static {
+ __name(this, "PutObjectTaggingCommand");
+ }
+};
+
+// src/commands/PutPublicAccessBlockCommand.ts
+
+
+
+
+var PutPublicAccessBlockCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: true
+ })
+ ];
+}).s("AmazonS3", "PutPublicAccessBlock", {}).n("S3Client", "PutPublicAccessBlockCommand").f(void 0, void 0).ser(se_PutPublicAccessBlockCommand).de(de_PutPublicAccessBlockCommand).build() {
+ static {
+ __name(this, "PutPublicAccessBlockCommand");
+ }
+};
+
+// src/commands/RestoreObjectCommand.ts
+
+var import_middleware_sdk_s360 = __nccwpck_require__(81139);
+
+
+
+var RestoreObjectCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: false
+ }),
+ (0, import_middleware_sdk_s360.getThrow200ExceptionsPlugin)(config)
+ ];
+}).s("AmazonS3", "RestoreObject", {}).n("S3Client", "RestoreObjectCommand").f(RestoreObjectRequestFilterSensitiveLog, void 0).ser(se_RestoreObjectCommand).de(de_RestoreObjectCommand).build() {
+ static {
+ __name(this, "RestoreObjectCommand");
+ }
+};
+
+// src/commands/SelectObjectContentCommand.ts
+var import_middleware_sdk_s361 = __nccwpck_require__(81139);
+
+
+
+
+var SelectObjectContentCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s361.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_ssec.getSsecPlugin)(config)
+ ];
+}).s("AmazonS3", "SelectObjectContent", {
+ /**
+ * @internal
+ */
+ eventStream: {
+ output: true
+ }
+}).n("S3Client", "SelectObjectContentCommand").f(SelectObjectContentRequestFilterSensitiveLog, SelectObjectContentOutputFilterSensitiveLog).ser(se_SelectObjectContentCommand).de(de_SelectObjectContentCommand).build() {
+ static {
+ __name(this, "SelectObjectContentCommand");
+ }
+};
+
+// src/commands/UploadPartCommand.ts
+
+var import_middleware_sdk_s362 = __nccwpck_require__(81139);
+
+
+
+
+var UploadPartCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ Bucket: { type: "contextParams", name: "Bucket" },
+ Key: { type: "contextParams", name: "Key" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
+ requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
+ requestChecksumRequired: false
+ }),
+ (0, import_middleware_sdk_s362.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_ssec.getSsecPlugin)(config)
+ ];
+}).s("AmazonS3", "UploadPart", {}).n("S3Client", "UploadPartCommand").f(UploadPartRequestFilterSensitiveLog, UploadPartOutputFilterSensitiveLog).ser(se_UploadPartCommand).de(de_UploadPartCommand).build() {
+ static {
+ __name(this, "UploadPartCommand");
+ }
+};
+
+// src/commands/UploadPartCopyCommand.ts
+var import_middleware_sdk_s363 = __nccwpck_require__(81139);
+
+
+
+
+var UploadPartCopyCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
+ Bucket: { type: "contextParams", name: "Bucket" }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
+ (0, import_middleware_sdk_s363.getThrow200ExceptionsPlugin)(config),
+ (0, import_middleware_ssec.getSsecPlugin)(config)
+ ];
+}).s("AmazonS3", "UploadPartCopy", {}).n("S3Client", "UploadPartCopyCommand").f(UploadPartCopyRequestFilterSensitiveLog, UploadPartCopyOutputFilterSensitiveLog).ser(se_UploadPartCopyCommand).de(de_UploadPartCopyCommand).build() {
+ static {
+ __name(this, "UploadPartCopyCommand");
+ }
+};
+
+// src/commands/WriteGetObjectResponseCommand.ts
+
+
+
+var WriteGetObjectResponseCommand = class extends import_smithy_client.Command.classBuilder().ep({
+ ...commonParams,
+ UseObjectLambdaEndpoint: { type: "staticContextParams", value: true }
+}).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AmazonS3", "WriteGetObjectResponse", {}).n("S3Client", "WriteGetObjectResponseCommand").f(WriteGetObjectResponseRequestFilterSensitiveLog, void 0).ser(se_WriteGetObjectResponseCommand).de(de_WriteGetObjectResponseCommand).build() {
+ static {
+ __name(this, "WriteGetObjectResponseCommand");
+ }
+};
+
+// src/S3.ts
+var commands = {
+ AbortMultipartUploadCommand,
+ CompleteMultipartUploadCommand,
+ CopyObjectCommand,
+ CreateBucketCommand,
+ CreateBucketMetadataTableConfigurationCommand,
+ CreateMultipartUploadCommand,
+ CreateSessionCommand,
+ DeleteBucketCommand,
+ DeleteBucketAnalyticsConfigurationCommand,
+ DeleteBucketCorsCommand,
+ DeleteBucketEncryptionCommand,
+ DeleteBucketIntelligentTieringConfigurationCommand,
+ DeleteBucketInventoryConfigurationCommand,
+ DeleteBucketLifecycleCommand,
+ DeleteBucketMetadataTableConfigurationCommand,
+ DeleteBucketMetricsConfigurationCommand,
+ DeleteBucketOwnershipControlsCommand,
+ DeleteBucketPolicyCommand,
+ DeleteBucketReplicationCommand,
+ DeleteBucketTaggingCommand,
+ DeleteBucketWebsiteCommand,
+ DeleteObjectCommand,
+ DeleteObjectsCommand,
+ DeleteObjectTaggingCommand,
+ DeletePublicAccessBlockCommand,
+ GetBucketAccelerateConfigurationCommand,
+ GetBucketAclCommand,
+ GetBucketAnalyticsConfigurationCommand,
+ GetBucketCorsCommand,
+ GetBucketEncryptionCommand,
+ GetBucketIntelligentTieringConfigurationCommand,
+ GetBucketInventoryConfigurationCommand,
+ GetBucketLifecycleConfigurationCommand,
+ GetBucketLocationCommand,
+ GetBucketLoggingCommand,
+ GetBucketMetadataTableConfigurationCommand,
+ GetBucketMetricsConfigurationCommand,
+ GetBucketNotificationConfigurationCommand,
+ GetBucketOwnershipControlsCommand,
+ GetBucketPolicyCommand,
+ GetBucketPolicyStatusCommand,
+ GetBucketReplicationCommand,
+ GetBucketRequestPaymentCommand,
+ GetBucketTaggingCommand,
+ GetBucketVersioningCommand,
+ GetBucketWebsiteCommand,
+ GetObjectCommand,
+ GetObjectAclCommand,
+ GetObjectAttributesCommand,
+ GetObjectLegalHoldCommand,
+ GetObjectLockConfigurationCommand,
+ GetObjectRetentionCommand,
+ GetObjectTaggingCommand,
+ GetObjectTorrentCommand,
+ GetPublicAccessBlockCommand,
+ HeadBucketCommand,
+ HeadObjectCommand,
+ ListBucketAnalyticsConfigurationsCommand,
+ ListBucketIntelligentTieringConfigurationsCommand,
+ ListBucketInventoryConfigurationsCommand,
+ ListBucketMetricsConfigurationsCommand,
+ ListBucketsCommand,
+ ListDirectoryBucketsCommand,
+ ListMultipartUploadsCommand,
+ ListObjectsCommand,
+ ListObjectsV2Command,
+ ListObjectVersionsCommand,
+ ListPartsCommand,
+ PutBucketAccelerateConfigurationCommand,
+ PutBucketAclCommand,
+ PutBucketAnalyticsConfigurationCommand,
+ PutBucketCorsCommand,
+ PutBucketEncryptionCommand,
+ PutBucketIntelligentTieringConfigurationCommand,
+ PutBucketInventoryConfigurationCommand,
+ PutBucketLifecycleConfigurationCommand,
+ PutBucketLoggingCommand,
+ PutBucketMetricsConfigurationCommand,
+ PutBucketNotificationConfigurationCommand,
+ PutBucketOwnershipControlsCommand,
+ PutBucketPolicyCommand,
+ PutBucketReplicationCommand,
+ PutBucketRequestPaymentCommand,
+ PutBucketTaggingCommand,
+ PutBucketVersioningCommand,
+ PutBucketWebsiteCommand,
+ PutObjectCommand,
+ PutObjectAclCommand,
+ PutObjectLegalHoldCommand,
+ PutObjectLockConfigurationCommand,
+ PutObjectRetentionCommand,
+ PutObjectTaggingCommand,
+ PutPublicAccessBlockCommand,
+ RestoreObjectCommand,
+ SelectObjectContentCommand,
+ UploadPartCommand,
+ UploadPartCopyCommand,
+ WriteGetObjectResponseCommand
+};
+var S3 = class extends S3Client {
+ static {
+ __name(this, "S3");
+ }
+};
+(0, import_smithy_client.createAggregatedClient)(commands, S3);
+
+// src/pagination/ListBucketsPaginator.ts
+var import_core4 = __nccwpck_require__(55829);
+var paginateListBuckets = (0, import_core4.createPaginator)(S3Client, ListBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxBuckets");
+
+// src/pagination/ListDirectoryBucketsPaginator.ts
+var import_core5 = __nccwpck_require__(55829);
+var paginateListDirectoryBuckets = (0, import_core5.createPaginator)(S3Client, ListDirectoryBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxDirectoryBuckets");
+
+// src/pagination/ListObjectsV2Paginator.ts
+var import_core6 = __nccwpck_require__(55829);
+var paginateListObjectsV2 = (0, import_core6.createPaginator)(S3Client, ListObjectsV2Command, "ContinuationToken", "NextContinuationToken", "MaxKeys");
+
+// src/pagination/ListPartsPaginator.ts
+var import_core7 = __nccwpck_require__(55829);
+var paginateListParts = (0, import_core7.createPaginator)(S3Client, ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts");
+
+// src/waiters/waitForBucketExists.ts
+var import_util_waiter = __nccwpck_require__(78011);
+var checkState = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new HeadBucketCommand(input));
+ reason = result;
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "NotFound") {
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForBucketExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
+}, "waitForBucketExists");
+var waitUntilBucketExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilBucketExists");
+
+// src/waiters/waitForBucketNotExists.ts
+
+var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new HeadBucketCommand(input));
+ reason = result;
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "NotFound") {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForBucketNotExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
+}, "waitForBucketNotExists");
+var waitUntilBucketNotExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilBucketNotExists");
+
+// src/waiters/waitForObjectExists.ts
+
+var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new HeadObjectCommand(input));
+ reason = result;
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "NotFound") {
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForObjectExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
+}, "waitForObjectExists");
+var waitUntilObjectExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilObjectExists");
+
+// src/waiters/waitForObjectNotExists.ts
+
+var checkState4 = /* @__PURE__ */ __name(async (client, input) => {
+ let reason;
+ try {
+ const result = await client.send(new HeadObjectCommand(input));
+ reason = result;
+ } catch (exception) {
+ reason = exception;
+ if (exception.name && exception.name == "NotFound") {
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
+ }
+ }
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
+}, "checkState");
+var waitForObjectNotExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
+}, "waitForObjectNotExists");
+var waitUntilObjectNotExists = /* @__PURE__ */ __name(async (params, input) => {
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
+ return (0, import_util_waiter.checkExceptions)(result);
+}, "waitUntilObjectNotExists");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 12714:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const tslib_1 = __nccwpck_require__(4351);
+const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(50677));
+const core_1 = __nccwpck_require__(59963);
+const credential_provider_node_1 = __nccwpck_require__(75531);
+const middleware_bucket_endpoint_1 = __nccwpck_require__(96689);
+const middleware_flexible_checksums_1 = __nccwpck_require__(13799);
+const middleware_sdk_s3_1 = __nccwpck_require__(81139);
+const util_user_agent_node_1 = __nccwpck_require__(98095);
+const config_resolver_1 = __nccwpck_require__(53098);
+const eventstream_serde_node_1 = __nccwpck_require__(77682);
+const hash_node_1 = __nccwpck_require__(3081);
+const hash_stream_node_1 = __nccwpck_require__(48866);
+const middleware_retry_1 = __nccwpck_require__(96039);
+const node_config_provider_1 = __nccwpck_require__(33461);
+const node_http_handler_1 = __nccwpck_require__(20258);
+const util_body_length_node_1 = __nccwpck_require__(68075);
+const util_retry_1 = __nccwpck_require__(84902);
+const runtimeConfig_shared_1 = __nccwpck_require__(5239);
+const smithy_client_1 = __nccwpck_require__(63570);
+const util_defaults_mode_node_1 = __nccwpck_require__(72429);
+const smithy_client_2 = __nccwpck_require__(63570);
+const getRuntimeConfig = (config) => {
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
+ const profileConfig = { profile: config?.profile };
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "node",
+ defaultsMode,
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
+ disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ??
+ (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, profileConfig),
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
+ md5: config?.md5 ?? hash_node_1.Hash.bind(null, "md5"),
+ region: config?.region ??
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
+ requestChecksumCalculation: config?.requestChecksumCalculation ??
+ (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, profileConfig),
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
+ responseChecksumValidation: config?.responseChecksumValidation ??
+ (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, profileConfig),
+ retryMode: config?.retryMode ??
+ (0, node_config_provider_1.loadConfig)({
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
+ }, config),
+ sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"),
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS, profileConfig),
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
+ streamHasher: config?.streamHasher ?? hash_stream_node_1.readableStreamHasher,
+ useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS, profileConfig),
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 5239:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const core_1 = __nccwpck_require__(59963);
+const signature_v4_multi_region_1 = __nccwpck_require__(51856);
+const smithy_client_1 = __nccwpck_require__(63570);
+const url_parser_1 = __nccwpck_require__(14681);
+const util_base64_1 = __nccwpck_require__(75600);
+const util_stream_1 = __nccwpck_require__(96607);
+const util_utf8_1 = __nccwpck_require__(41895);
+const httpAuthSchemeProvider_1 = __nccwpck_require__(69023);
+const endpointResolver_1 = __nccwpck_require__(3722);
+const getRuntimeConfig = (config) => {
+ return {
+ apiVersion: "2006-03-01",
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
+ disableHostPrefix: config?.disableHostPrefix ?? false,
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
+ extensions: config?.extensions ?? [],
+ getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? util_stream_1.getAwsChunkedEncodingStream,
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultS3HttpAuthSchemeProvider,
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
+ signer: new core_1.AwsSdkSigV4Signer(),
+ },
+ {
+ schemeId: "aws.auth#sigv4a",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
+ signer: new core_1.AwsSdkSigV4ASigner(),
+ },
+ ],
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
+ sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_1.sdkStreamMixin,
+ serviceId: config?.serviceId ?? "S3",
+ signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
+ signingEscapePath: config?.signingEscapePath ?? false,
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
+ useArnRegion: config?.useArnRegion ?? false,
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 49344:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = void 0;
+const core_1 = __nccwpck_require__(59963);
+const util_middleware_1 = __nccwpck_require__(2390);
+const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
+ return {
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
+ (() => {
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
+ })(),
+ };
+};
+exports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;
+function createAwsAuthSigv4HttpAuthOption(authParameters) {
+ return {
+ schemeId: "aws.auth#sigv4",
+ signingProperties: {
+ name: "awsssoportal",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config, context) => ({
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+function createSmithyApiNoAuthHttpAuthOption(authParameters) {
+ return {
+ schemeId: "smithy.api#noAuth",
+ };
+}
+const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
+ const options = [];
+ switch (authParameters.operation) {
+ case "GetRoleCredentials": {
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
+ break;
+ }
+ case "ListAccountRoles": {
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
+ break;
+ }
+ case "ListAccounts": {
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
+ break;
+ }
+ case "Logout": {
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
+ break;
+ }
+ default: {
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
+ }
+ }
+ return options;
+};
+exports.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider;
+const resolveHttpAuthSchemeConfig = (config) => {
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
+ return Object.assign(config_0, {});
+};
+exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
+
+
+/***/ }),
+
+/***/ 30898:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defaultEndpointResolver = void 0;
+const util_endpoints_1 = __nccwpck_require__(13350);
+const util_endpoints_2 = __nccwpck_require__(45473);
+const ruleset_1 = __nccwpck_require__(13341);
+const cache = new util_endpoints_2.EndpointCache({
+ size: 50,
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
+});
+const defaultEndpointResolver = (endpointParams, context = {}) => {
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
+ endpointParams: endpointParams,
+ logger: context.logger,
+ }));
+};
+exports.defaultEndpointResolver = defaultEndpointResolver;
+util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
+
+
+/***/ }),
+
+/***/ 13341:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ruleSet = void 0;
+const u = "required", v = "fn", w = "argv", x = "ref";
+const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
+const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
+exports.ruleSet = _data;
+
+
+/***/ }),
+
+/***/ 82666:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ GetRoleCredentialsCommand: () => GetRoleCredentialsCommand,
+ GetRoleCredentialsRequestFilterSensitiveLog: () => GetRoleCredentialsRequestFilterSensitiveLog,
+ GetRoleCredentialsResponseFilterSensitiveLog: () => GetRoleCredentialsResponseFilterSensitiveLog,
+ InvalidRequestException: () => InvalidRequestException,
+ ListAccountRolesCommand: () => ListAccountRolesCommand,
+ ListAccountRolesRequestFilterSensitiveLog: () => ListAccountRolesRequestFilterSensitiveLog,
+ ListAccountsCommand: () => ListAccountsCommand,
+ ListAccountsRequestFilterSensitiveLog: () => ListAccountsRequestFilterSensitiveLog,
+ LogoutCommand: () => LogoutCommand,
+ LogoutRequestFilterSensitiveLog: () => LogoutRequestFilterSensitiveLog,
+ ResourceNotFoundException: () => ResourceNotFoundException,
+ RoleCredentialsFilterSensitiveLog: () => RoleCredentialsFilterSensitiveLog,
+ SSO: () => SSO,
+ SSOClient: () => SSOClient,
+ SSOServiceException: () => SSOServiceException,
+ TooManyRequestsException: () => TooManyRequestsException,
+ UnauthorizedException: () => UnauthorizedException,
+ __Client: () => import_smithy_client.Client,
+ paginateListAccountRoles: () => paginateListAccountRoles,
+ paginateListAccounts: () => paginateListAccounts
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/SSOClient.ts
+var import_middleware_host_header = __nccwpck_require__(22545);
+var import_middleware_logger = __nccwpck_require__(20014);
+var import_middleware_recursion_detection = __nccwpck_require__(85525);
+var import_middleware_user_agent = __nccwpck_require__(64688);
+var import_config_resolver = __nccwpck_require__(53098);
+var import_core = __nccwpck_require__(55829);
+var import_middleware_content_length = __nccwpck_require__(82800);
+var import_middleware_endpoint = __nccwpck_require__(82918);
+var import_middleware_retry = __nccwpck_require__(96039);
+
+var import_httpAuthSchemeProvider = __nccwpck_require__(49344);
+
+// src/endpoint/EndpointParameters.ts
+var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
+ return Object.assign(options, {
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
+ defaultSigningName: "awsssoportal"
+ });
+}, "resolveClientEndpointParameters");
+var commonParams = {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
+};
+
+// src/SSOClient.ts
+var import_runtimeConfig = __nccwpck_require__(19756);
+
+// src/runtimeExtensions.ts
+var import_region_config_resolver = __nccwpck_require__(18156);
+var import_protocol_http = __nccwpck_require__(64418);
+var import_smithy_client = __nccwpck_require__(63570);
+
+// src/auth/httpAuthExtensionConfiguration.ts
+var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
+ let _credentials = runtimeConfig.credentials;
+ return {
+ setHttpAuthScheme(httpAuthScheme) {
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
+ if (index === -1) {
+ _httpAuthSchemes.push(httpAuthScheme);
+ } else {
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
+ }
+ },
+ httpAuthSchemes() {
+ return _httpAuthSchemes;
+ },
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
+ },
+ httpAuthSchemeProvider() {
+ return _httpAuthSchemeProvider;
+ },
+ setCredentials(credentials) {
+ _credentials = credentials;
+ },
+ credentials() {
+ return _credentials;
+ }
+ };
+}, "getHttpAuthExtensionConfiguration");
+var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
+ return {
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials()
+ };
+}, "resolveHttpAuthRuntimeConfig");
+
+// src/runtimeExtensions.ts
+var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
+ const extensionConfiguration = Object.assign(
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
+ getHttpAuthExtensionConfiguration(runtimeConfig)
+ );
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
+ return Object.assign(
+ runtimeConfig,
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
+ );
+}, "resolveRuntimeExtensions");
+
+// src/SSOClient.ts
+var SSOClient = class extends import_smithy_client.Client {
+ static {
+ __name(this, "SSOClient");
+ }
+ /**
+ * The resolved configuration of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}.
+ */
+ config;
+ constructor(...[configuration]) {
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
+ super(_config_0);
+ this.initConfig = _config_0;
+ const _config_1 = resolveClientEndpointParameters(_config_0);
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
+ this.config = _config_8;
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
+ this.middlewareStack.use(
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSOHttpAuthSchemeParametersProvider,
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
+ "aws.auth#sigv4": config.credentials
+ }), "identityProviderConfigProvider")
+ })
+ );
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
+ }
+ /**
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
+ */
+ destroy() {
+ super.destroy();
+ }
+};
+
+// src/SSO.ts
+
+
+// src/commands/GetRoleCredentialsCommand.ts
+
+var import_middleware_serde = __nccwpck_require__(81238);
+
+
+// src/models/models_0.ts
+
+
+// src/models/SSOServiceException.ts
+
+var SSOServiceException = class _SSOServiceException extends import_smithy_client.ServiceException {
+ static {
+ __name(this, "SSOServiceException");
+ }
+ /**
+ * @internal
+ */
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, _SSOServiceException.prototype);
+ }
+};
+
+// src/models/models_0.ts
+var InvalidRequestException = class _InvalidRequestException extends SSOServiceException {
+ static {
+ __name(this, "InvalidRequestException");
+ }
+ name = "InvalidRequestException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidRequestException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
+ }
+};
+var ResourceNotFoundException = class _ResourceNotFoundException extends SSOServiceException {
+ static {
+ __name(this, "ResourceNotFoundException");
+ }
+ name = "ResourceNotFoundException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ResourceNotFoundException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
+ }
+};
+var TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException {
+ static {
+ __name(this, "TooManyRequestsException");
+ }
+ name = "TooManyRequestsException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "TooManyRequestsException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
+ }
+};
+var UnauthorizedException = class _UnauthorizedException extends SSOServiceException {
+ static {
+ __name(this, "UnauthorizedException");
+ }
+ name = "UnauthorizedException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "UnauthorizedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _UnauthorizedException.prototype);
+ }
+};
+var GetRoleCredentialsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING }
+}), "GetRoleCredentialsRequestFilterSensitiveLog");
+var RoleCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.secretAccessKey && { secretAccessKey: import_smithy_client.SENSITIVE_STRING },
+ ...obj.sessionToken && { sessionToken: import_smithy_client.SENSITIVE_STRING }
+}), "RoleCredentialsFilterSensitiveLog");
+var GetRoleCredentialsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }
+}), "GetRoleCredentialsResponseFilterSensitiveLog");
+var ListAccountRolesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING }
+}), "ListAccountRolesRequestFilterSensitiveLog");
+var ListAccountsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING }
+}), "ListAccountsRequestFilterSensitiveLog");
+var LogoutRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING }
+}), "LogoutRequestFilterSensitiveLog");
+
+// src/protocols/Aws_restJson1.ts
+var import_core2 = __nccwpck_require__(59963);
+
+
+var se_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xasbt]: input[_aT]
+ });
+ b.bp("/federation/credentials");
+ const query = (0, import_smithy_client.map)({
+ [_rn]: [, (0, import_smithy_client.expectNonNull)(input[_rN], `roleName`)],
+ [_ai]: [, (0, import_smithy_client.expectNonNull)(input[_aI], `accountId`)]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_GetRoleCredentialsCommand");
+var se_ListAccountRolesCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xasbt]: input[_aT]
+ });
+ b.bp("/assignment/roles");
+ const query = (0, import_smithy_client.map)({
+ [_nt]: [, input[_nT]],
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
+ [_ai]: [, (0, import_smithy_client.expectNonNull)(input[_aI], `accountId`)]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListAccountRolesCommand");
+var se_ListAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xasbt]: input[_aT]
+ });
+ b.bp("/assignment/accounts");
+ const query = (0, import_smithy_client.map)({
+ [_nt]: [, input[_nT]],
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
+ });
+ let body;
+ b.m("GET").h(headers).q(query).b(body);
+ return b.build();
+}, "se_ListAccountsCommand");
+var se_LogoutCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core.requestBuilder)(input, context);
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
+ [_xasbt]: input[_aT]
+ });
+ b.bp("/logout");
+ let body;
+ b.m("POST").h(headers).b(body);
+ return b.build();
+}, "se_LogoutCommand");
+var de_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
+ const doc = (0, import_smithy_client.take)(data, {
+ roleCredentials: import_smithy_client._json
+ });
+ Object.assign(contents, doc);
+ return contents;
+}, "de_GetRoleCredentialsCommand");
+var de_ListAccountRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
+ const doc = (0, import_smithy_client.take)(data, {
+ nextToken: import_smithy_client.expectString,
+ roleList: import_smithy_client._json
+ });
+ Object.assign(contents, doc);
+ return contents;
+}, "de_ListAccountRolesCommand");
+var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
+ const doc = (0, import_smithy_client.take)(data, {
+ accountList: import_smithy_client._json,
+ nextToken: import_smithy_client.expectString
+ });
+ Object.assign(contents, doc);
+ return contents;
+}, "de_ListAccountsCommand");
+var de_LogoutCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ await (0, import_smithy_client.collectBody)(output.body, context);
+ return contents;
+}, "de_LogoutCommand");
+var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
+ };
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
+ switch (errorCode) {
+ case "InvalidRequestException":
+ case "com.amazonaws.sso#InvalidRequestException":
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
+ case "ResourceNotFoundException":
+ case "com.amazonaws.sso#ResourceNotFoundException":
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
+ case "TooManyRequestsException":
+ case "com.amazonaws.sso#TooManyRequestsException":
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
+ case "UnauthorizedException":
+ case "com.amazonaws.sso#UnauthorizedException":
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody,
+ errorCode
+ });
+ }
+}, "de_CommandError");
+var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOServiceException);
+var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client.take)(data, {
+ message: import_smithy_client.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new InvalidRequestException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_InvalidRequestExceptionRes");
+var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client.take)(data, {
+ message: import_smithy_client.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new ResourceNotFoundException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_ResourceNotFoundExceptionRes");
+var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client.take)(data, {
+ message: import_smithy_client.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new TooManyRequestsException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_TooManyRequestsExceptionRes");
+var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client.take)(data, {
+ message: import_smithy_client.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new UnauthorizedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
+}, "de_UnauthorizedExceptionRes");
+var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
+ httpStatusCode: output.statusCode,
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
+ extendedRequestId: output.headers["x-amz-id-2"],
+ cfId: output.headers["x-amz-cf-id"]
+}), "deserializeMetadata");
+var _aI = "accountId";
+var _aT = "accessToken";
+var _ai = "account_id";
+var _mR = "maxResults";
+var _mr = "max_result";
+var _nT = "nextToken";
+var _nt = "next_token";
+var _rN = "roleName";
+var _rn = "role_name";
+var _xasbt = "x-amz-sso_bearer_token";
+
+// src/commands/GetRoleCredentialsCommand.ts
+var GetRoleCredentialsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog).ser(se_GetRoleCredentialsCommand).de(de_GetRoleCredentialsCommand).build() {
+ static {
+ __name(this, "GetRoleCredentialsCommand");
+ }
+};
+
+// src/commands/ListAccountRolesCommand.ts
+
+
+
+var ListAccountRolesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("SWBPortalService", "ListAccountRoles", {}).n("SSOClient", "ListAccountRolesCommand").f(ListAccountRolesRequestFilterSensitiveLog, void 0).ser(se_ListAccountRolesCommand).de(de_ListAccountRolesCommand).build() {
+ static {
+ __name(this, "ListAccountRolesCommand");
+ }
+};
+
+// src/commands/ListAccountsCommand.ts
+
+
+
+var ListAccountsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("SWBPortalService", "ListAccounts", {}).n("SSOClient", "ListAccountsCommand").f(ListAccountsRequestFilterSensitiveLog, void 0).ser(se_ListAccountsCommand).de(de_ListAccountsCommand).build() {
+ static {
+ __name(this, "ListAccountsCommand");
+ }
+};
+
+// src/commands/LogoutCommand.ts
+
+
+
+var LogoutCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("SWBPortalService", "Logout", {}).n("SSOClient", "LogoutCommand").f(LogoutRequestFilterSensitiveLog, void 0).ser(se_LogoutCommand).de(de_LogoutCommand).build() {
+ static {
+ __name(this, "LogoutCommand");
+ }
+};
+
+// src/SSO.ts
+var commands = {
+ GetRoleCredentialsCommand,
+ ListAccountRolesCommand,
+ ListAccountsCommand,
+ LogoutCommand
+};
+var SSO = class extends SSOClient {
+ static {
+ __name(this, "SSO");
+ }
+};
+(0, import_smithy_client.createAggregatedClient)(commands, SSO);
+
+// src/pagination/ListAccountRolesPaginator.ts
+
+var paginateListAccountRoles = (0, import_core.createPaginator)(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
+
+// src/pagination/ListAccountsPaginator.ts
+
+var paginateListAccounts = (0, import_core.createPaginator)(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 19756:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const tslib_1 = __nccwpck_require__(4351);
+const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(91092));
+const core_1 = __nccwpck_require__(59963);
+const util_user_agent_node_1 = __nccwpck_require__(98095);
+const config_resolver_1 = __nccwpck_require__(53098);
+const hash_node_1 = __nccwpck_require__(3081);
+const middleware_retry_1 = __nccwpck_require__(96039);
+const node_config_provider_1 = __nccwpck_require__(33461);
+const node_http_handler_1 = __nccwpck_require__(20258);
+const util_body_length_node_1 = __nccwpck_require__(68075);
+const util_retry_1 = __nccwpck_require__(84902);
+const runtimeConfig_shared_1 = __nccwpck_require__(44809);
+const smithy_client_1 = __nccwpck_require__(63570);
+const util_defaults_mode_node_1 = __nccwpck_require__(72429);
+const smithy_client_2 = __nccwpck_require__(63570);
+const getRuntimeConfig = (config) => {
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
+ const profileConfig = { profile: config?.profile };
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "node",
+ defaultsMode,
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
+ region: config?.region ??
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
+ retryMode: config?.retryMode ??
+ (0, node_config_provider_1.loadConfig)({
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
+ }, config),
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 44809:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const core_1 = __nccwpck_require__(59963);
+const core_2 = __nccwpck_require__(55829);
+const smithy_client_1 = __nccwpck_require__(63570);
+const url_parser_1 = __nccwpck_require__(14681);
+const util_base64_1 = __nccwpck_require__(75600);
+const util_utf8_1 = __nccwpck_require__(41895);
+const httpAuthSchemeProvider_1 = __nccwpck_require__(49344);
+const endpointResolver_1 = __nccwpck_require__(30898);
+const getRuntimeConfig = (config) => {
+ return {
+ apiVersion: "2019-06-10",
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
+ disableHostPrefix: config?.disableHostPrefix ?? false,
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
+ extensions: config?.extensions ?? [],
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOHttpAuthSchemeProvider,
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
+ signer: new core_1.AwsSdkSigV4Signer(),
+ },
+ {
+ schemeId: "smithy.api#noAuth",
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
+ signer: new core_2.NoAuthSigner(),
+ },
+ ],
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
+ serviceId: config?.serviceId ?? "SSO",
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 59963:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+const tslib_1 = __nccwpck_require__(4351);
+tslib_1.__exportStar(__nccwpck_require__(2825), exports);
+tslib_1.__exportStar(__nccwpck_require__(27862), exports);
+tslib_1.__exportStar(__nccwpck_require__(50785), exports);
+
+
+/***/ }),
+
+/***/ 2825:
+/***/ ((module) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/submodules/client/index.ts
+var index_exports = {};
+__export(index_exports, {
+ emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
+ setCredentialFeature: () => setCredentialFeature,
+ setFeature: () => setFeature,
+ state: () => state
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/submodules/client/emitWarningIfUnsupportedVersion.ts
+var state = {
+ warningEmitted: false
+};
+var emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version) => {
+ if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) {
+ state.warningEmitted = true;
+ process.emitWarning(
+ `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
+no longer support Node.js 16.x on January 6, 2025.
+
+To continue receiving updates to AWS services, bug fixes, and security
+updates please upgrade to a supported Node.js LTS version.
+
+More information can be found at: https://a.co/74kJMmI`
+ );
+ }
+}, "emitWarningIfUnsupportedVersion");
+
+// src/submodules/client/setCredentialFeature.ts
+function setCredentialFeature(credentials, feature, value) {
+ if (!credentials.$source) {
+ credentials.$source = {};
+ }
+ credentials.$source[feature] = value;
+ return credentials;
+}
+__name(setCredentialFeature, "setCredentialFeature");
+
+// src/submodules/client/setFeature.ts
+function setFeature(context, feature, value) {
+ if (!context.__aws_sdk_context) {
+ context.__aws_sdk_context = {
+ features: {}
+ };
+ } else if (!context.__aws_sdk_context.features) {
+ context.__aws_sdk_context.features = {};
+ }
+ context.__aws_sdk_context.features[feature] = value;
+}
+__name(setFeature, "setFeature");
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 27862:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/submodules/httpAuthSchemes/index.ts
+var index_exports = {};
+__export(index_exports, {
+ AWSSDKSigV4Signer: () => AWSSDKSigV4Signer,
+ AwsSdkSigV4ASigner: () => AwsSdkSigV4ASigner,
+ AwsSdkSigV4Signer: () => AwsSdkSigV4Signer,
+ NODE_SIGV4A_CONFIG_OPTIONS: () => NODE_SIGV4A_CONFIG_OPTIONS,
+ resolveAWSSDKSigV4Config: () => resolveAWSSDKSigV4Config,
+ resolveAwsSdkSigV4AConfig: () => resolveAwsSdkSigV4AConfig,
+ resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config,
+ validateSigningProperties: () => validateSigningProperties
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts
+var import_protocol_http2 = __nccwpck_require__(64418);
+
+// src/submodules/httpAuthSchemes/utils/getDateHeader.ts
+var import_protocol_http = __nccwpck_require__(64418);
+var getDateHeader = /* @__PURE__ */ __name((response) => import_protocol_http.HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0, "getDateHeader");
+
+// src/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.ts
+var getSkewCorrectedDate = /* @__PURE__ */ __name((systemClockOffset) => new Date(Date.now() + systemClockOffset), "getSkewCorrectedDate");
+
+// src/submodules/httpAuthSchemes/utils/isClockSkewed.ts
+var isClockSkewed = /* @__PURE__ */ __name((clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5, "isClockSkewed");
+
+// src/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.ts
+var getUpdatedSystemClockOffset = /* @__PURE__ */ __name((clockTime, currentSystemClockOffset) => {
+ const clockTimeInMs = Date.parse(clockTime);
+ if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
+ return clockTimeInMs - Date.now();
+ }
+ return currentSystemClockOffset;
+}, "getUpdatedSystemClockOffset");
+
+// src/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts
+var throwSigningPropertyError = /* @__PURE__ */ __name((name, property) => {
+ if (!property) {
+ throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
+ }
+ return property;
+}, "throwSigningPropertyError");
+var validateSigningProperties = /* @__PURE__ */ __name(async (signingProperties) => {
+ const context = throwSigningPropertyError(
+ "context",
+ signingProperties.context
+ );
+ const config = throwSigningPropertyError("config", signingProperties.config);
+ const authScheme = context.endpointV2?.properties?.authSchemes?.[0];
+ const signerFunction = throwSigningPropertyError(
+ "signer",
+ config.signer
+ );
+ const signer = await signerFunction(authScheme);
+ const signingRegion = signingProperties?.signingRegion;
+ const signingRegionSet = signingProperties?.signingRegionSet;
+ const signingName = signingProperties?.signingName;
+ return {
+ config,
+ signer,
+ signingRegion,
+ signingRegionSet,
+ signingName
+ };
+}, "validateSigningProperties");
+var AwsSdkSigV4Signer = class {
+ static {
+ __name(this, "AwsSdkSigV4Signer");
+ }
+ async sign(httpRequest, identity, signingProperties) {
+ if (!import_protocol_http2.HttpRequest.isInstance(httpRequest)) {
+ throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
+ }
+ const validatedProps = await validateSigningProperties(signingProperties);
+ const { config, signer } = validatedProps;
+ let { signingRegion, signingName } = validatedProps;
+ const handlerExecutionContext = signingProperties.context;
+ if (handlerExecutionContext?.authSchemes?.length ?? 0 > 1) {
+ const [first, second] = handlerExecutionContext.authSchemes;
+ if (first?.name === "sigv4a" && second?.name === "sigv4") {
+ signingRegion = second?.signingRegion ?? signingRegion;
+ signingName = second?.signingName ?? signingName;
+ }
+ }
+ const signedRequest = await signer.sign(httpRequest, {
+ signingDate: getSkewCorrectedDate(config.systemClockOffset),
+ signingRegion,
+ signingService: signingName
+ });
+ return signedRequest;
+ }
+ errorHandler(signingProperties) {
+ return (error) => {
+ const serverTime = error.ServerTime ?? getDateHeader(error.$response);
+ if (serverTime) {
+ const config = throwSigningPropertyError("config", signingProperties.config);
+ const initialSystemClockOffset = config.systemClockOffset;
+ config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
+ const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;
+ if (clockSkewCorrected && error.$metadata) {
+ error.$metadata.clockSkewCorrected = true;
+ }
+ }
+ throw error;
+ };
+ }
+ successHandler(httpResponse, signingProperties) {
+ const dateHeader = getDateHeader(httpResponse);
+ if (dateHeader) {
+ const config = throwSigningPropertyError("config", signingProperties.config);
+ config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
+ }
+ }
+};
+var AWSSDKSigV4Signer = AwsSdkSigV4Signer;
+
+// src/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.ts
+var import_protocol_http3 = __nccwpck_require__(64418);
+var AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer {
+ static {
+ __name(this, "AwsSdkSigV4ASigner");
+ }
+ async sign(httpRequest, identity, signingProperties) {
+ if (!import_protocol_http3.HttpRequest.isInstance(httpRequest)) {
+ throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
+ }
+ const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(
+ signingProperties
+ );
+ const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();
+ const multiRegionOverride = (configResolvedSigningRegionSet ?? signingRegionSet ?? [signingRegion]).join(",");
+ const signedRequest = await signer.sign(httpRequest, {
+ signingDate: getSkewCorrectedDate(config.systemClockOffset),
+ signingRegion: multiRegionOverride,
+ signingService: signingName
+ });
+ return signedRequest;
+ }
+};
+
+// src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.ts
+var import_core = __nccwpck_require__(55829);
+var import_property_provider = __nccwpck_require__(79721);
+var resolveAwsSdkSigV4AConfig = /* @__PURE__ */ __name((config) => {
+ config.sigv4aSigningRegionSet = (0, import_core.normalizeProvider)(config.sigv4aSigningRegionSet);
+ return config;
+}, "resolveAwsSdkSigV4AConfig");
+var NODE_SIGV4A_CONFIG_OPTIONS = {
+ environmentVariableSelector(env) {
+ if (env.AWS_SIGV4A_SIGNING_REGION_SET) {
+ return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim());
+ }
+ throw new import_property_provider.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
+ tryNextLink: true
+ });
+ },
+ configFileSelector(profile) {
+ if (profile.sigv4a_signing_region_set) {
+ return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim());
+ }
+ throw new import_property_provider.ProviderError("sigv4a_signing_region_set not set in profile.", {
+ tryNextLink: true
+ });
+ },
+ default: void 0
+};
+
+// src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts
+var import_client = __nccwpck_require__(2825);
+var import_core2 = __nccwpck_require__(55829);
+var import_signature_v4 = __nccwpck_require__(11528);
+var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
+ let inputCredentials = config.credentials;
+ let isUserSupplied = !!config.credentials;
+ let resolvedCredentials = void 0;
+ Object.defineProperty(config, "credentials", {
+ set(credentials) {
+ if (credentials && credentials !== inputCredentials && credentials !== resolvedCredentials) {
+ isUserSupplied = true;
+ }
+ inputCredentials = credentials;
+ const memoizedProvider = normalizeCredentialProvider(config, {
+ credentials: inputCredentials,
+ credentialDefaultProvider: config.credentialDefaultProvider
+ });
+ const boundProvider = bindCallerConfig(config, memoizedProvider);
+ if (isUserSupplied && !boundProvider.attributed) {
+ resolvedCredentials = /* @__PURE__ */ __name(async (options) => boundProvider(options).then(
+ (creds) => (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_CODE", "e")
+ ), "resolvedCredentials");
+ resolvedCredentials.memoized = boundProvider.memoized;
+ resolvedCredentials.configBound = boundProvider.configBound;
+ resolvedCredentials.attributed = true;
+ } else {
+ resolvedCredentials = boundProvider;
+ }
+ },
+ get() {
+ return resolvedCredentials;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ config.credentials = inputCredentials;
+ const {
+ // Default for signingEscapePath
+ signingEscapePath = true,
+ // Default for systemClockOffset
+ systemClockOffset = config.systemClockOffset || 0,
+ // No default for sha256 since it is platform dependent
+ sha256
+ } = config;
+ let signer;
+ if (config.signer) {
+ signer = (0, import_core2.normalizeProvider)(config.signer);
+ } else if (config.regionInfoProvider) {
+ signer = /* @__PURE__ */ __name(() => (0, import_core2.normalizeProvider)(config.region)().then(
+ async (region) => [
+ await config.regionInfoProvider(region, {
+ useFipsEndpoint: await config.useFipsEndpoint(),
+ useDualstackEndpoint: await config.useDualstackEndpoint()
+ }) || {},
+ region
+ ]
+ ).then(([regionInfo, region]) => {
+ const { signingRegion, signingService } = regionInfo;
+ config.signingRegion = config.signingRegion || signingRegion || region;
+ config.signingName = config.signingName || signingService || config.serviceId;
+ const params = {
+ ...config,
+ credentials: config.credentials,
+ region: config.signingRegion,
+ service: config.signingName,
+ sha256,
+ uriEscapePath: signingEscapePath
+ };
+ const SignerCtor = config.signerConstructor || import_signature_v4.SignatureV4;
+ return new SignerCtor(params);
+ }), "signer");
+ } else {
+ signer = /* @__PURE__ */ __name(async (authScheme) => {
+ authScheme = Object.assign(
+ {},
+ {
+ name: "sigv4",
+ signingName: config.signingName || config.defaultSigningName,
+ signingRegion: await (0, import_core2.normalizeProvider)(config.region)(),
+ properties: {}
+ },
+ authScheme
+ );
+ const signingRegion = authScheme.signingRegion;
+ const signingService = authScheme.signingName;
+ config.signingRegion = config.signingRegion || signingRegion;
+ config.signingName = config.signingName || signingService || config.serviceId;
+ const params = {
+ ...config,
+ credentials: config.credentials,
+ region: config.signingRegion,
+ service: config.signingName,
+ sha256,
+ uriEscapePath: signingEscapePath
+ };
+ const SignerCtor = config.signerConstructor || import_signature_v4.SignatureV4;
+ return new SignerCtor(params);
+ }, "signer");
+ }
+ const resolvedConfig = Object.assign(config, {
+ systemClockOffset,
+ signingEscapePath,
+ signer
+ });
+ return resolvedConfig;
+}, "resolveAwsSdkSigV4Config");
+var resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
+function normalizeCredentialProvider(config, {
+ credentials,
+ credentialDefaultProvider
+}) {
+ let credentialsProvider;
+ if (credentials) {
+ if (!credentials?.memoized) {
+ credentialsProvider = (0, import_core2.memoizeIdentityProvider)(credentials, import_core2.isIdentityExpired, import_core2.doesIdentityRequireRefresh);
+ } else {
+ credentialsProvider = credentials;
+ }
+ } else {
+ if (credentialDefaultProvider) {
+ credentialsProvider = (0, import_core2.normalizeProvider)(
+ credentialDefaultProvider(
+ Object.assign({}, config, {
+ parentClientConfig: config
+ })
+ )
+ );
+ } else {
+ credentialsProvider = /* @__PURE__ */ __name(async () => {
+ throw new Error(
+ "@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured."
+ );
+ }, "credentialsProvider");
+ }
+ }
+ credentialsProvider.memoized = true;
+ return credentialsProvider;
+}
+__name(normalizeCredentialProvider, "normalizeCredentialProvider");
+function bindCallerConfig(config, credentialsProvider) {
+ if (credentialsProvider.configBound) {
+ return credentialsProvider;
+ }
+ const fn = /* @__PURE__ */ __name(async (options) => credentialsProvider({ ...options, callerClientConfig: config }), "fn");
+ fn.memoized = credentialsProvider.memoized;
+ fn.configBound = true;
+ return fn;
+}
+__name(bindCallerConfig, "bindCallerConfig");
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 50785:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/submodules/protocols/index.ts
+var index_exports = {};
+__export(index_exports, {
+ _toBool: () => _toBool,
+ _toNum: () => _toNum,
+ _toStr: () => _toStr,
+ awsExpectUnion: () => awsExpectUnion,
+ loadRestJsonErrorCode: () => loadRestJsonErrorCode,
+ loadRestXmlErrorCode: () => loadRestXmlErrorCode,
+ parseJsonBody: () => parseJsonBody,
+ parseJsonErrorBody: () => parseJsonErrorBody,
+ parseXmlBody: () => parseXmlBody,
+ parseXmlErrorBody: () => parseXmlErrorBody
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/submodules/protocols/coercing-serializers.ts
+var _toStr = /* @__PURE__ */ __name((val) => {
+ if (val == null) {
+ return val;
+ }
+ if (typeof val === "number" || typeof val === "bigint") {
+ const warning = new Error(`Received number ${val} where a string was expected.`);
+ warning.name = "Warning";
+ console.warn(warning);
+ return String(val);
+ }
+ if (typeof val === "boolean") {
+ const warning = new Error(`Received boolean ${val} where a string was expected.`);
+ warning.name = "Warning";
+ console.warn(warning);
+ return String(val);
+ }
+ return val;
+}, "_toStr");
+var _toBool = /* @__PURE__ */ __name((val) => {
+ if (val == null) {
+ return val;
+ }
+ if (typeof val === "number") {
+ }
+ if (typeof val === "string") {
+ const lowercase = val.toLowerCase();
+ if (val !== "" && lowercase !== "false" && lowercase !== "true") {
+ const warning = new Error(`Received string "${val}" where a boolean was expected.`);
+ warning.name = "Warning";
+ console.warn(warning);
+ }
+ return val !== "" && lowercase !== "false";
+ }
+ return val;
+}, "_toBool");
+var _toNum = /* @__PURE__ */ __name((val) => {
+ if (val == null) {
+ return val;
+ }
+ if (typeof val === "boolean") {
+ }
+ if (typeof val === "string") {
+ const num = Number(val);
+ if (num.toString() !== val) {
+ const warning = new Error(`Received string "${val}" where a number was expected.`);
+ warning.name = "Warning";
+ console.warn(warning);
+ return val;
+ }
+ return num;
+ }
+ return val;
+}, "_toNum");
+
+// src/submodules/protocols/json/awsExpectUnion.ts
+var import_smithy_client = __nccwpck_require__(63570);
+var awsExpectUnion = /* @__PURE__ */ __name((value) => {
+ if (value == null) {
+ return void 0;
+ }
+ if (typeof value === "object" && "__type" in value) {
+ delete value.__type;
+ }
+ return (0, import_smithy_client.expectUnion)(value);
+}, "awsExpectUnion");
+
+// src/submodules/protocols/common.ts
+var import_smithy_client2 = __nccwpck_require__(63570);
+var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client2.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
+
+// src/submodules/protocols/json/parseJsonBody.ts
+var parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
+ if (encoded.length) {
+ try {
+ return JSON.parse(encoded);
+ } catch (e) {
+ if (e?.name === "SyntaxError") {
+ Object.defineProperty(e, "$responseBodyText", {
+ value: encoded
+ });
+ }
+ throw e;
+ }
+ }
+ return {};
+}), "parseJsonBody");
+var parseJsonErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
+ const value = await parseJsonBody(errorBody, context);
+ value.message = value.message ?? value.Message;
+ return value;
+}, "parseJsonErrorBody");
+var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
+ let cleanValue = rawValue;
+ if (typeof cleanValue === "number") {
+ cleanValue = cleanValue.toString();
+ }
+ if (cleanValue.indexOf(",") >= 0) {
+ cleanValue = cleanValue.split(",")[0];
+ }
+ if (cleanValue.indexOf(":") >= 0) {
+ cleanValue = cleanValue.split(":")[0];
+ }
+ if (cleanValue.indexOf("#") >= 0) {
+ cleanValue = cleanValue.split("#")[1];
+ }
+ return cleanValue;
+ }, "sanitizeErrorCode");
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
+ if (headerKey !== void 0) {
+ return sanitizeErrorCode(output.headers[headerKey]);
+ }
+ if (data.code !== void 0) {
+ return sanitizeErrorCode(data.code);
+ }
+ if (data["__type"] !== void 0) {
+ return sanitizeErrorCode(data["__type"]);
+ }
+}, "loadRestJsonErrorCode");
+
+// src/submodules/protocols/xml/parseXmlBody.ts
+var import_smithy_client3 = __nccwpck_require__(63570);
+var import_fast_xml_parser = __nccwpck_require__(12603);
+var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
+ if (encoded.length) {
+ const parser = new import_fast_xml_parser.XMLParser({
+ attributeNamePrefix: "",
+ htmlEntities: true,
+ ignoreAttributes: false,
+ ignoreDeclaration: true,
+ parseTagValue: false,
+ trimValues: false,
+ tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
+ });
+ parser.addEntity("#xD", "\r");
+ parser.addEntity("#10", "\n");
+ let parsedObj;
+ try {
+ parsedObj = parser.parse(encoded, true);
+ } catch (e) {
+ if (e && typeof e === "object") {
+ Object.defineProperty(e, "$responseBodyText", {
+ value: encoded
+ });
+ }
+ throw e;
+ }
+ const textNodeName = "#text";
+ const key = Object.keys(parsedObj)[0];
+ const parsedObjToReturn = parsedObj[key];
+ if (parsedObjToReturn[textNodeName]) {
+ parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
+ delete parsedObjToReturn[textNodeName];
+ }
+ return (0, import_smithy_client3.getValueFromTextNode)(parsedObjToReturn);
+ }
+ return {};
+}), "parseXmlBody");
+var parseXmlErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
+ const value = await parseXmlBody(errorBody, context);
+ if (value.Error) {
+ value.Error.message = value.Error.message ?? value.Error.Message;
+ }
+ return value;
+}, "parseXmlErrorBody");
+var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
+ if (data?.Error?.Code !== void 0) {
+ return data.Error.Code;
+ }
+ if (data?.Code !== void 0) {
+ return data.Code;
+ }
+ if (output.statusCode == 404) {
+ return "NotFound";
+ }
+}, "loadRestXmlErrorCode");
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 15972:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ ENV_ACCOUNT_ID: () => ENV_ACCOUNT_ID,
+ ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
+ ENV_EXPIRATION: () => ENV_EXPIRATION,
+ ENV_KEY: () => ENV_KEY,
+ ENV_SECRET: () => ENV_SECRET,
+ ENV_SESSION: () => ENV_SESSION,
+ fromEnv: () => fromEnv
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/fromEnv.ts
+var import_client = __nccwpck_require__(2825);
+var import_property_provider = __nccwpck_require__(79721);
+var ENV_KEY = "AWS_ACCESS_KEY_ID";
+var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
+var ENV_SESSION = "AWS_SESSION_TOKEN";
+var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
+var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
+var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
+var fromEnv = /* @__PURE__ */ __name((init) => async () => {
+ init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
+ const accessKeyId = process.env[ENV_KEY];
+ const secretAccessKey = process.env[ENV_SECRET];
+ const sessionToken = process.env[ENV_SESSION];
+ const expiry = process.env[ENV_EXPIRATION];
+ const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
+ const accountId = process.env[ENV_ACCOUNT_ID];
+ if (accessKeyId && secretAccessKey) {
+ const credentials = {
+ accessKeyId,
+ secretAccessKey,
+ ...sessionToken && { sessionToken },
+ ...expiry && { expiration: new Date(expiry) },
+ ...credentialScope && { credentialScope },
+ ...accountId && { accountId }
+ };
+ (0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g");
+ return credentials;
+ }
+ throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
+}, "fromEnv");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 63757:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.checkUrl = void 0;
+const property_provider_1 = __nccwpck_require__(79721);
+const LOOPBACK_CIDR_IPv4 = "127.0.0.0/8";
+const LOOPBACK_CIDR_IPv6 = "::1/128";
+const ECS_CONTAINER_HOST = "169.254.170.2";
+const EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
+const EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
+const checkUrl = (url, logger) => {
+ if (url.protocol === "https:") {
+ return;
+ }
+ if (url.hostname === ECS_CONTAINER_HOST ||
+ url.hostname === EKS_CONTAINER_HOST_IPv4 ||
+ url.hostname === EKS_CONTAINER_HOST_IPv6) {
+ return;
+ }
+ if (url.hostname.includes("[")) {
+ if (url.hostname === "[::1]" || url.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") {
+ return;
+ }
+ }
+ else {
+ if (url.hostname === "localhost") {
+ return;
+ }
+ const ipComponents = url.hostname.split(".");
+ const inRange = (component) => {
+ const num = parseInt(component, 10);
+ return 0 <= num && num <= 255;
+ };
+ if (ipComponents[0] === "127" &&
+ inRange(ipComponents[1]) &&
+ inRange(ipComponents[2]) &&
+ inRange(ipComponents[3]) &&
+ ipComponents.length === 4) {
+ return;
+ }
+ }
+ throw new property_provider_1.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
+ - loopback CIDR 127.0.0.0/8 or [::1/128]
+ - ECS container host 169.254.170.2
+ - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
+};
+exports.checkUrl = checkUrl;
+
+
+/***/ }),
+
+/***/ 56070:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.fromHttp = void 0;
+const tslib_1 = __nccwpck_require__(4351);
+const client_1 = __nccwpck_require__(2825);
+const node_http_handler_1 = __nccwpck_require__(20258);
+const property_provider_1 = __nccwpck_require__(79721);
+const promises_1 = tslib_1.__importDefault(__nccwpck_require__(73292));
+const checkUrl_1 = __nccwpck_require__(63757);
+const requestHelpers_1 = __nccwpck_require__(79287);
+const retry_wrapper_1 = __nccwpck_require__(79921);
+const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
+const DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
+const AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
+const AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
+const AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
+const fromHttp = (options = {}) => {
+ options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
+ let host;
+ const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
+ const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
+ const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
+ const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
+ const warn = options.logger?.constructor?.name === "NoOpLogger" || !options.logger ? console.warn : options.logger.warn;
+ if (relative && full) {
+ warn("@aws-sdk/credential-provider-http: " +
+ "you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
+ warn("awsContainerCredentialsFullUri will take precedence.");
+ }
+ if (token && tokenFile) {
+ warn("@aws-sdk/credential-provider-http: " +
+ "you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");
+ warn("awsContainerAuthorizationToken will take precedence.");
+ }
+ if (full) {
+ host = full;
+ }
+ else if (relative) {
+ host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
+ }
+ else {
+ throw new property_provider_1.CredentialsProviderError(`No HTTP credential provider host provided.
+Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
+ }
+ const url = new URL(host);
+ (0, checkUrl_1.checkUrl)(url, options.logger);
+ const requestHandler = new node_http_handler_1.NodeHttpHandler({
+ requestTimeout: options.timeout ?? 1000,
+ connectionTimeout: options.timeout ?? 1000,
+ });
+ return (0, retry_wrapper_1.retryWrapper)(async () => {
+ const request = (0, requestHelpers_1.createGetRequest)(url);
+ if (token) {
+ request.headers.Authorization = token;
+ }
+ else if (tokenFile) {
+ request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();
+ }
+ try {
+ const result = await requestHandler.handle(request);
+ return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z"));
+ }
+ catch (e) {
+ throw new property_provider_1.CredentialsProviderError(String(e), { logger: options.logger });
+ }
+ }, options.maxRetries ?? 3, options.timeout ?? 1000);
+};
+exports.fromHttp = fromHttp;
+
+
+/***/ }),
+
+/***/ 79287:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getCredentials = exports.createGetRequest = void 0;
+const property_provider_1 = __nccwpck_require__(79721);
+const protocol_http_1 = __nccwpck_require__(64418);
+const smithy_client_1 = __nccwpck_require__(63570);
+const util_stream_1 = __nccwpck_require__(96607);
+function createGetRequest(url) {
+ return new protocol_http_1.HttpRequest({
+ protocol: url.protocol,
+ hostname: url.hostname,
+ port: Number(url.port),
+ path: url.pathname,
+ query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {
+ acc[k] = v;
+ return acc;
+ }, {}),
+ fragment: url.hash,
+ });
+}
+exports.createGetRequest = createGetRequest;
+async function getCredentials(response, logger) {
+ const stream = (0, util_stream_1.sdkStreamMixin)(response.body);
+ const str = await stream.transformToString();
+ if (response.statusCode === 200) {
+ const parsed = JSON.parse(str);
+ if (typeof parsed.AccessKeyId !== "string" ||
+ typeof parsed.SecretAccessKey !== "string" ||
+ typeof parsed.Token !== "string" ||
+ typeof parsed.Expiration !== "string") {
+ throw new property_provider_1.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " +
+ "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
+ }
+ return {
+ accessKeyId: parsed.AccessKeyId,
+ secretAccessKey: parsed.SecretAccessKey,
+ sessionToken: parsed.Token,
+ expiration: (0, smithy_client_1.parseRfc3339DateTime)(parsed.Expiration),
+ };
+ }
+ if (response.statusCode >= 400 && response.statusCode < 500) {
+ let parsedBody = {};
+ try {
+ parsedBody = JSON.parse(str);
+ }
+ catch (e) { }
+ throw Object.assign(new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
+ Code: parsedBody.Code,
+ Message: parsedBody.Message,
+ });
+ }
+ throw new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
+}
+exports.getCredentials = getCredentials;
+
+
+/***/ }),
+
+/***/ 79921:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.retryWrapper = void 0;
+const retryWrapper = (toRetry, maxRetries, delayMs) => {
+ return async () => {
+ for (let i = 0; i < maxRetries; ++i) {
+ try {
+ return await toRetry();
+ }
+ catch (e) {
+ await new Promise((resolve) => setTimeout(resolve, delayMs));
+ }
+ }
+ return await toRetry();
+ };
+};
+exports.retryWrapper = retryWrapper;
+
+
+/***/ }),
+
+/***/ 17290:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.fromHttp = void 0;
+var fromHttp_1 = __nccwpck_require__(56070);
+Object.defineProperty(exports, "fromHttp", ({ enumerable: true, get: function () { return fromHttp_1.fromHttp; } }));
+
+
+/***/ }),
+
+/***/ 74203:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
+ // If the importer is in node compatibility mode or this is not an ESM
+ // file that has been converted to a CommonJS file using a Babel-
+ // compatible transform (i.e. "__esModule" has not been set), then set
+ // "default" to the CommonJS "module.exports" for node compatibility.
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
+ mod
+));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ fromIni: () => fromIni
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/fromIni.ts
+
+
+// src/resolveProfileData.ts
+
+
+// src/resolveAssumeRoleCredentials.ts
+
+
+var import_shared_ini_file_loader = __nccwpck_require__(43507);
+
+// src/resolveCredentialSource.ts
+var import_client = __nccwpck_require__(2825);
+var import_property_provider = __nccwpck_require__(79721);
+var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName, logger) => {
+ const sourceProvidersMap = {
+ EcsContainer: /* @__PURE__ */ __name(async (options) => {
+ const { fromHttp } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(17290)));
+ const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(7477)));
+ logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
+ return async () => (0, import_property_provider.chain)(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
+ }, "EcsContainer"),
+ Ec2InstanceMetadata: /* @__PURE__ */ __name(async (options) => {
+ logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
+ const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(7477)));
+ return async () => fromInstanceMetadata(options)().then(setNamedProvider);
+ }, "Ec2InstanceMetadata"),
+ Environment: /* @__PURE__ */ __name(async (options) => {
+ logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
+ const { fromEnv } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(15972)));
+ return async () => fromEnv(options)().then(setNamedProvider);
+ }, "Environment")
+ };
+ if (credentialSource in sourceProvidersMap) {
+ return sourceProvidersMap[credentialSource];
+ } else {
+ throw new import_property_provider.CredentialsProviderError(
+ `Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,
+ { logger }
+ );
+ }
+}, "resolveCredentialSource");
+var setNamedProvider = /* @__PURE__ */ __name((creds) => (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p"), "setNamedProvider");
+
+// src/resolveAssumeRoleCredentials.ts
+var isAssumeRoleProfile = /* @__PURE__ */ __name((arg, { profile = "default", logger } = {}) => {
+ return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
+}, "isAssumeRoleProfile");
+var isAssumeRoleWithSourceProfile = /* @__PURE__ */ __name((arg, { profile, logger }) => {
+ const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
+ if (withSourceProfile) {
+ logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
+ }
+ return withSourceProfile;
+}, "isAssumeRoleWithSourceProfile");
+var isCredentialSourceProfile = /* @__PURE__ */ __name((arg, { profile, logger }) => {
+ const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
+ if (withProviderProfile) {
+ logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
+ }
+ return withProviderProfile;
+}, "isCredentialSourceProfile");
+var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
+ options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
+ const profileData = profiles[profileName];
+ const { source_profile, region } = profileData;
+ if (!options.roleAssumer) {
+ const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(2273)));
+ options.roleAssumer = getDefaultRoleAssumer(
+ {
+ ...options.clientConfig,
+ credentialProviderLogger: options.logger,
+ parentClientConfig: {
+ ...options?.parentClientConfig,
+ region: region ?? options?.parentClientConfig?.region
+ }
+ },
+ options.clientPlugins
+ );
+ }
+ if (source_profile && source_profile in visitedProfiles) {
+ throw new import_property_provider.CredentialsProviderError(
+ `Detected a cycle attempting to resolve credentials for profile ${(0, import_shared_ini_file_loader.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "),
+ { logger: options.logger }
+ );
+ }
+ options.logger?.debug(
+ `@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`
+ );
+ const sourceCredsProvider = source_profile ? resolveProfileData(
+ source_profile,
+ profiles,
+ options,
+ {
+ ...visitedProfiles,
+ [source_profile]: true
+ },
+ isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})
+ ) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
+ if (isCredentialSourceWithoutRoleArn(profileData)) {
+ return sourceCredsProvider.then((creds) => (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
+ } else {
+ const params = {
+ RoleArn: profileData.role_arn,
+ RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
+ ExternalId: profileData.external_id,
+ DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10)
+ };
+ const { mfa_serial } = profileData;
+ if (mfa_serial) {
+ if (!options.mfaCodeProvider) {
+ throw new import_property_provider.CredentialsProviderError(
+ `Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`,
+ { logger: options.logger, tryNextLink: false }
+ );
+ }
+ params.SerialNumber = mfa_serial;
+ params.TokenCode = await options.mfaCodeProvider(mfa_serial);
+ }
+ const sourceCreds = await sourceCredsProvider;
+ return options.roleAssumer(sourceCreds, params).then(
+ (creds) => (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")
+ );
+ }
+}, "resolveAssumeRoleCredentials");
+var isCredentialSourceWithoutRoleArn = /* @__PURE__ */ __name((section) => {
+ return !section.role_arn && !!section.credential_source;
+}, "isCredentialSourceWithoutRoleArn");
+
+// src/resolveProcessCredentials.ts
+
+var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
+var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(__nccwpck_require__(89969))).then(
+ ({ fromProcess }) => fromProcess({
+ ...options,
+ profile
+ })().then((creds) => (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_PROCESS", "v"))
+), "resolveProcessCredentials");
+
+// src/resolveSsoCredentials.ts
+
+var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData, options = {}) => {
+ const { fromSSO } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(26414)));
+ return fromSSO({
+ profile,
+ logger: options.logger,
+ parentClientConfig: options.parentClientConfig,
+ clientConfig: options.clientConfig
+ })().then((creds) => {
+ if (profileData.sso_session) {
+ return (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO", "r");
+ } else {
+ return (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
+ }
+ });
+}, "resolveSsoCredentials");
+var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile");
+
+// src/resolveStaticCredentials.ts
+
+var isStaticCredsProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, "isStaticCredsProfile");
+var resolveStaticCredentials = /* @__PURE__ */ __name(async (profile, options) => {
+ options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
+ const credentials = {
+ accessKeyId: profile.aws_access_key_id,
+ secretAccessKey: profile.aws_secret_access_key,
+ sessionToken: profile.aws_session_token,
+ ...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
+ ...profile.aws_account_id && { accountId: profile.aws_account_id }
+ };
+ return (0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_PROFILE", "n");
+}, "resolveStaticCredentials");
+
+// src/resolveWebIdentityCredentials.ts
+
+var isWebIdentityProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile");
+var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM(__nccwpck_require__(15646))).then(
+ ({ fromTokenFile }) => fromTokenFile({
+ webIdentityTokenFile: profile.web_identity_token_file,
+ roleArn: profile.role_arn,
+ roleSessionName: profile.role_session_name,
+ roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
+ logger: options.logger,
+ parentClientConfig: options.parentClientConfig
+ })().then((creds) => (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q"))
+), "resolveWebIdentityCredentials");
+
+// src/resolveProfileData.ts
+var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
+ const data = profiles[profileName];
+ if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
+ return resolveStaticCredentials(data, options);
+ }
+ if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {
+ return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
+ }
+ if (isStaticCredsProfile(data)) {
+ return resolveStaticCredentials(data, options);
+ }
+ if (isWebIdentityProfile(data)) {
+ return resolveWebIdentityCredentials(data, options);
+ }
+ if (isProcessProfile(data)) {
+ return resolveProcessCredentials(options, profileName);
+ }
+ if (isSsoProfile(data)) {
+ return await resolveSsoCredentials(profileName, data, options);
+ }
+ throw new import_property_provider.CredentialsProviderError(
+ `Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`,
+ { logger: options.logger }
+ );
+}, "resolveProfileData");
+
+// src/fromIni.ts
+var fromIni = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => {
+ const init = {
+ ..._init,
+ parentClientConfig: {
+ ...callerClientConfig,
+ ..._init.parentClientConfig
+ }
+ };
+ init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
+ const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
+ return resolveProfileData(
+ (0, import_shared_ini_file_loader.getProfileName)({
+ profile: _init.profile ?? callerClientConfig?.profile
+ }),
+ profiles,
+ init
+ );
+}, "fromIni");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 75531:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
+ // If the importer is in node compatibility mode or this is not an ESM
+ // file that has been converted to a CommonJS file using a Babel-
+ // compatible transform (i.e. "__esModule" has not been set), then set
+ // "default" to the CommonJS "module.exports" for node compatibility.
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
+ mod
+));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ credentialsTreatedAsExpired: () => credentialsTreatedAsExpired,
+ credentialsWillNeedRefresh: () => credentialsWillNeedRefresh,
+ defaultProvider: () => defaultProvider
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/defaultProvider.ts
+var import_credential_provider_env = __nccwpck_require__(15972);
+
+var import_shared_ini_file_loader = __nccwpck_require__(43507);
+
+// src/remoteProvider.ts
+var import_property_provider = __nccwpck_require__(79721);
+var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
+var remoteProvider = /* @__PURE__ */ __name(async (init) => {
+ const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(7477)));
+ if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
+ init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
+ const { fromHttp } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(17290)));
+ return (0, import_property_provider.chain)(fromHttp(init), fromContainerMetadata(init));
+ }
+ if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
+ return async () => {
+ throw new import_property_provider.CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger });
+ };
+ }
+ init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");
+ return fromInstanceMetadata(init);
+}, "remoteProvider");
+
+// src/defaultProvider.ts
+var multipleCredentialSourceWarningEmitted = false;
+var defaultProvider = /* @__PURE__ */ __name((init = {}) => (0, import_property_provider.memoize)(
+ (0, import_property_provider.chain)(
+ async () => {
+ const profile = init.profile ?? process.env[import_shared_ini_file_loader.ENV_PROFILE];
+ if (profile) {
+ const envStaticCredentialsAreSet = process.env[import_credential_provider_env.ENV_KEY] && process.env[import_credential_provider_env.ENV_SECRET];
+ if (envStaticCredentialsAreSet) {
+ if (!multipleCredentialSourceWarningEmitted) {
+ const warnFn = init.logger?.warn && init.logger?.constructor?.name !== "NoOpLogger" ? init.logger.warn : console.warn;
+ warnFn(
+ `@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
+ Multiple credential sources detected:
+ Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
+ This SDK will proceed with the AWS_PROFILE value.
+
+ However, a future version may change this behavior to prefer the ENV static credentials.
+ Please ensure that your environment only sets either the AWS_PROFILE or the
+ AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
+`
+ );
+ multipleCredentialSourceWarningEmitted = true;
+ }
+ }
+ throw new import_property_provider.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
+ logger: init.logger,
+ tryNextLink: true
+ });
+ }
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");
+ return (0, import_credential_provider_env.fromEnv)(init)();
+ },
+ async () => {
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");
+ const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
+ if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
+ throw new import_property_provider.CredentialsProviderError(
+ "Skipping SSO provider in default chain (inputs do not include SSO fields).",
+ { logger: init.logger }
+ );
+ }
+ const { fromSSO } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(26414)));
+ return fromSSO(init)();
+ },
+ async () => {
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
+ const { fromIni } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(74203)));
+ return fromIni(init)();
+ },
+ async () => {
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
+ const { fromProcess } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(89969)));
+ return fromProcess(init)();
+ },
+ async () => {
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
+ const { fromTokenFile } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(15646)));
+ return fromTokenFile(init)();
+ },
+ async () => {
+ init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");
+ return (await remoteProvider(init))();
+ },
+ async () => {
+ throw new import_property_provider.CredentialsProviderError("Could not load credentials from any providers", {
+ tryNextLink: false,
+ logger: init.logger
+ });
+ }
+ ),
+ credentialsTreatedAsExpired,
+ credentialsWillNeedRefresh
+), "defaultProvider");
+var credentialsWillNeedRefresh = /* @__PURE__ */ __name((credentials) => credentials?.expiration !== void 0, "credentialsWillNeedRefresh");
+var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials) => credentials?.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, "credentialsTreatedAsExpired");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 89969:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ fromProcess: () => fromProcess
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/fromProcess.ts
+var import_shared_ini_file_loader = __nccwpck_require__(43507);
+
+// src/resolveProcessCredentials.ts
+var import_property_provider = __nccwpck_require__(79721);
+var import_child_process = __nccwpck_require__(32081);
+var import_util = __nccwpck_require__(73837);
+
+// src/getValidatedProcessCredentials.ts
+var import_client = __nccwpck_require__(2825);
+var getValidatedProcessCredentials = /* @__PURE__ */ __name((profileName, data, profiles) => {
+ if (data.Version !== 1) {
+ throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
+ }
+ if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) {
+ throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
+ }
+ if (data.Expiration) {
+ const currentTime = /* @__PURE__ */ new Date();
+ const expireTime = new Date(data.Expiration);
+ if (expireTime < currentTime) {
+ throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
+ }
+ }
+ let accountId = data.AccountId;
+ if (!accountId && profiles?.[profileName]?.aws_account_id) {
+ accountId = profiles[profileName].aws_account_id;
+ }
+ const credentials = {
+ accessKeyId: data.AccessKeyId,
+ secretAccessKey: data.SecretAccessKey,
+ ...data.SessionToken && { sessionToken: data.SessionToken },
+ ...data.Expiration && { expiration: new Date(data.Expiration) },
+ ...data.CredentialScope && { credentialScope: data.CredentialScope },
+ ...accountId && { accountId }
+ };
+ (0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_PROCESS", "w");
+ return credentials;
+}, "getValidatedProcessCredentials");
+
+// src/resolveProcessCredentials.ts
+var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profiles, logger) => {
+ const profile = profiles[profileName];
+ if (profiles[profileName]) {
+ const credentialProcess = profile["credential_process"];
+ if (credentialProcess !== void 0) {
+ const execPromise = (0, import_util.promisify)(import_child_process.exec);
+ try {
+ const { stdout } = await execPromise(credentialProcess);
+ let data;
+ try {
+ data = JSON.parse(stdout.trim());
+ } catch {
+ throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
+ }
+ return getValidatedProcessCredentials(profileName, data, profiles);
+ } catch (error) {
+ throw new import_property_provider.CredentialsProviderError(error.message, { logger });
+ }
+ } else {
+ throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
+ }
+ } else {
+ throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
+ logger
+ });
+ }
+}, "resolveProcessCredentials");
+
+// src/fromProcess.ts
+var fromProcess = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => {
+ init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
+ const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
+ return resolveProcessCredentials(
+ (0, import_shared_ini_file_loader.getProfileName)({
+ profile: init.profile ?? callerClientConfig?.profile
+ }),
+ profiles,
+ init.logger
+ );
+}, "fromProcess");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 26414:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __esm = (fn, res) => function __init() {
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
+};
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/loadSso.ts
+var loadSso_exports = {};
+__export(loadSso_exports, {
+ GetRoleCredentialsCommand: () => import_client_sso.GetRoleCredentialsCommand,
+ SSOClient: () => import_client_sso.SSOClient
+});
+var import_client_sso;
+var init_loadSso = __esm({
+ "src/loadSso.ts"() {
+ "use strict";
+ import_client_sso = __nccwpck_require__(82666);
+ }
+});
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ fromSSO: () => fromSSO,
+ isSsoProfile: () => isSsoProfile,
+ validateSsoProfile: () => validateSsoProfile
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/fromSSO.ts
+
+
+
+// src/isSsoProfile.ts
+var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile");
+
+// src/resolveSSOCredentials.ts
+var import_client = __nccwpck_require__(2825);
+var import_token_providers = __nccwpck_require__(52843);
+var import_property_provider = __nccwpck_require__(79721);
+var import_shared_ini_file_loader = __nccwpck_require__(43507);
+var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
+var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
+ ssoStartUrl,
+ ssoSession,
+ ssoAccountId,
+ ssoRegion,
+ ssoRoleName,
+ ssoClient,
+ clientConfig,
+ parentClientConfig,
+ profile,
+ logger
+}) => {
+ let token;
+ const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
+ if (ssoSession) {
+ try {
+ const _token = await (0, import_token_providers.fromSso)({ profile })();
+ token = {
+ accessToken: _token.token,
+ expiresAt: new Date(_token.expiration).toISOString()
+ };
+ } catch (e) {
+ throw new import_property_provider.CredentialsProviderError(e.message, {
+ tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
+ logger
+ });
+ }
+ } else {
+ try {
+ token = await (0, import_shared_ini_file_loader.getSSOTokenFromFile)(ssoStartUrl);
+ } catch (e) {
+ throw new import_property_provider.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
+ tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
+ logger
+ });
+ }
+ }
+ if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
+ throw new import_property_provider.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
+ tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
+ logger
+ });
+ }
+ const { accessToken } = token;
+ const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
+ const sso = ssoClient || new SSOClient2(
+ Object.assign({}, clientConfig ?? {}, {
+ logger: clientConfig?.logger ?? parentClientConfig?.logger,
+ region: clientConfig?.region ?? ssoRegion
+ })
+ );
+ let ssoResp;
+ try {
+ ssoResp = await sso.send(
+ new GetRoleCredentialsCommand2({
+ accountId: ssoAccountId,
+ roleName: ssoRoleName,
+ accessToken
+ })
+ );
+ } catch (e) {
+ throw new import_property_provider.CredentialsProviderError(e, {
+ tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
+ logger
+ });
+ }
+ const {
+ roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}
+ } = ssoResp;
+ if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
+ throw new import_property_provider.CredentialsProviderError("SSO returns an invalid temporary credential.", {
+ tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
+ logger
+ });
+ }
+ const credentials = {
+ accessKeyId,
+ secretAccessKey,
+ sessionToken,
+ expiration: new Date(expiration),
+ ...credentialScope && { credentialScope },
+ ...accountId && { accountId }
+ };
+ if (ssoSession) {
+ (0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_SSO", "s");
+ } else {
+ (0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_SSO_LEGACY", "u");
+ }
+ return credentials;
+}, "resolveSSOCredentials");
+
+// src/validateSsoProfile.ts
+
+var validateSsoProfile = /* @__PURE__ */ __name((profile, logger) => {
+ const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
+ if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
+ throw new import_property_provider.CredentialsProviderError(
+ `Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(
+ ", "
+ )}
+Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,
+ { tryNextLink: false, logger }
+ );
+ }
+ return profile;
+}, "validateSsoProfile");
+
+// src/fromSSO.ts
+var fromSSO = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => {
+ init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
+ const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
+ const { ssoClient } = init;
+ const profileName = (0, import_shared_ini_file_loader.getProfileName)({
+ profile: init.profile ?? callerClientConfig?.profile
+ });
+ if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
+ const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
+ const profile = profiles[profileName];
+ if (!profile) {
+ throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
+ }
+ if (!isSsoProfile(profile)) {
+ throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
+ logger: init.logger
+ });
+ }
+ if (profile?.sso_session) {
+ const ssoSessions = await (0, import_shared_ini_file_loader.loadSsoSessionData)(init);
+ const session = ssoSessions[profile.sso_session];
+ const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
+ if (ssoRegion && ssoRegion !== session.sso_region) {
+ throw new import_property_provider.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
+ tryNextLink: false,
+ logger: init.logger
+ });
+ }
+ if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
+ throw new import_property_provider.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
+ tryNextLink: false,
+ logger: init.logger
+ });
+ }
+ profile.sso_region = session.sso_region;
+ profile.sso_start_url = session.sso_start_url;
+ }
+ const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(
+ profile,
+ init.logger
+ );
+ return resolveSSOCredentials({
+ ssoStartUrl: sso_start_url,
+ ssoSession: sso_session,
+ ssoAccountId: sso_account_id,
+ ssoRegion: sso_region,
+ ssoRoleName: sso_role_name,
+ ssoClient,
+ clientConfig: init.clientConfig,
+ parentClientConfig: init.parentClientConfig,
+ profile: profileName
+ });
+ } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
+ throw new import_property_provider.CredentialsProviderError(
+ 'Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',
+ { tryNextLink: false, logger: init.logger }
+ );
+ } else {
+ return resolveSSOCredentials({
+ ssoStartUrl,
+ ssoSession,
+ ssoAccountId,
+ ssoRegion,
+ ssoRoleName,
+ ssoClient,
+ clientConfig: init.clientConfig,
+ parentClientConfig: init.parentClientConfig,
+ profile: profileName
+ });
+ }
+}, "fromSSO");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 35614:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.fromTokenFile = void 0;
+const client_1 = __nccwpck_require__(2825);
+const property_provider_1 = __nccwpck_require__(79721);
+const fs_1 = __nccwpck_require__(57147);
+const fromWebToken_1 = __nccwpck_require__(47905);
+const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
+const ENV_ROLE_ARN = "AWS_ROLE_ARN";
+const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
+const fromTokenFile = (init = {}) => async () => {
+ init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
+ const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
+ const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
+ const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
+ if (!webIdentityTokenFile || !roleArn) {
+ throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified", {
+ logger: init.logger,
+ });
+ }
+ const credentials = await (0, fromWebToken_1.fromWebToken)({
+ ...init,
+ webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
+ roleArn,
+ roleSessionName,
+ })();
+ if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
+ (0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
+ }
+ return credentials;
+};
+exports.fromTokenFile = fromTokenFile;
+
+
+/***/ }),
+
+/***/ 47905:
+/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
+
+"use strict";
+
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.fromWebToken = void 0;
+const fromWebToken = (init) => async (awsIdentityProperties) => {
+ init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
+ const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
+ let { roleAssumerWithWebIdentity } = init;
+ if (!roleAssumerWithWebIdentity) {
+ const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar(__nccwpck_require__(2273)));
+ roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
+ ...init.clientConfig,
+ credentialProviderLogger: init.logger,
+ parentClientConfig: {
+ ...awsIdentityProperties?.callerClientConfig,
+ ...init.parentClientConfig,
+ },
+ }, init.clientPlugins);
+ }
+ return roleAssumerWithWebIdentity({
+ RoleArn: roleArn,
+ RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
+ WebIdentityToken: webIdentityToken,
+ ProviderId: providerId,
+ PolicyArns: policyArns,
+ Policy: policy,
+ DurationSeconds: durationSeconds,
+ });
+};
+exports.fromWebToken = fromWebToken;
+
+
+/***/ }),
+
+/***/ 15646:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+module.exports = __toCommonJS(index_exports);
+__reExport(index_exports, __nccwpck_require__(35614), module.exports);
+__reExport(index_exports, __nccwpck_require__(47905), module.exports);
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 96689:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS: () => NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS,
+ NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME: () => NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,
+ NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME: () => NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,
+ NODE_USE_ARN_REGION_CONFIG_OPTIONS: () => NODE_USE_ARN_REGION_CONFIG_OPTIONS,
+ NODE_USE_ARN_REGION_ENV_NAME: () => NODE_USE_ARN_REGION_ENV_NAME,
+ NODE_USE_ARN_REGION_INI_NAME: () => NODE_USE_ARN_REGION_INI_NAME,
+ bucketEndpointMiddleware: () => bucketEndpointMiddleware,
+ bucketEndpointMiddlewareOptions: () => bucketEndpointMiddlewareOptions,
+ bucketHostname: () => bucketHostname,
+ getArnResources: () => getArnResources,
+ getBucketEndpointPlugin: () => getBucketEndpointPlugin,
+ getSuffixForArnEndpoint: () => getSuffixForArnEndpoint,
+ resolveBucketEndpointConfig: () => resolveBucketEndpointConfig,
+ validateAccountId: () => validateAccountId,
+ validateDNSHostLabel: () => validateDNSHostLabel,
+ validateNoDualstack: () => validateNoDualstack,
+ validateNoFIPS: () => validateNoFIPS,
+ validateOutpostService: () => validateOutpostService,
+ validatePartition: () => validatePartition,
+ validateRegion: () => validateRegion
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/NodeDisableMultiregionAccessPointConfigOptions.ts
+var import_util_config_provider = __nccwpck_require__(83375);
+var NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";
+var NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = "s3_disable_multiregion_access_points";
+var NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS = {
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => (0, import_util_config_provider.booleanSelector)(env, NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
+ configFileSelector: /* @__PURE__ */ __name((profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
+ default: false
+};
+
+// src/NodeUseArnRegionConfigOptions.ts
+
+var NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION";
+var NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region";
+var NODE_USE_ARN_REGION_CONFIG_OPTIONS = {
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => (0, import_util_config_provider.booleanSelector)(env, NODE_USE_ARN_REGION_ENV_NAME, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
+ configFileSelector: /* @__PURE__ */ __name((profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_USE_ARN_REGION_INI_NAME, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
+ default: false
+};
+
+// src/bucketEndpointMiddleware.ts
+var import_util_arn_parser = __nccwpck_require__(85487);
+var import_protocol_http = __nccwpck_require__(64418);
+
+// src/bucketHostnameUtils.ts
+var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;
+var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
+var DOTS_PATTERN = /\.\./;
+var DOT_PATTERN = /\./;
+var S3_HOSTNAME_PATTERN = /^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;
+var S3_US_EAST_1_ALTNAME_PATTERN = /^s3(-external-1)?\.amazonaws\.com$/;
+var AWS_PARTITION_SUFFIX = "amazonaws.com";
+var isBucketNameOptions = /* @__PURE__ */ __name((options) => typeof options.bucketName === "string", "isBucketNameOptions");
+var isDnsCompatibleBucketName = /* @__PURE__ */ __name((bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName), "isDnsCompatibleBucketName");
+var getRegionalSuffix = /* @__PURE__ */ __name((hostname) => {
+ const parts = hostname.match(S3_HOSTNAME_PATTERN);
+ return [parts[4], hostname.replace(new RegExp(`^${parts[0]}`), "")];
+}, "getRegionalSuffix");
+var getSuffix = /* @__PURE__ */ __name((hostname) => S3_US_EAST_1_ALTNAME_PATTERN.test(hostname) ? ["us-east-1", AWS_PARTITION_SUFFIX] : getRegionalSuffix(hostname), "getSuffix");
+var getSuffixForArnEndpoint = /* @__PURE__ */ __name((hostname) => S3_US_EAST_1_ALTNAME_PATTERN.test(hostname) ? [hostname.replace(`.${AWS_PARTITION_SUFFIX}`, ""), AWS_PARTITION_SUFFIX] : getRegionalSuffix(hostname), "getSuffixForArnEndpoint");
+var validateArnEndpointOptions = /* @__PURE__ */ __name((options) => {
+ if (options.pathStyleEndpoint) {
+ throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");
+ }
+ if (options.accelerateEndpoint) {
+ throw new Error("Accelerate endpoint is not supported when bucket is an ARN");
+ }
+ if (!options.tlsCompatible) {
+ throw new Error("HTTPS is required when bucket is an ARN");
+ }
+}, "validateArnEndpointOptions");
+var validateService = /* @__PURE__ */ __name((service) => {
+ if (service !== "s3" && service !== "s3-outposts" && service !== "s3-object-lambda") {
+ throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component");
+ }
+}, "validateService");
+var validateS3Service = /* @__PURE__ */ __name((service) => {
+ if (service !== "s3") {
+ throw new Error("Expect 's3' in Accesspoint ARN service component");
+ }
+}, "validateS3Service");
+var validateOutpostService = /* @__PURE__ */ __name((service) => {
+ if (service !== "s3-outposts") {
+ throw new Error("Expect 's3-posts' in Outpost ARN service component");
+ }
+}, "validateOutpostService");
+var validatePartition = /* @__PURE__ */ __name((partition, options) => {
+ if (partition !== options.clientPartition) {
+ throw new Error(`Partition in ARN is incompatible, got "${partition}" but expected "${options.clientPartition}"`);
+ }
+}, "validatePartition");
+var validateRegion = /* @__PURE__ */ __name((region, options) => {
+ if (region === "") {
+ throw new Error("ARN region is empty");
+ }
+ if (options.useFipsEndpoint) {
+ if (!options.allowFipsRegion) {
+ throw new Error("FIPS region is not supported");
+ } else if (!isEqualRegions(region, options.clientRegion)) {
+ throw new Error(`Client FIPS region ${options.clientRegion} doesn't match region ${region} in ARN`);
+ }
+ }
+ if (!options.useArnRegion && !isEqualRegions(region, options.clientRegion || "") && !isEqualRegions(region, options.clientSigningRegion || "")) {
+ throw new Error(`Region in ARN is incompatible, got ${region} but expected ${options.clientRegion}`);
+ }
+}, "validateRegion");
+var validateRegionalClient = /* @__PURE__ */ __name((region) => {
+ if (["s3-external-1", "aws-global"].includes(region)) {
+ throw new Error(`Client region ${region} is not regional`);
+ }
+}, "validateRegionalClient");
+var isEqualRegions = /* @__PURE__ */ __name((regionA, regionB) => regionA === regionB, "isEqualRegions");
+var validateAccountId = /* @__PURE__ */ __name((accountId) => {
+ if (!/[0-9]{12}/.exec(accountId)) {
+ throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'");
+ }
+}, "validateAccountId");
+var validateDNSHostLabel = /* @__PURE__ */ __name((label, options = { tlsCompatible: true }) => {
+ if (label.length >= 64 || !/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(label) || /(\d+\.){3}\d+/.test(label) || /[.-]{2}/.test(label) || options?.tlsCompatible && DOT_PATTERN.test(label)) {
+ throw new Error(`Invalid DNS label ${label}`);
+ }
+}, "validateDNSHostLabel");
+var validateCustomEndpoint = /* @__PURE__ */ __name((options) => {
+ if (options.isCustomEndpoint) {
+ if (options.dualstackEndpoint) throw new Error("Dualstack endpoint is not supported with custom endpoint");
+ if (options.accelerateEndpoint) throw new Error("Accelerate endpoint is not supported with custom endpoint");
+ }
+}, "validateCustomEndpoint");
+var getArnResources = /* @__PURE__ */ __name((resource) => {
+ const delimiter = resource.includes(":") ? ":" : "/";
+ const [resourceType, ...rest] = resource.split(delimiter);
+ if (resourceType === "accesspoint") {
+ if (rest.length !== 1 || rest[0] === "") {
+ throw new Error(`Access Point ARN should have one resource accesspoint${delimiter}{accesspointname}`);
+ }
+ return { accesspointName: rest[0] };
+ } else if (resourceType === "outpost") {
+ if (!rest[0] || rest[1] !== "accesspoint" || !rest[2] || rest.length !== 3) {
+ throw new Error(
+ `Outpost ARN should have resource outpost${delimiter}{outpostId}${delimiter}accesspoint${delimiter}{accesspointName}`
+ );
+ }
+ const [outpostId, _, accesspointName] = rest;
+ return { outpostId, accesspointName };
+ } else {
+ throw new Error(`ARN resource should begin with 'accesspoint${delimiter}' or 'outpost${delimiter}'`);
+ }
+}, "getArnResources");
+var validateNoDualstack = /* @__PURE__ */ __name((dualstackEndpoint) => {
+ if (dualstackEndpoint)
+ throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.");
+}, "validateNoDualstack");
+var validateNoFIPS = /* @__PURE__ */ __name((useFipsEndpoint) => {
+ if (useFipsEndpoint) throw new Error(`FIPS region is not supported with Outpost.`);
+}, "validateNoFIPS");
+var validateMrapAlias = /* @__PURE__ */ __name((name) => {
+ try {
+ name.split(".").forEach((label) => {
+ validateDNSHostLabel(label);
+ });
+ } catch (e) {
+ throw new Error(`"${name}" is not a DNS compatible name.`);
+ }
+}, "validateMrapAlias");
+
+// src/bucketHostname.ts
+var bucketHostname = /* @__PURE__ */ __name((options) => {
+ validateCustomEndpoint(options);
+ return isBucketNameOptions(options) ? (
+ // Construct endpoint when bucketName is a string referring to a bucket name
+ getEndpointFromBucketName(options)
+ ) : (
+ // Construct endpoint when bucketName is an ARN referring to an S3 resource like Access Point
+ getEndpointFromArn(options)
+ );
+}, "bucketHostname");
+var getEndpointFromBucketName = /* @__PURE__ */ __name(({
+ accelerateEndpoint = false,
+ clientRegion: region,
+ baseHostname,
+ bucketName,
+ dualstackEndpoint = false,
+ fipsEndpoint = false,
+ pathStyleEndpoint = false,
+ tlsCompatible = true,
+ isCustomEndpoint = false
+}) => {
+ const [clientRegion, hostnameSuffix] = isCustomEndpoint ? [region, baseHostname] : getSuffix(baseHostname);
+ if (pathStyleEndpoint || !isDnsCompatibleBucketName(bucketName) || tlsCompatible && DOT_PATTERN.test(bucketName)) {
+ return {
+ bucketEndpoint: false,
+ hostname: dualstackEndpoint ? `s3.dualstack.${clientRegion}.${hostnameSuffix}` : baseHostname
+ };
+ }
+ if (accelerateEndpoint) {
+ baseHostname = `s3-accelerate${dualstackEndpoint ? ".dualstack" : ""}.${hostnameSuffix}`;
+ } else if (dualstackEndpoint) {
+ baseHostname = `s3.dualstack.${clientRegion}.${hostnameSuffix}`;
+ }
+ return {
+ bucketEndpoint: true,
+ hostname: `${bucketName}.${baseHostname}`
+ };
+}, "getEndpointFromBucketName");
+var getEndpointFromArn = /* @__PURE__ */ __name((options) => {
+ const { isCustomEndpoint, baseHostname, clientRegion } = options;
+ const hostnameSuffix = isCustomEndpoint ? baseHostname : getSuffixForArnEndpoint(baseHostname)[1];
+ const {
+ pathStyleEndpoint,
+ accelerateEndpoint = false,
+ fipsEndpoint = false,
+ tlsCompatible = true,
+ bucketName,
+ clientPartition = "aws"
+ } = options;
+ validateArnEndpointOptions({ pathStyleEndpoint, accelerateEndpoint, tlsCompatible });
+ const { service, partition, accountId, region, resource } = bucketName;
+ validateService(service);
+ validatePartition(partition, { clientPartition });
+ validateAccountId(accountId);
+ const { accesspointName, outpostId } = getArnResources(resource);
+ if (service === "s3-object-lambda") {
+ return getEndpointFromObjectLambdaArn({ ...options, tlsCompatible, bucketName, accesspointName, hostnameSuffix });
+ }
+ if (region === "") {
+ return getEndpointFromMRAPArn({ ...options, clientRegion, mrapAlias: accesspointName, hostnameSuffix });
+ }
+ if (outpostId) {
+ return getEndpointFromOutpostArn({ ...options, clientRegion, outpostId, accesspointName, hostnameSuffix });
+ }
+ return getEndpointFromAccessPointArn({ ...options, clientRegion, accesspointName, hostnameSuffix });
+}, "getEndpointFromArn");
+var getEndpointFromObjectLambdaArn = /* @__PURE__ */ __name(({
+ dualstackEndpoint = false,
+ fipsEndpoint = false,
+ tlsCompatible = true,
+ useArnRegion,
+ clientRegion,
+ clientSigningRegion = clientRegion,
+ accesspointName,
+ bucketName,
+ hostnameSuffix
+}) => {
+ const { accountId, region, service } = bucketName;
+ validateRegionalClient(clientRegion);
+ validateRegion(region, {
+ useArnRegion,
+ clientRegion,
+ clientSigningRegion,
+ allowFipsRegion: true,
+ useFipsEndpoint: fipsEndpoint
+ });
+ validateNoDualstack(dualstackEndpoint);
+ const DNSHostLabel = `${accesspointName}-${accountId}`;
+ validateDNSHostLabel(DNSHostLabel, { tlsCompatible });
+ const endpointRegion = useArnRegion ? region : clientRegion;
+ const signingRegion = useArnRegion ? region : clientSigningRegion;
+ return {
+ bucketEndpoint: true,
+ hostname: `${DNSHostLabel}.${service}${fipsEndpoint ? "-fips" : ""}.${endpointRegion}.${hostnameSuffix}`,
+ signingRegion,
+ signingService: service
+ };
+}, "getEndpointFromObjectLambdaArn");
+var getEndpointFromMRAPArn = /* @__PURE__ */ __name(({
+ disableMultiregionAccessPoints,
+ dualstackEndpoint = false,
+ isCustomEndpoint,
+ mrapAlias,
+ hostnameSuffix
+}) => {
+ if (disableMultiregionAccessPoints === true) {
+ throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");
+ }
+ validateMrapAlias(mrapAlias);
+ validateNoDualstack(dualstackEndpoint);
+ return {
+ bucketEndpoint: true,
+ hostname: `${mrapAlias}${isCustomEndpoint ? "" : `.accesspoint.s3-global`}.${hostnameSuffix}`,
+ signingRegion: "*"
+ };
+}, "getEndpointFromMRAPArn");
+var getEndpointFromOutpostArn = /* @__PURE__ */ __name(({
+ useArnRegion,
+ clientRegion,
+ clientSigningRegion = clientRegion,
+ bucketName,
+ outpostId,
+ dualstackEndpoint = false,
+ fipsEndpoint = false,
+ tlsCompatible = true,
+ accesspointName,
+ isCustomEndpoint,
+ hostnameSuffix
+}) => {
+ validateRegionalClient(clientRegion);
+ validateRegion(bucketName.region, { useArnRegion, clientRegion, clientSigningRegion, useFipsEndpoint: fipsEndpoint });
+ const DNSHostLabel = `${accesspointName}-${bucketName.accountId}`;
+ validateDNSHostLabel(DNSHostLabel, { tlsCompatible });
+ const endpointRegion = useArnRegion ? bucketName.region : clientRegion;
+ const signingRegion = useArnRegion ? bucketName.region : clientSigningRegion;
+ validateOutpostService(bucketName.service);
+ validateDNSHostLabel(outpostId, { tlsCompatible });
+ validateNoDualstack(dualstackEndpoint);
+ validateNoFIPS(fipsEndpoint);
+ const hostnamePrefix = `${DNSHostLabel}.${outpostId}`;
+ return {
+ bucketEndpoint: true,
+ hostname: `${hostnamePrefix}${isCustomEndpoint ? "" : `.s3-outposts.${endpointRegion}`}.${hostnameSuffix}`,
+ signingRegion,
+ signingService: "s3-outposts"
+ };
+}, "getEndpointFromOutpostArn");
+var getEndpointFromAccessPointArn = /* @__PURE__ */ __name(({
+ useArnRegion,
+ clientRegion,
+ clientSigningRegion = clientRegion,
+ bucketName,
+ dualstackEndpoint = false,
+ fipsEndpoint = false,
+ tlsCompatible = true,
+ accesspointName,
+ isCustomEndpoint,
+ hostnameSuffix
+}) => {
+ validateRegionalClient(clientRegion);
+ validateRegion(bucketName.region, {
+ useArnRegion,
+ clientRegion,
+ clientSigningRegion,
+ allowFipsRegion: true,
+ useFipsEndpoint: fipsEndpoint
+ });
+ const hostnamePrefix = `${accesspointName}-${bucketName.accountId}`;
+ validateDNSHostLabel(hostnamePrefix, { tlsCompatible });
+ const endpointRegion = useArnRegion ? bucketName.region : clientRegion;
+ const signingRegion = useArnRegion ? bucketName.region : clientSigningRegion;
+ validateS3Service(bucketName.service);
+ return {
+ bucketEndpoint: true,
+ hostname: `${hostnamePrefix}${isCustomEndpoint ? "" : `.s3-accesspoint${fipsEndpoint ? "-fips" : ""}${dualstackEndpoint ? ".dualstack" : ""}.${endpointRegion}`}.${hostnameSuffix}`,
+ signingRegion
+ };
+}, "getEndpointFromAccessPointArn");
+
+// src/bucketEndpointMiddleware.ts
+var bucketEndpointMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => {
+ const { Bucket: bucketName } = args.input;
+ let replaceBucketInPath = options.bucketEndpoint;
+ const request = args.request;
+ if (import_protocol_http.HttpRequest.isInstance(request)) {
+ if (options.bucketEndpoint) {
+ request.hostname = bucketName;
+ } else if ((0, import_util_arn_parser.validate)(bucketName)) {
+ const bucketArn = (0, import_util_arn_parser.parse)(bucketName);
+ const clientRegion = await options.region();
+ const useDualstackEndpoint = await options.useDualstackEndpoint();
+ const useFipsEndpoint = await options.useFipsEndpoint();
+ const { partition, signingRegion = clientRegion } = await options.regionInfoProvider(clientRegion, { useDualstackEndpoint, useFipsEndpoint }) || {};
+ const useArnRegion = await options.useArnRegion();
+ const {
+ hostname,
+ bucketEndpoint,
+ signingRegion: modifiedSigningRegion,
+ signingService
+ } = bucketHostname({
+ bucketName: bucketArn,
+ baseHostname: request.hostname,
+ accelerateEndpoint: options.useAccelerateEndpoint,
+ dualstackEndpoint: useDualstackEndpoint,
+ fipsEndpoint: useFipsEndpoint,
+ pathStyleEndpoint: options.forcePathStyle,
+ tlsCompatible: request.protocol === "https:",
+ useArnRegion,
+ clientPartition: partition,
+ clientSigningRegion: signingRegion,
+ clientRegion,
+ isCustomEndpoint: options.isCustomEndpoint,
+ disableMultiregionAccessPoints: await options.disableMultiregionAccessPoints()
+ });
+ if (modifiedSigningRegion && modifiedSigningRegion !== signingRegion) {
+ context["signing_region"] = modifiedSigningRegion;
+ }
+ if (signingService && signingService !== "s3") {
+ context["signing_service"] = signingService;
+ }
+ request.hostname = hostname;
+ replaceBucketInPath = bucketEndpoint;
+ } else {
+ const clientRegion = await options.region();
+ const dualstackEndpoint = await options.useDualstackEndpoint();
+ const fipsEndpoint = await options.useFipsEndpoint();
+ const { hostname, bucketEndpoint } = bucketHostname({
+ bucketName,
+ clientRegion,
+ baseHostname: request.hostname,
+ accelerateEndpoint: options.useAccelerateEndpoint,
+ dualstackEndpoint,
+ fipsEndpoint,
+ pathStyleEndpoint: options.forcePathStyle,
+ tlsCompatible: request.protocol === "https:",
+ isCustomEndpoint: options.isCustomEndpoint
+ });
+ request.hostname = hostname;
+ replaceBucketInPath = bucketEndpoint;
+ }
+ if (replaceBucketInPath) {
+ request.path = request.path.replace(/^(\/)?[^\/]+/, "");
+ if (request.path === "") {
+ request.path = "/";
+ }
+ }
+ }
+ return next({ ...args, request });
+}, "bucketEndpointMiddleware");
+var bucketEndpointMiddlewareOptions = {
+ tags: ["BUCKET_ENDPOINT"],
+ name: "bucketEndpointMiddleware",
+ relation: "before",
+ toMiddleware: "hostHeaderMiddleware",
+ override: true
+};
+var getBucketEndpointPlugin = /* @__PURE__ */ __name((options) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.addRelativeTo(bucketEndpointMiddleware(options), bucketEndpointMiddlewareOptions);
+ }, "applyToStack")
+}), "getBucketEndpointPlugin");
+
+// src/configurations.ts
+function resolveBucketEndpointConfig(input) {
+ const {
+ bucketEndpoint = false,
+ forcePathStyle = false,
+ useAccelerateEndpoint = false,
+ useArnRegion = false,
+ disableMultiregionAccessPoints = false
+ } = input;
+ return Object.assign(input, {
+ bucketEndpoint,
+ forcePathStyle,
+ useAccelerateEndpoint,
+ useArnRegion: typeof useArnRegion === "function" ? useArnRegion : () => Promise.resolve(useArnRegion),
+ disableMultiregionAccessPoints: typeof disableMultiregionAccessPoints === "function" ? disableMultiregionAccessPoints : () => Promise.resolve(disableMultiregionAccessPoints)
+ });
+}
+__name(resolveBucketEndpointConfig, "resolveBucketEndpointConfig");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 81990:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ addExpectContinueMiddleware: () => addExpectContinueMiddleware,
+ addExpectContinueMiddlewareOptions: () => addExpectContinueMiddlewareOptions,
+ getAddExpectContinuePlugin: () => getAddExpectContinuePlugin
+});
+module.exports = __toCommonJS(index_exports);
+var import_protocol_http = __nccwpck_require__(64418);
+function addExpectContinueMiddleware(options) {
+ return (next) => async (args) => {
+ const { request } = args;
+ if (import_protocol_http.HttpRequest.isInstance(request) && request.body && options.runtime === "node") {
+ if (options.requestHandler?.constructor?.name !== "FetchHttpHandler") {
+ request.headers = {
+ ...request.headers,
+ Expect: "100-continue"
+ };
+ }
+ }
+ return next({
+ ...args,
+ request
+ });
+ };
+}
+__name(addExpectContinueMiddleware, "addExpectContinueMiddleware");
+var addExpectContinueMiddlewareOptions = {
+ step: "build",
+ tags: ["SET_EXPECT_HEADER", "EXPECT_HEADER"],
+ name: "addExpectContinueMiddleware",
+ override: true
+};
+var getAddExpectContinuePlugin = /* @__PURE__ */ __name((options) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(addExpectContinueMiddleware(options), addExpectContinueMiddlewareOptions);
+ }, "applyToStack")
+}), "getAddExpectContinuePlugin");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 61436:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getCrc32ChecksumAlgorithmFunction = void 0;
+const tslib_1 = __nccwpck_require__(4351);
+const crc32_1 = __nccwpck_require__(48408);
+const util_1 = __nccwpck_require__(74871);
+const zlib = tslib_1.__importStar(__nccwpck_require__(59796));
+class NodeCrc32 {
+ checksum = 0;
+ update(data) {
+ this.checksum = zlib.crc32(data, this.checksum);
+ }
+ async digest() {
+ return (0, util_1.numToUint8)(this.checksum);
+ }
+ reset() {
+ this.checksum = 0;
+ }
+}
+const getCrc32ChecksumAlgorithmFunction = () => {
+ if (typeof zlib.crc32 === "undefined") {
+ return crc32_1.AwsCrc32;
+ }
+ return NodeCrc32;
+};
+exports.getCrc32ChecksumAlgorithmFunction = getCrc32ChecksumAlgorithmFunction;
+
+
+/***/ }),
+
+/***/ 13799:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ CONFIG_REQUEST_CHECKSUM_CALCULATION: () => CONFIG_REQUEST_CHECKSUM_CALCULATION,
+ CONFIG_RESPONSE_CHECKSUM_VALIDATION: () => CONFIG_RESPONSE_CHECKSUM_VALIDATION,
+ ChecksumAlgorithm: () => ChecksumAlgorithm,
+ ChecksumLocation: () => ChecksumLocation,
+ DEFAULT_CHECKSUM_ALGORITHM: () => DEFAULT_CHECKSUM_ALGORITHM,
+ DEFAULT_REQUEST_CHECKSUM_CALCULATION: () => DEFAULT_REQUEST_CHECKSUM_CALCULATION,
+ DEFAULT_RESPONSE_CHECKSUM_VALIDATION: () => DEFAULT_RESPONSE_CHECKSUM_VALIDATION,
+ ENV_REQUEST_CHECKSUM_CALCULATION: () => ENV_REQUEST_CHECKSUM_CALCULATION,
+ ENV_RESPONSE_CHECKSUM_VALIDATION: () => ENV_RESPONSE_CHECKSUM_VALIDATION,
+ NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS: () => NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS,
+ NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: () => NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS,
+ RequestChecksumCalculation: () => RequestChecksumCalculation,
+ ResponseChecksumValidation: () => ResponseChecksumValidation,
+ crc64NvmeCrtContainer: () => crc64NvmeCrtContainer,
+ flexibleChecksumsMiddleware: () => flexibleChecksumsMiddleware,
+ flexibleChecksumsMiddlewareOptions: () => flexibleChecksumsMiddlewareOptions,
+ getFlexibleChecksumsPlugin: () => getFlexibleChecksumsPlugin,
+ resolveFlexibleChecksumsConfig: () => resolveFlexibleChecksumsConfig
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/constants.ts
+var RequestChecksumCalculation = {
+ /**
+ * When set, a checksum will be calculated for all request payloads of operations
+ * modeled with the {@link httpChecksum} trait where `requestChecksumRequired` is `true`
+ * AND/OR a `requestAlgorithmMember` is modeled.
+ * {@link https://smithy.io/2.0/aws/aws-core.html#aws-protocols-httpchecksum-trait httpChecksum}
+ */
+ WHEN_SUPPORTED: "WHEN_SUPPORTED",
+ /**
+ * When set, a checksum will only be calculated for request payloads of operations
+ * modeled with the {@link httpChecksum} trait where `requestChecksumRequired` is `true`
+ * OR where a `requestAlgorithmMember` is modeled and the user sets it.
+ * {@link https://smithy.io/2.0/aws/aws-core.html#aws-protocols-httpchecksum-trait httpChecksum}
+ */
+ WHEN_REQUIRED: "WHEN_REQUIRED"
+};
+var DEFAULT_REQUEST_CHECKSUM_CALCULATION = RequestChecksumCalculation.WHEN_SUPPORTED;
+var ResponseChecksumValidation = {
+ /**
+ * When set, checksum validation MUST be performed on all response payloads of operations
+ * modeled with the {@link httpChecksum} trait where `responseAlgorithms` is modeled,
+ * except when no modeled checksum algorithms are supported by an SDK.
+ * {@link https://smithy.io/2.0/aws/aws-core.html#aws-protocols-httpchecksum-trait httpChecksum}
+ */
+ WHEN_SUPPORTED: "WHEN_SUPPORTED",
+ /**
+ * When set, checksum validation MUST NOT be performed on response payloads of operations UNLESS
+ * the SDK supports the modeled checksum algorithms AND the user has set the `requestValidationModeMember` to `ENABLED`.
+ * It is currently impossible to model an operation as requiring a response checksum,
+ * but this setting leaves the door open for future updates.
+ */
+ WHEN_REQUIRED: "WHEN_REQUIRED"
+};
+var DEFAULT_RESPONSE_CHECKSUM_VALIDATION = RequestChecksumCalculation.WHEN_SUPPORTED;
+var ChecksumAlgorithm = /* @__PURE__ */ ((ChecksumAlgorithm3) => {
+ ChecksumAlgorithm3["MD5"] = "MD5";
+ ChecksumAlgorithm3["CRC32"] = "CRC32";
+ ChecksumAlgorithm3["CRC32C"] = "CRC32C";
+ ChecksumAlgorithm3["CRC64NVME"] = "CRC64NVME";
+ ChecksumAlgorithm3["SHA1"] = "SHA1";
+ ChecksumAlgorithm3["SHA256"] = "SHA256";
+ return ChecksumAlgorithm3;
+})(ChecksumAlgorithm || {});
+var ChecksumLocation = /* @__PURE__ */ ((ChecksumLocation2) => {
+ ChecksumLocation2["HEADER"] = "header";
+ ChecksumLocation2["TRAILER"] = "trailer";
+ return ChecksumLocation2;
+})(ChecksumLocation || {});
+var DEFAULT_CHECKSUM_ALGORITHM = "CRC32" /* CRC32 */;
+
+// src/stringUnionSelector.ts
+var stringUnionSelector = /* @__PURE__ */ __name((obj, key, union, type) => {
+ if (!(key in obj)) return void 0;
+ const value = obj[key].toUpperCase();
+ if (!Object.values(union).includes(value)) {
+ throw new TypeError(`Cannot load ${type} '${key}'. Expected one of ${Object.values(union)}, got '${obj[key]}'.`);
+ }
+ return value;
+}, "stringUnionSelector");
+
+// src/NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS.ts
+var ENV_REQUEST_CHECKSUM_CALCULATION = "AWS_REQUEST_CHECKSUM_CALCULATION";
+var CONFIG_REQUEST_CHECKSUM_CALCULATION = "request_checksum_calculation";
+var NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = {
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => stringUnionSelector(env, ENV_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, "env" /* ENV */), "environmentVariableSelector"),
+ configFileSelector: /* @__PURE__ */ __name((profile) => stringUnionSelector(profile, CONFIG_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, "shared config entry" /* CONFIG */), "configFileSelector"),
+ default: DEFAULT_REQUEST_CHECKSUM_CALCULATION
+};
+
+// src/NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS.ts
+var ENV_RESPONSE_CHECKSUM_VALIDATION = "AWS_RESPONSE_CHECKSUM_VALIDATION";
+var CONFIG_RESPONSE_CHECKSUM_VALIDATION = "response_checksum_validation";
+var NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = {
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => stringUnionSelector(env, ENV_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, "env" /* ENV */), "environmentVariableSelector"),
+ configFileSelector: /* @__PURE__ */ __name((profile) => stringUnionSelector(profile, CONFIG_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, "shared config entry" /* CONFIG */), "configFileSelector"),
+ default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION
+};
+
+// src/crc64-nvme-crt-container.ts
+var crc64NvmeCrtContainer = {
+ CrtCrc64Nvme: null
+};
+
+// src/flexibleChecksumsMiddleware.ts
+var import_core = __nccwpck_require__(59963);
+var import_protocol_http = __nccwpck_require__(64418);
+var import_util_stream = __nccwpck_require__(96607);
+
+// src/types.ts
+var CLIENT_SUPPORTED_ALGORITHMS = [
+ "CRC32" /* CRC32 */,
+ "CRC32C" /* CRC32C */,
+ "CRC64NVME" /* CRC64NVME */,
+ "SHA1" /* SHA1 */,
+ "SHA256" /* SHA256 */
+];
+var PRIORITY_ORDER_ALGORITHMS = [
+ "SHA256" /* SHA256 */,
+ "SHA1" /* SHA1 */,
+ "CRC32" /* CRC32 */,
+ "CRC32C" /* CRC32C */,
+ "CRC64NVME" /* CRC64NVME */
+];
+
+// src/getChecksumAlgorithmForRequest.ts
+var getChecksumAlgorithmForRequest = /* @__PURE__ */ __name((input, { requestChecksumRequired, requestAlgorithmMember, requestChecksumCalculation }) => {
+ if (!requestAlgorithmMember) {
+ return requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired ? DEFAULT_CHECKSUM_ALGORITHM : void 0;
+ }
+ if (!input[requestAlgorithmMember]) {
+ return void 0;
+ }
+ const checksumAlgorithm = input[requestAlgorithmMember];
+ if (!CLIENT_SUPPORTED_ALGORITHMS.includes(checksumAlgorithm)) {
+ throw new Error(
+ `The checksum algorithm "${checksumAlgorithm}" is not supported by the client. Select one of ${CLIENT_SUPPORTED_ALGORITHMS}.`
+ );
+ }
+ return checksumAlgorithm;
+}, "getChecksumAlgorithmForRequest");
+
+// src/getChecksumLocationName.ts
+var getChecksumLocationName = /* @__PURE__ */ __name((algorithm) => algorithm === "MD5" /* MD5 */ ? "content-md5" : `x-amz-checksum-${algorithm.toLowerCase()}`, "getChecksumLocationName");
+
+// src/hasHeader.ts
+var hasHeader = /* @__PURE__ */ __name((header, headers) => {
+ const soughtHeader = header.toLowerCase();
+ for (const headerName of Object.keys(headers)) {
+ if (soughtHeader === headerName.toLowerCase()) {
+ return true;
+ }
+ }
+ return false;
+}, "hasHeader");
+
+// src/hasHeaderWithPrefix.ts
+var hasHeaderWithPrefix = /* @__PURE__ */ __name((headerPrefix, headers) => {
+ const soughtHeaderPrefix = headerPrefix.toLowerCase();
+ for (const headerName of Object.keys(headers)) {
+ if (headerName.toLowerCase().startsWith(soughtHeaderPrefix)) {
+ return true;
+ }
+ }
+ return false;
+}, "hasHeaderWithPrefix");
+
+// src/isStreaming.ts
+var import_is_array_buffer = __nccwpck_require__(10780);
+var isStreaming = /* @__PURE__ */ __name((body) => body !== void 0 && typeof body !== "string" && !ArrayBuffer.isView(body) && !(0, import_is_array_buffer.isArrayBuffer)(body), "isStreaming");
+
+// src/selectChecksumAlgorithmFunction.ts
+var import_crc32c = __nccwpck_require__(17035);
+var import_getCrc32ChecksumAlgorithmFunction = __nccwpck_require__(61436);
+var selectChecksumAlgorithmFunction = /* @__PURE__ */ __name((checksumAlgorithm, config) => {
+ switch (checksumAlgorithm) {
+ case "MD5" /* MD5 */:
+ return config.md5;
+ case "CRC32" /* CRC32 */:
+ return (0, import_getCrc32ChecksumAlgorithmFunction.getCrc32ChecksumAlgorithmFunction)();
+ case "CRC32C" /* CRC32C */:
+ return import_crc32c.AwsCrc32c;
+ case "CRC64NVME" /* CRC64NVME */:
+ if (typeof crc64NvmeCrtContainer.CrtCrc64Nvme !== "function") {
+ throw new Error(
+ `Please check whether you have installed the "@aws-sdk/crc64-nvme-crt" package explicitly.
+You must also register the package by calling [require("@aws-sdk/crc64-nvme-crt");] or an ESM equivalent such as [import "@aws-sdk/crc64-nvme-crt";].
+For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`
+ );
+ }
+ return crc64NvmeCrtContainer.CrtCrc64Nvme;
+ case "SHA1" /* SHA1 */:
+ return config.sha1;
+ case "SHA256" /* SHA256 */:
+ return config.sha256;
+ default:
+ throw new Error(`Unsupported checksum algorithm: ${checksumAlgorithm}`);
+ }
+}, "selectChecksumAlgorithmFunction");
+
+// src/stringHasher.ts
+var import_util_utf8 = __nccwpck_require__(41895);
+var stringHasher = /* @__PURE__ */ __name((checksumAlgorithmFn, body) => {
+ const hash = new checksumAlgorithmFn();
+ hash.update((0, import_util_utf8.toUint8Array)(body || ""));
+ return hash.digest();
+}, "stringHasher");
+
+// src/flexibleChecksumsMiddleware.ts
+var flexibleChecksumsMiddlewareOptions = {
+ name: "flexibleChecksumsMiddleware",
+ step: "build",
+ tags: ["BODY_CHECKSUM"],
+ override: true
+};
+var flexibleChecksumsMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => {
+ if (!import_protocol_http.HttpRequest.isInstance(args.request)) {
+ return next(args);
+ }
+ if (hasHeaderWithPrefix("x-amz-checksum-", args.request.headers)) {
+ return next(args);
+ }
+ const { request, input } = args;
+ const { body: requestBody, headers } = request;
+ const { base64Encoder, streamHasher } = config;
+ const { requestChecksumRequired, requestAlgorithmMember } = middlewareConfig;
+ const requestChecksumCalculation = await config.requestChecksumCalculation();
+ const requestAlgorithmMemberName = requestAlgorithmMember?.name;
+ const requestAlgorithmMemberHttpHeader = requestAlgorithmMember?.httpHeader;
+ if (requestAlgorithmMemberName && !input[requestAlgorithmMemberName]) {
+ if (requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired) {
+ input[requestAlgorithmMemberName] = DEFAULT_CHECKSUM_ALGORITHM;
+ if (requestAlgorithmMemberHttpHeader) {
+ headers[requestAlgorithmMemberHttpHeader] = DEFAULT_CHECKSUM_ALGORITHM;
+ }
+ }
+ }
+ const checksumAlgorithm = getChecksumAlgorithmForRequest(input, {
+ requestChecksumRequired,
+ requestAlgorithmMember: requestAlgorithmMember?.name,
+ requestChecksumCalculation
+ });
+ let updatedBody = requestBody;
+ let updatedHeaders = headers;
+ if (checksumAlgorithm) {
+ switch (checksumAlgorithm) {
+ case "CRC32" /* CRC32 */:
+ (0, import_core.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32", "U");
+ break;
+ case "CRC32C" /* CRC32C */:
+ (0, import_core.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32C", "V");
+ break;
+ case "CRC64NVME" /* CRC64NVME */:
+ (0, import_core.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC64", "W");
+ break;
+ case "SHA1" /* SHA1 */:
+ (0, import_core.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA1", "X");
+ break;
+ case "SHA256" /* SHA256 */:
+ (0, import_core.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA256", "Y");
+ break;
+ }
+ const checksumLocationName = getChecksumLocationName(checksumAlgorithm);
+ const checksumAlgorithmFn = selectChecksumAlgorithmFunction(checksumAlgorithm, config);
+ if (isStreaming(requestBody)) {
+ const { getAwsChunkedEncodingStream, bodyLengthChecker } = config;
+ updatedBody = getAwsChunkedEncodingStream(
+ typeof config.requestStreamBufferSize === "number" && config.requestStreamBufferSize >= 8 * 1024 ? (0, import_util_stream.createBufferedReadable)(requestBody, config.requestStreamBufferSize, context.logger) : requestBody,
+ {
+ base64Encoder,
+ bodyLengthChecker,
+ checksumLocationName,
+ checksumAlgorithmFn,
+ streamHasher
+ }
+ );
+ updatedHeaders = {
+ ...headers,
+ "content-encoding": headers["content-encoding"] ? `${headers["content-encoding"]},aws-chunked` : "aws-chunked",
+ "transfer-encoding": "chunked",
+ "x-amz-decoded-content-length": headers["content-length"],
+ "x-amz-content-sha256": "STREAMING-UNSIGNED-PAYLOAD-TRAILER",
+ "x-amz-trailer": checksumLocationName
+ };
+ delete updatedHeaders["content-length"];
+ } else if (!hasHeader(checksumLocationName, headers)) {
+ const rawChecksum = await stringHasher(checksumAlgorithmFn, requestBody);
+ updatedHeaders = {
+ ...headers,
+ [checksumLocationName]: base64Encoder(rawChecksum)
+ };
+ }
+ }
+ const result = await next({
+ ...args,
+ request: {
+ ...request,
+ headers: updatedHeaders,
+ body: updatedBody
+ }
+ });
+ return result;
+}, "flexibleChecksumsMiddleware");
+
+// src/flexibleChecksumsInputMiddleware.ts
+
+var flexibleChecksumsInputMiddlewareOptions = {
+ name: "flexibleChecksumsInputMiddleware",
+ toMiddleware: "serializerMiddleware",
+ relation: "before",
+ tags: ["BODY_CHECKSUM"],
+ override: true
+};
+var flexibleChecksumsInputMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => {
+ const input = args.input;
+ const { requestValidationModeMember } = middlewareConfig;
+ const requestChecksumCalculation = await config.requestChecksumCalculation();
+ const responseChecksumValidation = await config.responseChecksumValidation();
+ switch (requestChecksumCalculation) {
+ case RequestChecksumCalculation.WHEN_REQUIRED:
+ (0, import_core.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED", "a");
+ break;
+ case RequestChecksumCalculation.WHEN_SUPPORTED:
+ (0, import_core.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED", "Z");
+ break;
+ }
+ switch (responseChecksumValidation) {
+ case ResponseChecksumValidation.WHEN_REQUIRED:
+ (0, import_core.setFeature)(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED", "c");
+ break;
+ case ResponseChecksumValidation.WHEN_SUPPORTED:
+ (0, import_core.setFeature)(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED", "b");
+ break;
+ }
+ if (requestValidationModeMember && !input[requestValidationModeMember]) {
+ if (responseChecksumValidation === ResponseChecksumValidation.WHEN_SUPPORTED) {
+ input[requestValidationModeMember] = "ENABLED";
+ }
+ }
+ return next(args);
+}, "flexibleChecksumsInputMiddleware");
+
+// src/flexibleChecksumsResponseMiddleware.ts
+
+
+// src/getChecksumAlgorithmListForResponse.ts
+var getChecksumAlgorithmListForResponse = /* @__PURE__ */ __name((responseAlgorithms = []) => {
+ const validChecksumAlgorithms = [];
+ for (const algorithm of PRIORITY_ORDER_ALGORITHMS) {
+ if (!responseAlgorithms.includes(algorithm) || !CLIENT_SUPPORTED_ALGORITHMS.includes(algorithm)) {
+ continue;
+ }
+ validChecksumAlgorithms.push(algorithm);
+ }
+ return validChecksumAlgorithms;
+}, "getChecksumAlgorithmListForResponse");
+
+// src/isChecksumWithPartNumber.ts
+var isChecksumWithPartNumber = /* @__PURE__ */ __name((checksum) => {
+ const lastHyphenIndex = checksum.lastIndexOf("-");
+ if (lastHyphenIndex !== -1) {
+ const numberPart = checksum.slice(lastHyphenIndex + 1);
+ if (!numberPart.startsWith("0")) {
+ const number = parseInt(numberPart, 10);
+ if (!isNaN(number) && number >= 1 && number <= 1e4) {
+ return true;
+ }
+ }
+ }
+ return false;
+}, "isChecksumWithPartNumber");
+
+// src/validateChecksumFromResponse.ts
+
+
+// src/getChecksum.ts
+var getChecksum = /* @__PURE__ */ __name(async (body, { checksumAlgorithmFn, base64Encoder }) => base64Encoder(await stringHasher(checksumAlgorithmFn, body)), "getChecksum");
+
+// src/validateChecksumFromResponse.ts
+var validateChecksumFromResponse = /* @__PURE__ */ __name(async (response, { config, responseAlgorithms, logger }) => {
+ const checksumAlgorithms = getChecksumAlgorithmListForResponse(responseAlgorithms);
+ const { body: responseBody, headers: responseHeaders } = response;
+ for (const algorithm of checksumAlgorithms) {
+ const responseHeader = getChecksumLocationName(algorithm);
+ const checksumFromResponse = responseHeaders[responseHeader];
+ if (checksumFromResponse) {
+ let checksumAlgorithmFn;
+ try {
+ checksumAlgorithmFn = selectChecksumAlgorithmFunction(algorithm, config);
+ } catch (error) {
+ if (algorithm === "CRC64NVME" /* CRC64NVME */) {
+ logger?.warn(`Skipping ${"CRC64NVME" /* CRC64NVME */} checksum validation: ${error.message}`);
+ continue;
+ }
+ throw error;
+ }
+ const { base64Encoder } = config;
+ if (isStreaming(responseBody)) {
+ response.body = (0, import_util_stream.createChecksumStream)({
+ expectedChecksum: checksumFromResponse,
+ checksumSourceLocation: responseHeader,
+ checksum: new checksumAlgorithmFn(),
+ source: responseBody,
+ base64Encoder
+ });
+ return;
+ }
+ const checksum = await getChecksum(responseBody, { checksumAlgorithmFn, base64Encoder });
+ if (checksum === checksumFromResponse) {
+ break;
+ }
+ throw new Error(
+ `Checksum mismatch: expected "${checksum}" but received "${checksumFromResponse}" in response header "${responseHeader}".`
+ );
+ }
+ }
+}, "validateChecksumFromResponse");
+
+// src/flexibleChecksumsResponseMiddleware.ts
+var flexibleChecksumsResponseMiddlewareOptions = {
+ name: "flexibleChecksumsResponseMiddleware",
+ toMiddleware: "deserializerMiddleware",
+ relation: "after",
+ tags: ["BODY_CHECKSUM"],
+ override: true
+};
+var flexibleChecksumsResponseMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => {
+ if (!import_protocol_http.HttpRequest.isInstance(args.request)) {
+ return next(args);
+ }
+ const input = args.input;
+ const result = await next(args);
+ const response = result.response;
+ const { requestValidationModeMember, responseAlgorithms } = middlewareConfig;
+ if (requestValidationModeMember && input[requestValidationModeMember] === "ENABLED") {
+ const { clientName, commandName } = context;
+ const isS3WholeObjectMultipartGetResponseChecksum = clientName === "S3Client" && commandName === "GetObjectCommand" && getChecksumAlgorithmListForResponse(responseAlgorithms).every((algorithm) => {
+ const responseHeader = getChecksumLocationName(algorithm);
+ const checksumFromResponse = response.headers[responseHeader];
+ return !checksumFromResponse || isChecksumWithPartNumber(checksumFromResponse);
+ });
+ if (isS3WholeObjectMultipartGetResponseChecksum) {
+ return result;
+ }
+ await validateChecksumFromResponse(response, {
+ config,
+ responseAlgorithms,
+ logger: context.logger
+ });
+ }
+ return result;
+}, "flexibleChecksumsResponseMiddleware");
+
+// src/getFlexibleChecksumsPlugin.ts
+var getFlexibleChecksumsPlugin = /* @__PURE__ */ __name((config, middlewareConfig) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(flexibleChecksumsMiddleware(config, middlewareConfig), flexibleChecksumsMiddlewareOptions);
+ clientStack.addRelativeTo(
+ flexibleChecksumsInputMiddleware(config, middlewareConfig),
+ flexibleChecksumsInputMiddlewareOptions
+ );
+ clientStack.addRelativeTo(
+ flexibleChecksumsResponseMiddleware(config, middlewareConfig),
+ flexibleChecksumsResponseMiddlewareOptions
+ );
+ }, "applyToStack")
+}), "getFlexibleChecksumsPlugin");
+
+// src/resolveFlexibleChecksumsConfig.ts
+var import_util_middleware = __nccwpck_require__(2390);
+var resolveFlexibleChecksumsConfig = /* @__PURE__ */ __name((input) => {
+ const { requestChecksumCalculation, responseChecksumValidation, requestStreamBufferSize } = input;
+ return Object.assign(input, {
+ requestChecksumCalculation: (0, import_util_middleware.normalizeProvider)(requestChecksumCalculation ?? DEFAULT_REQUEST_CHECKSUM_CALCULATION),
+ responseChecksumValidation: (0, import_util_middleware.normalizeProvider)(responseChecksumValidation ?? DEFAULT_RESPONSE_CHECKSUM_VALIDATION),
+ requestStreamBufferSize: Number(requestStreamBufferSize ?? 0)
+ });
+}, "resolveFlexibleChecksumsConfig");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 22545:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ getHostHeaderPlugin: () => getHostHeaderPlugin,
+ hostHeaderMiddleware: () => hostHeaderMiddleware,
+ hostHeaderMiddlewareOptions: () => hostHeaderMiddlewareOptions,
+ resolveHostHeaderConfig: () => resolveHostHeaderConfig
+});
+module.exports = __toCommonJS(index_exports);
+var import_protocol_http = __nccwpck_require__(64418);
+function resolveHostHeaderConfig(input) {
+ return input;
+}
+__name(resolveHostHeaderConfig, "resolveHostHeaderConfig");
+var hostHeaderMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => {
+ if (!import_protocol_http.HttpRequest.isInstance(args.request)) return next(args);
+ const { request } = args;
+ const { handlerProtocol = "" } = options.requestHandler.metadata || {};
+ if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
+ delete request.headers["host"];
+ request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
+ } else if (!request.headers["host"]) {
+ let host = request.hostname;
+ if (request.port != null) host += `:${request.port}`;
+ request.headers["host"] = host;
+ }
+ return next(args);
+}, "hostHeaderMiddleware");
+var hostHeaderMiddlewareOptions = {
+ name: "hostHeaderMiddleware",
+ step: "build",
+ priority: "low",
+ tags: ["HOST"],
+ override: true
+};
+var getHostHeaderPlugin = /* @__PURE__ */ __name((options) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
+ }, "applyToStack")
+}), "getHostHeaderPlugin");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 42098:
+/***/ ((module) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ getLocationConstraintPlugin: () => getLocationConstraintPlugin,
+ locationConstraintMiddleware: () => locationConstraintMiddleware,
+ locationConstraintMiddlewareOptions: () => locationConstraintMiddlewareOptions
+});
+module.exports = __toCommonJS(index_exports);
+function locationConstraintMiddleware(options) {
+ return (next) => async (args) => {
+ const { CreateBucketConfiguration } = args.input;
+ const region = await options.region();
+ if (!CreateBucketConfiguration?.LocationConstraint && !CreateBucketConfiguration?.Location) {
+ args = {
+ ...args,
+ input: {
+ ...args.input,
+ CreateBucketConfiguration: region === "us-east-1" ? void 0 : { LocationConstraint: region }
+ }
+ };
+ }
+ return next(args);
+ };
+}
+__name(locationConstraintMiddleware, "locationConstraintMiddleware");
+var locationConstraintMiddlewareOptions = {
+ step: "initialize",
+ tags: ["LOCATION_CONSTRAINT", "CREATE_BUCKET_CONFIGURATION"],
+ name: "locationConstraintMiddleware",
+ override: true
+};
+var getLocationConstraintPlugin = /* @__PURE__ */ __name((config) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(locationConstraintMiddleware(config), locationConstraintMiddlewareOptions);
+ }, "applyToStack")
+}), "getLocationConstraintPlugin");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 20014:
+/***/ ((module) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ getLoggerPlugin: () => getLoggerPlugin,
+ loggerMiddleware: () => loggerMiddleware,
+ loggerMiddlewareOptions: () => loggerMiddlewareOptions
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/loggerMiddleware.ts
+var loggerMiddleware = /* @__PURE__ */ __name(() => (next, context) => async (args) => {
+ try {
+ const response = await next(args);
+ const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
+ const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
+ const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
+ const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog;
+ const { $metadata, ...outputWithoutMetadata } = response.output;
+ logger?.info?.({
+ clientName,
+ commandName,
+ input: inputFilterSensitiveLog(args.input),
+ output: outputFilterSensitiveLog(outputWithoutMetadata),
+ metadata: $metadata
+ });
+ return response;
+ } catch (error) {
+ const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context;
+ const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
+ const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
+ logger?.error?.({
+ clientName,
+ commandName,
+ input: inputFilterSensitiveLog(args.input),
+ error,
+ metadata: error.$metadata
+ });
+ throw error;
+ }
+}, "loggerMiddleware");
+var loggerMiddlewareOptions = {
+ name: "loggerMiddleware",
+ tags: ["LOGGER"],
+ step: "initialize",
+ override: true
+};
+var getLoggerPlugin = /* @__PURE__ */ __name((options) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
+ }, "applyToStack")
+}), "getLoggerPlugin");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 85525:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ addRecursionDetectionMiddlewareOptions: () => addRecursionDetectionMiddlewareOptions,
+ getRecursionDetectionPlugin: () => getRecursionDetectionPlugin,
+ recursionDetectionMiddleware: () => recursionDetectionMiddleware
+});
+module.exports = __toCommonJS(index_exports);
+var import_protocol_http = __nccwpck_require__(64418);
+var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
+var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
+var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
+var recursionDetectionMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => {
+ const { request } = args;
+ if (!import_protocol_http.HttpRequest.isInstance(request) || options.runtime !== "node") {
+ return next(args);
+ }
+ const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
+ if (request.headers.hasOwnProperty(traceIdHeader)) {
+ return next(args);
+ }
+ const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
+ const traceId = process.env[ENV_TRACE_ID];
+ const nonEmptyString = /* @__PURE__ */ __name((str) => typeof str === "string" && str.length > 0, "nonEmptyString");
+ if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
+ request.headers[TRACE_ID_HEADER_NAME] = traceId;
+ }
+ return next({
+ ...args,
+ request
+ });
+}, "recursionDetectionMiddleware");
+var addRecursionDetectionMiddlewareOptions = {
+ step: "build",
+ tags: ["RECURSION_DETECTION"],
+ name: "recursionDetectionMiddleware",
+ override: true,
+ priority: "low"
+};
+var getRecursionDetectionPlugin = /* @__PURE__ */ __name((options) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions);
+ }, "applyToStack")
+}), "getRecursionDetectionPlugin");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 81139:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS: () => NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS,
+ S3ExpressIdentityCache: () => S3ExpressIdentityCache,
+ S3ExpressIdentityCacheEntry: () => S3ExpressIdentityCacheEntry,
+ S3ExpressIdentityProviderImpl: () => S3ExpressIdentityProviderImpl,
+ SignatureV4S3Express: () => SignatureV4S3Express,
+ checkContentLengthHeader: () => checkContentLengthHeader,
+ checkContentLengthHeaderMiddlewareOptions: () => checkContentLengthHeaderMiddlewareOptions,
+ getCheckContentLengthHeaderPlugin: () => getCheckContentLengthHeaderPlugin,
+ getRegionRedirectMiddlewarePlugin: () => getRegionRedirectMiddlewarePlugin,
+ getS3ExpiresMiddlewarePlugin: () => getS3ExpiresMiddlewarePlugin,
+ getS3ExpressHttpSigningPlugin: () => getS3ExpressHttpSigningPlugin,
+ getS3ExpressPlugin: () => getS3ExpressPlugin,
+ getThrow200ExceptionsPlugin: () => getThrow200ExceptionsPlugin,
+ getValidateBucketNamePlugin: () => getValidateBucketNamePlugin,
+ regionRedirectEndpointMiddleware: () => regionRedirectEndpointMiddleware,
+ regionRedirectEndpointMiddlewareOptions: () => regionRedirectEndpointMiddlewareOptions,
+ regionRedirectMiddleware: () => regionRedirectMiddleware,
+ regionRedirectMiddlewareOptions: () => regionRedirectMiddlewareOptions,
+ resolveS3Config: () => resolveS3Config,
+ s3ExpiresMiddleware: () => s3ExpiresMiddleware,
+ s3ExpiresMiddlewareOptions: () => s3ExpiresMiddlewareOptions,
+ s3ExpressHttpSigningMiddleware: () => s3ExpressHttpSigningMiddleware,
+ s3ExpressHttpSigningMiddlewareOptions: () => s3ExpressHttpSigningMiddlewareOptions,
+ s3ExpressMiddleware: () => s3ExpressMiddleware,
+ s3ExpressMiddlewareOptions: () => s3ExpressMiddlewareOptions,
+ throw200ExceptionsMiddleware: () => throw200ExceptionsMiddleware,
+ throw200ExceptionsMiddlewareOptions: () => throw200ExceptionsMiddlewareOptions,
+ validateBucketNameMiddleware: () => validateBucketNameMiddleware,
+ validateBucketNameMiddlewareOptions: () => validateBucketNameMiddlewareOptions
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/check-content-length-header.ts
+var import_protocol_http = __nccwpck_require__(64418);
+var import_smithy_client = __nccwpck_require__(63570);
+var CONTENT_LENGTH_HEADER = "content-length";
+var DECODED_CONTENT_LENGTH_HEADER = "x-amz-decoded-content-length";
+function checkContentLengthHeader() {
+ return (next, context) => async (args) => {
+ const { request } = args;
+ if (import_protocol_http.HttpRequest.isInstance(request)) {
+ if (!(CONTENT_LENGTH_HEADER in request.headers) && !(DECODED_CONTENT_LENGTH_HEADER in request.headers)) {
+ const message = `Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;
+ if (typeof context?.logger?.warn === "function" && !(context.logger instanceof import_smithy_client.NoOpLogger)) {
+ context.logger.warn(message);
+ } else {
+ console.warn(message);
+ }
+ }
+ }
+ return next({ ...args });
+ };
+}
+__name(checkContentLengthHeader, "checkContentLengthHeader");
+var checkContentLengthHeaderMiddlewareOptions = {
+ step: "finalizeRequest",
+ tags: ["CHECK_CONTENT_LENGTH_HEADER"],
+ name: "getCheckContentLengthHeaderPlugin",
+ override: true
+};
+var getCheckContentLengthHeaderPlugin = /* @__PURE__ */ __name((unused) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(checkContentLengthHeader(), checkContentLengthHeaderMiddlewareOptions);
+ }, "applyToStack")
+}), "getCheckContentLengthHeaderPlugin");
+
+// src/region-redirect-endpoint-middleware.ts
+var regionRedirectEndpointMiddleware = /* @__PURE__ */ __name((config) => {
+ return (next, context) => async (args) => {
+ const originalRegion = await config.region();
+ const regionProviderRef = config.region;
+ let unlock = /* @__PURE__ */ __name(() => {
+ }, "unlock");
+ if (context.__s3RegionRedirect) {
+ Object.defineProperty(config, "region", {
+ writable: false,
+ value: /* @__PURE__ */ __name(async () => {
+ return context.__s3RegionRedirect;
+ }, "value")
+ });
+ unlock = /* @__PURE__ */ __name(() => Object.defineProperty(config, "region", {
+ writable: true,
+ value: regionProviderRef
+ }), "unlock");
+ }
+ try {
+ const result = await next(args);
+ if (context.__s3RegionRedirect) {
+ unlock();
+ const region = await config.region();
+ if (originalRegion !== region) {
+ throw new Error("Region was not restored following S3 region redirect.");
+ }
+ }
+ return result;
+ } catch (e) {
+ unlock();
+ throw e;
+ }
+ };
+}, "regionRedirectEndpointMiddleware");
+var regionRedirectEndpointMiddlewareOptions = {
+ tags: ["REGION_REDIRECT", "S3"],
+ name: "regionRedirectEndpointMiddleware",
+ override: true,
+ relation: "before",
+ toMiddleware: "endpointV2Middleware"
+};
+
+// src/region-redirect-middleware.ts
+function regionRedirectMiddleware(clientConfig) {
+ return (next, context) => async (args) => {
+ try {
+ return await next(args);
+ } catch (err) {
+ if (clientConfig.followRegionRedirects) {
+ if (err?.$metadata?.httpStatusCode === 301 || // err.name === "PermanentRedirect" && --> removing the error name check, as that allows for HEAD operations (which have the 301 status code, but not the same error name) to be covered for region redirection as well
+ err?.$metadata?.httpStatusCode === 400 && err?.name === "IllegalLocationConstraintException") {
+ try {
+ const actualRegion = err.$response.headers["x-amz-bucket-region"];
+ context.logger?.debug(`Redirecting from ${await clientConfig.region()} to ${actualRegion}`);
+ context.__s3RegionRedirect = actualRegion;
+ } catch (e) {
+ throw new Error("Region redirect failed: " + e);
+ }
+ return next(args);
+ }
+ }
+ throw err;
+ }
+ };
+}
+__name(regionRedirectMiddleware, "regionRedirectMiddleware");
+var regionRedirectMiddlewareOptions = {
+ step: "initialize",
+ tags: ["REGION_REDIRECT", "S3"],
+ name: "regionRedirectMiddleware",
+ override: true
+};
+var getRegionRedirectMiddlewarePlugin = /* @__PURE__ */ __name((clientConfig) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(regionRedirectMiddleware(clientConfig), regionRedirectMiddlewareOptions);
+ clientStack.addRelativeTo(regionRedirectEndpointMiddleware(clientConfig), regionRedirectEndpointMiddlewareOptions);
+ }, "applyToStack")
+}), "getRegionRedirectMiddlewarePlugin");
+
+// src/s3-expires-middleware.ts
+
+
+var s3ExpiresMiddleware = /* @__PURE__ */ __name((config) => {
+ return (next, context) => async (args) => {
+ const result = await next(args);
+ const { response } = result;
+ if (import_protocol_http.HttpResponse.isInstance(response)) {
+ if (response.headers.expires) {
+ response.headers.expiresstring = response.headers.expires;
+ try {
+ (0, import_smithy_client.parseRfc7231DateTime)(response.headers.expires);
+ } catch (e) {
+ context.logger?.warn(
+ `AWS SDK Warning for ${context.clientName}::${context.commandName} response parsing (${response.headers.expires}): ${e}`
+ );
+ delete response.headers.expires;
+ }
+ }
+ }
+ return result;
+ };
+}, "s3ExpiresMiddleware");
+var s3ExpiresMiddlewareOptions = {
+ tags: ["S3"],
+ name: "s3ExpiresMiddleware",
+ override: true,
+ relation: "after",
+ toMiddleware: "deserializerMiddleware"
+};
+var getS3ExpiresMiddlewarePlugin = /* @__PURE__ */ __name((clientConfig) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.addRelativeTo(s3ExpiresMiddleware(clientConfig), s3ExpiresMiddlewareOptions);
+ }, "applyToStack")
+}), "getS3ExpiresMiddlewarePlugin");
+
+// src/s3-express/classes/S3ExpressIdentityCache.ts
+var S3ExpressIdentityCache = class _S3ExpressIdentityCache {
+ constructor(data = {}) {
+ this.data = data;
+ }
+ static {
+ __name(this, "S3ExpressIdentityCache");
+ }
+ lastPurgeTime = Date.now();
+ static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS = 3e4;
+ get(key) {
+ const entry = this.data[key];
+ if (!entry) {
+ return;
+ }
+ return entry;
+ }
+ set(key, entry) {
+ this.data[key] = entry;
+ return entry;
+ }
+ delete(key) {
+ delete this.data[key];
+ }
+ async purgeExpired() {
+ const now = Date.now();
+ if (this.lastPurgeTime + _S3ExpressIdentityCache.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS > now) {
+ return;
+ }
+ for (const key in this.data) {
+ const entry = this.data[key];
+ if (!entry.isRefreshing) {
+ const credential = await entry.identity;
+ if (credential.expiration) {
+ if (credential.expiration.getTime() < now) {
+ delete this.data[key];
+ }
+ }
+ }
+ }
+ }
+};
+
+// src/s3-express/classes/S3ExpressIdentityCacheEntry.ts
+var S3ExpressIdentityCacheEntry = class {
+ /**
+ * @param identity - stored identity.
+ * @param accessed - timestamp of last access in epoch ms.
+ * @param isRefreshing - this key is currently in the process of being refreshed (background).
+ */
+ constructor(_identity, isRefreshing = false, accessed = Date.now()) {
+ this._identity = _identity;
+ this.isRefreshing = isRefreshing;
+ this.accessed = accessed;
+ }
+ static {
+ __name(this, "S3ExpressIdentityCacheEntry");
+ }
+ get identity() {
+ this.accessed = Date.now();
+ return this._identity;
+ }
+};
+
+// src/s3-express/classes/S3ExpressIdentityProviderImpl.ts
+var S3ExpressIdentityProviderImpl = class _S3ExpressIdentityProviderImpl {
+ constructor(createSessionFn, cache = new S3ExpressIdentityCache()) {
+ this.createSessionFn = createSessionFn;
+ this.cache = cache;
+ }
+ static {
+ __name(this, "S3ExpressIdentityProviderImpl");
+ }
+ static REFRESH_WINDOW_MS = 6e4;
+ async getS3ExpressIdentity(awsIdentity, identityProperties) {
+ const key = identityProperties.Bucket;
+ const { cache } = this;
+ const entry = cache.get(key);
+ if (entry) {
+ return entry.identity.then((identity) => {
+ const isExpired = (identity.expiration?.getTime() ?? 0) < Date.now();
+ if (isExpired) {
+ return cache.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity;
+ }
+ const isExpiringSoon = (identity.expiration?.getTime() ?? 0) < Date.now() + _S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS;
+ if (isExpiringSoon && !entry.isRefreshing) {
+ entry.isRefreshing = true;
+ this.getIdentity(key).then((id) => {
+ cache.set(key, new S3ExpressIdentityCacheEntry(Promise.resolve(id)));
+ });
+ }
+ return identity;
+ });
+ }
+ return cache.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity;
+ }
+ async getIdentity(key) {
+ await this.cache.purgeExpired().catch((error) => {
+ console.warn("Error while clearing expired entries in S3ExpressIdentityCache: \n" + error);
+ });
+ const session = await this.createSessionFn(key);
+ if (!session.Credentials?.AccessKeyId || !session.Credentials?.SecretAccessKey) {
+ throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");
+ }
+ const identity = {
+ accessKeyId: session.Credentials.AccessKeyId,
+ secretAccessKey: session.Credentials.SecretAccessKey,
+ sessionToken: session.Credentials.SessionToken,
+ expiration: session.Credentials.Expiration ? new Date(session.Credentials.Expiration) : void 0
+ };
+ return identity;
+ }
+};
+
+// src/s3-express/classes/SignatureV4S3Express.ts
+var import_signature_v4 = __nccwpck_require__(11528);
+
+// src/s3-express/constants.ts
+var import_util_config_provider = __nccwpck_require__(83375);
+var S3_EXPRESS_BUCKET_TYPE = "Directory";
+var S3_EXPRESS_BACKEND = "S3Express";
+var S3_EXPRESS_AUTH_SCHEME = "sigv4-s3express";
+var SESSION_TOKEN_QUERY_PARAM = "X-Amz-S3session-Token";
+var SESSION_TOKEN_HEADER = SESSION_TOKEN_QUERY_PARAM.toLowerCase();
+var NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME = "AWS_S3_DISABLE_EXPRESS_SESSION_AUTH";
+var NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME = "s3_disable_express_session_auth";
+var NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS = {
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => (0, import_util_config_provider.booleanSelector)(env, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
+ configFileSelector: /* @__PURE__ */ __name((profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
+ default: false
+};
+
+// src/s3-express/classes/SignatureV4S3Express.ts
+var SignatureV4S3Express = class extends import_signature_v4.SignatureV4 {
+ static {
+ __name(this, "SignatureV4S3Express");
+ }
+ /**
+ * Signs with alternate provided credentials instead of those provided in the
+ * constructor.
+ *
+ * Additionally omits the credential sessionToken and assigns it to the
+ * alternate header field for S3 Express.
+ */
+ async signWithCredentials(requestToSign, credentials, options) {
+ const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials);
+ requestToSign.headers[SESSION_TOKEN_HEADER] = credentials.sessionToken;
+ const privateAccess = this;
+ setSingleOverride(privateAccess, credentialsWithoutSessionToken);
+ return privateAccess.signRequest(requestToSign, options ?? {});
+ }
+ /**
+ * Similar to {@link SignatureV4S3Express#signWithCredentials} but for presigning.
+ */
+ async presignWithCredentials(requestToSign, credentials, options) {
+ const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials);
+ delete requestToSign.headers[SESSION_TOKEN_HEADER];
+ requestToSign.headers[SESSION_TOKEN_QUERY_PARAM] = credentials.sessionToken;
+ requestToSign.query = requestToSign.query ?? {};
+ requestToSign.query[SESSION_TOKEN_QUERY_PARAM] = credentials.sessionToken;
+ const privateAccess = this;
+ setSingleOverride(privateAccess, credentialsWithoutSessionToken);
+ return this.presign(requestToSign, options);
+ }
+};
+function getCredentialsWithoutSessionToken(credentials) {
+ const credentialsWithoutSessionToken = {
+ accessKeyId: credentials.accessKeyId,
+ secretAccessKey: credentials.secretAccessKey,
+ expiration: credentials.expiration
+ };
+ return credentialsWithoutSessionToken;
+}
+__name(getCredentialsWithoutSessionToken, "getCredentialsWithoutSessionToken");
+function setSingleOverride(privateAccess, credentialsWithoutSessionToken) {
+ const id = setTimeout(() => {
+ throw new Error("SignatureV4S3Express credential override was created but not called.");
+ }, 10);
+ const currentCredentialProvider = privateAccess.credentialProvider;
+ const overrideCredentialsProviderOnce = /* @__PURE__ */ __name(() => {
+ clearTimeout(id);
+ privateAccess.credentialProvider = currentCredentialProvider;
+ return Promise.resolve(credentialsWithoutSessionToken);
+ }, "overrideCredentialsProviderOnce");
+ privateAccess.credentialProvider = overrideCredentialsProviderOnce;
+}
+__name(setSingleOverride, "setSingleOverride");
+
+// src/s3-express/functions/s3ExpressMiddleware.ts
+var import_core = __nccwpck_require__(59963);
+
+var s3ExpressMiddleware = /* @__PURE__ */ __name((options) => {
+ return (next, context) => async (args) => {
+ if (context.endpointV2) {
+ const endpoint = context.endpointV2;
+ const isS3ExpressAuth = endpoint.properties?.authSchemes?.[0]?.name === S3_EXPRESS_AUTH_SCHEME;
+ const isS3ExpressBucket = endpoint.properties?.backend === S3_EXPRESS_BACKEND || endpoint.properties?.bucketType === S3_EXPRESS_BUCKET_TYPE;
+ if (isS3ExpressBucket) {
+ (0, import_core.setFeature)(context, "S3_EXPRESS_BUCKET", "J");
+ context.isS3ExpressBucket = true;
+ }
+ if (isS3ExpressAuth) {
+ const requestBucket = args.input.Bucket;
+ if (requestBucket) {
+ const s3ExpressIdentity = await options.s3ExpressIdentityProvider.getS3ExpressIdentity(
+ await options.credentials(),
+ {
+ Bucket: requestBucket
+ }
+ );
+ context.s3ExpressIdentity = s3ExpressIdentity;
+ if (import_protocol_http.HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) {
+ args.request.headers[SESSION_TOKEN_HEADER] = s3ExpressIdentity.sessionToken;
+ }
+ }
+ }
+ }
+ return next(args);
+ };
+}, "s3ExpressMiddleware");
+var s3ExpressMiddlewareOptions = {
+ name: "s3ExpressMiddleware",
+ step: "build",
+ tags: ["S3", "S3_EXPRESS"],
+ override: true
+};
+var getS3ExpressPlugin = /* @__PURE__ */ __name((options) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(s3ExpressMiddleware(options), s3ExpressMiddlewareOptions);
+ }, "applyToStack")
+}), "getS3ExpressPlugin");
+
+// src/s3-express/functions/s3ExpressHttpSigningMiddleware.ts
+var import_core2 = __nccwpck_require__(55829);
+
+var import_util_middleware = __nccwpck_require__(2390);
+
+// src/s3-express/functions/signS3Express.ts
+var signS3Express = /* @__PURE__ */ __name(async (s3ExpressIdentity, signingOptions, request, sigV4MultiRegionSigner) => {
+ const signedRequest = await sigV4MultiRegionSigner.signWithCredentials(request, s3ExpressIdentity, {});
+ if (signedRequest.headers["X-Amz-Security-Token"] || signedRequest.headers["x-amz-security-token"]) {
+ throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");
+ }
+ return signedRequest;
+}, "signS3Express");
+
+// src/s3-express/functions/s3ExpressHttpSigningMiddleware.ts
+var defaultErrorHandler = /* @__PURE__ */ __name((signingProperties) => (error) => {
+ throw error;
+}, "defaultErrorHandler");
+var defaultSuccessHandler = /* @__PURE__ */ __name((httpResponse, signingProperties) => {
+}, "defaultSuccessHandler");
+var s3ExpressHttpSigningMiddlewareOptions = import_core2.httpSigningMiddlewareOptions;
+var s3ExpressHttpSigningMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => {
+ if (!import_protocol_http.HttpRequest.isInstance(args.request)) {
+ return next(args);
+ }
+ const smithyContext = (0, import_util_middleware.getSmithyContext)(context);
+ const scheme = smithyContext.selectedHttpAuthScheme;
+ if (!scheme) {
+ throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
+ }
+ const {
+ httpAuthOption: { signingProperties = {} },
+ identity,
+ signer
+ } = scheme;
+ let request;
+ if (context.s3ExpressIdentity) {
+ request = await signS3Express(
+ context.s3ExpressIdentity,
+ signingProperties,
+ args.request,
+ await config.signer()
+ );
+ } else {
+ request = await signer.sign(args.request, identity, signingProperties);
+ }
+ const output = await next({
+ ...args,
+ request
+ }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));
+ (signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);
+ return output;
+}, "s3ExpressHttpSigningMiddleware");
+var getS3ExpressHttpSigningPlugin = /* @__PURE__ */ __name((config) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.addRelativeTo(
+ s3ExpressHttpSigningMiddleware(config),
+ import_core2.httpSigningMiddlewareOptions
+ );
+ }, "applyToStack")
+}), "getS3ExpressHttpSigningPlugin");
+
+// src/s3Configuration.ts
+var resolveS3Config = /* @__PURE__ */ __name((input, {
+ session
+}) => {
+ const [s3ClientProvider, CreateSessionCommandCtor] = session;
+ const {
+ forcePathStyle,
+ useAccelerateEndpoint,
+ disableMultiregionAccessPoints,
+ followRegionRedirects,
+ s3ExpressIdentityProvider,
+ bucketEndpoint
+ } = input;
+ return Object.assign(input, {
+ forcePathStyle: forcePathStyle ?? false,
+ useAccelerateEndpoint: useAccelerateEndpoint ?? false,
+ disableMultiregionAccessPoints: disableMultiregionAccessPoints ?? false,
+ followRegionRedirects: followRegionRedirects ?? false,
+ s3ExpressIdentityProvider: s3ExpressIdentityProvider ?? new S3ExpressIdentityProviderImpl(
+ async (key) => s3ClientProvider().send(
+ new CreateSessionCommandCtor({
+ Bucket: key
+ })
+ )
+ ),
+ bucketEndpoint: bucketEndpoint ?? false
+ });
+}, "resolveS3Config");
+
+// src/throw-200-exceptions.ts
+
+var import_util_stream = __nccwpck_require__(96607);
+var THROW_IF_EMPTY_BODY = {
+ CopyObjectCommand: true,
+ UploadPartCopyCommand: true,
+ CompleteMultipartUploadCommand: true
+};
+var MAX_BYTES_TO_INSPECT = 3e3;
+var throw200ExceptionsMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => {
+ const result = await next(args);
+ const { response } = result;
+ if (!import_protocol_http.HttpResponse.isInstance(response)) {
+ return result;
+ }
+ const { statusCode, body: sourceBody } = response;
+ if (statusCode < 200 || statusCode >= 300) {
+ return result;
+ }
+ const isSplittableStream = typeof sourceBody?.stream === "function" || typeof sourceBody?.pipe === "function" || typeof sourceBody?.tee === "function";
+ if (!isSplittableStream) {
+ return result;
+ }
+ let bodyCopy = sourceBody;
+ let body = sourceBody;
+ if (sourceBody && typeof sourceBody === "object" && !(sourceBody instanceof Uint8Array)) {
+ [bodyCopy, body] = await (0, import_util_stream.splitStream)(sourceBody);
+ }
+ response.body = body;
+ const bodyBytes = await collectBody(bodyCopy, {
+ streamCollector: /* @__PURE__ */ __name(async (stream) => {
+ return (0, import_util_stream.headStream)(stream, MAX_BYTES_TO_INSPECT);
+ }, "streamCollector")
+ });
+ if (typeof bodyCopy?.destroy === "function") {
+ bodyCopy.destroy();
+ }
+ const bodyStringTail = config.utf8Encoder(bodyBytes.subarray(bodyBytes.length - 16));
+ if (bodyBytes.length === 0 && THROW_IF_EMPTY_BODY[context.commandName]) {
+ const err = new Error("S3 aborted request");
+ err.name = "InternalError";
+ throw err;
+ }
+ if (bodyStringTail && bodyStringTail.endsWith("")) {
+ response.statusCode = 400;
+ }
+ return result;
+}, "throw200ExceptionsMiddleware");
+var collectBody = /* @__PURE__ */ __name((streamBody = new Uint8Array(), context) => {
+ if (streamBody instanceof Uint8Array) {
+ return Promise.resolve(streamBody);
+ }
+ return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
+}, "collectBody");
+var throw200ExceptionsMiddlewareOptions = {
+ relation: "after",
+ toMiddleware: "deserializerMiddleware",
+ tags: ["THROW_200_EXCEPTIONS", "S3"],
+ name: "throw200ExceptionsMiddleware",
+ override: true
+};
+var getThrow200ExceptionsPlugin = /* @__PURE__ */ __name((config) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.addRelativeTo(throw200ExceptionsMiddleware(config), throw200ExceptionsMiddlewareOptions);
+ }, "applyToStack")
+}), "getThrow200ExceptionsPlugin");
+
+// src/validate-bucket-name.ts
+var import_util_arn_parser = __nccwpck_require__(85487);
+
+// src/bucket-endpoint-middleware.ts
+function bucketEndpointMiddleware(options) {
+ return (next, context) => async (args) => {
+ if (options.bucketEndpoint) {
+ const endpoint = context.endpointV2;
+ if (endpoint) {
+ const bucket = args.input.Bucket;
+ if (typeof bucket === "string") {
+ try {
+ const bucketEndpointUrl = new URL(bucket);
+ context.endpointV2 = {
+ ...endpoint,
+ url: bucketEndpointUrl
+ };
+ } catch (e) {
+ const warning = `@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${bucket} could not be parsed as URL.`;
+ if (context.logger?.constructor?.name === "NoOpLogger") {
+ console.warn(warning);
+ } else {
+ context.logger?.warn?.(warning);
+ }
+ throw e;
+ }
+ }
+ }
+ }
+ return next(args);
+ };
+}
+__name(bucketEndpointMiddleware, "bucketEndpointMiddleware");
+var bucketEndpointMiddlewareOptions = {
+ name: "bucketEndpointMiddleware",
+ override: true,
+ relation: "after",
+ toMiddleware: "endpointV2Middleware"
+};
+
+// src/validate-bucket-name.ts
+function validateBucketNameMiddleware({ bucketEndpoint }) {
+ return (next) => async (args) => {
+ const {
+ input: { Bucket }
+ } = args;
+ if (!bucketEndpoint && typeof Bucket === "string" && !(0, import_util_arn_parser.validate)(Bucket) && Bucket.indexOf("/") >= 0) {
+ const err = new Error(`Bucket name shouldn't contain '/', received '${Bucket}'`);
+ err.name = "InvalidBucketName";
+ throw err;
+ }
+ return next({ ...args });
+ };
+}
+__name(validateBucketNameMiddleware, "validateBucketNameMiddleware");
+var validateBucketNameMiddlewareOptions = {
+ step: "initialize",
+ tags: ["VALIDATE_BUCKET_NAME"],
+ name: "validateBucketNameMiddleware",
+ override: true
+};
+var getValidateBucketNamePlugin = /* @__PURE__ */ __name((options) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(validateBucketNameMiddleware(options), validateBucketNameMiddlewareOptions);
+ clientStack.addRelativeTo(bucketEndpointMiddleware(options), bucketEndpointMiddlewareOptions);
+ }, "applyToStack")
+}), "getValidateBucketNamePlugin");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 49718:
+/***/ ((module) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ getSsecPlugin: () => getSsecPlugin,
+ isValidBase64EncodedSSECustomerKey: () => isValidBase64EncodedSSECustomerKey,
+ ssecMiddleware: () => ssecMiddleware,
+ ssecMiddlewareOptions: () => ssecMiddlewareOptions
+});
+module.exports = __toCommonJS(index_exports);
+function ssecMiddleware(options) {
+ return (next) => async (args) => {
+ const input = { ...args.input };
+ const properties = [
+ {
+ target: "SSECustomerKey",
+ hash: "SSECustomerKeyMD5"
+ },
+ {
+ target: "CopySourceSSECustomerKey",
+ hash: "CopySourceSSECustomerKeyMD5"
+ }
+ ];
+ for (const prop of properties) {
+ const value = input[prop.target];
+ if (value) {
+ let valueForHash;
+ if (typeof value === "string") {
+ if (isValidBase64EncodedSSECustomerKey(value, options)) {
+ valueForHash = options.base64Decoder(value);
+ } else {
+ valueForHash = options.utf8Decoder(value);
+ input[prop.target] = options.base64Encoder(valueForHash);
+ }
+ } else {
+ valueForHash = ArrayBuffer.isView(value) ? new Uint8Array(value.buffer, value.byteOffset, value.byteLength) : new Uint8Array(value);
+ input[prop.target] = options.base64Encoder(valueForHash);
+ }
+ const hash = new options.md5();
+ hash.update(valueForHash);
+ input[prop.hash] = options.base64Encoder(await hash.digest());
+ }
+ }
+ return next({
+ ...args,
+ input
+ });
+ };
+}
+__name(ssecMiddleware, "ssecMiddleware");
+var ssecMiddlewareOptions = {
+ name: "ssecMiddleware",
+ step: "initialize",
+ tags: ["SSE"],
+ override: true
+};
+var getSsecPlugin = /* @__PURE__ */ __name((config) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(ssecMiddleware(config), ssecMiddlewareOptions);
+ }, "applyToStack")
+}), "getSsecPlugin");
+function isValidBase64EncodedSSECustomerKey(str, options) {
+ const base64Regex = /^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
+ if (!base64Regex.test(str)) return false;
+ try {
+ const decodedBytes = options.base64Decoder(str);
+ return decodedBytes.length === 32;
+ } catch {
+ return false;
+ }
+}
+__name(isValidBase64EncodedSSECustomerKey, "isValidBase64EncodedSSECustomerKey");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 64688:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ DEFAULT_UA_APP_ID: () => DEFAULT_UA_APP_ID,
+ getUserAgentMiddlewareOptions: () => getUserAgentMiddlewareOptions,
+ getUserAgentPlugin: () => getUserAgentPlugin,
+ resolveUserAgentConfig: () => resolveUserAgentConfig,
+ userAgentMiddleware: () => userAgentMiddleware
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/configurations.ts
+var import_core = __nccwpck_require__(55829);
+var DEFAULT_UA_APP_ID = void 0;
+function isValidUserAgentAppId(appId) {
+ if (appId === void 0) {
+ return true;
+ }
+ return typeof appId === "string" && appId.length <= 50;
+}
+__name(isValidUserAgentAppId, "isValidUserAgentAppId");
+function resolveUserAgentConfig(input) {
+ const normalizedAppIdProvider = (0, import_core.normalizeProvider)(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
+ const { customUserAgent } = input;
+ return Object.assign(input, {
+ customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
+ userAgentAppId: /* @__PURE__ */ __name(async () => {
+ const appId = await normalizedAppIdProvider();
+ if (!isValidUserAgentAppId(appId)) {
+ const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger;
+ if (typeof appId !== "string") {
+ logger?.warn("userAgentAppId must be a string or undefined.");
+ } else if (appId.length > 50) {
+ logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");
+ }
+ }
+ return appId;
+ }, "userAgentAppId")
+ });
+}
+__name(resolveUserAgentConfig, "resolveUserAgentConfig");
+
+// src/user-agent-middleware.ts
+var import_util_endpoints = __nccwpck_require__(13350);
+var import_protocol_http = __nccwpck_require__(64418);
+
+// src/check-features.ts
+var import_core2 = __nccwpck_require__(59963);
+var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
+async function checkFeatures(context, config, args) {
+ const request = args.request;
+ if (request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") {
+ (0, import_core2.setFeature)(context, "PROTOCOL_RPC_V2_CBOR", "M");
+ }
+ if (typeof config.retryStrategy === "function") {
+ const retryStrategy = await config.retryStrategy();
+ if (typeof retryStrategy.acquireInitialRetryToken === "function") {
+ if (retryStrategy.constructor?.name?.includes("Adaptive")) {
+ (0, import_core2.setFeature)(context, "RETRY_MODE_ADAPTIVE", "F");
+ } else {
+ (0, import_core2.setFeature)(context, "RETRY_MODE_STANDARD", "E");
+ }
+ } else {
+ (0, import_core2.setFeature)(context, "RETRY_MODE_LEGACY", "D");
+ }
+ }
+ if (typeof config.accountIdEndpointMode === "function") {
+ const endpointV2 = context.endpointV2;
+ if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) {
+ (0, import_core2.setFeature)(context, "ACCOUNT_ID_ENDPOINT", "O");
+ }
+ switch (await config.accountIdEndpointMode?.()) {
+ case "disabled":
+ (0, import_core2.setFeature)(context, "ACCOUNT_ID_MODE_DISABLED", "Q");
+ break;
+ case "preferred":
+ (0, import_core2.setFeature)(context, "ACCOUNT_ID_MODE_PREFERRED", "P");
+ break;
+ case "required":
+ (0, import_core2.setFeature)(context, "ACCOUNT_ID_MODE_REQUIRED", "R");
+ break;
+ }
+ }
+ const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity;
+ if (identity?.$source) {
+ const credentials = identity;
+ if (credentials.accountId) {
+ (0, import_core2.setFeature)(context, "RESOLVED_ACCOUNT_ID", "T");
+ }
+ for (const [key, value] of Object.entries(credentials.$source ?? {})) {
+ (0, import_core2.setFeature)(context, key, value);
+ }
+ }
+}
+__name(checkFeatures, "checkFeatures");
+
+// src/constants.ts
+var USER_AGENT = "user-agent";
+var X_AMZ_USER_AGENT = "x-amz-user-agent";
+var SPACE = " ";
+var UA_NAME_SEPARATOR = "/";
+var UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;
+var UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;
+var UA_ESCAPE_CHAR = "-";
+
+// src/encode-features.ts
+var BYTE_LIMIT = 1024;
+function encodeFeatures(features) {
+ let buffer = "";
+ for (const key in features) {
+ const val = features[key];
+ if (buffer.length + val.length + 1 <= BYTE_LIMIT) {
+ if (buffer.length) {
+ buffer += "," + val;
+ } else {
+ buffer += val;
+ }
+ continue;
+ }
+ break;
+ }
+ return buffer;
+}
+__name(encodeFeatures, "encodeFeatures");
+
+// src/user-agent-middleware.ts
+var userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => {
+ const { request } = args;
+ if (!import_protocol_http.HttpRequest.isInstance(request)) {
+ return next(args);
+ }
+ const { headers } = request;
+ const userAgent = context?.userAgent?.map(escapeUserAgent) || [];
+ const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
+ await checkFeatures(context, options, args);
+ const awsContext = context;
+ defaultUserAgent.push(
+ `m/${encodeFeatures(
+ Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features)
+ )}`
+ );
+ const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || [];
+ const appId = await options.userAgentAppId();
+ if (appId) {
+ defaultUserAgent.push(escapeUserAgent([`app/${appId}`]));
+ }
+ const prefix = (0, import_util_endpoints.getUserAgentPrefix)();
+ const sdkUserAgentValue = (prefix ? [prefix] : []).concat([...defaultUserAgent, ...userAgent, ...customUserAgent]).join(SPACE);
+ const normalUAValue = [
+ ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")),
+ ...customUserAgent
+ ].join(SPACE);
+ if (options.runtime !== "browser") {
+ if (normalUAValue) {
+ headers[X_AMZ_USER_AGENT] = headers[X_AMZ_USER_AGENT] ? `${headers[USER_AGENT]} ${normalUAValue}` : normalUAValue;
+ }
+ headers[USER_AGENT] = sdkUserAgentValue;
+ } else {
+ headers[X_AMZ_USER_AGENT] = sdkUserAgentValue;
+ }
+ return next({
+ ...args,
+ request
+ });
+}, "userAgentMiddleware");
+var escapeUserAgent = /* @__PURE__ */ __name((userAgentPair) => {
+ const name = userAgentPair[0].split(UA_NAME_SEPARATOR).map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR);
+ const version = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR);
+ const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR);
+ const prefix = name.substring(0, prefixSeparatorIndex);
+ let uaName = name.substring(prefixSeparatorIndex + 1);
+ if (prefix === "api") {
+ uaName = uaName.toLowerCase();
+ }
+ return [prefix, uaName, version].filter((item) => item && item.length > 0).reduce((acc, item, index) => {
+ switch (index) {
+ case 0:
+ return item;
+ case 1:
+ return `${acc}/${item}`;
+ default:
+ return `${acc}#${item}`;
+ }
+ }, "");
+}, "escapeUserAgent");
+var getUserAgentMiddlewareOptions = {
+ name: "getUserAgentMiddleware",
+ step: "build",
+ priority: "low",
+ tags: ["SET_USER_AGENT", "USER_AGENT"],
+ override: true
+};
+var getUserAgentPlugin = /* @__PURE__ */ __name((config) => ({
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
+ clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions);
+ }, "applyToStack")
+}), "getUserAgentPlugin");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 59414:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
+const core_1 = __nccwpck_require__(59963);
+const util_middleware_1 = __nccwpck_require__(2390);
+const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
+ return {
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
+ (() => {
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
+ })(),
+ };
+};
+exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
+function createAwsAuthSigv4HttpAuthOption(authParameters) {
+ return {
+ schemeId: "aws.auth#sigv4",
+ signingProperties: {
+ name: "sso-oauth",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config, context) => ({
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+function createSmithyApiNoAuthHttpAuthOption(authParameters) {
+ return {
+ schemeId: "smithy.api#noAuth",
+ };
+}
+const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
+ const options = [];
+ switch (authParameters.operation) {
+ case "CreateToken": {
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
+ break;
+ }
+ default: {
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
+ }
+ }
+ return options;
+};
+exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
+const resolveHttpAuthSchemeConfig = (config) => {
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
+ return Object.assign(config_0, {});
+};
+exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
+
+
+/***/ }),
+
+/***/ 60005:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defaultEndpointResolver = void 0;
+const util_endpoints_1 = __nccwpck_require__(13350);
+const util_endpoints_2 = __nccwpck_require__(45473);
+const ruleset_1 = __nccwpck_require__(90932);
+const cache = new util_endpoints_2.EndpointCache({
+ size: 50,
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
+});
+const defaultEndpointResolver = (endpointParams, context = {}) => {
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
+ endpointParams: endpointParams,
+ logger: context.logger,
+ }));
+};
+exports.defaultEndpointResolver = defaultEndpointResolver;
+util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
+
+
+/***/ }),
+
+/***/ 90932:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ruleSet = void 0;
+const u = "required", v = "fn", w = "argv", x = "ref";
+const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
+const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
+exports.ruleSet = _data;
+
+
+/***/ }),
+
+/***/ 27334:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/submodules/sso-oidc/index.ts
+var index_exports = {};
+__export(index_exports, {
+ $Command: () => import_smithy_client6.Command,
+ AccessDeniedException: () => AccessDeniedException,
+ AuthorizationPendingException: () => AuthorizationPendingException,
+ CreateTokenCommand: () => CreateTokenCommand,
+ CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog,
+ CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog,
+ ExpiredTokenException: () => ExpiredTokenException,
+ InternalServerException: () => InternalServerException,
+ InvalidClientException: () => InvalidClientException,
+ InvalidGrantException: () => InvalidGrantException,
+ InvalidRequestException: () => InvalidRequestException,
+ InvalidScopeException: () => InvalidScopeException,
+ SSOOIDC: () => SSOOIDC,
+ SSOOIDCClient: () => SSOOIDCClient,
+ SSOOIDCServiceException: () => SSOOIDCServiceException,
+ SlowDownException: () => SlowDownException,
+ UnauthorizedClientException: () => UnauthorizedClientException,
+ UnsupportedGrantTypeException: () => UnsupportedGrantTypeException,
+ __Client: () => import_smithy_client2.Client
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/submodules/sso-oidc/SSOOIDCClient.ts
+var import_middleware_host_header = __nccwpck_require__(22545);
+var import_middleware_logger = __nccwpck_require__(20014);
+var import_middleware_recursion_detection = __nccwpck_require__(85525);
+var import_middleware_user_agent = __nccwpck_require__(64688);
+var import_config_resolver = __nccwpck_require__(53098);
+var import_core = __nccwpck_require__(55829);
+var import_middleware_content_length = __nccwpck_require__(82800);
+var import_middleware_endpoint = __nccwpck_require__(82918);
+var import_middleware_retry = __nccwpck_require__(96039);
+var import_smithy_client2 = __nccwpck_require__(63570);
+var import_httpAuthSchemeProvider = __nccwpck_require__(59414);
+
+// src/submodules/sso-oidc/endpoint/EndpointParameters.ts
+var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
+ return Object.assign(options, {
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
+ defaultSigningName: "sso-oauth"
+ });
+}, "resolveClientEndpointParameters");
+var commonParams = {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
+};
+
+// src/submodules/sso-oidc/SSOOIDCClient.ts
+var import_runtimeConfig = __nccwpck_require__(77277);
+
+// src/submodules/sso-oidc/runtimeExtensions.ts
+var import_region_config_resolver = __nccwpck_require__(18156);
+var import_protocol_http = __nccwpck_require__(64418);
+var import_smithy_client = __nccwpck_require__(63570);
+
+// src/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.ts
+var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
+ let _credentials = runtimeConfig.credentials;
+ return {
+ setHttpAuthScheme(httpAuthScheme) {
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
+ if (index === -1) {
+ _httpAuthSchemes.push(httpAuthScheme);
+ } else {
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
+ }
+ },
+ httpAuthSchemes() {
+ return _httpAuthSchemes;
+ },
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
+ },
+ httpAuthSchemeProvider() {
+ return _httpAuthSchemeProvider;
+ },
+ setCredentials(credentials) {
+ _credentials = credentials;
+ },
+ credentials() {
+ return _credentials;
+ }
+ };
+}, "getHttpAuthExtensionConfiguration");
+var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
+ return {
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials()
+ };
+}, "resolveHttpAuthRuntimeConfig");
+
+// src/submodules/sso-oidc/runtimeExtensions.ts
+var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
+ const extensionConfiguration = Object.assign(
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
+ getHttpAuthExtensionConfiguration(runtimeConfig)
+ );
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
+ return Object.assign(
+ runtimeConfig,
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
+ );
+}, "resolveRuntimeExtensions");
+
+// src/submodules/sso-oidc/SSOOIDCClient.ts
+var SSOOIDCClient = class extends import_smithy_client2.Client {
+ static {
+ __name(this, "SSOOIDCClient");
+ }
+ /**
+ * The resolved configuration of SSOOIDCClient class. This is resolved and normalized from the {@link SSOOIDCClientConfig | constructor configuration interface}.
+ */
+ config;
+ constructor(...[configuration]) {
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
+ super(_config_0);
+ this.initConfig = _config_0;
+ const _config_1 = resolveClientEndpointParameters(_config_0);
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
+ this.config = _config_8;
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
+ this.middlewareStack.use(
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
+ "aws.auth#sigv4": config.credentials
+ }), "identityProviderConfigProvider")
+ })
+ );
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
+ }
+ /**
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
+ */
+ destroy() {
+ super.destroy();
+ }
+};
+
+// src/submodules/sso-oidc/SSOOIDC.ts
+var import_smithy_client7 = __nccwpck_require__(63570);
+
+// src/submodules/sso-oidc/commands/CreateTokenCommand.ts
+var import_middleware_endpoint2 = __nccwpck_require__(82918);
+var import_middleware_serde = __nccwpck_require__(81238);
+var import_smithy_client6 = __nccwpck_require__(63570);
+
+// src/submodules/sso-oidc/models/models_0.ts
+var import_smithy_client4 = __nccwpck_require__(63570);
+
+// src/submodules/sso-oidc/models/SSOOIDCServiceException.ts
+var import_smithy_client3 = __nccwpck_require__(63570);
+var SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smithy_client3.ServiceException {
+ static {
+ __name(this, "SSOOIDCServiceException");
+ }
+ /**
+ * @internal
+ */
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
+ }
+};
+
+// src/submodules/sso-oidc/models/models_0.ts
+var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
+ static {
+ __name(this, "AccessDeniedException");
+ }
+ name = "AccessDeniedException";
+ $fault = "client";
+ /**
+ * Single error code. For this exception the value will be access_denied.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "AccessDeniedException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {
+ static {
+ __name(this, "AuthorizationPendingException");
+ }
+ name = "AuthorizationPendingException";
+ $fault = "client";
+ /**
+ * Single error code. For this exception the value will be
+ * authorization_pending.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "AuthorizationPendingException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+var CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.clientSecret && { clientSecret: import_smithy_client4.SENSITIVE_STRING },
+ ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING },
+ ...obj.codeVerifier && { codeVerifier: import_smithy_client4.SENSITIVE_STRING }
+}), "CreateTokenRequestFilterSensitiveLog");
+var CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING },
+ ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING },
+ ...obj.idToken && { idToken: import_smithy_client4.SENSITIVE_STRING }
+}), "CreateTokenResponseFilterSensitiveLog");
+var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
+ static {
+ __name(this, "ExpiredTokenException");
+ }
+ name = "ExpiredTokenException";
+ $fault = "client";
+ /**
+ * Single error code. For this exception the value will be expired_token.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ExpiredTokenException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+var InternalServerException = class _InternalServerException extends SSOOIDCServiceException {
+ static {
+ __name(this, "InternalServerException");
+ }
+ name = "InternalServerException";
+ $fault = "server";
+ /**
+ * Single error code. For this exception the value will be server_error.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InternalServerException",
+ $fault: "server",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {
+ static {
+ __name(this, "InvalidClientException");
+ }
+ name = "InvalidClientException";
+ $fault = "client";
+ /**
+ * Single error code. For this exception the value will be
+ * invalid_client.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidClientException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidClientException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {
+ static {
+ __name(this, "InvalidGrantException");
+ }
+ name = "InvalidGrantException";
+ $fault = "client";
+ /**
+ * Single error code. For this exception the value will be invalid_grant.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidGrantException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidGrantException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
+ static {
+ __name(this, "InvalidRequestException");
+ }
+ name = "InvalidRequestException";
+ $fault = "client";
+ /**
+ * Single error code. For this exception the value will be
+ * invalid_request.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidRequestException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {
+ static {
+ __name(this, "InvalidScopeException");
+ }
+ name = "InvalidScopeException";
+ $fault = "client";
+ /**
+ * Single error code. For this exception the value will be invalid_scope.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidScopeException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidScopeException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+var SlowDownException = class _SlowDownException extends SSOOIDCServiceException {
+ static {
+ __name(this, "SlowDownException");
+ }
+ name = "SlowDownException";
+ $fault = "client";
+ /**
+ * Single error code. For this exception the value will be slow_down.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "SlowDownException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _SlowDownException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {
+ static {
+ __name(this, "UnauthorizedClientException");
+ }
+ name = "UnauthorizedClientException";
+ $fault = "client";
+ /**
+ * Single error code. For this exception the value will be
+ * unauthorized_client.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "UnauthorizedClientException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {
+ static {
+ __name(this, "UnsupportedGrantTypeException");
+ }
+ name = "UnsupportedGrantTypeException";
+ $fault = "client";
+ /**
+ * Single error code. For this exception the value will be
+ * unsupported_grant_type.
+ * @public
+ */
+ error;
+ /**
+ * Human-readable text providing additional information, used to assist the client developer
+ * in understanding the error that occurred.
+ * @public
+ */
+ error_description;
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "UnsupportedGrantTypeException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+};
+
+// src/submodules/sso-oidc/protocols/Aws_restJson1.ts
+var import_core2 = __nccwpck_require__(59963);
+var import_core3 = __nccwpck_require__(55829);
+var import_smithy_client5 = __nccwpck_require__(63570);
+var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const b = (0, import_core3.requestBuilder)(input, context);
+ const headers = {
+ "content-type": "application/json"
+ };
+ b.bp("/token");
+ let body;
+ body = JSON.stringify(
+ (0, import_smithy_client5.take)(input, {
+ clientId: [],
+ clientSecret: [],
+ code: [],
+ codeVerifier: [],
+ deviceCode: [],
+ grantType: [],
+ redirectUri: [],
+ refreshToken: [],
+ scope: /* @__PURE__ */ __name((_) => (0, import_smithy_client5._json)(_), "scope")
+ })
+ );
+ b.m("POST").h(headers).b(body);
+ return b.build();
+}, "se_CreateTokenCommand");
+var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const contents = (0, import_smithy_client5.map)({
+ $metadata: deserializeMetadata(output)
+ });
+ const data = (0, import_smithy_client5.expectNonNull)((0, import_smithy_client5.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
+ const doc = (0, import_smithy_client5.take)(data, {
+ accessToken: import_smithy_client5.expectString,
+ expiresIn: import_smithy_client5.expectInt32,
+ idToken: import_smithy_client5.expectString,
+ refreshToken: import_smithy_client5.expectString,
+ tokenType: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ return contents;
+}, "de_CreateTokenCommand");
+var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
+ };
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
+ switch (errorCode) {
+ case "AccessDeniedException":
+ case "com.amazonaws.ssooidc#AccessDeniedException":
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
+ case "AuthorizationPendingException":
+ case "com.amazonaws.ssooidc#AuthorizationPendingException":
+ throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
+ case "ExpiredTokenException":
+ case "com.amazonaws.ssooidc#ExpiredTokenException":
+ throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
+ case "InternalServerException":
+ case "com.amazonaws.ssooidc#InternalServerException":
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
+ case "InvalidClientException":
+ case "com.amazonaws.ssooidc#InvalidClientException":
+ throw await de_InvalidClientExceptionRes(parsedOutput, context);
+ case "InvalidGrantException":
+ case "com.amazonaws.ssooidc#InvalidGrantException":
+ throw await de_InvalidGrantExceptionRes(parsedOutput, context);
+ case "InvalidRequestException":
+ case "com.amazonaws.ssooidc#InvalidRequestException":
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
+ case "InvalidScopeException":
+ case "com.amazonaws.ssooidc#InvalidScopeException":
+ throw await de_InvalidScopeExceptionRes(parsedOutput, context);
+ case "SlowDownException":
+ case "com.amazonaws.ssooidc#SlowDownException":
+ throw await de_SlowDownExceptionRes(parsedOutput, context);
+ case "UnauthorizedClientException":
+ case "com.amazonaws.ssooidc#UnauthorizedClientException":
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
+ case "UnsupportedGrantTypeException":
+ case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
+ throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody,
+ errorCode
+ });
+ }
+}, "de_CommandError");
+var throwDefaultError = (0, import_smithy_client5.withBaseException)(SSOOIDCServiceException);
+var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new AccessDeniedException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_AccessDeniedExceptionRes");
+var de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new AuthorizationPendingException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_AuthorizationPendingExceptionRes");
+var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new ExpiredTokenException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_ExpiredTokenExceptionRes");
+var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new InternalServerException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_InternalServerExceptionRes");
+var de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new InvalidClientException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_InvalidClientExceptionRes");
+var de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new InvalidGrantException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_InvalidGrantExceptionRes");
+var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new InvalidRequestException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_InvalidRequestExceptionRes");
+var de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new InvalidScopeException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_InvalidScopeExceptionRes");
+var de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new SlowDownException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_SlowDownExceptionRes");
+var de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new UnauthorizedClientException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_UnauthorizedClientExceptionRes");
+var de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const contents = (0, import_smithy_client5.map)({});
+ const data = parsedOutput.body;
+ const doc = (0, import_smithy_client5.take)(data, {
+ error: import_smithy_client5.expectString,
+ error_description: import_smithy_client5.expectString
+ });
+ Object.assign(contents, doc);
+ const exception = new UnsupportedGrantTypeException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...contents
+ });
+ return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);
+}, "de_UnsupportedGrantTypeExceptionRes");
+var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
+ httpStatusCode: output.statusCode,
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
+ extendedRequestId: output.headers["x-amz-id-2"],
+ cfId: output.headers["x-amz-cf-id"]
+}), "deserializeMetadata");
+
+// src/submodules/sso-oidc/commands/CreateTokenCommand.ts
+var CreateTokenCommand = class extends import_smithy_client6.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint2.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
+ static {
+ __name(this, "CreateTokenCommand");
+ }
+};
+
+// src/submodules/sso-oidc/SSOOIDC.ts
+var commands = {
+ CreateTokenCommand
+};
+var SSOOIDC = class extends SSOOIDCClient {
+ static {
+ __name(this, "SSOOIDC");
+ }
+};
+(0, import_smithy_client7.createAggregatedClient)(commands, SSOOIDC);
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 77277:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const tslib_1 = __nccwpck_require__(4351);
+const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(88842));
+const core_1 = __nccwpck_require__(59963);
+const util_user_agent_node_1 = __nccwpck_require__(98095);
+const config_resolver_1 = __nccwpck_require__(53098);
+const hash_node_1 = __nccwpck_require__(3081);
+const middleware_retry_1 = __nccwpck_require__(96039);
+const node_config_provider_1 = __nccwpck_require__(33461);
+const node_http_handler_1 = __nccwpck_require__(20258);
+const util_body_length_node_1 = __nccwpck_require__(68075);
+const util_retry_1 = __nccwpck_require__(84902);
+const runtimeConfig_shared_1 = __nccwpck_require__(49513);
+const smithy_client_1 = __nccwpck_require__(63570);
+const util_defaults_mode_node_1 = __nccwpck_require__(72429);
+const smithy_client_2 = __nccwpck_require__(63570);
+const getRuntimeConfig = (config) => {
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
+ const profileConfig = { profile: config?.profile };
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "node",
+ defaultsMode,
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
+ region: config?.region ??
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
+ retryMode: config?.retryMode ??
+ (0, node_config_provider_1.loadConfig)({
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
+ }, config),
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 49513:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const core_1 = __nccwpck_require__(59963);
+const core_2 = __nccwpck_require__(55829);
+const smithy_client_1 = __nccwpck_require__(63570);
+const url_parser_1 = __nccwpck_require__(14681);
+const util_base64_1 = __nccwpck_require__(75600);
+const util_utf8_1 = __nccwpck_require__(41895);
+const httpAuthSchemeProvider_1 = __nccwpck_require__(59414);
+const endpointResolver_1 = __nccwpck_require__(60005);
+const getRuntimeConfig = (config) => {
+ return {
+ apiVersion: "2019-06-10",
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
+ disableHostPrefix: config?.disableHostPrefix ?? false,
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
+ extensions: config?.extensions ?? [],
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
+ signer: new core_1.AwsSdkSigV4Signer(),
+ },
+ {
+ schemeId: "smithy.api#noAuth",
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
+ signer: new core_2.NoAuthSigner(),
+ },
+ ],
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
+ serviceId: config?.serviceId ?? "SSO OIDC",
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 68974:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.STSClient = exports.__Client = void 0;
+const middleware_host_header_1 = __nccwpck_require__(22545);
+const middleware_logger_1 = __nccwpck_require__(20014);
+const middleware_recursion_detection_1 = __nccwpck_require__(85525);
+const middleware_user_agent_1 = __nccwpck_require__(64688);
+const config_resolver_1 = __nccwpck_require__(53098);
+const core_1 = __nccwpck_require__(55829);
+const middleware_content_length_1 = __nccwpck_require__(82800);
+const middleware_endpoint_1 = __nccwpck_require__(82918);
+const middleware_retry_1 = __nccwpck_require__(96039);
+const smithy_client_1 = __nccwpck_require__(63570);
+Object.defineProperty(exports, "__Client", ({ enumerable: true, get: function () { return smithy_client_1.Client; } }));
+const httpAuthSchemeProvider_1 = __nccwpck_require__(48013);
+const EndpointParameters_1 = __nccwpck_require__(41765);
+const runtimeConfig_1 = __nccwpck_require__(1798);
+const runtimeExtensions_1 = __nccwpck_require__(30669);
+class STSClient extends smithy_client_1.Client {
+ config;
+ constructor(...[configuration]) {
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
+ super(_config_0);
+ this.initConfig = _config_0;
+ const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
+ const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
+ const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
+ const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
+ const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
+ const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
+ const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
+ const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
+ this.config = _config_8;
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
+ this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
+ identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
+ "aws.auth#sigv4": config.credentials,
+ }),
+ }));
+ this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
+ }
+ destroy() {
+ super.destroy();
+ }
+}
+exports.STSClient = STSClient;
+
+
+/***/ }),
+
+/***/ 14935:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
+const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
+ let _credentials = runtimeConfig.credentials;
+ return {
+ setHttpAuthScheme(httpAuthScheme) {
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
+ if (index === -1) {
+ _httpAuthSchemes.push(httpAuthScheme);
+ }
+ else {
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
+ }
+ },
+ httpAuthSchemes() {
+ return _httpAuthSchemes;
+ },
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
+ },
+ httpAuthSchemeProvider() {
+ return _httpAuthSchemeProvider;
+ },
+ setCredentials(credentials) {
+ _credentials = credentials;
+ },
+ credentials() {
+ return _credentials;
+ },
+ };
+};
+exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
+const resolveHttpAuthRuntimeConfig = (config) => {
+ return {
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials(),
+ };
+};
+exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 48013:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;
+const core_1 = __nccwpck_require__(59963);
+const util_middleware_1 = __nccwpck_require__(2390);
+const STSClient_1 = __nccwpck_require__(68974);
+const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
+ return {
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
+ (() => {
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
+ })(),
+ };
+};
+exports.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider;
+function createAwsAuthSigv4HttpAuthOption(authParameters) {
+ return {
+ schemeId: "aws.auth#sigv4",
+ signingProperties: {
+ name: "sts",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config, context) => ({
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+function createSmithyApiNoAuthHttpAuthOption(authParameters) {
+ return {
+ schemeId: "smithy.api#noAuth",
+ };
+}
+const defaultSTSHttpAuthSchemeProvider = (authParameters) => {
+ const options = [];
+ switch (authParameters.operation) {
+ case "AssumeRoleWithWebIdentity": {
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
+ break;
+ }
+ default: {
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
+ }
+ }
+ return options;
+};
+exports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;
+const resolveStsAuthConfig = (input) => Object.assign(input, {
+ stsClientCtor: STSClient_1.STSClient,
+});
+exports.resolveStsAuthConfig = resolveStsAuthConfig;
+const resolveHttpAuthSchemeConfig = (config) => {
+ const config_0 = (0, exports.resolveStsAuthConfig)(config);
+ const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
+ return Object.assign(config_1, {});
+};
+exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
+
+
+/***/ }),
+
+/***/ 41765:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.commonParams = exports.resolveClientEndpointParameters = void 0;
+const resolveClientEndpointParameters = (options) => {
+ return Object.assign(options, {
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
+ useGlobalEndpoint: options.useGlobalEndpoint ?? false,
+ defaultSigningName: "sts",
+ });
+};
+exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
+exports.commonParams = {
+ UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
+};
+
+
+/***/ }),
+
+/***/ 47561:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defaultEndpointResolver = void 0;
+const util_endpoints_1 = __nccwpck_require__(13350);
+const util_endpoints_2 = __nccwpck_require__(45473);
+const ruleset_1 = __nccwpck_require__(39127);
+const cache = new util_endpoints_2.EndpointCache({
+ size: 50,
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"],
+});
+const defaultEndpointResolver = (endpointParams, context = {}) => {
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
+ endpointParams: endpointParams,
+ logger: context.logger,
+ }));
+};
+exports.defaultEndpointResolver = defaultEndpointResolver;
+util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
+
+
+/***/ }),
+
+/***/ 39127:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ruleSet = void 0;
+const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
+const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "String" }, n = { [F]: true, "default": false, [G]: "Boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
+const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
+exports.ruleSet = _data;
+
+
+/***/ }),
+
+/***/ 2273:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/submodules/sts/index.ts
+var index_exports = {};
+__export(index_exports, {
+ AssumeRoleCommand: () => AssumeRoleCommand,
+ AssumeRoleResponseFilterSensitiveLog: () => AssumeRoleResponseFilterSensitiveLog,
+ AssumeRoleWithWebIdentityCommand: () => AssumeRoleWithWebIdentityCommand,
+ AssumeRoleWithWebIdentityRequestFilterSensitiveLog: () => AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
+ AssumeRoleWithWebIdentityResponseFilterSensitiveLog: () => AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
+ ClientInputEndpointParameters: () => import_EndpointParameters3.ClientInputEndpointParameters,
+ CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog,
+ ExpiredTokenException: () => ExpiredTokenException,
+ IDPCommunicationErrorException: () => IDPCommunicationErrorException,
+ IDPRejectedClaimException: () => IDPRejectedClaimException,
+ InvalidIdentityTokenException: () => InvalidIdentityTokenException,
+ MalformedPolicyDocumentException: () => MalformedPolicyDocumentException,
+ PackedPolicyTooLargeException: () => PackedPolicyTooLargeException,
+ RegionDisabledException: () => RegionDisabledException,
+ STS: () => STS,
+ STSServiceException: () => STSServiceException,
+ decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider,
+ getDefaultRoleAssumer: () => getDefaultRoleAssumer2,
+ getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity2
+});
+module.exports = __toCommonJS(index_exports);
+__reExport(index_exports, __nccwpck_require__(68974), module.exports);
+
+// src/submodules/sts/STS.ts
+var import_smithy_client6 = __nccwpck_require__(63570);
+
+// src/submodules/sts/commands/AssumeRoleCommand.ts
+var import_middleware_endpoint = __nccwpck_require__(82918);
+var import_middleware_serde = __nccwpck_require__(81238);
+var import_smithy_client4 = __nccwpck_require__(63570);
+var import_EndpointParameters = __nccwpck_require__(41765);
+
+// src/submodules/sts/models/models_0.ts
+var import_smithy_client2 = __nccwpck_require__(63570);
+
+// src/submodules/sts/models/STSServiceException.ts
+var import_smithy_client = __nccwpck_require__(63570);
+var STSServiceException = class _STSServiceException extends import_smithy_client.ServiceException {
+ static {
+ __name(this, "STSServiceException");
+ }
+ /**
+ * @internal
+ */
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, _STSServiceException.prototype);
+ }
+};
+
+// src/submodules/sts/models/models_0.ts
+var CredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client2.SENSITIVE_STRING }
+}), "CredentialsFilterSensitiveLog");
+var AssumeRoleResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
+}), "AssumeRoleResponseFilterSensitiveLog");
+var ExpiredTokenException = class _ExpiredTokenException extends STSServiceException {
+ static {
+ __name(this, "ExpiredTokenException");
+ }
+ name = "ExpiredTokenException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "ExpiredTokenException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
+ }
+};
+var MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends STSServiceException {
+ static {
+ __name(this, "MalformedPolicyDocumentException");
+ }
+ name = "MalformedPolicyDocumentException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "MalformedPolicyDocumentException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
+ }
+};
+var PackedPolicyTooLargeException = class _PackedPolicyTooLargeException extends STSServiceException {
+ static {
+ __name(this, "PackedPolicyTooLargeException");
+ }
+ name = "PackedPolicyTooLargeException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "PackedPolicyTooLargeException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _PackedPolicyTooLargeException.prototype);
+ }
+};
+var RegionDisabledException = class _RegionDisabledException extends STSServiceException {
+ static {
+ __name(this, "RegionDisabledException");
+ }
+ name = "RegionDisabledException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "RegionDisabledException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _RegionDisabledException.prototype);
+ }
+};
+var IDPRejectedClaimException = class _IDPRejectedClaimException extends STSServiceException {
+ static {
+ __name(this, "IDPRejectedClaimException");
+ }
+ name = "IDPRejectedClaimException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "IDPRejectedClaimException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _IDPRejectedClaimException.prototype);
+ }
+};
+var InvalidIdentityTokenException = class _InvalidIdentityTokenException extends STSServiceException {
+ static {
+ __name(this, "InvalidIdentityTokenException");
+ }
+ name = "InvalidIdentityTokenException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "InvalidIdentityTokenException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _InvalidIdentityTokenException.prototype);
+ }
+};
+var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.WebIdentityToken && { WebIdentityToken: import_smithy_client2.SENSITIVE_STRING }
+}), "AssumeRoleWithWebIdentityRequestFilterSensitiveLog");
+var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
+ ...obj,
+ ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
+}), "AssumeRoleWithWebIdentityResponseFilterSensitiveLog");
+var IDPCommunicationErrorException = class _IDPCommunicationErrorException extends STSServiceException {
+ static {
+ __name(this, "IDPCommunicationErrorException");
+ }
+ name = "IDPCommunicationErrorException";
+ $fault = "client";
+ /**
+ * @internal
+ */
+ constructor(opts) {
+ super({
+ name: "IDPCommunicationErrorException",
+ $fault: "client",
+ ...opts
+ });
+ Object.setPrototypeOf(this, _IDPCommunicationErrorException.prototype);
+ }
+};
+
+// src/submodules/sts/protocols/Aws_query.ts
+var import_core = __nccwpck_require__(59963);
+var import_protocol_http = __nccwpck_require__(64418);
+var import_smithy_client3 = __nccwpck_require__(63570);
+var se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_AssumeRoleRequest(input, context),
+ [_A]: _AR,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_AssumeRoleCommand");
+var se_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
+ const headers = SHARED_HEADERS;
+ let body;
+ body = buildFormUrlencodedString({
+ ...se_AssumeRoleWithWebIdentityRequest(input, context),
+ [_A]: _ARWWI,
+ [_V]: _
+ });
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
+}, "se_AssumeRoleWithWebIdentityCommand");
+var de_AssumeRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_AssumeRoleResponse(data.AssumeRoleResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_AssumeRoleCommand");
+var de_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
+ if (output.statusCode >= 300) {
+ return de_CommandError(output, context);
+ }
+ const data = await (0, import_core.parseXmlBody)(output.body, context);
+ let contents = {};
+ contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
+ const response = {
+ $metadata: deserializeMetadata(output),
+ ...contents
+ };
+ return response;
+}, "de_AssumeRoleWithWebIdentityCommand");
+var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
+ const parsedOutput = {
+ ...output,
+ body: await (0, import_core.parseXmlErrorBody)(output.body, context)
+ };
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
+ switch (errorCode) {
+ case "ExpiredTokenException":
+ case "com.amazonaws.sts#ExpiredTokenException":
+ throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
+ case "MalformedPolicyDocument":
+ case "com.amazonaws.sts#MalformedPolicyDocumentException":
+ throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
+ case "PackedPolicyTooLarge":
+ case "com.amazonaws.sts#PackedPolicyTooLargeException":
+ throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
+ case "RegionDisabledException":
+ case "com.amazonaws.sts#RegionDisabledException":
+ throw await de_RegionDisabledExceptionRes(parsedOutput, context);
+ case "IDPCommunicationError":
+ case "com.amazonaws.sts#IDPCommunicationErrorException":
+ throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
+ case "IDPRejectedClaim":
+ case "com.amazonaws.sts#IDPRejectedClaimException":
+ throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
+ case "InvalidIdentityToken":
+ case "com.amazonaws.sts#InvalidIdentityTokenException":
+ throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody: parsedBody.Error,
+ errorCode
+ });
+ }
+}, "de_CommandError");
+var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_ExpiredTokenException(body.Error, context);
+ const exception = new ExpiredTokenException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client3.decorateServiceException)(exception, body);
+}, "de_ExpiredTokenExceptionRes");
+var de_IDPCommunicationErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_IDPCommunicationErrorException(body.Error, context);
+ const exception = new IDPCommunicationErrorException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client3.decorateServiceException)(exception, body);
+}, "de_IDPCommunicationErrorExceptionRes");
+var de_IDPRejectedClaimExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_IDPRejectedClaimException(body.Error, context);
+ const exception = new IDPRejectedClaimException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client3.decorateServiceException)(exception, body);
+}, "de_IDPRejectedClaimExceptionRes");
+var de_InvalidIdentityTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_InvalidIdentityTokenException(body.Error, context);
+ const exception = new InvalidIdentityTokenException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client3.decorateServiceException)(exception, body);
+}, "de_InvalidIdentityTokenExceptionRes");
+var de_MalformedPolicyDocumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
+ const exception = new MalformedPolicyDocumentException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client3.decorateServiceException)(exception, body);
+}, "de_MalformedPolicyDocumentExceptionRes");
+var de_PackedPolicyTooLargeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
+ const exception = new PackedPolicyTooLargeException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client3.decorateServiceException)(exception, body);
+}, "de_PackedPolicyTooLargeExceptionRes");
+var de_RegionDisabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
+ const body = parsedOutput.body;
+ const deserialized = de_RegionDisabledException(body.Error, context);
+ const exception = new RegionDisabledException({
+ $metadata: deserializeMetadata(parsedOutput),
+ ...deserialized
+ });
+ return (0, import_smithy_client3.decorateServiceException)(exception, body);
+}, "de_RegionDisabledExceptionRes");
+var se_AssumeRoleRequest = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RA] != null) {
+ entries[_RA] = input[_RA];
+ }
+ if (input[_RSN] != null) {
+ entries[_RSN] = input[_RSN];
+ }
+ if (input[_PA] != null) {
+ const memberEntries = se_policyDescriptorListType(input[_PA], context);
+ if (input[_PA]?.length === 0) {
+ entries.PolicyArns = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `PolicyArns.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_P] != null) {
+ entries[_P] = input[_P];
+ }
+ if (input[_DS] != null) {
+ entries[_DS] = input[_DS];
+ }
+ if (input[_T] != null) {
+ const memberEntries = se_tagListType(input[_T], context);
+ if (input[_T]?.length === 0) {
+ entries.Tags = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `Tags.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_TTK] != null) {
+ const memberEntries = se_tagKeyListType(input[_TTK], context);
+ if (input[_TTK]?.length === 0) {
+ entries.TransitiveTagKeys = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `TransitiveTagKeys.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_EI] != null) {
+ entries[_EI] = input[_EI];
+ }
+ if (input[_SN] != null) {
+ entries[_SN] = input[_SN];
+ }
+ if (input[_TC] != null) {
+ entries[_TC] = input[_TC];
+ }
+ if (input[_SI] != null) {
+ entries[_SI] = input[_SI];
+ }
+ if (input[_PC] != null) {
+ const memberEntries = se_ProvidedContextsListType(input[_PC], context);
+ if (input[_PC]?.length === 0) {
+ entries.ProvidedContexts = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `ProvidedContexts.${key}`;
+ entries[loc] = value;
+ });
+ }
+ return entries;
+}, "se_AssumeRoleRequest");
+var se_AssumeRoleWithWebIdentityRequest = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_RA] != null) {
+ entries[_RA] = input[_RA];
+ }
+ if (input[_RSN] != null) {
+ entries[_RSN] = input[_RSN];
+ }
+ if (input[_WIT] != null) {
+ entries[_WIT] = input[_WIT];
+ }
+ if (input[_PI] != null) {
+ entries[_PI] = input[_PI];
+ }
+ if (input[_PA] != null) {
+ const memberEntries = se_policyDescriptorListType(input[_PA], context);
+ if (input[_PA]?.length === 0) {
+ entries.PolicyArns = [];
+ }
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ const loc = `PolicyArns.${key}`;
+ entries[loc] = value;
+ });
+ }
+ if (input[_P] != null) {
+ entries[_P] = input[_P];
+ }
+ if (input[_DS] != null) {
+ entries[_DS] = input[_DS];
+ }
+ return entries;
+}, "se_AssumeRoleWithWebIdentityRequest");
+var se_policyDescriptorListType = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_PolicyDescriptorType(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_policyDescriptorListType");
+var se_PolicyDescriptorType = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_a] != null) {
+ entries[_a] = input[_a];
+ }
+ return entries;
+}, "se_PolicyDescriptorType");
+var se_ProvidedContext = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_PAr] != null) {
+ entries[_PAr] = input[_PAr];
+ }
+ if (input[_CA] != null) {
+ entries[_CA] = input[_CA];
+ }
+ return entries;
+}, "se_ProvidedContext");
+var se_ProvidedContextsListType = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_ProvidedContext(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_ProvidedContextsListType");
+var se_Tag = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ if (input[_K] != null) {
+ entries[_K] = input[_K];
+ }
+ if (input[_Va] != null) {
+ entries[_Va] = input[_Va];
+ }
+ return entries;
+}, "se_Tag");
+var se_tagKeyListType = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ entries[`member.${counter}`] = entry;
+ counter++;
+ }
+ return entries;
+}, "se_tagKeyListType");
+var se_tagListType = /* @__PURE__ */ __name((input, context) => {
+ const entries = {};
+ let counter = 1;
+ for (const entry of input) {
+ if (entry === null) {
+ continue;
+ }
+ const memberEntries = se_Tag(entry, context);
+ Object.entries(memberEntries).forEach(([key, value]) => {
+ entries[`member.${counter}.${key}`] = value;
+ });
+ counter++;
+ }
+ return entries;
+}, "se_tagListType");
+var de_AssumedRoleUser = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_ARI] != null) {
+ contents[_ARI] = (0, import_smithy_client3.expectString)(output[_ARI]);
+ }
+ if (output[_Ar] != null) {
+ contents[_Ar] = (0, import_smithy_client3.expectString)(output[_Ar]);
+ }
+ return contents;
+}, "de_AssumedRoleUser");
+var de_AssumeRoleResponse = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_C] != null) {
+ contents[_C] = de_Credentials(output[_C], context);
+ }
+ if (output[_ARU] != null) {
+ contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
+ }
+ if (output[_PPS] != null) {
+ contents[_PPS] = (0, import_smithy_client3.strictParseInt32)(output[_PPS]);
+ }
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client3.expectString)(output[_SI]);
+ }
+ return contents;
+}, "de_AssumeRoleResponse");
+var de_AssumeRoleWithWebIdentityResponse = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_C] != null) {
+ contents[_C] = de_Credentials(output[_C], context);
+ }
+ if (output[_SFWIT] != null) {
+ contents[_SFWIT] = (0, import_smithy_client3.expectString)(output[_SFWIT]);
+ }
+ if (output[_ARU] != null) {
+ contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
+ }
+ if (output[_PPS] != null) {
+ contents[_PPS] = (0, import_smithy_client3.strictParseInt32)(output[_PPS]);
+ }
+ if (output[_Pr] != null) {
+ contents[_Pr] = (0, import_smithy_client3.expectString)(output[_Pr]);
+ }
+ if (output[_Au] != null) {
+ contents[_Au] = (0, import_smithy_client3.expectString)(output[_Au]);
+ }
+ if (output[_SI] != null) {
+ contents[_SI] = (0, import_smithy_client3.expectString)(output[_SI]);
+ }
+ return contents;
+}, "de_AssumeRoleWithWebIdentityResponse");
+var de_Credentials = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_AKI] != null) {
+ contents[_AKI] = (0, import_smithy_client3.expectString)(output[_AKI]);
+ }
+ if (output[_SAK] != null) {
+ contents[_SAK] = (0, import_smithy_client3.expectString)(output[_SAK]);
+ }
+ if (output[_ST] != null) {
+ contents[_ST] = (0, import_smithy_client3.expectString)(output[_ST]);
+ }
+ if (output[_E] != null) {
+ contents[_E] = (0, import_smithy_client3.expectNonNull)((0, import_smithy_client3.parseRfc3339DateTimeWithOffset)(output[_E]));
+ }
+ return contents;
+}, "de_Credentials");
+var de_ExpiredTokenException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_m] != null) {
+ contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
+ }
+ return contents;
+}, "de_ExpiredTokenException");
+var de_IDPCommunicationErrorException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_m] != null) {
+ contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
+ }
+ return contents;
+}, "de_IDPCommunicationErrorException");
+var de_IDPRejectedClaimException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_m] != null) {
+ contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
+ }
+ return contents;
+}, "de_IDPRejectedClaimException");
+var de_InvalidIdentityTokenException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_m] != null) {
+ contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
+ }
+ return contents;
+}, "de_InvalidIdentityTokenException");
+var de_MalformedPolicyDocumentException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_m] != null) {
+ contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
+ }
+ return contents;
+}, "de_MalformedPolicyDocumentException");
+var de_PackedPolicyTooLargeException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_m] != null) {
+ contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
+ }
+ return contents;
+}, "de_PackedPolicyTooLargeException");
+var de_RegionDisabledException = /* @__PURE__ */ __name((output, context) => {
+ const contents = {};
+ if (output[_m] != null) {
+ contents[_m] = (0, import_smithy_client3.expectString)(output[_m]);
+ }
+ return contents;
+}, "de_RegionDisabledException");
+var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
+ httpStatusCode: output.statusCode,
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
+ extendedRequestId: output.headers["x-amz-id-2"],
+ cfId: output.headers["x-amz-cf-id"]
+}), "deserializeMetadata");
+var throwDefaultError = (0, import_smithy_client3.withBaseException)(STSServiceException);
+var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const contents = {
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
+ headers
+ };
+ if (resolvedHostname !== void 0) {
+ contents.hostname = resolvedHostname;
+ }
+ if (body !== void 0) {
+ contents.body = body;
+ }
+ return new import_protocol_http.HttpRequest(contents);
+}, "buildHttpRpcRequest");
+var SHARED_HEADERS = {
+ "content-type": "application/x-www-form-urlencoded"
+};
+var _ = "2011-06-15";
+var _A = "Action";
+var _AKI = "AccessKeyId";
+var _AR = "AssumeRole";
+var _ARI = "AssumedRoleId";
+var _ARU = "AssumedRoleUser";
+var _ARWWI = "AssumeRoleWithWebIdentity";
+var _Ar = "Arn";
+var _Au = "Audience";
+var _C = "Credentials";
+var _CA = "ContextAssertion";
+var _DS = "DurationSeconds";
+var _E = "Expiration";
+var _EI = "ExternalId";
+var _K = "Key";
+var _P = "Policy";
+var _PA = "PolicyArns";
+var _PAr = "ProviderArn";
+var _PC = "ProvidedContexts";
+var _PI = "ProviderId";
+var _PPS = "PackedPolicySize";
+var _Pr = "Provider";
+var _RA = "RoleArn";
+var _RSN = "RoleSessionName";
+var _SAK = "SecretAccessKey";
+var _SFWIT = "SubjectFromWebIdentityToken";
+var _SI = "SourceIdentity";
+var _SN = "SerialNumber";
+var _ST = "SessionToken";
+var _T = "Tags";
+var _TC = "TokenCode";
+var _TTK = "TransitiveTagKeys";
+var _V = "Version";
+var _Va = "Value";
+var _WIT = "WebIdentityToken";
+var _a = "arn";
+var _m = "message";
+var buildFormUrlencodedString = /* @__PURE__ */ __name((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client3.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client3.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
+var loadQueryErrorCode = /* @__PURE__ */ __name((output, data) => {
+ if (data.Error?.Code !== void 0) {
+ return data.Error.Code;
+ }
+ if (output.statusCode == 404) {
+ return "NotFound";
+ }
+}, "loadQueryErrorCode");
+
+// src/submodules/sts/commands/AssumeRoleCommand.ts
+var AssumeRoleCommand = class extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters.commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").f(void 0, AssumeRoleResponseFilterSensitiveLog).ser(se_AssumeRoleCommand).de(de_AssumeRoleCommand).build() {
+ static {
+ __name(this, "AssumeRoleCommand");
+ }
+};
+
+// src/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.ts
+var import_middleware_endpoint2 = __nccwpck_require__(82918);
+var import_middleware_serde2 = __nccwpck_require__(81238);
+var import_smithy_client5 = __nccwpck_require__(63570);
+var import_EndpointParameters2 = __nccwpck_require__(41765);
+var AssumeRoleWithWebIdentityCommand = class extends import_smithy_client5.Command.classBuilder().ep(import_EndpointParameters2.commonParams).m(function(Command, cs, config, o) {
+ return [
+ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize),
+ (0, import_middleware_endpoint2.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
+ ];
+}).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog).ser(se_AssumeRoleWithWebIdentityCommand).de(de_AssumeRoleWithWebIdentityCommand).build() {
+ static {
+ __name(this, "AssumeRoleWithWebIdentityCommand");
+ }
+};
+
+// src/submodules/sts/STS.ts
+var import_STSClient = __nccwpck_require__(68974);
+var commands = {
+ AssumeRoleCommand,
+ AssumeRoleWithWebIdentityCommand
+};
+var STS = class extends import_STSClient.STSClient {
+ static {
+ __name(this, "STS");
+ }
+};
+(0, import_smithy_client6.createAggregatedClient)(commands, STS);
+
+// src/submodules/sts/index.ts
+var import_EndpointParameters3 = __nccwpck_require__(41765);
+
+// src/submodules/sts/defaultStsRoleAssumers.ts
+var import_client = __nccwpck_require__(2825);
+var ASSUME_ROLE_DEFAULT_REGION = "us-east-1";
+var getAccountIdFromAssumedRoleUser = /* @__PURE__ */ __name((assumedRoleUser) => {
+ if (typeof assumedRoleUser?.Arn === "string") {
+ const arnComponents = assumedRoleUser.Arn.split(":");
+ if (arnComponents.length > 4 && arnComponents[4] !== "") {
+ return arnComponents[4];
+ }
+ }
+ return void 0;
+}, "getAccountIdFromAssumedRoleUser");
+var resolveRegion = /* @__PURE__ */ __name(async (_region, _parentRegion, credentialProviderLogger) => {
+ const region = typeof _region === "function" ? await _region() : _region;
+ const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
+ credentialProviderLogger?.debug?.(
+ "@aws-sdk/client-sts::resolveRegion",
+ "accepting first of:",
+ `${region} (provider)`,
+ `${parentRegion} (parent client)`,
+ `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`
+ );
+ return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
+}, "resolveRegion");
+var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, STSClient3) => {
+ let stsClient;
+ let closureSourceCreds;
+ return async (sourceCreds, params) => {
+ closureSourceCreds = sourceCreds;
+ if (!stsClient) {
+ const {
+ logger = stsOptions?.parentClientConfig?.logger,
+ region,
+ requestHandler = stsOptions?.parentClientConfig?.requestHandler,
+ credentialProviderLogger
+ } = stsOptions;
+ const resolvedRegion = await resolveRegion(
+ region,
+ stsOptions?.parentClientConfig?.region,
+ credentialProviderLogger
+ );
+ const isCompatibleRequestHandler = !isH2(requestHandler);
+ stsClient = new STSClient3({
+ profile: stsOptions?.parentClientConfig?.profile,
+ // A hack to make sts client uses the credential in current closure.
+ credentialDefaultProvider: /* @__PURE__ */ __name(() => async () => closureSourceCreds, "credentialDefaultProvider"),
+ region: resolvedRegion,
+ requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
+ logger
+ });
+ }
+ const { Credentials: Credentials2, AssumedRoleUser: AssumedRoleUser2 } = await stsClient.send(new AssumeRoleCommand(params));
+ if (!Credentials2 || !Credentials2.AccessKeyId || !Credentials2.SecretAccessKey) {
+ throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
+ }
+ const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser2);
+ const credentials = {
+ accessKeyId: Credentials2.AccessKeyId,
+ secretAccessKey: Credentials2.SecretAccessKey,
+ sessionToken: Credentials2.SessionToken,
+ expiration: Credentials2.Expiration,
+ // TODO(credentialScope): access normally when shape is updated.
+ ...Credentials2.CredentialScope && { credentialScope: Credentials2.CredentialScope },
+ ...accountId && { accountId }
+ };
+ (0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
+ return credentials;
+ };
+}, "getDefaultRoleAssumer");
+var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, STSClient3) => {
+ let stsClient;
+ return async (params) => {
+ if (!stsClient) {
+ const {
+ logger = stsOptions?.parentClientConfig?.logger,
+ region,
+ requestHandler = stsOptions?.parentClientConfig?.requestHandler,
+ credentialProviderLogger
+ } = stsOptions;
+ const resolvedRegion = await resolveRegion(
+ region,
+ stsOptions?.parentClientConfig?.region,
+ credentialProviderLogger
+ );
+ const isCompatibleRequestHandler = !isH2(requestHandler);
+ stsClient = new STSClient3({
+ profile: stsOptions?.parentClientConfig?.profile,
+ region: resolvedRegion,
+ requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
+ logger
+ });
+ }
+ const { Credentials: Credentials2, AssumedRoleUser: AssumedRoleUser2 } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
+ if (!Credentials2 || !Credentials2.AccessKeyId || !Credentials2.SecretAccessKey) {
+ throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
+ }
+ const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser2);
+ const credentials = {
+ accessKeyId: Credentials2.AccessKeyId,
+ secretAccessKey: Credentials2.SecretAccessKey,
+ sessionToken: Credentials2.SessionToken,
+ expiration: Credentials2.Expiration,
+ // TODO(credentialScope): access normally when shape is updated.
+ ...Credentials2.CredentialScope && { credentialScope: Credentials2.CredentialScope },
+ ...accountId && { accountId }
+ };
+ if (accountId) {
+ (0, import_client.setCredentialFeature)(credentials, "RESOLVED_ACCOUNT_ID", "T");
+ }
+ (0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
+ return credentials;
+ };
+}, "getDefaultRoleAssumerWithWebIdentity");
+var isH2 = /* @__PURE__ */ __name((requestHandler) => {
+ return requestHandler?.metadata?.handlerProtocol === "h2";
+}, "isH2");
+
+// src/submodules/sts/defaultRoleAssumers.ts
+var import_STSClient2 = __nccwpck_require__(68974);
+var getCustomizableStsClientCtor = /* @__PURE__ */ __name((baseCtor, customizations) => {
+ if (!customizations) return baseCtor;
+ else
+ return class CustomizableSTSClient extends baseCtor {
+ static {
+ __name(this, "CustomizableSTSClient");
+ }
+ constructor(config) {
+ super(config);
+ for (const customization of customizations) {
+ this.middlewareStack.use(customization);
+ }
+ }
+ };
+}, "getCustomizableStsClientCtor");
+var getDefaultRoleAssumer2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumer");
+var getDefaultRoleAssumerWithWebIdentity2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumerWithWebIdentity");
+var decorateDefaultCredentialProvider = /* @__PURE__ */ __name((provider) => (input) => provider({
+ roleAssumer: getDefaultRoleAssumer2(input),
+ roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity2(input),
+ ...input
+}), "decorateDefaultCredentialProvider");
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 1798:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const tslib_1 = __nccwpck_require__(4351);
+const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(88842));
+const core_1 = __nccwpck_require__(59963);
+const util_user_agent_node_1 = __nccwpck_require__(98095);
+const config_resolver_1 = __nccwpck_require__(53098);
+const core_2 = __nccwpck_require__(55829);
+const hash_node_1 = __nccwpck_require__(3081);
+const middleware_retry_1 = __nccwpck_require__(96039);
+const node_config_provider_1 = __nccwpck_require__(33461);
+const node_http_handler_1 = __nccwpck_require__(20258);
+const util_body_length_node_1 = __nccwpck_require__(68075);
+const util_retry_1 = __nccwpck_require__(84902);
+const runtimeConfig_shared_1 = __nccwpck_require__(75238);
+const smithy_client_1 = __nccwpck_require__(63570);
+const util_defaults_mode_node_1 = __nccwpck_require__(72429);
+const smithy_client_2 = __nccwpck_require__(63570);
+const getRuntimeConfig = (config) => {
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
+ const profileConfig = { profile: config?.profile };
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "node",
+ defaultsMode,
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
+ (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
+ signer: new core_1.AwsSdkSigV4Signer(),
+ },
+ {
+ schemeId: "smithy.api#noAuth",
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
+ signer: new core_2.NoAuthSigner(),
+ },
+ ],
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
+ region: config?.region ??
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
+ retryMode: config?.retryMode ??
+ (0, node_config_provider_1.loadConfig)({
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
+ }, config),
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 75238:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const core_1 = __nccwpck_require__(59963);
+const core_2 = __nccwpck_require__(55829);
+const smithy_client_1 = __nccwpck_require__(63570);
+const url_parser_1 = __nccwpck_require__(14681);
+const util_base64_1 = __nccwpck_require__(75600);
+const util_utf8_1 = __nccwpck_require__(41895);
+const httpAuthSchemeProvider_1 = __nccwpck_require__(48013);
+const endpointResolver_1 = __nccwpck_require__(47561);
+const getRuntimeConfig = (config) => {
+ return {
+ apiVersion: "2011-06-15",
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
+ disableHostPrefix: config?.disableHostPrefix ?? false,
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
+ extensions: config?.extensions ?? [],
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
+ signer: new core_1.AwsSdkSigV4Signer(),
+ },
+ {
+ schemeId: "smithy.api#noAuth",
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
+ signer: new core_2.NoAuthSigner(),
+ },
+ ],
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
+ serviceId: config?.serviceId ?? "STS",
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 30669:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveRuntimeExtensions = void 0;
+const region_config_resolver_1 = __nccwpck_require__(18156);
+const protocol_http_1 = __nccwpck_require__(64418);
+const smithy_client_1 = __nccwpck_require__(63570);
+const httpAuthExtensionConfiguration_1 = __nccwpck_require__(14935);
+const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
+ const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
+ return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
+};
+exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
+
+
+/***/ }),
+
+/***/ 18156:
+/***/ ((module) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS,
+ NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS,
+ REGION_ENV_NAME: () => REGION_ENV_NAME,
+ REGION_INI_NAME: () => REGION_INI_NAME,
+ getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration,
+ resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration,
+ resolveRegionConfig: () => resolveRegionConfig
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/extensions/index.ts
+var getAwsRegionExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ return {
+ setRegion(region) {
+ runtimeConfig.region = region;
+ },
+ region() {
+ return runtimeConfig.region;
+ }
+ };
+}, "getAwsRegionExtensionConfiguration");
+var resolveAwsRegionExtensionConfiguration = /* @__PURE__ */ __name((awsRegionExtensionConfiguration) => {
+ return {
+ region: awsRegionExtensionConfiguration.region()
+ };
+}, "resolveAwsRegionExtensionConfiguration");
+
+// src/regionConfig/config.ts
+var REGION_ENV_NAME = "AWS_REGION";
+var REGION_INI_NAME = "region";
+var NODE_REGION_CONFIG_OPTIONS = {
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[REGION_ENV_NAME], "environmentVariableSelector"),
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[REGION_INI_NAME], "configFileSelector"),
+ default: /* @__PURE__ */ __name(() => {
+ throw new Error("Region is missing");
+ }, "default")
+};
+var NODE_REGION_CONFIG_FILE_OPTIONS = {
+ preferredFile: "credentials"
+};
+
+// src/regionConfig/isFipsRegion.ts
+var isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion");
+
+// src/regionConfig/getRealRegion.ts
+var getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion");
+
+// src/regionConfig/resolveRegionConfig.ts
+var resolveRegionConfig = /* @__PURE__ */ __name((input) => {
+ const { region, useFipsEndpoint } = input;
+ if (!region) {
+ throw new Error("Region is missing");
+ }
+ return Object.assign(input, {
+ region: /* @__PURE__ */ __name(async () => {
+ if (typeof region === "string") {
+ return getRealRegion(region);
+ }
+ const providedRegion = await region();
+ return getRealRegion(providedRegion);
+ }, "region"),
+ useFipsEndpoint: /* @__PURE__ */ __name(async () => {
+ const providedRegion = typeof region === "string" ? region : await region();
+ if (isFipsRegion(providedRegion)) {
+ return true;
+ }
+ return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
+ }, "useFipsEndpoint")
+ });
+}, "resolveRegionConfig");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 51856:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ SignatureV4MultiRegion: () => SignatureV4MultiRegion,
+ signatureV4CrtContainer: () => signatureV4CrtContainer
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/SignatureV4MultiRegion.ts
+var import_middleware_sdk_s3 = __nccwpck_require__(81139);
+
+// src/signature-v4-crt-container.ts
+var signatureV4CrtContainer = {
+ CrtSignerV4: null
+};
+
+// src/SignatureV4MultiRegion.ts
+var SignatureV4MultiRegion = class {
+ static {
+ __name(this, "SignatureV4MultiRegion");
+ }
+ sigv4aSigner;
+ sigv4Signer;
+ signerOptions;
+ constructor(options) {
+ this.sigv4Signer = new import_middleware_sdk_s3.SignatureV4S3Express(options);
+ this.signerOptions = options;
+ }
+ async sign(requestToSign, options = {}) {
+ if (options.signingRegion === "*") {
+ if (this.signerOptions.runtime !== "node")
+ throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");
+ return this.getSigv4aSigner().sign(requestToSign, options);
+ }
+ return this.sigv4Signer.sign(requestToSign, options);
+ }
+ /**
+ * Sign with alternate credentials to the ones provided in the constructor.
+ */
+ async signWithCredentials(requestToSign, credentials, options = {}) {
+ if (options.signingRegion === "*") {
+ if (this.signerOptions.runtime !== "node")
+ throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");
+ return this.getSigv4aSigner().signWithCredentials(requestToSign, credentials, options);
+ }
+ return this.sigv4Signer.signWithCredentials(requestToSign, credentials, options);
+ }
+ async presign(originalRequest, options = {}) {
+ if (options.signingRegion === "*") {
+ if (this.signerOptions.runtime !== "node")
+ throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");
+ return this.getSigv4aSigner().presign(originalRequest, options);
+ }
+ return this.sigv4Signer.presign(originalRequest, options);
+ }
+ async presignWithCredentials(originalRequest, credentials, options = {}) {
+ if (options.signingRegion === "*") {
+ throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");
+ }
+ return this.sigv4Signer.presignWithCredentials(originalRequest, credentials, options);
+ }
+ getSigv4aSigner() {
+ if (!this.sigv4aSigner) {
+ let CrtSignerV4 = null;
+ try {
+ CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
+ if (typeof CrtSignerV4 !== "function") throw new Error();
+ } catch (e) {
+ e.message = `${e.message}
+Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly.
+You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";].
+For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`;
+ throw e;
+ }
+ this.sigv4aSigner = new CrtSignerV4({
+ ...this.signerOptions,
+ signingAlgorithm: 1
+ });
+ }
+ return this.sigv4aSigner;
+ }
+};
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 52843:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
+ // If the importer is in node compatibility mode or this is not an ESM
+ // file that has been converted to a CommonJS file using a Babel-
+ // compatible transform (i.e. "__esModule" has not been set), then set
+ // "default" to the CommonJS "module.exports" for node compatibility.
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
+ mod
+));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ fromSso: () => fromSso,
+ fromStatic: () => fromStatic,
+ nodeProvider: () => nodeProvider
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/fromSso.ts
+
+
+
+// src/constants.ts
+var EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
+var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
+
+// src/getSsoOidcClient.ts
+var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion, init = {}) => {
+ const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(27334)));
+ const ssoOidcClient = new SSOOIDCClient(
+ Object.assign({}, init.clientConfig ?? {}, {
+ region: ssoRegion ?? init.clientConfig?.region,
+ logger: init.clientConfig?.logger ?? init.parentClientConfig?.logger
+ })
+ );
+ return ssoOidcClient;
+}, "getSsoOidcClient");
+
+// src/getNewSsoOidcToken.ts
+var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion, init = {}) => {
+ const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(27334)));
+ const ssoOidcClient = await getSsoOidcClient(ssoRegion, init);
+ return ssoOidcClient.send(
+ new CreateTokenCommand({
+ clientId: ssoToken.clientId,
+ clientSecret: ssoToken.clientSecret,
+ refreshToken: ssoToken.refreshToken,
+ grantType: "refresh_token"
+ })
+ );
+}, "getNewSsoOidcToken");
+
+// src/validateTokenExpiry.ts
+var import_property_provider = __nccwpck_require__(79721);
+var validateTokenExpiry = /* @__PURE__ */ __name((token) => {
+ if (token.expiration && token.expiration.getTime() < Date.now()) {
+ throw new import_property_provider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
+ }
+}, "validateTokenExpiry");
+
+// src/validateTokenKey.ts
+
+var validateTokenKey = /* @__PURE__ */ __name((key, value, forRefresh = false) => {
+ if (typeof value === "undefined") {
+ throw new import_property_provider.TokenProviderError(
+ `Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`,
+ false
+ );
+ }
+}, "validateTokenKey");
+
+// src/writeSSOTokenToFile.ts
+var import_shared_ini_file_loader = __nccwpck_require__(43507);
+var import_fs = __nccwpck_require__(57147);
+var { writeFile } = import_fs.promises;
+var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
+ const tokenFilepath = (0, import_shared_ini_file_loader.getSSOTokenFilepath)(id);
+ const tokenString = JSON.stringify(ssoToken, null, 2);
+ return writeFile(tokenFilepath, tokenString);
+}, "writeSSOTokenToFile");
+
+// src/fromSso.ts
+var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
+var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => {
+ const init = {
+ ..._init,
+ parentClientConfig: {
+ ...callerClientConfig,
+ ..._init.parentClientConfig
+ }
+ };
+ init.logger?.debug("@aws-sdk/token-providers - fromSso");
+ const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
+ const profileName = (0, import_shared_ini_file_loader.getProfileName)({
+ profile: init.profile ?? callerClientConfig?.profile
+ });
+ const profile = profiles[profileName];
+ if (!profile) {
+ throw new import_property_provider.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
+ } else if (!profile["sso_session"]) {
+ throw new import_property_provider.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
+ }
+ const ssoSessionName = profile["sso_session"];
+ const ssoSessions = await (0, import_shared_ini_file_loader.loadSsoSessionData)(init);
+ const ssoSession = ssoSessions[ssoSessionName];
+ if (!ssoSession) {
+ throw new import_property_provider.TokenProviderError(
+ `Sso session '${ssoSessionName}' could not be found in shared credentials file.`,
+ false
+ );
+ }
+ for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
+ if (!ssoSession[ssoSessionRequiredKey]) {
+ throw new import_property_provider.TokenProviderError(
+ `Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`,
+ false
+ );
+ }
+ }
+ const ssoStartUrl = ssoSession["sso_start_url"];
+ const ssoRegion = ssoSession["sso_region"];
+ let ssoToken;
+ try {
+ ssoToken = await (0, import_shared_ini_file_loader.getSSOTokenFromFile)(ssoSessionName);
+ } catch (e) {
+ throw new import_property_provider.TokenProviderError(
+ `The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`,
+ false
+ );
+ }
+ validateTokenKey("accessToken", ssoToken.accessToken);
+ validateTokenKey("expiresAt", ssoToken.expiresAt);
+ const { accessToken, expiresAt } = ssoToken;
+ const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
+ if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
+ return existingToken;
+ }
+ if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1e3) {
+ validateTokenExpiry(existingToken);
+ return existingToken;
+ }
+ validateTokenKey("clientId", ssoToken.clientId, true);
+ validateTokenKey("clientSecret", ssoToken.clientSecret, true);
+ validateTokenKey("refreshToken", ssoToken.refreshToken, true);
+ try {
+ lastRefreshAttemptTime.setTime(Date.now());
+ const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init);
+ validateTokenKey("accessToken", newSsoOidcToken.accessToken);
+ validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
+ const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1e3);
+ try {
+ await writeSSOTokenToFile(ssoSessionName, {
+ ...ssoToken,
+ accessToken: newSsoOidcToken.accessToken,
+ expiresAt: newTokenExpiration.toISOString(),
+ refreshToken: newSsoOidcToken.refreshToken
+ });
+ } catch (error) {
+ }
+ return {
+ token: newSsoOidcToken.accessToken,
+ expiration: newTokenExpiration
+ };
+ } catch (error) {
+ validateTokenExpiry(existingToken);
+ return existingToken;
+ }
+}, "fromSso");
+
+// src/fromStatic.ts
+
+var fromStatic = /* @__PURE__ */ __name(({ token, logger }) => async () => {
+ logger?.debug("@aws-sdk/token-providers - fromStatic");
+ if (!token || !token.token) {
+ throw new import_property_provider.TokenProviderError(`Please pass a valid token to fromStatic`, false);
+ }
+ return token;
+}, "fromStatic");
+
+// src/nodeProvider.ts
+
+var nodeProvider = /* @__PURE__ */ __name((init = {}) => (0, import_property_provider.memoize)(
+ (0, import_property_provider.chain)(fromSso(init), async () => {
+ throw new import_property_provider.TokenProviderError("Could not load token from any providers", false);
+ }),
+ (token) => token.expiration !== void 0 && token.expiration.getTime() - Date.now() < 3e5,
+ (token) => token.expiration !== void 0
+), "nodeProvider");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 85487:
+/***/ ((module) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ build: () => build,
+ parse: () => parse,
+ validate: () => validate
+});
+module.exports = __toCommonJS(src_exports);
+var validate = /* @__PURE__ */ __name((str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6, "validate");
+var parse = /* @__PURE__ */ __name((arn) => {
+ const segments = arn.split(":");
+ if (segments.length < 6 || segments[0] !== "arn")
+ throw new Error("Malformed ARN");
+ const [
+ ,
+ //Skip "arn" literal
+ partition,
+ service,
+ region,
+ accountId,
+ ...resource
+ ] = segments;
+ return {
+ partition,
+ service,
+ region,
+ accountId,
+ resource: resource.join(":")
+ };
+}, "parse");
+var build = /* @__PURE__ */ __name((arnObject) => {
+ const { partition = "aws", service, region, accountId, resource } = arnObject;
+ if ([service, region, accountId, resource].some((segment) => typeof segment !== "string")) {
+ throw new Error("Input ARN object is invalid");
+ }
+ return `arn:${partition}:${service}:${region}:${accountId}:${resource}`;
+}, "build");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 13350:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ ConditionObject: () => import_util_endpoints.ConditionObject,
+ DeprecatedObject: () => import_util_endpoints.DeprecatedObject,
+ EndpointError: () => import_util_endpoints.EndpointError,
+ EndpointObject: () => import_util_endpoints.EndpointObject,
+ EndpointObjectHeaders: () => import_util_endpoints.EndpointObjectHeaders,
+ EndpointObjectProperties: () => import_util_endpoints.EndpointObjectProperties,
+ EndpointParams: () => import_util_endpoints.EndpointParams,
+ EndpointResolverOptions: () => import_util_endpoints.EndpointResolverOptions,
+ EndpointRuleObject: () => import_util_endpoints.EndpointRuleObject,
+ ErrorRuleObject: () => import_util_endpoints.ErrorRuleObject,
+ EvaluateOptions: () => import_util_endpoints.EvaluateOptions,
+ Expression: () => import_util_endpoints.Expression,
+ FunctionArgv: () => import_util_endpoints.FunctionArgv,
+ FunctionObject: () => import_util_endpoints.FunctionObject,
+ FunctionReturn: () => import_util_endpoints.FunctionReturn,
+ ParameterObject: () => import_util_endpoints.ParameterObject,
+ ReferenceObject: () => import_util_endpoints.ReferenceObject,
+ ReferenceRecord: () => import_util_endpoints.ReferenceRecord,
+ RuleSetObject: () => import_util_endpoints.RuleSetObject,
+ RuleSetRules: () => import_util_endpoints.RuleSetRules,
+ TreeRuleObject: () => import_util_endpoints.TreeRuleObject,
+ awsEndpointFunctions: () => awsEndpointFunctions,
+ getUserAgentPrefix: () => getUserAgentPrefix,
+ isIpAddress: () => import_util_endpoints.isIpAddress,
+ partition: () => partition,
+ resolveEndpoint: () => import_util_endpoints.resolveEndpoint,
+ setPartitionInfo: () => setPartitionInfo,
+ useDefaultPartitionInfo: () => useDefaultPartitionInfo
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/aws.ts
+
+
+// src/lib/aws/isVirtualHostableS3Bucket.ts
+
+
+// src/lib/isIpAddress.ts
+var import_util_endpoints = __nccwpck_require__(45473);
+
+// src/lib/aws/isVirtualHostableS3Bucket.ts
+var isVirtualHostableS3Bucket = /* @__PURE__ */ __name((value, allowSubDomains = false) => {
+ if (allowSubDomains) {
+ for (const label of value.split(".")) {
+ if (!isVirtualHostableS3Bucket(label)) {
+ return false;
+ }
+ }
+ return true;
+ }
+ if (!(0, import_util_endpoints.isValidHostLabel)(value)) {
+ return false;
+ }
+ if (value.length < 3 || value.length > 63) {
+ return false;
+ }
+ if (value !== value.toLowerCase()) {
+ return false;
+ }
+ if ((0, import_util_endpoints.isIpAddress)(value)) {
+ return false;
+ }
+ return true;
+}, "isVirtualHostableS3Bucket");
+
+// src/lib/aws/parseArn.ts
+var ARN_DELIMITER = ":";
+var RESOURCE_DELIMITER = "/";
+var parseArn = /* @__PURE__ */ __name((value) => {
+ const segments = value.split(ARN_DELIMITER);
+ if (segments.length < 6) return null;
+ const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
+ if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") return null;
+ const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
+ return {
+ partition: partition2,
+ service,
+ region,
+ accountId,
+ resourceId
+ };
+}, "parseArn");
+
+// src/lib/aws/partitions.json
+var partitions_default = {
+ partitions: [{
+ id: "aws",
+ outputs: {
+ dnsSuffix: "amazonaws.com",
+ dualStackDnsSuffix: "api.aws",
+ implicitGlobalRegion: "us-east-1",
+ name: "aws",
+ supportsDualStack: true,
+ supportsFIPS: true
+ },
+ regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
+ regions: {
+ "af-south-1": {
+ description: "Africa (Cape Town)"
+ },
+ "ap-east-1": {
+ description: "Asia Pacific (Hong Kong)"
+ },
+ "ap-northeast-1": {
+ description: "Asia Pacific (Tokyo)"
+ },
+ "ap-northeast-2": {
+ description: "Asia Pacific (Seoul)"
+ },
+ "ap-northeast-3": {
+ description: "Asia Pacific (Osaka)"
+ },
+ "ap-south-1": {
+ description: "Asia Pacific (Mumbai)"
+ },
+ "ap-south-2": {
+ description: "Asia Pacific (Hyderabad)"
+ },
+ "ap-southeast-1": {
+ description: "Asia Pacific (Singapore)"
+ },
+ "ap-southeast-2": {
+ description: "Asia Pacific (Sydney)"
+ },
+ "ap-southeast-3": {
+ description: "Asia Pacific (Jakarta)"
+ },
+ "ap-southeast-4": {
+ description: "Asia Pacific (Melbourne)"
+ },
+ "ap-southeast-5": {
+ description: "Asia Pacific (Malaysia)"
+ },
+ "ap-southeast-7": {
+ description: "Asia Pacific (Thailand)"
+ },
+ "aws-global": {
+ description: "AWS Standard global region"
+ },
+ "ca-central-1": {
+ description: "Canada (Central)"
+ },
+ "ca-west-1": {
+ description: "Canada West (Calgary)"
+ },
+ "eu-central-1": {
+ description: "Europe (Frankfurt)"
+ },
+ "eu-central-2": {
+ description: "Europe (Zurich)"
+ },
+ "eu-north-1": {
+ description: "Europe (Stockholm)"
+ },
+ "eu-south-1": {
+ description: "Europe (Milan)"
+ },
+ "eu-south-2": {
+ description: "Europe (Spain)"
+ },
+ "eu-west-1": {
+ description: "Europe (Ireland)"
+ },
+ "eu-west-2": {
+ description: "Europe (London)"
+ },
+ "eu-west-3": {
+ description: "Europe (Paris)"
+ },
+ "il-central-1": {
+ description: "Israel (Tel Aviv)"
+ },
+ "me-central-1": {
+ description: "Middle East (UAE)"
+ },
+ "me-south-1": {
+ description: "Middle East (Bahrain)"
+ },
+ "mx-central-1": {
+ description: "Mexico (Central)"
+ },
+ "sa-east-1": {
+ description: "South America (Sao Paulo)"
+ },
+ "us-east-1": {
+ description: "US East (N. Virginia)"
+ },
+ "us-east-2": {
+ description: "US East (Ohio)"
+ },
+ "us-west-1": {
+ description: "US West (N. California)"
+ },
+ "us-west-2": {
+ description: "US West (Oregon)"
+ }
+ }
+ }, {
+ id: "aws-cn",
+ outputs: {
+ dnsSuffix: "amazonaws.com.cn",
+ dualStackDnsSuffix: "api.amazonwebservices.com.cn",
+ implicitGlobalRegion: "cn-northwest-1",
+ name: "aws-cn",
+ supportsDualStack: true,
+ supportsFIPS: true
+ },
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
+ regions: {
+ "aws-cn-global": {
+ description: "AWS China global region"
+ },
+ "cn-north-1": {
+ description: "China (Beijing)"
+ },
+ "cn-northwest-1": {
+ description: "China (Ningxia)"
+ }
+ }
+ }, {
+ id: "aws-us-gov",
+ outputs: {
+ dnsSuffix: "amazonaws.com",
+ dualStackDnsSuffix: "api.aws",
+ implicitGlobalRegion: "us-gov-west-1",
+ name: "aws-us-gov",
+ supportsDualStack: true,
+ supportsFIPS: true
+ },
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
+ regions: {
+ "aws-us-gov-global": {
+ description: "AWS GovCloud (US) global region"
+ },
+ "us-gov-east-1": {
+ description: "AWS GovCloud (US-East)"
+ },
+ "us-gov-west-1": {
+ description: "AWS GovCloud (US-West)"
+ }
+ }
+ }, {
+ id: "aws-iso",
+ outputs: {
+ dnsSuffix: "c2s.ic.gov",
+ dualStackDnsSuffix: "c2s.ic.gov",
+ implicitGlobalRegion: "us-iso-east-1",
+ name: "aws-iso",
+ supportsDualStack: false,
+ supportsFIPS: true
+ },
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
+ regions: {
+ "aws-iso-global": {
+ description: "AWS ISO (US) global region"
+ },
+ "us-iso-east-1": {
+ description: "US ISO East"
+ },
+ "us-iso-west-1": {
+ description: "US ISO WEST"
+ }
+ }
+ }, {
+ id: "aws-iso-b",
+ outputs: {
+ dnsSuffix: "sc2s.sgov.gov",
+ dualStackDnsSuffix: "sc2s.sgov.gov",
+ implicitGlobalRegion: "us-isob-east-1",
+ name: "aws-iso-b",
+ supportsDualStack: false,
+ supportsFIPS: true
+ },
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
+ regions: {
+ "aws-iso-b-global": {
+ description: "AWS ISOB (US) global region"
+ },
+ "us-isob-east-1": {
+ description: "US ISOB East (Ohio)"
+ }
+ }
+ }, {
+ id: "aws-iso-e",
+ outputs: {
+ dnsSuffix: "cloud.adc-e.uk",
+ dualStackDnsSuffix: "cloud.adc-e.uk",
+ implicitGlobalRegion: "eu-isoe-west-1",
+ name: "aws-iso-e",
+ supportsDualStack: false,
+ supportsFIPS: true
+ },
+ regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
+ regions: {
+ "eu-isoe-west-1": {
+ description: "EU ISOE West"
+ }
+ }
+ }, {
+ id: "aws-iso-f",
+ outputs: {
+ dnsSuffix: "csp.hci.ic.gov",
+ dualStackDnsSuffix: "csp.hci.ic.gov",
+ implicitGlobalRegion: "us-isof-south-1",
+ name: "aws-iso-f",
+ supportsDualStack: false,
+ supportsFIPS: true
+ },
+ regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
+ regions: {
+ "aws-iso-f-global": {
+ description: "AWS ISOF global region"
+ },
+ "us-isof-east-1": {
+ description: "US ISOF EAST"
+ },
+ "us-isof-south-1": {
+ description: "US ISOF SOUTH"
+ }
+ }
+ }],
+ version: "1.1"
+};
+
+// src/lib/aws/partition.ts
+var selectedPartitionsInfo = partitions_default;
+var selectedUserAgentPrefix = "";
+var partition = /* @__PURE__ */ __name((value) => {
+ const { partitions } = selectedPartitionsInfo;
+ for (const partition2 of partitions) {
+ const { regions, outputs } = partition2;
+ for (const [region, regionData] of Object.entries(regions)) {
+ if (region === value) {
+ return {
+ ...outputs,
+ ...regionData
+ };
+ }
+ }
+ }
+ for (const partition2 of partitions) {
+ const { regionRegex, outputs } = partition2;
+ if (new RegExp(regionRegex).test(value)) {
+ return {
+ ...outputs
+ };
+ }
+ }
+ const DEFAULT_PARTITION = partitions.find((partition2) => partition2.id === "aws");
+ if (!DEFAULT_PARTITION) {
+ throw new Error(
+ "Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist."
+ );
+ }
+ return {
+ ...DEFAULT_PARTITION.outputs
+ };
+}, "partition");
+var setPartitionInfo = /* @__PURE__ */ __name((partitionsInfo, userAgentPrefix = "") => {
+ selectedPartitionsInfo = partitionsInfo;
+ selectedUserAgentPrefix = userAgentPrefix;
+}, "setPartitionInfo");
+var useDefaultPartitionInfo = /* @__PURE__ */ __name(() => {
+ setPartitionInfo(partitions_default, "");
+}, "useDefaultPartitionInfo");
+var getUserAgentPrefix = /* @__PURE__ */ __name(() => selectedUserAgentPrefix, "getUserAgentPrefix");
+
+// src/aws.ts
+var awsEndpointFunctions = {
+ isVirtualHostableS3Bucket,
+ parseArn,
+ partition
+};
+import_util_endpoints.customEndpointFunctions.aws = awsEndpointFunctions;
+
+// src/resolveEndpoint.ts
+
+
+// src/types/EndpointError.ts
+
+
+// src/types/EndpointRuleObject.ts
+
+
+// src/types/ErrorRuleObject.ts
+
+
+// src/types/RuleSetObject.ts
+
+
+// src/types/TreeRuleObject.ts
+
+
+// src/types/shared.ts
+
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 98095:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ NODE_APP_ID_CONFIG_OPTIONS: () => NODE_APP_ID_CONFIG_OPTIONS,
+ UA_APP_ID_ENV_NAME: () => UA_APP_ID_ENV_NAME,
+ UA_APP_ID_INI_NAME: () => UA_APP_ID_INI_NAME,
+ createDefaultUserAgentProvider: () => createDefaultUserAgentProvider,
+ crtAvailability: () => crtAvailability,
+ defaultUserAgent: () => defaultUserAgent
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/defaultUserAgent.ts
+var import_os = __nccwpck_require__(22037);
+var import_process = __nccwpck_require__(77282);
+
+// src/crt-availability.ts
+var crtAvailability = {
+ isCrtAvailable: false
+};
+
+// src/is-crt-available.ts
+var isCrtAvailable = /* @__PURE__ */ __name(() => {
+ if (crtAvailability.isCrtAvailable) {
+ return ["md/crt-avail"];
+ }
+ return null;
+}, "isCrtAvailable");
+
+// src/defaultUserAgent.ts
+var createDefaultUserAgentProvider = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => {
+ return async (config) => {
+ const sections = [
+ // sdk-metadata
+ ["aws-sdk-js", clientVersion],
+ // ua-metadata
+ ["ua", "2.1"],
+ // os-metadata
+ [`os/${(0, import_os.platform)()}`, (0, import_os.release)()],
+ // language-metadata
+ // ECMAScript edition doesn't matter in JS, so no version needed.
+ ["lang/js"],
+ ["md/nodejs", `${import_process.versions.node}`]
+ ];
+ const crtAvailable = isCrtAvailable();
+ if (crtAvailable) {
+ sections.push(crtAvailable);
+ }
+ if (serviceId) {
+ sections.push([`api/${serviceId}`, clientVersion]);
+ }
+ if (import_process.env.AWS_EXECUTION_ENV) {
+ sections.push([`exec-env/${import_process.env.AWS_EXECUTION_ENV}`]);
+ }
+ const appId = await config?.userAgentAppId?.();
+ const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
+ return resolvedUserAgent;
+ };
+}, "createDefaultUserAgentProvider");
+var defaultUserAgent = createDefaultUserAgentProvider;
+
+// src/nodeAppIdConfigOptions.ts
+var import_middleware_user_agent = __nccwpck_require__(64688);
+var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
+var UA_APP_ID_INI_NAME = "sdk_ua_app_id";
+var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
+var NODE_APP_ID_CONFIG_OPTIONS = {
+ environmentVariableSelector: /* @__PURE__ */ __name((env2) => env2[UA_APP_ID_ENV_NAME], "environmentVariableSelector"),
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED], "configFileSelector"),
+ default: import_middleware_user_agent.DEFAULT_UA_APP_ID
+};
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 42329:
+/***/ ((module) => {
+
+"use strict";
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var index_exports = {};
+__export(index_exports, {
+ XmlNode: () => XmlNode,
+ XmlText: () => XmlText
+});
+module.exports = __toCommonJS(index_exports);
+
+// src/escape-attribute.ts
+function escapeAttribute(value) {
+ return value.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """);
+}
+__name(escapeAttribute, "escapeAttribute");
+
+// src/escape-element.ts
+function escapeElement(value) {
+ return value.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(//g, ">").replace(/\r/g, "
").replace(/\n/g, "
").replace(/\u0085/g, "
").replace(/\u2028/, "
");
+}
+__name(escapeElement, "escapeElement");
+
+// src/XmlText.ts
+var XmlText = class {
+ constructor(value) {
+ this.value = value;
+ }
+ static {
+ __name(this, "XmlText");
+ }
+ toString() {
+ return escapeElement("" + this.value);
+ }
+};
+
+// src/XmlNode.ts
+var XmlNode = class _XmlNode {
+ constructor(name, children = []) {
+ this.name = name;
+ this.children = children;
+ }
+ static {
+ __name(this, "XmlNode");
+ }
+ attributes = {};
+ static of(name, childText, withName) {
+ const node = new _XmlNode(name);
+ if (childText !== void 0) {
+ node.addChildNode(new XmlText(childText));
+ }
+ if (withName !== void 0) {
+ node.withName(withName);
+ }
+ return node;
+ }
+ withName(name) {
+ this.name = name;
+ return this;
+ }
+ addAttribute(name, value) {
+ this.attributes[name] = value;
+ return this;
+ }
+ addChildNode(child) {
+ this.children.push(child);
+ return this;
+ }
+ removeAttribute(name) {
+ delete this.attributes[name];
+ return this;
+ }
+ /**
+ * @internal
+ * Alias of {@link XmlNode#withName(string)} for codegen brevity.
+ */
+ n(name) {
+ this.name = name;
+ return this;
+ }
+ /**
+ * @internal
+ * Alias of {@link XmlNode#addChildNode(string)} for codegen brevity.
+ */
+ c(child) {
+ this.children.push(child);
+ return this;
+ }
+ /**
+ * @internal
+ * Checked version of {@link XmlNode#addAttribute(string)} for codegen brevity.
+ */
+ a(name, value) {
+ if (value != null) {
+ this.attributes[name] = value;
+ }
+ return this;
+ }
+ /**
+ * Create a child node.
+ * Used in serialization of string fields.
+ * @internal
+ */
+ cc(input, field, withName = field) {
+ if (input[field] != null) {
+ const node = _XmlNode.of(field, input[field]).withName(withName);
+ this.c(node);
+ }
+ }
+ /**
+ * Creates list child nodes.
+ * @internal
+ */
+ l(input, listName, memberName, valueProvider) {
+ if (input[listName] != null) {
+ const nodes = valueProvider();
+ nodes.map((node) => {
+ node.withName(memberName);
+ this.c(node);
+ });
+ }
+ }
+ /**
+ * Creates list child nodes with container.
+ * @internal
+ */
+ lc(input, listName, memberName, valueProvider) {
+ if (input[listName] != null) {
+ const nodes = valueProvider();
+ const containerNode = new _XmlNode(memberName);
+ nodes.map((node) => {
+ containerNode.c(node);
+ });
+ this.c(containerNode);
+ }
+ }
+ toString() {
+ const hasChildren = Boolean(this.children.length);
+ let xmlText = `<${this.name}`;
+ const attributes = this.attributes;
+ for (const attributeName of Object.keys(attributes)) {
+ const attribute = attributes[attributeName];
+ if (attribute != null) {
+ xmlText += ` ${attributeName}="${escapeAttribute("" + attribute)}"`;
+ }
+ }
+ return xmlText += !hasChildren ? "/>" : `>${this.children.map((c) => c.toString()).join("")}${this.name}>`;
+ }
+};
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
/***/ }),
/***/ 52557:
@@ -20166,7 +67934,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
var uuid = __nccwpck_require__(43415);
var util = __nccwpck_require__(73837);
-var tslib = __nccwpck_require__(4351);
+var tslib = __nccwpck_require__(82107);
var xml2js = __nccwpck_require__(66189);
var coreUtil = __nccwpck_require__(51333);
var logger$1 = __nccwpck_require__(3233);
@@ -26152,6 +73920,434 @@ module.exports = function(dst, src) {
};
+/***/ }),
+
+/***/ 82107:
+/***/ ((module) => {
+
+/******************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */
+/* global global, define, Symbol, Reflect, Promise, SuppressedError */
+var __extends;
+var __assign;
+var __rest;
+var __decorate;
+var __param;
+var __esDecorate;
+var __runInitializers;
+var __propKey;
+var __setFunctionName;
+var __metadata;
+var __awaiter;
+var __generator;
+var __exportStar;
+var __values;
+var __read;
+var __spread;
+var __spreadArrays;
+var __spreadArray;
+var __await;
+var __asyncGenerator;
+var __asyncDelegator;
+var __asyncValues;
+var __makeTemplateObject;
+var __importStar;
+var __importDefault;
+var __classPrivateFieldGet;
+var __classPrivateFieldSet;
+var __classPrivateFieldIn;
+var __createBinding;
+var __addDisposableResource;
+var __disposeResources;
+(function (factory) {
+ var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
+ if (typeof define === "function" && define.amd) {
+ define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
+ }
+ else if ( true && typeof module.exports === "object") {
+ factory(createExporter(root, createExporter(module.exports)));
+ }
+ else {
+ factory(createExporter(root));
+ }
+ function createExporter(exports, previous) {
+ if (exports !== root) {
+ if (typeof Object.create === "function") {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ }
+ else {
+ exports.__esModule = true;
+ }
+ }
+ return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
+ }
+})
+(function (exporter) {
+ var extendStatics = Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+
+ __extends = function (d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() { this.constructor = d; }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+ };
+
+ __assign = Object.assign || function (t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ }
+ return t;
+ };
+
+ __rest = function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
+ t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
+ t[p[i]] = s[p[i]];
+ }
+ return t;
+ };
+
+ __decorate = function (decorators, target, key, desc) {
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
+ };
+
+ __param = function (paramIndex, decorator) {
+ return function (target, key) { decorator(target, key, paramIndex); }
+ };
+
+ __esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
+ var _, done = false;
+ for (var i = decorators.length - 1; i >= 0; i--) {
+ var context = {};
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
+ if (kind === "accessor") {
+ if (result === void 0) continue;
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
+ if (_ = accept(result.get)) descriptor.get = _;
+ if (_ = accept(result.set)) descriptor.set = _;
+ if (_ = accept(result.init)) initializers.unshift(_);
+ }
+ else if (_ = accept(result)) {
+ if (kind === "field") initializers.unshift(_);
+ else descriptor[key] = _;
+ }
+ }
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
+ done = true;
+ };
+
+ __runInitializers = function (thisArg, initializers, value) {
+ var useValue = arguments.length > 2;
+ for (var i = 0; i < initializers.length; i++) {
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
+ }
+ return useValue ? value : void 0;
+ };
+
+ __propKey = function (x) {
+ return typeof x === "symbol" ? x : "".concat(x);
+ };
+
+ __setFunctionName = function (f, name, prefix) {
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
+ };
+
+ __metadata = function (metadataKey, metadataValue) {
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
+ };
+
+ __awaiter = function (thisArg, _arguments, P, generator) {
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+ };
+
+ __generator = function (thisArg, body) {
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
+ function verb(n) { return function (v) { return step([n, v]); }; }
+ function step(op) {
+ if (f) throw new TypeError("Generator is already executing.");
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
+ if (y = 0, t) op = [op[0] & 2, t.value];
+ switch (op[0]) {
+ case 0: case 1: t = op; break;
+ case 4: _.label++; return { value: op[1], done: false };
+ case 5: _.label++; y = op[1]; op = [0]; continue;
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
+ default:
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
+ if (t[2]) _.ops.pop();
+ _.trys.pop(); continue;
+ }
+ op = body.call(thisArg, _);
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
+ }
+ };
+
+ __exportStar = function(m, o) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
+ };
+
+ __createBinding = Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+ }) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+ });
+
+ __values = function (o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m) return m.call(o);
+ if (o && typeof o.length === "number") return {
+ next: function () {
+ if (o && i >= o.length) o = void 0;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+
+ __read = function (o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m) return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+ }
+ catch (error) { e = { error: error }; }
+ finally {
+ try {
+ if (r && !r.done && (m = i["return"])) m.call(i);
+ }
+ finally { if (e) throw e.error; }
+ }
+ return ar;
+ };
+
+ /** @deprecated */
+ __spread = function () {
+ for (var ar = [], i = 0; i < arguments.length; i++)
+ ar = ar.concat(__read(arguments[i]));
+ return ar;
+ };
+
+ /** @deprecated */
+ __spreadArrays = function () {
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
+ r[k] = a[j];
+ return r;
+ };
+
+ __spreadArray = function (to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+ };
+
+ __await = function (v) {
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
+ };
+
+ __asyncGenerator = function (thisArg, _arguments, generator) {
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
+ function fulfill(value) { resume("next", value); }
+ function reject(value) { resume("throw", value); }
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
+ };
+
+ __asyncDelegator = function (o) {
+ var i, p;
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
+ };
+
+ __asyncValues = function (o) {
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
+ var m = o[Symbol.asyncIterator], i;
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
+ };
+
+ __makeTemplateObject = function (cooked, raw) {
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
+ return cooked;
+ };
+
+ var __setModuleDefault = Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+ }) : function(o, v) {
+ o["default"] = v;
+ };
+
+ __importStar = function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+
+ __importDefault = function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+ };
+
+ __classPrivateFieldGet = function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+ };
+
+ __classPrivateFieldSet = function (receiver, state, value, kind, f) {
+ if (kind === "m") throw new TypeError("Private method is not writable");
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
+ };
+
+ __classPrivateFieldIn = function (state, receiver) {
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
+ return typeof state === "function" ? receiver === state : state.has(receiver);
+ };
+
+ __addDisposableResource = function (env, value, async) {
+ if (value !== null && value !== void 0) {
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
+ var dispose;
+ if (async) {
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
+ dispose = value[Symbol.asyncDispose];
+ }
+ if (dispose === void 0) {
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
+ dispose = value[Symbol.dispose];
+ }
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
+ env.stack.push({ value: value, dispose: dispose, async: async });
+ }
+ else if (async) {
+ env.stack.push({ async: true });
+ }
+ return value;
+ };
+
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
+ var e = new Error(message);
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
+ };
+
+ __disposeResources = function (env) {
+ function fail(e) {
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
+ env.hasError = true;
+ }
+ function next() {
+ while (env.stack.length) {
+ var rec = env.stack.pop();
+ try {
+ var result = rec.dispose && rec.dispose.call(rec.value);
+ if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
+ }
+ catch (e) {
+ fail(e);
+ }
+ }
+ if (env.hasError) throw env.error;
+ }
+ return next();
+ };
+
+ exporter("__extends", __extends);
+ exporter("__assign", __assign);
+ exporter("__rest", __rest);
+ exporter("__decorate", __decorate);
+ exporter("__param", __param);
+ exporter("__esDecorate", __esDecorate);
+ exporter("__runInitializers", __runInitializers);
+ exporter("__propKey", __propKey);
+ exporter("__setFunctionName", __setFunctionName);
+ exporter("__metadata", __metadata);
+ exporter("__awaiter", __awaiter);
+ exporter("__generator", __generator);
+ exporter("__exportStar", __exportStar);
+ exporter("__createBinding", __createBinding);
+ exporter("__values", __values);
+ exporter("__read", __read);
+ exporter("__spread", __spread);
+ exporter("__spreadArrays", __spreadArrays);
+ exporter("__spreadArray", __spreadArray);
+ exporter("__await", __await);
+ exporter("__asyncGenerator", __asyncGenerator);
+ exporter("__asyncDelegator", __asyncDelegator);
+ exporter("__asyncValues", __asyncValues);
+ exporter("__makeTemplateObject", __makeTemplateObject);
+ exporter("__importStar", __importStar);
+ exporter("__importDefault", __importDefault);
+ exporter("__classPrivateFieldGet", __classPrivateFieldGet);
+ exporter("__classPrivateFieldSet", __classPrivateFieldSet);
+ exporter("__classPrivateFieldIn", __classPrivateFieldIn);
+ exporter("__addDisposableResource", __addDisposableResource);
+ exporter("__disposeResources", __disposeResources);
+});
+
+
/***/ }),
/***/ 43415:
@@ -26230,7 +74426,7 @@ var _nil = _interopRequireDefault(__nccwpck_require__(657));
var _version = _interopRequireDefault(__nccwpck_require__(37909));
-var _validate = _interopRequireDefault(__nccwpck_require__(64418));
+var _validate = _interopRequireDefault(__nccwpck_require__(47724));
var _stringify = _interopRequireDefault(__nccwpck_require__(74794));
@@ -26296,7 +74492,7 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _validate = _interopRequireDefault(__nccwpck_require__(64418));
+var _validate = _interopRequireDefault(__nccwpck_require__(47724));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -26424,7 +74620,7 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _validate = _interopRequireDefault(__nccwpck_require__(64418));
+var _validate = _interopRequireDefault(__nccwpck_require__(47724));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -26748,7 +74944,7 @@ exports["default"] = _default;
/***/ }),
-/***/ 64418:
+/***/ 47724:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -26783,7 +74979,7 @@ Object.defineProperty(exports, "__esModule", ({
}));
exports["default"] = void 0;
-var _validate = _interopRequireDefault(__nccwpck_require__(64418));
+var _validate = _interopRequireDefault(__nccwpck_require__(47724));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -27984,7 +76180,7 @@ exports.createHttpPoller = createHttpPoller;
Object.defineProperty(exports, "__esModule", ({ value: true }));
-var tslib = __nccwpck_require__(4351);
+var tslib = __nccwpck_require__(26429);
// Copyright (c) Microsoft Corporation.
/**
@@ -28086,6 +76282,434 @@ exports.getPagedAsyncIterator = getPagedAsyncIterator;
//# sourceMappingURL=index.js.map
+/***/ }),
+
+/***/ 26429:
+/***/ ((module) => {
+
+/******************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */
+/* global global, define, Symbol, Reflect, Promise, SuppressedError */
+var __extends;
+var __assign;
+var __rest;
+var __decorate;
+var __param;
+var __esDecorate;
+var __runInitializers;
+var __propKey;
+var __setFunctionName;
+var __metadata;
+var __awaiter;
+var __generator;
+var __exportStar;
+var __values;
+var __read;
+var __spread;
+var __spreadArrays;
+var __spreadArray;
+var __await;
+var __asyncGenerator;
+var __asyncDelegator;
+var __asyncValues;
+var __makeTemplateObject;
+var __importStar;
+var __importDefault;
+var __classPrivateFieldGet;
+var __classPrivateFieldSet;
+var __classPrivateFieldIn;
+var __createBinding;
+var __addDisposableResource;
+var __disposeResources;
+(function (factory) {
+ var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
+ if (typeof define === "function" && define.amd) {
+ define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
+ }
+ else if ( true && typeof module.exports === "object") {
+ factory(createExporter(root, createExporter(module.exports)));
+ }
+ else {
+ factory(createExporter(root));
+ }
+ function createExporter(exports, previous) {
+ if (exports !== root) {
+ if (typeof Object.create === "function") {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ }
+ else {
+ exports.__esModule = true;
+ }
+ }
+ return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
+ }
+})
+(function (exporter) {
+ var extendStatics = Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+
+ __extends = function (d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() { this.constructor = d; }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+ };
+
+ __assign = Object.assign || function (t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ }
+ return t;
+ };
+
+ __rest = function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
+ t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
+ t[p[i]] = s[p[i]];
+ }
+ return t;
+ };
+
+ __decorate = function (decorators, target, key, desc) {
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
+ };
+
+ __param = function (paramIndex, decorator) {
+ return function (target, key) { decorator(target, key, paramIndex); }
+ };
+
+ __esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
+ var _, done = false;
+ for (var i = decorators.length - 1; i >= 0; i--) {
+ var context = {};
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
+ if (kind === "accessor") {
+ if (result === void 0) continue;
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
+ if (_ = accept(result.get)) descriptor.get = _;
+ if (_ = accept(result.set)) descriptor.set = _;
+ if (_ = accept(result.init)) initializers.unshift(_);
+ }
+ else if (_ = accept(result)) {
+ if (kind === "field") initializers.unshift(_);
+ else descriptor[key] = _;
+ }
+ }
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
+ done = true;
+ };
+
+ __runInitializers = function (thisArg, initializers, value) {
+ var useValue = arguments.length > 2;
+ for (var i = 0; i < initializers.length; i++) {
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
+ }
+ return useValue ? value : void 0;
+ };
+
+ __propKey = function (x) {
+ return typeof x === "symbol" ? x : "".concat(x);
+ };
+
+ __setFunctionName = function (f, name, prefix) {
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
+ };
+
+ __metadata = function (metadataKey, metadataValue) {
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
+ };
+
+ __awaiter = function (thisArg, _arguments, P, generator) {
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+ };
+
+ __generator = function (thisArg, body) {
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
+ function verb(n) { return function (v) { return step([n, v]); }; }
+ function step(op) {
+ if (f) throw new TypeError("Generator is already executing.");
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
+ if (y = 0, t) op = [op[0] & 2, t.value];
+ switch (op[0]) {
+ case 0: case 1: t = op; break;
+ case 4: _.label++; return { value: op[1], done: false };
+ case 5: _.label++; y = op[1]; op = [0]; continue;
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
+ default:
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
+ if (t[2]) _.ops.pop();
+ _.trys.pop(); continue;
+ }
+ op = body.call(thisArg, _);
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
+ }
+ };
+
+ __exportStar = function(m, o) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
+ };
+
+ __createBinding = Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+ }) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+ });
+
+ __values = function (o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m) return m.call(o);
+ if (o && typeof o.length === "number") return {
+ next: function () {
+ if (o && i >= o.length) o = void 0;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+
+ __read = function (o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m) return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+ }
+ catch (error) { e = { error: error }; }
+ finally {
+ try {
+ if (r && !r.done && (m = i["return"])) m.call(i);
+ }
+ finally { if (e) throw e.error; }
+ }
+ return ar;
+ };
+
+ /** @deprecated */
+ __spread = function () {
+ for (var ar = [], i = 0; i < arguments.length; i++)
+ ar = ar.concat(__read(arguments[i]));
+ return ar;
+ };
+
+ /** @deprecated */
+ __spreadArrays = function () {
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
+ r[k] = a[j];
+ return r;
+ };
+
+ __spreadArray = function (to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+ };
+
+ __await = function (v) {
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
+ };
+
+ __asyncGenerator = function (thisArg, _arguments, generator) {
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
+ function fulfill(value) { resume("next", value); }
+ function reject(value) { resume("throw", value); }
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
+ };
+
+ __asyncDelegator = function (o) {
+ var i, p;
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
+ };
+
+ __asyncValues = function (o) {
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
+ var m = o[Symbol.asyncIterator], i;
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
+ };
+
+ __makeTemplateObject = function (cooked, raw) {
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
+ return cooked;
+ };
+
+ var __setModuleDefault = Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+ }) : function(o, v) {
+ o["default"] = v;
+ };
+
+ __importStar = function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+
+ __importDefault = function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+ };
+
+ __classPrivateFieldGet = function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+ };
+
+ __classPrivateFieldSet = function (receiver, state, value, kind, f) {
+ if (kind === "m") throw new TypeError("Private method is not writable");
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
+ };
+
+ __classPrivateFieldIn = function (state, receiver) {
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
+ return typeof state === "function" ? receiver === state : state.has(receiver);
+ };
+
+ __addDisposableResource = function (env, value, async) {
+ if (value !== null && value !== void 0) {
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
+ var dispose;
+ if (async) {
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
+ dispose = value[Symbol.asyncDispose];
+ }
+ if (dispose === void 0) {
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
+ dispose = value[Symbol.dispose];
+ }
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
+ env.stack.push({ value: value, dispose: dispose, async: async });
+ }
+ else if (async) {
+ env.stack.push({ async: true });
+ }
+ return value;
+ };
+
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
+ var e = new Error(message);
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
+ };
+
+ __disposeResources = function (env) {
+ function fail(e) {
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
+ env.hasError = true;
+ }
+ function next() {
+ while (env.stack.length) {
+ var rec = env.stack.pop();
+ try {
+ var result = rec.dispose && rec.dispose.call(rec.value);
+ if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
+ }
+ catch (e) {
+ fail(e);
+ }
+ }
+ if (env.hasError) throw env.error;
+ }
+ return next();
+ };
+
+ exporter("__extends", __extends);
+ exporter("__assign", __assign);
+ exporter("__rest", __rest);
+ exporter("__decorate", __decorate);
+ exporter("__param", __param);
+ exporter("__esDecorate", __esDecorate);
+ exporter("__runInitializers", __runInitializers);
+ exporter("__propKey", __propKey);
+ exporter("__setFunctionName", __setFunctionName);
+ exporter("__metadata", __metadata);
+ exporter("__awaiter", __awaiter);
+ exporter("__generator", __generator);
+ exporter("__exportStar", __exportStar);
+ exporter("__createBinding", __createBinding);
+ exporter("__values", __values);
+ exporter("__read", __read);
+ exporter("__spread", __spread);
+ exporter("__spreadArrays", __spreadArrays);
+ exporter("__spreadArray", __spreadArray);
+ exporter("__await", __await);
+ exporter("__asyncGenerator", __asyncGenerator);
+ exporter("__asyncDelegator", __asyncDelegator);
+ exporter("__asyncValues", __asyncValues);
+ exporter("__makeTemplateObject", __makeTemplateObject);
+ exporter("__importStar", __importStar);
+ exporter("__importDefault", __importDefault);
+ exporter("__classPrivateFieldGet", __classPrivateFieldGet);
+ exporter("__classPrivateFieldSet", __classPrivateFieldSet);
+ exporter("__classPrivateFieldIn", __classPrivateFieldIn);
+ exporter("__addDisposableResource", __addDisposableResource);
+ exporter("__disposeResources", __disposeResources);
+});
+
+
/***/ }),
/***/ 94175:
@@ -28933,7 +77557,7 @@ exports.setLogLevel = setLogLevel;
Object.defineProperty(exports, "__esModule", ({ value: true }));
var coreHttp = __nccwpck_require__(24607);
-var tslib = __nccwpck_require__(4351);
+var tslib = __nccwpck_require__(70679);
var coreTracing = __nccwpck_require__(94175);
var logger$1 = __nccwpck_require__(3233);
var abortController = __nccwpck_require__(52557);
@@ -54047,6 +102671,434 @@ exports.newPipeline = newPipeline;
//# sourceMappingURL=index.js.map
+/***/ }),
+
+/***/ 70679:
+/***/ ((module) => {
+
+/******************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */
+/* global global, define, Symbol, Reflect, Promise, SuppressedError */
+var __extends;
+var __assign;
+var __rest;
+var __decorate;
+var __param;
+var __esDecorate;
+var __runInitializers;
+var __propKey;
+var __setFunctionName;
+var __metadata;
+var __awaiter;
+var __generator;
+var __exportStar;
+var __values;
+var __read;
+var __spread;
+var __spreadArrays;
+var __spreadArray;
+var __await;
+var __asyncGenerator;
+var __asyncDelegator;
+var __asyncValues;
+var __makeTemplateObject;
+var __importStar;
+var __importDefault;
+var __classPrivateFieldGet;
+var __classPrivateFieldSet;
+var __classPrivateFieldIn;
+var __createBinding;
+var __addDisposableResource;
+var __disposeResources;
+(function (factory) {
+ var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
+ if (typeof define === "function" && define.amd) {
+ define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
+ }
+ else if ( true && typeof module.exports === "object") {
+ factory(createExporter(root, createExporter(module.exports)));
+ }
+ else {
+ factory(createExporter(root));
+ }
+ function createExporter(exports, previous) {
+ if (exports !== root) {
+ if (typeof Object.create === "function") {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ }
+ else {
+ exports.__esModule = true;
+ }
+ }
+ return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
+ }
+})
+(function (exporter) {
+ var extendStatics = Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
+
+ __extends = function (d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() { this.constructor = d; }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+ };
+
+ __assign = Object.assign || function (t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ }
+ return t;
+ };
+
+ __rest = function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
+ t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
+ t[p[i]] = s[p[i]];
+ }
+ return t;
+ };
+
+ __decorate = function (decorators, target, key, desc) {
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
+ };
+
+ __param = function (paramIndex, decorator) {
+ return function (target, key) { decorator(target, key, paramIndex); }
+ };
+
+ __esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
+ var _, done = false;
+ for (var i = decorators.length - 1; i >= 0; i--) {
+ var context = {};
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
+ if (kind === "accessor") {
+ if (result === void 0) continue;
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
+ if (_ = accept(result.get)) descriptor.get = _;
+ if (_ = accept(result.set)) descriptor.set = _;
+ if (_ = accept(result.init)) initializers.unshift(_);
+ }
+ else if (_ = accept(result)) {
+ if (kind === "field") initializers.unshift(_);
+ else descriptor[key] = _;
+ }
+ }
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
+ done = true;
+ };
+
+ __runInitializers = function (thisArg, initializers, value) {
+ var useValue = arguments.length > 2;
+ for (var i = 0; i < initializers.length; i++) {
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
+ }
+ return useValue ? value : void 0;
+ };
+
+ __propKey = function (x) {
+ return typeof x === "symbol" ? x : "".concat(x);
+ };
+
+ __setFunctionName = function (f, name, prefix) {
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
+ };
+
+ __metadata = function (metadataKey, metadataValue) {
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
+ };
+
+ __awaiter = function (thisArg, _arguments, P, generator) {
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+ };
+
+ __generator = function (thisArg, body) {
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
+ function verb(n) { return function (v) { return step([n, v]); }; }
+ function step(op) {
+ if (f) throw new TypeError("Generator is already executing.");
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
+ if (y = 0, t) op = [op[0] & 2, t.value];
+ switch (op[0]) {
+ case 0: case 1: t = op; break;
+ case 4: _.label++; return { value: op[1], done: false };
+ case 5: _.label++; y = op[1]; op = [0]; continue;
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
+ default:
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
+ if (t[2]) _.ops.pop();
+ _.trys.pop(); continue;
+ }
+ op = body.call(thisArg, _);
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
+ }
+ };
+
+ __exportStar = function(m, o) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
+ };
+
+ __createBinding = Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+ }) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+ });
+
+ __values = function (o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m) return m.call(o);
+ if (o && typeof o.length === "number") return {
+ next: function () {
+ if (o && i >= o.length) o = void 0;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+
+ __read = function (o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m) return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
+ }
+ catch (error) { e = { error: error }; }
+ finally {
+ try {
+ if (r && !r.done && (m = i["return"])) m.call(i);
+ }
+ finally { if (e) throw e.error; }
+ }
+ return ar;
+ };
+
+ /** @deprecated */
+ __spread = function () {
+ for (var ar = [], i = 0; i < arguments.length; i++)
+ ar = ar.concat(__read(arguments[i]));
+ return ar;
+ };
+
+ /** @deprecated */
+ __spreadArrays = function () {
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
+ r[k] = a[j];
+ return r;
+ };
+
+ __spreadArray = function (to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+ };
+
+ __await = function (v) {
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
+ };
+
+ __asyncGenerator = function (thisArg, _arguments, generator) {
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
+ function fulfill(value) { resume("next", value); }
+ function reject(value) { resume("throw", value); }
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
+ };
+
+ __asyncDelegator = function (o) {
+ var i, p;
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
+ };
+
+ __asyncValues = function (o) {
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
+ var m = o[Symbol.asyncIterator], i;
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
+ };
+
+ __makeTemplateObject = function (cooked, raw) {
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
+ return cooked;
+ };
+
+ var __setModuleDefault = Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+ }) : function(o, v) {
+ o["default"] = v;
+ };
+
+ __importStar = function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+ };
+
+ __importDefault = function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+ };
+
+ __classPrivateFieldGet = function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+ };
+
+ __classPrivateFieldSet = function (receiver, state, value, kind, f) {
+ if (kind === "m") throw new TypeError("Private method is not writable");
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
+ };
+
+ __classPrivateFieldIn = function (state, receiver) {
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
+ return typeof state === "function" ? receiver === state : state.has(receiver);
+ };
+
+ __addDisposableResource = function (env, value, async) {
+ if (value !== null && value !== void 0) {
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
+ var dispose;
+ if (async) {
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
+ dispose = value[Symbol.asyncDispose];
+ }
+ if (dispose === void 0) {
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
+ dispose = value[Symbol.dispose];
+ }
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
+ env.stack.push({ value: value, dispose: dispose, async: async });
+ }
+ else if (async) {
+ env.stack.push({ async: true });
+ }
+ return value;
+ };
+
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
+ var e = new Error(message);
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
+ };
+
+ __disposeResources = function (env) {
+ function fail(e) {
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
+ env.hasError = true;
+ }
+ function next() {
+ while (env.stack.length) {
+ var rec = env.stack.pop();
+ try {
+ var result = rec.dispose && rec.dispose.call(rec.value);
+ if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
+ }
+ catch (e) {
+ fail(e);
+ }
+ }
+ if (env.hasError) throw env.error;
+ }
+ return next();
+ };
+
+ exporter("__extends", __extends);
+ exporter("__assign", __assign);
+ exporter("__rest", __rest);
+ exporter("__decorate", __decorate);
+ exporter("__param", __param);
+ exporter("__esDecorate", __esDecorate);
+ exporter("__runInitializers", __runInitializers);
+ exporter("__propKey", __propKey);
+ exporter("__setFunctionName", __setFunctionName);
+ exporter("__metadata", __metadata);
+ exporter("__awaiter", __awaiter);
+ exporter("__generator", __generator);
+ exporter("__exportStar", __exportStar);
+ exporter("__createBinding", __createBinding);
+ exporter("__values", __values);
+ exporter("__read", __read);
+ exporter("__spread", __spread);
+ exporter("__spreadArrays", __spreadArrays);
+ exporter("__spreadArray", __spreadArray);
+ exporter("__await", __await);
+ exporter("__asyncGenerator", __asyncGenerator);
+ exporter("__asyncDelegator", __asyncDelegator);
+ exporter("__asyncValues", __asyncValues);
+ exporter("__makeTemplateObject", __makeTemplateObject);
+ exporter("__importStar", __importStar);
+ exporter("__importDefault", __importDefault);
+ exporter("__classPrivateFieldGet", __classPrivateFieldGet);
+ exporter("__classPrivateFieldSet", __classPrivateFieldSet);
+ exporter("__classPrivateFieldIn", __classPrivateFieldIn);
+ exporter("__addDisposableResource", __addDisposableResource);
+ exporter("__disposeResources", __disposeResources);
+});
+
+
/***/ }),
/***/ 98348:
@@ -54356,7 +103408,7 @@ exports.Listener = Listener;
/***/ }),
-/***/ 49046:
+/***/ 81027:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -54999,7 +104051,7 @@ var read_js_1 = __nccwpck_require__(7653);
Object.defineProperty(exports, "read", ({ enumerable: true, get: function () { return read_js_1.read; } }));
var readDir_js_1 = __nccwpck_require__(14766);
Object.defineProperty(exports, "readDir", ({ enumerable: true, get: function () { return readDir_js_1.readDir; } }));
-var readDirSync_js_1 = __nccwpck_require__(24128);
+var readDirSync_js_1 = __nccwpck_require__(1299);
Object.defineProperty(exports, "readDirSync", ({ enumerable: true, get: function () { return readDirSync_js_1.readDirSync; } }));
var readFile_js_1 = __nccwpck_require__(19838);
Object.defineProperty(exports, "readFile", ({ enumerable: true, get: function () { return readFile_js_1.readFile; } }));
@@ -55377,7 +104429,7 @@ exports.connectTls = connectTls;
///
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.copy = void 0;
-const consts_js_1 = __nccwpck_require__(49046);
+const consts_js_1 = __nccwpck_require__(81027);
const copy = async function copy(src, dst, options) {
var _a;
let n = 0;
@@ -56412,7 +105464,7 @@ exports.readDir = readDir;
/***/ }),
-/***/ 24128:
+/***/ 1299:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -58491,7 +107543,7 @@ const inherits = (__nccwpck_require__(47261).inherits)
const StreamSearch = __nccwpck_require__(88534)
const PartStream = __nccwpck_require__(38710)
-const HeaderParser = __nccwpck_require__(36795)
+const HeaderParser = __nccwpck_require__(90333)
const DASH = 45
const B_ONEDASH = Buffer.from('-')
@@ -58694,7 +107746,7 @@ module.exports = Dicer
/***/ }),
-/***/ 36795:
+/***/ 90333:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -133745,7 +182797,7 @@ EventsV1EventList.attributeTypeMap = [
/***/ }),
-/***/ 6933:
+/***/ 10000:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -133810,7 +182862,7 @@ tslib_1.__exportStar(__nccwpck_require__(70438), exports);
tslib_1.__exportStar(__nccwpck_require__(75853), exports);
tslib_1.__exportStar(__nccwpck_require__(52191), exports);
tslib_1.__exportStar(__nccwpck_require__(1051), exports);
-tslib_1.__exportStar(__nccwpck_require__(6933), exports);
+tslib_1.__exportStar(__nccwpck_require__(10000), exports);
tslib_1.__exportStar(__nccwpck_require__(25958), exports);
tslib_1.__exportStar(__nccwpck_require__(44481), exports);
tslib_1.__exportStar(__nccwpck_require__(52906), exports);
@@ -133827,7 +182879,7 @@ tslib_1.__exportStar(__nccwpck_require__(61957), exports);
tslib_1.__exportStar(__nccwpck_require__(90312), exports);
tslib_1.__exportStar(__nccwpck_require__(97069), exports);
tslib_1.__exportStar(__nccwpck_require__(91312), exports);
-tslib_1.__exportStar(__nccwpck_require__(6336), exports);
+tslib_1.__exportStar(__nccwpck_require__(23694), exports);
tslib_1.__exportStar(__nccwpck_require__(95073), exports);
tslib_1.__exportStar(__nccwpck_require__(48551), exports);
tslib_1.__exportStar(__nccwpck_require__(68849), exports);
@@ -133882,7 +182934,7 @@ tslib_1.__exportStar(__nccwpck_require__(7011), exports);
tslib_1.__exportStar(__nccwpck_require__(24600), exports);
tslib_1.__exportStar(__nccwpck_require__(34233), exports);
tslib_1.__exportStar(__nccwpck_require__(94346), exports);
-tslib_1.__exportStar(__nccwpck_require__(9731), exports);
+tslib_1.__exportStar(__nccwpck_require__(47915), exports);
tslib_1.__exportStar(__nccwpck_require__(40325), exports);
tslib_1.__exportStar(__nccwpck_require__(32791), exports);
tslib_1.__exportStar(__nccwpck_require__(10486), exports);
@@ -133898,7 +182950,7 @@ tslib_1.__exportStar(__nccwpck_require__(32699), exports);
tslib_1.__exportStar(__nccwpck_require__(77063), exports);
tslib_1.__exportStar(__nccwpck_require__(173), exports);
tslib_1.__exportStar(__nccwpck_require__(44560), exports);
-tslib_1.__exportStar(__nccwpck_require__(80195), exports);
+tslib_1.__exportStar(__nccwpck_require__(87510), exports);
tslib_1.__exportStar(__nccwpck_require__(48451), exports);
tslib_1.__exportStar(__nccwpck_require__(18029), exports);
tslib_1.__exportStar(__nccwpck_require__(65310), exports);
@@ -133919,7 +182971,7 @@ tslib_1.__exportStar(__nccwpck_require__(53708), exports);
tslib_1.__exportStar(__nccwpck_require__(6223), exports);
tslib_1.__exportStar(__nccwpck_require__(31925), exports);
tslib_1.__exportStar(__nccwpck_require__(13449), exports);
-tslib_1.__exportStar(__nccwpck_require__(95223), exports);
+tslib_1.__exportStar(__nccwpck_require__(69906), exports);
tslib_1.__exportStar(__nccwpck_require__(23074), exports);
tslib_1.__exportStar(__nccwpck_require__(36874), exports);
tslib_1.__exportStar(__nccwpck_require__(17205), exports);
@@ -133968,8 +183020,8 @@ tslib_1.__exportStar(__nccwpck_require__(23037), exports);
tslib_1.__exportStar(__nccwpck_require__(63580), exports);
tslib_1.__exportStar(__nccwpck_require__(91260), exports);
tslib_1.__exportStar(__nccwpck_require__(94069), exports);
-tslib_1.__exportStar(__nccwpck_require__(75711), exports);
-tslib_1.__exportStar(__nccwpck_require__(93114), exports);
+tslib_1.__exportStar(__nccwpck_require__(13366), exports);
+tslib_1.__exportStar(__nccwpck_require__(32400), exports);
tslib_1.__exportStar(__nccwpck_require__(57345), exports);
tslib_1.__exportStar(__nccwpck_require__(96227), exports);
tslib_1.__exportStar(__nccwpck_require__(23549), exports);
@@ -134007,7 +183059,7 @@ tslib_1.__exportStar(__nccwpck_require__(22173), exports);
tslib_1.__exportStar(__nccwpck_require__(71056), exports);
tslib_1.__exportStar(__nccwpck_require__(63061), exports);
tslib_1.__exportStar(__nccwpck_require__(3667), exports);
-tslib_1.__exportStar(__nccwpck_require__(47532), exports);
+tslib_1.__exportStar(__nccwpck_require__(84893), exports);
tslib_1.__exportStar(__nccwpck_require__(10627), exports);
tslib_1.__exportStar(__nccwpck_require__(11740), exports);
tslib_1.__exportStar(__nccwpck_require__(4272), exports);
@@ -134028,7 +183080,7 @@ tslib_1.__exportStar(__nccwpck_require__(19051), exports);
tslib_1.__exportStar(__nccwpck_require__(90114), exports);
tslib_1.__exportStar(__nccwpck_require__(7924), exports);
tslib_1.__exportStar(__nccwpck_require__(25570), exports);
-tslib_1.__exportStar(__nccwpck_require__(89974), exports);
+tslib_1.__exportStar(__nccwpck_require__(17657), exports);
tslib_1.__exportStar(__nccwpck_require__(32966), exports);
tslib_1.__exportStar(__nccwpck_require__(78594), exports);
tslib_1.__exportStar(__nccwpck_require__(99911), exports);
@@ -134288,7 +183340,7 @@ tslib_1.__exportStar(__nccwpck_require__(74687), exports);
tslib_1.__exportStar(__nccwpck_require__(89728), exports);
tslib_1.__exportStar(__nccwpck_require__(89151), exports);
tslib_1.__exportStar(__nccwpck_require__(8786), exports);
-tslib_1.__exportStar(__nccwpck_require__(11453), exports);
+tslib_1.__exportStar(__nccwpck_require__(66258), exports);
tslib_1.__exportStar(__nccwpck_require__(98064), exports);
tslib_1.__exportStar(__nccwpck_require__(25083), exports);
tslib_1.__exportStar(__nccwpck_require__(30639), exports);
@@ -134335,7 +183387,7 @@ const coreV1EventSeries_1 = __nccwpck_require__(70438);
const discoveryV1EndpointPort_1 = __nccwpck_require__(75853);
const eventsV1Event_1 = __nccwpck_require__(52191);
const eventsV1EventList_1 = __nccwpck_require__(1051);
-const eventsV1EventSeries_1 = __nccwpck_require__(6933);
+const eventsV1EventSeries_1 = __nccwpck_require__(10000);
const storageV1TokenRequest_1 = __nccwpck_require__(25958);
const v1APIGroup_1 = __nccwpck_require__(44481);
const v1APIGroupList_1 = __nccwpck_require__(52906);
@@ -134352,7 +183404,7 @@ const v1Affinity_1 = __nccwpck_require__(61957);
const v1AggregationRule_1 = __nccwpck_require__(90312);
const v1AttachedVolume_1 = __nccwpck_require__(97069);
const v1AzureDiskVolumeSource_1 = __nccwpck_require__(91312);
-const v1AzureFilePersistentVolumeSource_1 = __nccwpck_require__(6336);
+const v1AzureFilePersistentVolumeSource_1 = __nccwpck_require__(23694);
const v1AzureFileVolumeSource_1 = __nccwpck_require__(95073);
const v1Binding_1 = __nccwpck_require__(48551);
const v1BoundObjectReference_1 = __nccwpck_require__(68849);
@@ -134407,7 +183459,7 @@ const v1CronJobSpec_1 = __nccwpck_require__(7011);
const v1CronJobStatus_1 = __nccwpck_require__(24600);
const v1CrossVersionObjectReference_1 = __nccwpck_require__(34233);
const v1CustomResourceColumnDefinition_1 = __nccwpck_require__(94346);
-const v1CustomResourceConversion_1 = __nccwpck_require__(9731);
+const v1CustomResourceConversion_1 = __nccwpck_require__(47915);
const v1CustomResourceDefinition_1 = __nccwpck_require__(40325);
const v1CustomResourceDefinitionCondition_1 = __nccwpck_require__(32791);
const v1CustomResourceDefinitionList_1 = __nccwpck_require__(10486);
@@ -134423,7 +183475,7 @@ const v1DaemonSet_1 = __nccwpck_require__(32699);
const v1DaemonSetCondition_1 = __nccwpck_require__(77063);
const v1DaemonSetList_1 = __nccwpck_require__(173);
const v1DaemonSetSpec_1 = __nccwpck_require__(44560);
-const v1DaemonSetStatus_1 = __nccwpck_require__(80195);
+const v1DaemonSetStatus_1 = __nccwpck_require__(87510);
const v1DaemonSetUpdateStrategy_1 = __nccwpck_require__(48451);
const v1DeleteOptions_1 = __nccwpck_require__(18029);
const v1Deployment_1 = __nccwpck_require__(65310);
@@ -134444,7 +183496,7 @@ const v1EndpointSlice_1 = __nccwpck_require__(53708);
const v1EndpointSliceList_1 = __nccwpck_require__(6223);
const v1EndpointSubset_1 = __nccwpck_require__(31925);
const v1Endpoints_1 = __nccwpck_require__(13449);
-const v1EndpointsList_1 = __nccwpck_require__(95223);
+const v1EndpointsList_1 = __nccwpck_require__(69906);
const v1EnvFromSource_1 = __nccwpck_require__(23074);
const v1EnvVar_1 = __nccwpck_require__(36874);
const v1EnvVarSource_1 = __nccwpck_require__(17205);
@@ -134493,8 +183545,8 @@ const v1IngressTLS_1 = __nccwpck_require__(23037);
const v1JSONSchemaProps_1 = __nccwpck_require__(63580);
const v1Job_1 = __nccwpck_require__(91260);
const v1JobCondition_1 = __nccwpck_require__(94069);
-const v1JobList_1 = __nccwpck_require__(75711);
-const v1JobSpec_1 = __nccwpck_require__(93114);
+const v1JobList_1 = __nccwpck_require__(13366);
+const v1JobSpec_1 = __nccwpck_require__(32400);
const v1JobStatus_1 = __nccwpck_require__(57345);
const v1JobTemplateSpec_1 = __nccwpck_require__(96227);
const v1KeyToPath_1 = __nccwpck_require__(23549);
@@ -134532,7 +183584,7 @@ const v1NetworkPolicyPeer_1 = __nccwpck_require__(22173);
const v1NetworkPolicyPort_1 = __nccwpck_require__(71056);
const v1NetworkPolicySpec_1 = __nccwpck_require__(63061);
const v1Node_1 = __nccwpck_require__(3667);
-const v1NodeAddress_1 = __nccwpck_require__(47532);
+const v1NodeAddress_1 = __nccwpck_require__(84893);
const v1NodeAffinity_1 = __nccwpck_require__(10627);
const v1NodeCondition_1 = __nccwpck_require__(11740);
const v1NodeConfigSource_1 = __nccwpck_require__(4272);
@@ -134553,7 +183605,7 @@ const v1ObjectReference_1 = __nccwpck_require__(19051);
const v1Overhead_1 = __nccwpck_require__(90114);
const v1OwnerReference_1 = __nccwpck_require__(7924);
const v1PersistentVolume_1 = __nccwpck_require__(25570);
-const v1PersistentVolumeClaim_1 = __nccwpck_require__(89974);
+const v1PersistentVolumeClaim_1 = __nccwpck_require__(17657);
const v1PersistentVolumeClaimCondition_1 = __nccwpck_require__(32966);
const v1PersistentVolumeClaimList_1 = __nccwpck_require__(78594);
const v1PersistentVolumeClaimSpec_1 = __nccwpck_require__(99911);
@@ -134813,7 +183865,7 @@ const v2beta1HorizontalPodAutoscaler_1 = __nccwpck_require__(74687);
const v2beta1HorizontalPodAutoscalerCondition_1 = __nccwpck_require__(89728);
const v2beta1HorizontalPodAutoscalerList_1 = __nccwpck_require__(89151);
const v2beta1HorizontalPodAutoscalerSpec_1 = __nccwpck_require__(8786);
-const v2beta1HorizontalPodAutoscalerStatus_1 = __nccwpck_require__(11453);
+const v2beta1HorizontalPodAutoscalerStatus_1 = __nccwpck_require__(66258);
const v2beta1MetricSpec_1 = __nccwpck_require__(98064);
const v2beta1MetricStatus_1 = __nccwpck_require__(25083);
const v2beta1ObjectMetricSource_1 = __nccwpck_require__(30639);
@@ -136458,7 +185510,7 @@ V1AzureDiskVolumeSource.attributeTypeMap = [
/***/ }),
-/***/ 6336:
+/***/ 23694:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -139608,7 +188660,7 @@ V1CustomResourceColumnDefinition.attributeTypeMap = [
/***/ }),
-/***/ 9731:
+/***/ 47915:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -140477,7 +189529,7 @@ V1DaemonSetSpec.attributeTypeMap = [
/***/ }),
-/***/ 80195:
+/***/ 87510:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -141661,7 +190713,7 @@ V1Endpoints.attributeTypeMap = [
/***/ }),
-/***/ 95223:
+/***/ 69906:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -144487,7 +193539,7 @@ V1JobCondition.attributeTypeMap = [
/***/ }),
-/***/ 75711:
+/***/ 13366:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -144541,7 +193593,7 @@ V1JobList.attributeTypeMap = [
/***/ }),
-/***/ 93114:
+/***/ 32400:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -146568,7 +195620,7 @@ V1Node.attributeTypeMap = [
/***/ }),
-/***/ 47532:
+/***/ 84893:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -147757,7 +196809,7 @@ V1PersistentVolume.attributeTypeMap = [
/***/ }),
-/***/ 89974:
+/***/ 17657:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -162279,7 +211331,7 @@ V2beta1HorizontalPodAutoscalerSpec.attributeTypeMap = [
/***/ }),
-/***/ 11453:
+/***/ 66258:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -165593,7 +214645,7 @@ const npmRunPath = __nccwpck_require__(20502);
const onetime = __nccwpck_require__(89082);
const makeError = __nccwpck_require__(36583);
const normalizeStdio = __nccwpck_require__(87417);
-const {spawnedKill, spawnedCancel, setupTimeout, setExitHandler} = __nccwpck_require__(3040);
+const {spawnedKill, spawnedCancel, setupTimeout, setExitHandler} = __nccwpck_require__(29787);
const {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = __nccwpck_require__(64614);
const {mergePromise, getSpawnedPromise} = __nccwpck_require__(42229);
const {joinCommand, parseCommand} = __nccwpck_require__(93197);
@@ -165980,7 +215032,7 @@ module.exports = makeError;
/***/ }),
-/***/ 3040:
+/***/ 29787:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
@@ -167972,7 +217024,7 @@ module.exports = (str) => {
/***/ }),
-/***/ 93570:
+/***/ 15300:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
const { timingSafeEqual: TSE } = __nccwpck_require__(6113)
@@ -168083,7 +217135,7 @@ module.exports = {
const { createCipheriv, createDecipheriv, getCiphers } = __nccwpck_require__(6113)
const uint64be = __nccwpck_require__(82267)
-const timingSafeEqual = __nccwpck_require__(93570)
+const timingSafeEqual = __nccwpck_require__(15300)
const { KEYOBJECT } = __nccwpck_require__(62928)
const { JWEInvalid, JWEDecryptionFailed } = __nccwpck_require__(35132)
@@ -168605,7 +217657,7 @@ module.exports = (JWA, JWK) => {
const { createHmac } = __nccwpck_require__(6113)
const { KEYOBJECT } = __nccwpck_require__(62928)
-const timingSafeEqual = __nccwpck_require__(93570)
+const timingSafeEqual = __nccwpck_require__(15300)
const resolveNodeAlg = __nccwpck_require__(41518)
const { asInput } = __nccwpck_require__(31032)
@@ -172119,7 +221171,7 @@ const EC_CURVES = __nccwpck_require__(91071)
const IVLENGTHS = __nccwpck_require__(70589)
const JWA = __nccwpck_require__(22198)
const JWK = __nccwpck_require__(11648)
-const KEYLENGTHS = __nccwpck_require__(62244)
+const KEYLENGTHS = __nccwpck_require__(90244)
const OKP_CURVES = __nccwpck_require__(52438)
const ECDH_DERIVE_LENGTHS = __nccwpck_require__(81645)
@@ -172214,7 +221266,7 @@ module.exports = {
/***/ }),
-/***/ 62244:
+/***/ 90244:
/***/ ((module) => {
module.exports = new Map([
@@ -183629,7 +232681,7 @@ var reflection_merge_partial_1 = __nccwpck_require__(7869);
Object.defineProperty(exports, "reflectionMergePartial", ({ enumerable: true, get: function () { return reflection_merge_partial_1.reflectionMergePartial; } }));
var reflection_equals_1 = __nccwpck_require__(39473);
Object.defineProperty(exports, "reflectionEquals", ({ enumerable: true, get: function () { return reflection_equals_1.reflectionEquals; } }));
-var reflection_binary_reader_1 = __nccwpck_require__(42648);
+var reflection_binary_reader_1 = __nccwpck_require__(91593);
Object.defineProperty(exports, "ReflectionBinaryReader", ({ enumerable: true, get: function () { return reflection_binary_reader_1.ReflectionBinaryReader; } }));
var reflection_binary_writer_1 = __nccwpck_require__(57170);
Object.defineProperty(exports, "ReflectionBinaryWriter", ({ enumerable: true, get: function () { return reflection_binary_writer_1.ReflectionBinaryWriter; } }));
@@ -183815,7 +232867,7 @@ const reflection_info_1 = __nccwpck_require__(21370);
const reflection_type_check_1 = __nccwpck_require__(20903);
const reflection_json_reader_1 = __nccwpck_require__(229);
const reflection_json_writer_1 = __nccwpck_require__(68980);
-const reflection_binary_reader_1 = __nccwpck_require__(42648);
+const reflection_binary_reader_1 = __nccwpck_require__(91593);
const reflection_binary_writer_1 = __nccwpck_require__(57170);
const reflection_create_1 = __nccwpck_require__(60390);
const reflection_merge_partial_1 = __nccwpck_require__(7869);
@@ -184437,7 +233489,7 @@ exports.utf8read = utf8read;
/***/ }),
-/***/ 42648:
+/***/ 91593:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -186168,6 +235220,10850 @@ class ReflectionTypeCheck {
exports.ReflectionTypeCheck = ReflectionTypeCheck;
+/***/ }),
+
+/***/ 53098:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ CONFIG_USE_DUALSTACK_ENDPOINT: () => CONFIG_USE_DUALSTACK_ENDPOINT,
+ CONFIG_USE_FIPS_ENDPOINT: () => CONFIG_USE_FIPS_ENDPOINT,
+ DEFAULT_USE_DUALSTACK_ENDPOINT: () => DEFAULT_USE_DUALSTACK_ENDPOINT,
+ DEFAULT_USE_FIPS_ENDPOINT: () => DEFAULT_USE_FIPS_ENDPOINT,
+ ENV_USE_DUALSTACK_ENDPOINT: () => ENV_USE_DUALSTACK_ENDPOINT,
+ ENV_USE_FIPS_ENDPOINT: () => ENV_USE_FIPS_ENDPOINT,
+ NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS,
+ NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS,
+ NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
+ NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
+ REGION_ENV_NAME: () => REGION_ENV_NAME,
+ REGION_INI_NAME: () => REGION_INI_NAME,
+ getRegionInfo: () => getRegionInfo,
+ resolveCustomEndpointsConfig: () => resolveCustomEndpointsConfig,
+ resolveEndpointsConfig: () => resolveEndpointsConfig,
+ resolveRegionConfig: () => resolveRegionConfig
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/endpointsConfig/NodeUseDualstackEndpointConfigOptions.ts
+var import_util_config_provider = __nccwpck_require__(83375);
+var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
+var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
+var DEFAULT_USE_DUALSTACK_ENDPOINT = false;
+var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
+ environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.ENV),
+ configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.CONFIG),
+ default: false
+};
+
+// src/endpointsConfig/NodeUseFipsEndpointConfigOptions.ts
+
+var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
+var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
+var DEFAULT_USE_FIPS_ENDPOINT = false;
+var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
+ environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.ENV),
+ configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.CONFIG),
+ default: false
+};
+
+// src/endpointsConfig/resolveCustomEndpointsConfig.ts
+var import_util_middleware = __nccwpck_require__(2390);
+var resolveCustomEndpointsConfig = /* @__PURE__ */ __name((input) => {
+ const { tls, endpoint, urlParser, useDualstackEndpoint } = input;
+ return Object.assign(input, {
+ tls: tls ?? true,
+ endpoint: (0, import_util_middleware.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint),
+ isCustomEndpoint: true,
+ useDualstackEndpoint: (0, import_util_middleware.normalizeProvider)(useDualstackEndpoint ?? false)
+ });
+}, "resolveCustomEndpointsConfig");
+
+// src/endpointsConfig/resolveEndpointsConfig.ts
+
+
+// src/endpointsConfig/utils/getEndpointFromRegion.ts
+var getEndpointFromRegion = /* @__PURE__ */ __name(async (input) => {
+ const { tls = true } = input;
+ const region = await input.region();
+ const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);
+ if (!dnsHostRegex.test(region)) {
+ throw new Error("Invalid region in client config");
+ }
+ const useDualstackEndpoint = await input.useDualstackEndpoint();
+ const useFipsEndpoint = await input.useFipsEndpoint();
+ const { hostname } = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint }) ?? {};
+ if (!hostname) {
+ throw new Error("Cannot resolve hostname from client config");
+ }
+ return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`);
+}, "getEndpointFromRegion");
+
+// src/endpointsConfig/resolveEndpointsConfig.ts
+var resolveEndpointsConfig = /* @__PURE__ */ __name((input) => {
+ const useDualstackEndpoint = (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false);
+ const { endpoint, useFipsEndpoint, urlParser, tls } = input;
+ return Object.assign(input, {
+ tls: tls ?? true,
+ endpoint: endpoint ? (0, import_util_middleware.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }),
+ isCustomEndpoint: !!endpoint,
+ useDualstackEndpoint
+ });
+}, "resolveEndpointsConfig");
+
+// src/regionConfig/config.ts
+var REGION_ENV_NAME = "AWS_REGION";
+var REGION_INI_NAME = "region";
+var NODE_REGION_CONFIG_OPTIONS = {
+ environmentVariableSelector: (env) => env[REGION_ENV_NAME],
+ configFileSelector: (profile) => profile[REGION_INI_NAME],
+ default: () => {
+ throw new Error("Region is missing");
+ }
+};
+var NODE_REGION_CONFIG_FILE_OPTIONS = {
+ preferredFile: "credentials"
+};
+
+// src/regionConfig/isFipsRegion.ts
+var isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion");
+
+// src/regionConfig/getRealRegion.ts
+var getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion");
+
+// src/regionConfig/resolveRegionConfig.ts
+var resolveRegionConfig = /* @__PURE__ */ __name((input) => {
+ const { region, useFipsEndpoint } = input;
+ if (!region) {
+ throw new Error("Region is missing");
+ }
+ return Object.assign(input, {
+ region: async () => {
+ if (typeof region === "string") {
+ return getRealRegion(region);
+ }
+ const providedRegion = await region();
+ return getRealRegion(providedRegion);
+ },
+ useFipsEndpoint: async () => {
+ const providedRegion = typeof region === "string" ? region : await region();
+ if (isFipsRegion(providedRegion)) {
+ return true;
+ }
+ return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
+ }
+ });
+}, "resolveRegionConfig");
+
+// src/regionInfo/getHostnameFromVariants.ts
+var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => variants.find(
+ ({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack")
+)?.hostname, "getHostnameFromVariants");
+
+// src/regionInfo/getResolvedHostname.ts
+var getResolvedHostname = /* @__PURE__ */ __name((resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0, "getResolvedHostname");
+
+// src/regionInfo/getResolvedPartition.ts
+var getResolvedPartition = /* @__PURE__ */ __name((region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws", "getResolvedPartition");
+
+// src/regionInfo/getResolvedSigningRegion.ts
+var getResolvedSigningRegion = /* @__PURE__ */ __name((hostname, { signingRegion, regionRegex, useFipsEndpoint }) => {
+ if (signingRegion) {
+ return signingRegion;
+ } else if (useFipsEndpoint) {
+ const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\.");
+ const regionRegexmatchArray = hostname.match(regionRegexJs);
+ if (regionRegexmatchArray) {
+ return regionRegexmatchArray[0].slice(1, -1);
+ }
+ }
+}, "getResolvedSigningRegion");
+
+// src/regionInfo/getRegionInfo.ts
+var getRegionInfo = /* @__PURE__ */ __name((region, {
+ useFipsEndpoint = false,
+ useDualstackEndpoint = false,
+ signingService,
+ regionHash,
+ partitionHash
+}) => {
+ const partition = getResolvedPartition(region, { partitionHash });
+ const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
+ const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
+ const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
+ const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
+ const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname });
+ if (hostname === void 0) {
+ throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`);
+ }
+ const signingRegion = getResolvedSigningRegion(hostname, {
+ signingRegion: regionHash[resolvedRegion]?.signingRegion,
+ regionRegex: partitionHash[partition].regionRegex,
+ useFipsEndpoint
+ });
+ return {
+ partition,
+ signingService,
+ hostname,
+ ...signingRegion && { signingRegion },
+ ...regionHash[resolvedRegion]?.signingService && {
+ signingService: regionHash[resolvedRegion].signingService
+ }
+ };
+}, "getRegionInfo");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 55829:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ DefaultIdentityProviderConfig: () => DefaultIdentityProviderConfig,
+ EXPIRATION_MS: () => EXPIRATION_MS,
+ HttpApiKeyAuthSigner: () => HttpApiKeyAuthSigner,
+ HttpBearerAuthSigner: () => HttpBearerAuthSigner,
+ NoAuthSigner: () => NoAuthSigner,
+ createIsIdentityExpiredFunction: () => createIsIdentityExpiredFunction,
+ createPaginator: () => createPaginator,
+ doesIdentityRequireRefresh: () => doesIdentityRequireRefresh,
+ getHttpAuthSchemeEndpointRuleSetPlugin: () => getHttpAuthSchemeEndpointRuleSetPlugin,
+ getHttpAuthSchemePlugin: () => getHttpAuthSchemePlugin,
+ getHttpSigningPlugin: () => getHttpSigningPlugin,
+ getSmithyContext: () => getSmithyContext,
+ httpAuthSchemeEndpointRuleSetMiddlewareOptions: () => httpAuthSchemeEndpointRuleSetMiddlewareOptions,
+ httpAuthSchemeMiddleware: () => httpAuthSchemeMiddleware,
+ httpAuthSchemeMiddlewareOptions: () => httpAuthSchemeMiddlewareOptions,
+ httpSigningMiddleware: () => httpSigningMiddleware,
+ httpSigningMiddlewareOptions: () => httpSigningMiddlewareOptions,
+ isIdentityExpired: () => isIdentityExpired,
+ memoizeIdentityProvider: () => memoizeIdentityProvider,
+ normalizeProvider: () => normalizeProvider,
+ requestBuilder: () => import_protocols.requestBuilder,
+ setFeature: () => setFeature
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/getSmithyContext.ts
+var import_types = __nccwpck_require__(55756);
+var getSmithyContext = /* @__PURE__ */ __name((context) => context[import_types.SMITHY_CONTEXT_KEY] || (context[import_types.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext");
+
+// src/middleware-http-auth-scheme/httpAuthSchemeMiddleware.ts
+var import_util_middleware = __nccwpck_require__(2390);
+function convertHttpAuthSchemesToMap(httpAuthSchemes) {
+ const map = /* @__PURE__ */ new Map();
+ for (const scheme of httpAuthSchemes) {
+ map.set(scheme.schemeId, scheme);
+ }
+ return map;
+}
+__name(convertHttpAuthSchemesToMap, "convertHttpAuthSchemesToMap");
+var httpAuthSchemeMiddleware = /* @__PURE__ */ __name((config, mwOptions) => (next, context) => async (args) => {
+ const options = config.httpAuthSchemeProvider(
+ await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input)
+ );
+ const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);
+ const smithyContext = (0, import_util_middleware.getSmithyContext)(context);
+ const failureReasons = [];
+ for (const option of options) {
+ const scheme = authSchemes.get(option.schemeId);
+ if (!scheme) {
+ failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`);
+ continue;
+ }
+ const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config));
+ if (!identityProvider) {
+ failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`);
+ continue;
+ }
+ const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};
+ option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);
+ option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);
+ smithyContext.selectedHttpAuthScheme = {
+ httpAuthOption: option,
+ identity: await identityProvider(option.identityProperties),
+ signer: scheme.signer
+ };
+ break;
+ }
+ if (!smithyContext.selectedHttpAuthScheme) {
+ throw new Error(failureReasons.join("\n"));
+ }
+ return next(args);
+}, "httpAuthSchemeMiddleware");
+
+// src/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.ts
+var httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
+ step: "serialize",
+ tags: ["HTTP_AUTH_SCHEME"],
+ name: "httpAuthSchemeMiddleware",
+ override: true,
+ relation: "before",
+ toMiddleware: "endpointV2Middleware"
+};
+var getHttpAuthSchemeEndpointRuleSetPlugin = /* @__PURE__ */ __name((config, {
+ httpAuthSchemeParametersProvider,
+ identityProviderConfigProvider
+}) => ({
+ applyToStack: (clientStack) => {
+ clientStack.addRelativeTo(
+ httpAuthSchemeMiddleware(config, {
+ httpAuthSchemeParametersProvider,
+ identityProviderConfigProvider
+ }),
+ httpAuthSchemeEndpointRuleSetMiddlewareOptions
+ );
+ }
+}), "getHttpAuthSchemeEndpointRuleSetPlugin");
+
+// src/middleware-http-auth-scheme/getHttpAuthSchemePlugin.ts
+var import_middleware_serde = __nccwpck_require__(81238);
+var httpAuthSchemeMiddlewareOptions = {
+ step: "serialize",
+ tags: ["HTTP_AUTH_SCHEME"],
+ name: "httpAuthSchemeMiddleware",
+ override: true,
+ relation: "before",
+ toMiddleware: import_middleware_serde.serializerMiddlewareOption.name
+};
+var getHttpAuthSchemePlugin = /* @__PURE__ */ __name((config, {
+ httpAuthSchemeParametersProvider,
+ identityProviderConfigProvider
+}) => ({
+ applyToStack: (clientStack) => {
+ clientStack.addRelativeTo(
+ httpAuthSchemeMiddleware(config, {
+ httpAuthSchemeParametersProvider,
+ identityProviderConfigProvider
+ }),
+ httpAuthSchemeMiddlewareOptions
+ );
+ }
+}), "getHttpAuthSchemePlugin");
+
+// src/middleware-http-signing/httpSigningMiddleware.ts
+var import_protocol_http = __nccwpck_require__(64418);
+
+var defaultErrorHandler = /* @__PURE__ */ __name((signingProperties) => (error) => {
+ throw error;
+}, "defaultErrorHandler");
+var defaultSuccessHandler = /* @__PURE__ */ __name((httpResponse, signingProperties) => {
+}, "defaultSuccessHandler");
+var httpSigningMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => {
+ if (!import_protocol_http.HttpRequest.isInstance(args.request)) {
+ return next(args);
+ }
+ const smithyContext = (0, import_util_middleware.getSmithyContext)(context);
+ const scheme = smithyContext.selectedHttpAuthScheme;
+ if (!scheme) {
+ throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
+ }
+ const {
+ httpAuthOption: { signingProperties = {} },
+ identity,
+ signer
+ } = scheme;
+ const output = await next({
+ ...args,
+ request: await signer.sign(args.request, identity, signingProperties)
+ }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));
+ (signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);
+ return output;
+}, "httpSigningMiddleware");
+
+// src/middleware-http-signing/getHttpSigningMiddleware.ts
+var httpSigningMiddlewareOptions = {
+ step: "finalizeRequest",
+ tags: ["HTTP_SIGNING"],
+ name: "httpSigningMiddleware",
+ aliases: ["apiKeyMiddleware", "tokenMiddleware", "awsAuthMiddleware"],
+ override: true,
+ relation: "after",
+ toMiddleware: "retryMiddleware"
+};
+var getHttpSigningPlugin = /* @__PURE__ */ __name((config) => ({
+ applyToStack: (clientStack) => {
+ clientStack.addRelativeTo(httpSigningMiddleware(config), httpSigningMiddlewareOptions);
+ }
+}), "getHttpSigningPlugin");
+
+// src/normalizeProvider.ts
+var normalizeProvider = /* @__PURE__ */ __name((input) => {
+ if (typeof input === "function")
+ return input;
+ const promisified = Promise.resolve(input);
+ return () => promisified;
+}, "normalizeProvider");
+
+// src/pagination/createPaginator.ts
+var makePagedClientRequest = /* @__PURE__ */ __name(async (CommandCtor, client, input, withCommand = (_) => _, ...args) => {
+ let command = new CommandCtor(input);
+ command = withCommand(command) ?? command;
+ return await client.send(command, ...args);
+}, "makePagedClientRequest");
+function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenName, pageSizeTokenName) {
+ return /* @__PURE__ */ __name(async function* paginateOperation(config, input, ...additionalArguments) {
+ const _input = input;
+ let token = config.startingToken ?? _input[inputTokenName];
+ let hasNext = true;
+ let page;
+ while (hasNext) {
+ _input[inputTokenName] = token;
+ if (pageSizeTokenName) {
+ _input[pageSizeTokenName] = _input[pageSizeTokenName] ?? config.pageSize;
+ }
+ if (config.client instanceof ClientCtor) {
+ page = await makePagedClientRequest(
+ CommandCtor,
+ config.client,
+ input,
+ config.withCommand,
+ ...additionalArguments
+ );
+ } else {
+ throw new Error(`Invalid client, expected instance of ${ClientCtor.name}`);
+ }
+ yield page;
+ const prevToken = token;
+ token = get(page, outputTokenName);
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
+ }
+ return void 0;
+ }, "paginateOperation");
+}
+__name(createPaginator, "createPaginator");
+var get = /* @__PURE__ */ __name((fromObject, path) => {
+ let cursor = fromObject;
+ const pathComponents = path.split(".");
+ for (const step of pathComponents) {
+ if (!cursor || typeof cursor !== "object") {
+ return void 0;
+ }
+ cursor = cursor[step];
+ }
+ return cursor;
+}, "get");
+
+// src/protocols/requestBuilder.ts
+var import_protocols = __nccwpck_require__(2241);
+
+// src/setFeature.ts
+function setFeature(context, feature, value) {
+ if (!context.__smithy_context) {
+ context.__smithy_context = {
+ features: {}
+ };
+ } else if (!context.__smithy_context.features) {
+ context.__smithy_context.features = {};
+ }
+ context.__smithy_context.features[feature] = value;
+}
+__name(setFeature, "setFeature");
+
+// src/util-identity-and-auth/DefaultIdentityProviderConfig.ts
+var DefaultIdentityProviderConfig = class {
+ /**
+ * Creates an IdentityProviderConfig with a record of scheme IDs to identity providers.
+ *
+ * @param config scheme IDs and identity providers to configure
+ */
+ constructor(config) {
+ this.authSchemes = /* @__PURE__ */ new Map();
+ for (const [key, value] of Object.entries(config)) {
+ if (value !== void 0) {
+ this.authSchemes.set(key, value);
+ }
+ }
+ }
+ static {
+ __name(this, "DefaultIdentityProviderConfig");
+ }
+ getIdentityProvider(schemeId) {
+ return this.authSchemes.get(schemeId);
+ }
+};
+
+// src/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.ts
+
+
+var HttpApiKeyAuthSigner = class {
+ static {
+ __name(this, "HttpApiKeyAuthSigner");
+ }
+ async sign(httpRequest, identity, signingProperties) {
+ if (!signingProperties) {
+ throw new Error(
+ "request could not be signed with `apiKey` since the `name` and `in` signer properties are missing"
+ );
+ }
+ if (!signingProperties.name) {
+ throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");
+ }
+ if (!signingProperties.in) {
+ throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");
+ }
+ if (!identity.apiKey) {
+ throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");
+ }
+ const clonedRequest = import_protocol_http.HttpRequest.clone(httpRequest);
+ if (signingProperties.in === import_types.HttpApiKeyAuthLocation.QUERY) {
+ clonedRequest.query[signingProperties.name] = identity.apiKey;
+ } else if (signingProperties.in === import_types.HttpApiKeyAuthLocation.HEADER) {
+ clonedRequest.headers[signingProperties.name] = signingProperties.scheme ? `${signingProperties.scheme} ${identity.apiKey}` : identity.apiKey;
+ } else {
+ throw new Error(
+ "request can only be signed with `apiKey` locations `query` or `header`, but found: `" + signingProperties.in + "`"
+ );
+ }
+ return clonedRequest;
+ }
+};
+
+// src/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.ts
+
+var HttpBearerAuthSigner = class {
+ static {
+ __name(this, "HttpBearerAuthSigner");
+ }
+ async sign(httpRequest, identity, signingProperties) {
+ const clonedRequest = import_protocol_http.HttpRequest.clone(httpRequest);
+ if (!identity.token) {
+ throw new Error("request could not be signed with `token` since the `token` is not defined");
+ }
+ clonedRequest.headers["Authorization"] = `Bearer ${identity.token}`;
+ return clonedRequest;
+ }
+};
+
+// src/util-identity-and-auth/httpAuthSchemes/noAuth.ts
+var NoAuthSigner = class {
+ static {
+ __name(this, "NoAuthSigner");
+ }
+ async sign(httpRequest, identity, signingProperties) {
+ return httpRequest;
+ }
+};
+
+// src/util-identity-and-auth/memoizeIdentityProvider.ts
+var createIsIdentityExpiredFunction = /* @__PURE__ */ __name((expirationMs) => (identity) => doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs, "createIsIdentityExpiredFunction");
+var EXPIRATION_MS = 3e5;
+var isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
+var doesIdentityRequireRefresh = /* @__PURE__ */ __name((identity) => identity.expiration !== void 0, "doesIdentityRequireRefresh");
+var memoizeIdentityProvider = /* @__PURE__ */ __name((provider, isExpired, requiresRefresh) => {
+ if (provider === void 0) {
+ return void 0;
+ }
+ const normalizedProvider = typeof provider !== "function" ? async () => Promise.resolve(provider) : provider;
+ let resolved;
+ let pending;
+ let hasResult;
+ let isConstant = false;
+ const coalesceProvider = /* @__PURE__ */ __name(async (options) => {
+ if (!pending) {
+ pending = normalizedProvider(options);
+ }
+ try {
+ resolved = await pending;
+ hasResult = true;
+ isConstant = false;
+ } finally {
+ pending = void 0;
+ }
+ return resolved;
+ }, "coalesceProvider");
+ if (isExpired === void 0) {
+ return async (options) => {
+ if (!hasResult || options?.forceRefresh) {
+ resolved = await coalesceProvider(options);
+ }
+ return resolved;
+ };
+ }
+ return async (options) => {
+ if (!hasResult || options?.forceRefresh) {
+ resolved = await coalesceProvider(options);
+ }
+ if (isConstant) {
+ return resolved;
+ }
+ if (!requiresRefresh(resolved)) {
+ isConstant = true;
+ return resolved;
+ }
+ if (isExpired(resolved)) {
+ await coalesceProvider(options);
+ return resolved;
+ }
+ return resolved;
+ };
+}, "memoizeIdentityProvider");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 2241:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/submodules/protocols/index.ts
+var protocols_exports = {};
+__export(protocols_exports, {
+ RequestBuilder: () => RequestBuilder,
+ collectBody: () => collectBody,
+ extendedEncodeURIComponent: () => extendedEncodeURIComponent,
+ requestBuilder: () => requestBuilder,
+ resolvedPath: () => resolvedPath
+});
+module.exports = __toCommonJS(protocols_exports);
+
+// src/submodules/protocols/collect-stream-body.ts
+var import_util_stream = __nccwpck_require__(96607);
+var collectBody = async (streamBody = new Uint8Array(), context) => {
+ if (streamBody instanceof Uint8Array) {
+ return import_util_stream.Uint8ArrayBlobAdapter.mutate(streamBody);
+ }
+ if (!streamBody) {
+ return import_util_stream.Uint8ArrayBlobAdapter.mutate(new Uint8Array());
+ }
+ const fromContext = context.streamCollector(streamBody);
+ return import_util_stream.Uint8ArrayBlobAdapter.mutate(await fromContext);
+};
+
+// src/submodules/protocols/extended-encode-uri-component.ts
+function extendedEncodeURIComponent(str) {
+ return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();
+ });
+}
+
+// src/submodules/protocols/requestBuilder.ts
+var import_protocol_http = __nccwpck_require__(64418);
+
+// src/submodules/protocols/resolve-path.ts
+var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
+ if (input != null && input[memberName] !== void 0) {
+ const labelValue = labelValueProvider();
+ if (labelValue.length <= 0) {
+ throw new Error("Empty value provided for input HTTP label: " + memberName + ".");
+ }
+ resolvedPath2 = resolvedPath2.replace(
+ uriLabel,
+ isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent(segment)).join("/") : extendedEncodeURIComponent(labelValue)
+ );
+ } else {
+ throw new Error("No value provided for input HTTP label: " + memberName + ".");
+ }
+ return resolvedPath2;
+};
+
+// src/submodules/protocols/requestBuilder.ts
+function requestBuilder(input, context) {
+ return new RequestBuilder(input, context);
+}
+var RequestBuilder = class {
+ constructor(input, context) {
+ this.input = input;
+ this.context = context;
+ this.query = {};
+ this.method = "";
+ this.headers = {};
+ this.path = "";
+ this.body = null;
+ this.hostname = "";
+ this.resolvePathStack = [];
+ }
+ async build() {
+ const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint();
+ this.path = basePath;
+ for (const resolvePath of this.resolvePathStack) {
+ resolvePath(this.path);
+ }
+ return new import_protocol_http.HttpRequest({
+ protocol,
+ hostname: this.hostname || hostname,
+ port,
+ method: this.method,
+ path: this.path,
+ query: this.query,
+ body: this.body,
+ headers: this.headers
+ });
+ }
+ /**
+ * Brevity setter for "hostname".
+ */
+ hn(hostname) {
+ this.hostname = hostname;
+ return this;
+ }
+ /**
+ * Brevity initial builder for "basepath".
+ */
+ bp(uriLabel) {
+ this.resolvePathStack.push((basePath) => {
+ this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel;
+ });
+ return this;
+ }
+ /**
+ * Brevity incremental builder for "path".
+ */
+ p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
+ this.resolvePathStack.push((path) => {
+ this.path = resolvedPath(path, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
+ });
+ return this;
+ }
+ /**
+ * Brevity setter for "headers".
+ */
+ h(headers) {
+ this.headers = headers;
+ return this;
+ }
+ /**
+ * Brevity setter for "query".
+ */
+ q(query) {
+ this.query = query;
+ return this;
+ }
+ /**
+ * Brevity setter for "body".
+ */
+ b(body) {
+ this.body = body;
+ return this;
+ }
+ /**
+ * Brevity setter for "method".
+ */
+ m(method) {
+ this.method = method;
+ return this;
+ }
+};
+// Annotate the CommonJS export names for ESM import in node:
+0 && (0);
+
+
+/***/ }),
+
+/***/ 7477:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ DEFAULT_MAX_RETRIES: () => DEFAULT_MAX_RETRIES,
+ DEFAULT_TIMEOUT: () => DEFAULT_TIMEOUT,
+ ENV_CMDS_AUTH_TOKEN: () => ENV_CMDS_AUTH_TOKEN,
+ ENV_CMDS_FULL_URI: () => ENV_CMDS_FULL_URI,
+ ENV_CMDS_RELATIVE_URI: () => ENV_CMDS_RELATIVE_URI,
+ Endpoint: () => Endpoint,
+ fromContainerMetadata: () => fromContainerMetadata,
+ fromInstanceMetadata: () => fromInstanceMetadata,
+ getInstanceMetadataEndpoint: () => getInstanceMetadataEndpoint,
+ httpRequest: () => httpRequest,
+ providerConfigFromInit: () => providerConfigFromInit
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/fromContainerMetadata.ts
+
+var import_url = __nccwpck_require__(57310);
+
+// src/remoteProvider/httpRequest.ts
+var import_property_provider = __nccwpck_require__(79721);
+var import_buffer = __nccwpck_require__(14300);
+var import_http = __nccwpck_require__(13685);
+function httpRequest(options) {
+ return new Promise((resolve, reject) => {
+ const req = (0, import_http.request)({
+ method: "GET",
+ ...options,
+ // Node.js http module doesn't accept hostname with square brackets
+ // Refs: https://github.com/nodejs/node/issues/39738
+ hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
+ });
+ req.on("error", (err) => {
+ reject(Object.assign(new import_property_provider.ProviderError("Unable to connect to instance metadata service"), err));
+ req.destroy();
+ });
+ req.on("timeout", () => {
+ reject(new import_property_provider.ProviderError("TimeoutError from instance metadata service"));
+ req.destroy();
+ });
+ req.on("response", (res) => {
+ const { statusCode = 400 } = res;
+ if (statusCode < 200 || 300 <= statusCode) {
+ reject(
+ Object.assign(new import_property_provider.ProviderError("Error response received from instance metadata service"), { statusCode })
+ );
+ req.destroy();
+ }
+ const chunks = [];
+ res.on("data", (chunk) => {
+ chunks.push(chunk);
+ });
+ res.on("end", () => {
+ resolve(import_buffer.Buffer.concat(chunks));
+ req.destroy();
+ });
+ });
+ req.end();
+ });
+}
+__name(httpRequest, "httpRequest");
+
+// src/remoteProvider/ImdsCredentials.ts
+var isImdsCredentials = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string", "isImdsCredentials");
+var fromImdsCredentials = /* @__PURE__ */ __name((creds) => ({
+ accessKeyId: creds.AccessKeyId,
+ secretAccessKey: creds.SecretAccessKey,
+ sessionToken: creds.Token,
+ expiration: new Date(creds.Expiration),
+ ...creds.AccountId && { accountId: creds.AccountId }
+}), "fromImdsCredentials");
+
+// src/remoteProvider/RemoteProviderInit.ts
+var DEFAULT_TIMEOUT = 1e3;
+var DEFAULT_MAX_RETRIES = 0;
+var providerConfigFromInit = /* @__PURE__ */ __name(({
+ maxRetries = DEFAULT_MAX_RETRIES,
+ timeout = DEFAULT_TIMEOUT
+}) => ({ maxRetries, timeout }), "providerConfigFromInit");
+
+// src/remoteProvider/retry.ts
+var retry = /* @__PURE__ */ __name((toRetry, maxRetries) => {
+ let promise = toRetry();
+ for (let i = 0; i < maxRetries; i++) {
+ promise = promise.catch(toRetry);
+ }
+ return promise;
+}, "retry");
+
+// src/fromContainerMetadata.ts
+var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
+var ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
+var ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
+var fromContainerMetadata = /* @__PURE__ */ __name((init = {}) => {
+ const { timeout, maxRetries } = providerConfigFromInit(init);
+ return () => retry(async () => {
+ const requestOptions = await getCmdsUri({ logger: init.logger });
+ const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
+ if (!isImdsCredentials(credsResponse)) {
+ throw new import_property_provider.CredentialsProviderError("Invalid response received from instance metadata service.", {
+ logger: init.logger
+ });
+ }
+ return fromImdsCredentials(credsResponse);
+ }, maxRetries);
+}, "fromContainerMetadata");
+var requestFromEcsImds = /* @__PURE__ */ __name(async (timeout, options) => {
+ if (process.env[ENV_CMDS_AUTH_TOKEN]) {
+ options.headers = {
+ ...options.headers,
+ Authorization: process.env[ENV_CMDS_AUTH_TOKEN]
+ };
+ }
+ const buffer = await httpRequest({
+ ...options,
+ timeout
+ });
+ return buffer.toString();
+}, "requestFromEcsImds");
+var CMDS_IP = "169.254.170.2";
+var GREENGRASS_HOSTS = {
+ localhost: true,
+ "127.0.0.1": true
+};
+var GREENGRASS_PROTOCOLS = {
+ "http:": true,
+ "https:": true
+};
+var getCmdsUri = /* @__PURE__ */ __name(async ({ logger }) => {
+ if (process.env[ENV_CMDS_RELATIVE_URI]) {
+ return {
+ hostname: CMDS_IP,
+ path: process.env[ENV_CMDS_RELATIVE_URI]
+ };
+ }
+ if (process.env[ENV_CMDS_FULL_URI]) {
+ const parsed = (0, import_url.parse)(process.env[ENV_CMDS_FULL_URI]);
+ if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
+ throw new import_property_provider.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
+ tryNextLink: false,
+ logger
+ });
+ }
+ if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
+ throw new import_property_provider.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
+ tryNextLink: false,
+ logger
+ });
+ }
+ return {
+ ...parsed,
+ port: parsed.port ? parseInt(parsed.port, 10) : void 0
+ };
+ }
+ throw new import_property_provider.CredentialsProviderError(
+ `The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`,
+ {
+ tryNextLink: false,
+ logger
+ }
+ );
+}, "getCmdsUri");
+
+// src/fromInstanceMetadata.ts
+
+
+
+// src/error/InstanceMetadataV1FallbackError.ts
+
+var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends import_property_provider.CredentialsProviderError {
+ constructor(message, tryNextLink = true) {
+ super(message, tryNextLink);
+ this.tryNextLink = tryNextLink;
+ this.name = "InstanceMetadataV1FallbackError";
+ Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype);
+ }
+ static {
+ __name(this, "InstanceMetadataV1FallbackError");
+ }
+};
+
+// src/utils/getInstanceMetadataEndpoint.ts
+var import_node_config_provider = __nccwpck_require__(33461);
+var import_url_parser = __nccwpck_require__(14681);
+
+// src/config/Endpoint.ts
+var Endpoint = /* @__PURE__ */ ((Endpoint2) => {
+ Endpoint2["IPv4"] = "http://169.254.169.254";
+ Endpoint2["IPv6"] = "http://[fd00:ec2::254]";
+ return Endpoint2;
+})(Endpoint || {});
+
+// src/config/EndpointConfigOptions.ts
+var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
+var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
+var ENDPOINT_CONFIG_OPTIONS = {
+ environmentVariableSelector: (env) => env[ENV_ENDPOINT_NAME],
+ configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME],
+ default: void 0
+};
+
+// src/config/EndpointMode.ts
+var EndpointMode = /* @__PURE__ */ ((EndpointMode2) => {
+ EndpointMode2["IPv4"] = "IPv4";
+ EndpointMode2["IPv6"] = "IPv6";
+ return EndpointMode2;
+})(EndpointMode || {});
+
+// src/config/EndpointModeConfigOptions.ts
+var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
+var CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
+var ENDPOINT_MODE_CONFIG_OPTIONS = {
+ environmentVariableSelector: (env) => env[ENV_ENDPOINT_MODE_NAME],
+ configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME],
+ default: "IPv4" /* IPv4 */
+};
+
+// src/utils/getInstanceMetadataEndpoint.ts
+var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => (0, import_url_parser.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint");
+var getFromEndpointConfig = /* @__PURE__ */ __name(async () => (0, import_node_config_provider.loadConfig)(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig");
+var getFromEndpointModeConfig = /* @__PURE__ */ __name(async () => {
+ const endpointMode = await (0, import_node_config_provider.loadConfig)(ENDPOINT_MODE_CONFIG_OPTIONS)();
+ switch (endpointMode) {
+ case "IPv4" /* IPv4 */:
+ return "http://169.254.169.254" /* IPv4 */;
+ case "IPv6" /* IPv6 */:
+ return "http://[fd00:ec2::254]" /* IPv6 */;
+ default:
+ throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode)}`);
+ }
+}, "getFromEndpointModeConfig");
+
+// src/utils/getExtendedInstanceMetadataCredentials.ts
+var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60;
+var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
+var STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";
+var getExtendedInstanceMetadataCredentials = /* @__PURE__ */ __name((credentials, logger) => {
+ const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
+ const newExpiration = new Date(Date.now() + refreshInterval * 1e3);
+ logger.warn(
+ `Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.
+For more information, please visit: ` + STATIC_STABILITY_DOC_URL
+ );
+ const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
+ return {
+ ...credentials,
+ ...originalExpiration ? { originalExpiration } : {},
+ expiration: newExpiration
+ };
+}, "getExtendedInstanceMetadataCredentials");
+
+// src/utils/staticStabilityProvider.ts
+var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => {
+ const logger = options?.logger || console;
+ let pastCredentials;
+ return async () => {
+ let credentials;
+ try {
+ credentials = await provider();
+ if (credentials.expiration && credentials.expiration.getTime() < Date.now()) {
+ credentials = getExtendedInstanceMetadataCredentials(credentials, logger);
+ }
+ } catch (e) {
+ if (pastCredentials) {
+ logger.warn("Credential renew failed: ", e);
+ credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger);
+ } else {
+ throw e;
+ }
+ }
+ pastCredentials = credentials;
+ return credentials;
+ };
+}, "staticStabilityProvider");
+
+// src/fromInstanceMetadata.ts
+var IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
+var IMDS_TOKEN_PATH = "/latest/api/token";
+var AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
+var PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
+var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
+var fromInstanceMetadata = /* @__PURE__ */ __name((init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger }), "fromInstanceMetadata");
+var getInstanceMetadataProvider = /* @__PURE__ */ __name((init = {}) => {
+ let disableFetchToken = false;
+ const { logger, profile } = init;
+ const { timeout, maxRetries } = providerConfigFromInit(init);
+ const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => {
+ const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
+ if (isImdsV1Fallback) {
+ let fallbackBlockedFromProfile = false;
+ let fallbackBlockedFromProcessEnv = false;
+ const configValue = await (0, import_node_config_provider.loadConfig)(
+ {
+ environmentVariableSelector: (env) => {
+ const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
+ fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
+ if (envValue === void 0) {
+ throw new import_property_provider.CredentialsProviderError(
+ `${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`,
+ { logger: init.logger }
+ );
+ }
+ return fallbackBlockedFromProcessEnv;
+ },
+ configFileSelector: (profile2) => {
+ const profileValue = profile2[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
+ fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
+ return fallbackBlockedFromProfile;
+ },
+ default: false
+ },
+ {
+ profile
+ }
+ )();
+ if (init.ec2MetadataV1Disabled || configValue) {
+ const causes = [];
+ if (init.ec2MetadataV1Disabled)
+ causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
+ if (fallbackBlockedFromProfile)
+ causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
+ if (fallbackBlockedFromProcessEnv)
+ causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
+ throw new InstanceMetadataV1FallbackError(
+ `AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(
+ ", "
+ )}].`
+ );
+ }
+ }
+ const imdsProfile = (await retry(async () => {
+ let profile2;
+ try {
+ profile2 = await getProfile(options);
+ } catch (err) {
+ if (err.statusCode === 401) {
+ disableFetchToken = false;
+ }
+ throw err;
+ }
+ return profile2;
+ }, maxRetries2)).trim();
+ return retry(async () => {
+ let creds;
+ try {
+ creds = await getCredentialsFromProfile(imdsProfile, options, init);
+ } catch (err) {
+ if (err.statusCode === 401) {
+ disableFetchToken = false;
+ }
+ throw err;
+ }
+ return creds;
+ }, maxRetries2);
+ }, "getCredentials");
+ return async () => {
+ const endpoint = await getInstanceMetadataEndpoint();
+ if (disableFetchToken) {
+ logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
+ return getCredentials(maxRetries, { ...endpoint, timeout });
+ } else {
+ let token;
+ try {
+ token = (await getMetadataToken({ ...endpoint, timeout })).toString();
+ } catch (error) {
+ if (error?.statusCode === 400) {
+ throw Object.assign(error, {
+ message: "EC2 Metadata token request returned error"
+ });
+ } else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) {
+ disableFetchToken = true;
+ }
+ logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
+ return getCredentials(maxRetries, { ...endpoint, timeout });
+ }
+ return getCredentials(maxRetries, {
+ ...endpoint,
+ headers: {
+ [X_AWS_EC2_METADATA_TOKEN]: token
+ },
+ timeout
+ });
+ }
+ };
+}, "getInstanceMetadataProvider");
+var getMetadataToken = /* @__PURE__ */ __name(async (options) => httpRequest({
+ ...options,
+ path: IMDS_TOKEN_PATH,
+ method: "PUT",
+ headers: {
+ "x-aws-ec2-metadata-token-ttl-seconds": "21600"
+ }
+}), "getMetadataToken");
+var getProfile = /* @__PURE__ */ __name(async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(), "getProfile");
+var getCredentialsFromProfile = /* @__PURE__ */ __name(async (profile, options, init) => {
+ const credentialsResponse = JSON.parse(
+ (await httpRequest({
+ ...options,
+ path: IMDS_PATH + profile
+ })).toString()
+ );
+ if (!isImdsCredentials(credentialsResponse)) {
+ throw new import_property_provider.CredentialsProviderError("Invalid response received from instance metadata service.", {
+ logger: init.logger
+ });
+ }
+ return fromImdsCredentials(credentialsResponse);
+}, "getCredentialsFromProfile");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 56459:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ EventStreamCodec: () => EventStreamCodec,
+ HeaderMarshaller: () => HeaderMarshaller,
+ Int64: () => Int64,
+ MessageDecoderStream: () => MessageDecoderStream,
+ MessageEncoderStream: () => MessageEncoderStream,
+ SmithyMessageDecoderStream: () => SmithyMessageDecoderStream,
+ SmithyMessageEncoderStream: () => SmithyMessageEncoderStream
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/EventStreamCodec.ts
+var import_crc322 = __nccwpck_require__(48408);
+
+// src/HeaderMarshaller.ts
+
+
+// src/Int64.ts
+var import_util_hex_encoding = __nccwpck_require__(45364);
+var Int64 = class _Int64 {
+ constructor(bytes) {
+ this.bytes = bytes;
+ if (bytes.byteLength !== 8) {
+ throw new Error("Int64 buffers must be exactly 8 bytes");
+ }
+ }
+ static {
+ __name(this, "Int64");
+ }
+ static fromNumber(number) {
+ if (number > 9223372036854776e3 || number < -9223372036854776e3) {
+ throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
+ }
+ const bytes = new Uint8Array(8);
+ for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {
+ bytes[i] = remaining;
+ }
+ if (number < 0) {
+ negate(bytes);
+ }
+ return new _Int64(bytes);
+ }
+ /**
+ * Called implicitly by infix arithmetic operators.
+ */
+ valueOf() {
+ const bytes = this.bytes.slice(0);
+ const negative = bytes[0] & 128;
+ if (negative) {
+ negate(bytes);
+ }
+ return parseInt((0, import_util_hex_encoding.toHex)(bytes), 16) * (negative ? -1 : 1);
+ }
+ toString() {
+ return String(this.valueOf());
+ }
+};
+function negate(bytes) {
+ for (let i = 0; i < 8; i++) {
+ bytes[i] ^= 255;
+ }
+ for (let i = 7; i > -1; i--) {
+ bytes[i]++;
+ if (bytes[i] !== 0)
+ break;
+ }
+}
+__name(negate, "negate");
+
+// src/HeaderMarshaller.ts
+var HeaderMarshaller = class {
+ constructor(toUtf8, fromUtf8) {
+ this.toUtf8 = toUtf8;
+ this.fromUtf8 = fromUtf8;
+ }
+ static {
+ __name(this, "HeaderMarshaller");
+ }
+ format(headers) {
+ const chunks = [];
+ for (const headerName of Object.keys(headers)) {
+ const bytes = this.fromUtf8(headerName);
+ chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
+ }
+ const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));
+ let position = 0;
+ for (const chunk of chunks) {
+ out.set(chunk, position);
+ position += chunk.byteLength;
+ }
+ return out;
+ }
+ formatHeaderValue(header) {
+ switch (header.type) {
+ case "boolean":
+ return Uint8Array.from([header.value ? 0 /* boolTrue */ : 1 /* boolFalse */]);
+ case "byte":
+ return Uint8Array.from([2 /* byte */, header.value]);
+ case "short":
+ const shortView = new DataView(new ArrayBuffer(3));
+ shortView.setUint8(0, 3 /* short */);
+ shortView.setInt16(1, header.value, false);
+ return new Uint8Array(shortView.buffer);
+ case "integer":
+ const intView = new DataView(new ArrayBuffer(5));
+ intView.setUint8(0, 4 /* integer */);
+ intView.setInt32(1, header.value, false);
+ return new Uint8Array(intView.buffer);
+ case "long":
+ const longBytes = new Uint8Array(9);
+ longBytes[0] = 5 /* long */;
+ longBytes.set(header.value.bytes, 1);
+ return longBytes;
+ case "binary":
+ const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
+ binView.setUint8(0, 6 /* byteArray */);
+ binView.setUint16(1, header.value.byteLength, false);
+ const binBytes = new Uint8Array(binView.buffer);
+ binBytes.set(header.value, 3);
+ return binBytes;
+ case "string":
+ const utf8Bytes = this.fromUtf8(header.value);
+ const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
+ strView.setUint8(0, 7 /* string */);
+ strView.setUint16(1, utf8Bytes.byteLength, false);
+ const strBytes = new Uint8Array(strView.buffer);
+ strBytes.set(utf8Bytes, 3);
+ return strBytes;
+ case "timestamp":
+ const tsBytes = new Uint8Array(9);
+ tsBytes[0] = 8 /* timestamp */;
+ tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
+ return tsBytes;
+ case "uuid":
+ if (!UUID_PATTERN.test(header.value)) {
+ throw new Error(`Invalid UUID received: ${header.value}`);
+ }
+ const uuidBytes = new Uint8Array(17);
+ uuidBytes[0] = 9 /* uuid */;
+ uuidBytes.set((0, import_util_hex_encoding.fromHex)(header.value.replace(/\-/g, "")), 1);
+ return uuidBytes;
+ }
+ }
+ parse(headers) {
+ const out = {};
+ let position = 0;
+ while (position < headers.byteLength) {
+ const nameLength = headers.getUint8(position++);
+ const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
+ position += nameLength;
+ switch (headers.getUint8(position++)) {
+ case 0 /* boolTrue */:
+ out[name] = {
+ type: BOOLEAN_TAG,
+ value: true
+ };
+ break;
+ case 1 /* boolFalse */:
+ out[name] = {
+ type: BOOLEAN_TAG,
+ value: false
+ };
+ break;
+ case 2 /* byte */:
+ out[name] = {
+ type: BYTE_TAG,
+ value: headers.getInt8(position++)
+ };
+ break;
+ case 3 /* short */:
+ out[name] = {
+ type: SHORT_TAG,
+ value: headers.getInt16(position, false)
+ };
+ position += 2;
+ break;
+ case 4 /* integer */:
+ out[name] = {
+ type: INT_TAG,
+ value: headers.getInt32(position, false)
+ };
+ position += 4;
+ break;
+ case 5 /* long */:
+ out[name] = {
+ type: LONG_TAG,
+ value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8))
+ };
+ position += 8;
+ break;
+ case 6 /* byteArray */:
+ const binaryLength = headers.getUint16(position, false);
+ position += 2;
+ out[name] = {
+ type: BINARY_TAG,
+ value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength)
+ };
+ position += binaryLength;
+ break;
+ case 7 /* string */:
+ const stringLength = headers.getUint16(position, false);
+ position += 2;
+ out[name] = {
+ type: STRING_TAG,
+ value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength))
+ };
+ position += stringLength;
+ break;
+ case 8 /* timestamp */:
+ out[name] = {
+ type: TIMESTAMP_TAG,
+ value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf())
+ };
+ position += 8;
+ break;
+ case 9 /* uuid */:
+ const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
+ position += 16;
+ out[name] = {
+ type: UUID_TAG,
+ value: `${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(0, 4))}-${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(4, 6))}-${(0, import_util_hex_encoding.toHex)(
+ uuidBytes.subarray(6, 8)
+ )}-${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(8, 10))}-${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(10))}`
+ };
+ break;
+ default:
+ throw new Error(`Unrecognized header type tag`);
+ }
+ }
+ return out;
+ }
+};
+var BOOLEAN_TAG = "boolean";
+var BYTE_TAG = "byte";
+var SHORT_TAG = "short";
+var INT_TAG = "integer";
+var LONG_TAG = "long";
+var BINARY_TAG = "binary";
+var STRING_TAG = "string";
+var TIMESTAMP_TAG = "timestamp";
+var UUID_TAG = "uuid";
+var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
+
+// src/splitMessage.ts
+var import_crc32 = __nccwpck_require__(48408);
+var PRELUDE_MEMBER_LENGTH = 4;
+var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
+var CHECKSUM_LENGTH = 4;
+var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2;
+function splitMessage({ byteLength, byteOffset, buffer }) {
+ if (byteLength < MINIMUM_MESSAGE_LENGTH) {
+ throw new Error("Provided message too short to accommodate event stream message overhead");
+ }
+ const view = new DataView(buffer, byteOffset, byteLength);
+ const messageLength = view.getUint32(0, false);
+ if (byteLength !== messageLength) {
+ throw new Error("Reported message length does not match received message length");
+ }
+ const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
+ const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
+ const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
+ const checksummer = new import_crc32.Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
+ if (expectedPreludeChecksum !== checksummer.digest()) {
+ throw new Error(
+ `The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`
+ );
+ }
+ checksummer.update(
+ new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH))
+ );
+ if (expectedMessageChecksum !== checksummer.digest()) {
+ throw new Error(
+ `The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`
+ );
+ }
+ return {
+ headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
+ body: new Uint8Array(
+ buffer,
+ byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength,
+ messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)
+ )
+ };
+}
+__name(splitMessage, "splitMessage");
+
+// src/EventStreamCodec.ts
+var EventStreamCodec = class {
+ static {
+ __name(this, "EventStreamCodec");
+ }
+ constructor(toUtf8, fromUtf8) {
+ this.headerMarshaller = new HeaderMarshaller(toUtf8, fromUtf8);
+ this.messageBuffer = [];
+ this.isEndOfStream = false;
+ }
+ feed(message) {
+ this.messageBuffer.push(this.decode(message));
+ }
+ endOfStream() {
+ this.isEndOfStream = true;
+ }
+ getMessage() {
+ const message = this.messageBuffer.pop();
+ const isEndOfStream = this.isEndOfStream;
+ return {
+ getMessage() {
+ return message;
+ },
+ isEndOfStream() {
+ return isEndOfStream;
+ }
+ };
+ }
+ getAvailableMessages() {
+ const messages = this.messageBuffer;
+ this.messageBuffer = [];
+ const isEndOfStream = this.isEndOfStream;
+ return {
+ getMessages() {
+ return messages;
+ },
+ isEndOfStream() {
+ return isEndOfStream;
+ }
+ };
+ }
+ /**
+ * Convert a structured JavaScript object with tagged headers into a binary
+ * event stream message.
+ */
+ encode({ headers: rawHeaders, body }) {
+ const headers = this.headerMarshaller.format(rawHeaders);
+ const length = headers.byteLength + body.byteLength + 16;
+ const out = new Uint8Array(length);
+ const view = new DataView(out.buffer, out.byteOffset, out.byteLength);
+ const checksum = new import_crc322.Crc32();
+ view.setUint32(0, length, false);
+ view.setUint32(4, headers.byteLength, false);
+ view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
+ out.set(headers, 12);
+ out.set(body, headers.byteLength + 12);
+ view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
+ return out;
+ }
+ /**
+ * Convert a binary event stream message into a JavaScript object with an
+ * opaque, binary body and tagged, parsed headers.
+ */
+ decode(message) {
+ const { headers, body } = splitMessage(message);
+ return { headers: this.headerMarshaller.parse(headers), body };
+ }
+ /**
+ * Convert a structured JavaScript object with tagged headers into a binary
+ * event stream message header.
+ */
+ formatHeaders(rawHeaders) {
+ return this.headerMarshaller.format(rawHeaders);
+ }
+};
+
+// src/MessageDecoderStream.ts
+var MessageDecoderStream = class {
+ constructor(options) {
+ this.options = options;
+ }
+ static {
+ __name(this, "MessageDecoderStream");
+ }
+ [Symbol.asyncIterator]() {
+ return this.asyncIterator();
+ }
+ async *asyncIterator() {
+ for await (const bytes of this.options.inputStream) {
+ const decoded = this.options.decoder.decode(bytes);
+ yield decoded;
+ }
+ }
+};
+
+// src/MessageEncoderStream.ts
+var MessageEncoderStream = class {
+ constructor(options) {
+ this.options = options;
+ }
+ static {
+ __name(this, "MessageEncoderStream");
+ }
+ [Symbol.asyncIterator]() {
+ return this.asyncIterator();
+ }
+ async *asyncIterator() {
+ for await (const msg of this.options.messageStream) {
+ const encoded = this.options.encoder.encode(msg);
+ yield encoded;
+ }
+ if (this.options.includeEndFrame) {
+ yield new Uint8Array(0);
+ }
+ }
+};
+
+// src/SmithyMessageDecoderStream.ts
+var SmithyMessageDecoderStream = class {
+ constructor(options) {
+ this.options = options;
+ }
+ static {
+ __name(this, "SmithyMessageDecoderStream");
+ }
+ [Symbol.asyncIterator]() {
+ return this.asyncIterator();
+ }
+ async *asyncIterator() {
+ for await (const message of this.options.messageStream) {
+ const deserialized = await this.options.deserializer(message);
+ if (deserialized === void 0)
+ continue;
+ yield deserialized;
+ }
+ }
+};
+
+// src/SmithyMessageEncoderStream.ts
+var SmithyMessageEncoderStream = class {
+ constructor(options) {
+ this.options = options;
+ }
+ static {
+ __name(this, "SmithyMessageEncoderStream");
+ }
+ [Symbol.asyncIterator]() {
+ return this.asyncIterator();
+ }
+ async *asyncIterator() {
+ for await (const chunk of this.options.inputStream) {
+ const payloadBuf = this.options.serializer(chunk);
+ yield payloadBuf;
+ }
+ }
+};
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 16181:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ resolveEventStreamSerdeConfig: () => resolveEventStreamSerdeConfig
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/EventStreamSerdeConfig.ts
+var resolveEventStreamSerdeConfig = /* @__PURE__ */ __name((input) => Object.assign(input, {
+ eventStreamMarshaller: input.eventStreamSerdeProvider(input)
+}), "resolveEventStreamSerdeConfig");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 77682:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ EventStreamMarshaller: () => EventStreamMarshaller,
+ eventStreamSerdeProvider: () => eventStreamSerdeProvider
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/EventStreamMarshaller.ts
+var import_eventstream_serde_universal = __nccwpck_require__(66673);
+var import_stream = __nccwpck_require__(12781);
+
+// src/utils.ts
+async function* readabletoIterable(readStream) {
+ let streamEnded = false;
+ let generationEnded = false;
+ const records = new Array();
+ readStream.on("error", (err) => {
+ if (!streamEnded) {
+ streamEnded = true;
+ }
+ if (err) {
+ throw err;
+ }
+ });
+ readStream.on("data", (data) => {
+ records.push(data);
+ });
+ readStream.on("end", () => {
+ streamEnded = true;
+ });
+ while (!generationEnded) {
+ const value = await new Promise((resolve) => setTimeout(() => resolve(records.shift()), 0));
+ if (value) {
+ yield value;
+ }
+ generationEnded = streamEnded && records.length === 0;
+ }
+}
+__name(readabletoIterable, "readabletoIterable");
+
+// src/EventStreamMarshaller.ts
+var EventStreamMarshaller = class {
+ static {
+ __name(this, "EventStreamMarshaller");
+ }
+ constructor({ utf8Encoder, utf8Decoder }) {
+ this.universalMarshaller = new import_eventstream_serde_universal.EventStreamMarshaller({
+ utf8Decoder,
+ utf8Encoder
+ });
+ }
+ deserialize(body, deserializer) {
+ const bodyIterable = typeof body[Symbol.asyncIterator] === "function" ? body : readabletoIterable(body);
+ return this.universalMarshaller.deserialize(bodyIterable, deserializer);
+ }
+ serialize(input, serializer) {
+ return import_stream.Readable.from(this.universalMarshaller.serialize(input, serializer));
+ }
+};
+
+// src/provider.ts
+var eventStreamSerdeProvider = /* @__PURE__ */ __name((options) => new EventStreamMarshaller(options), "eventStreamSerdeProvider");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 66673:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ EventStreamMarshaller: () => EventStreamMarshaller,
+ eventStreamSerdeProvider: () => eventStreamSerdeProvider
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/EventStreamMarshaller.ts
+var import_eventstream_codec = __nccwpck_require__(56459);
+
+// src/getChunkedStream.ts
+function getChunkedStream(source) {
+ let currentMessageTotalLength = 0;
+ let currentMessagePendingLength = 0;
+ let currentMessage = null;
+ let messageLengthBuffer = null;
+ const allocateMessage = /* @__PURE__ */ __name((size) => {
+ if (typeof size !== "number") {
+ throw new Error("Attempted to allocate an event message where size was not a number: " + size);
+ }
+ currentMessageTotalLength = size;
+ currentMessagePendingLength = 4;
+ currentMessage = new Uint8Array(size);
+ const currentMessageView = new DataView(currentMessage.buffer);
+ currentMessageView.setUint32(0, size, false);
+ }, "allocateMessage");
+ const iterator = /* @__PURE__ */ __name(async function* () {
+ const sourceIterator = source[Symbol.asyncIterator]();
+ while (true) {
+ const { value, done } = await sourceIterator.next();
+ if (done) {
+ if (!currentMessageTotalLength) {
+ return;
+ } else if (currentMessageTotalLength === currentMessagePendingLength) {
+ yield currentMessage;
+ } else {
+ throw new Error("Truncated event message received.");
+ }
+ return;
+ }
+ const chunkLength = value.length;
+ let currentOffset = 0;
+ while (currentOffset < chunkLength) {
+ if (!currentMessage) {
+ const bytesRemaining = chunkLength - currentOffset;
+ if (!messageLengthBuffer) {
+ messageLengthBuffer = new Uint8Array(4);
+ }
+ const numBytesForTotal = Math.min(
+ 4 - currentMessagePendingLength,
+ // remaining bytes to fill the messageLengthBuffer
+ bytesRemaining
+ // bytes left in chunk
+ );
+ messageLengthBuffer.set(
+ // @ts-ignore error TS2532: Object is possibly 'undefined' for value
+ value.slice(currentOffset, currentOffset + numBytesForTotal),
+ currentMessagePendingLength
+ );
+ currentMessagePendingLength += numBytesForTotal;
+ currentOffset += numBytesForTotal;
+ if (currentMessagePendingLength < 4) {
+ break;
+ }
+ allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false));
+ messageLengthBuffer = null;
+ }
+ const numBytesToWrite = Math.min(
+ currentMessageTotalLength - currentMessagePendingLength,
+ // number of bytes left to complete message
+ chunkLength - currentOffset
+ // number of bytes left in the original chunk
+ );
+ currentMessage.set(
+ // @ts-ignore error TS2532: Object is possibly 'undefined' for value
+ value.slice(currentOffset, currentOffset + numBytesToWrite),
+ currentMessagePendingLength
+ );
+ currentMessagePendingLength += numBytesToWrite;
+ currentOffset += numBytesToWrite;
+ if (currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength) {
+ yield currentMessage;
+ currentMessage = null;
+ currentMessageTotalLength = 0;
+ currentMessagePendingLength = 0;
+ }
+ }
+ }
+ }, "iterator");
+ return {
+ [Symbol.asyncIterator]: iterator
+ };
+}
+__name(getChunkedStream, "getChunkedStream");
+
+// src/getUnmarshalledStream.ts
+function getMessageUnmarshaller(deserializer, toUtf8) {
+ return async function(message) {
+ const { value: messageType } = message.headers[":message-type"];
+ if (messageType === "error") {
+ const unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError");
+ unmodeledError.name = message.headers[":error-code"].value;
+ throw unmodeledError;
+ } else if (messageType === "exception") {
+ const code = message.headers[":exception-type"].value;
+ const exception = { [code]: message };
+ const deserializedException = await deserializer(exception);
+ if (deserializedException.$unknown) {
+ const error = new Error(toUtf8(message.body));
+ error.name = code;
+ throw error;
+ }
+ throw deserializedException[code];
+ } else if (messageType === "event") {
+ const event = {
+ [message.headers[":event-type"].value]: message
+ };
+ const deserialized = await deserializer(event);
+ if (deserialized.$unknown)
+ return;
+ return deserialized;
+ } else {
+ throw Error(`Unrecognizable event type: ${message.headers[":event-type"].value}`);
+ }
+ };
+}
+__name(getMessageUnmarshaller, "getMessageUnmarshaller");
+
+// src/EventStreamMarshaller.ts
+var EventStreamMarshaller = class {
+ static {
+ __name(this, "EventStreamMarshaller");
+ }
+ constructor({ utf8Encoder, utf8Decoder }) {
+ this.eventStreamCodec = new import_eventstream_codec.EventStreamCodec(utf8Encoder, utf8Decoder);
+ this.utfEncoder = utf8Encoder;
+ }
+ deserialize(body, deserializer) {
+ const inputStream = getChunkedStream(body);
+ return new import_eventstream_codec.SmithyMessageDecoderStream({
+ messageStream: new import_eventstream_codec.MessageDecoderStream({ inputStream, decoder: this.eventStreamCodec }),
+ // @ts-expect-error Type 'T' is not assignable to type 'Record'
+ deserializer: getMessageUnmarshaller(deserializer, this.utfEncoder)
+ });
+ }
+ serialize(inputStream, serializer) {
+ return new import_eventstream_codec.MessageEncoderStream({
+ messageStream: new import_eventstream_codec.SmithyMessageEncoderStream({ inputStream, serializer }),
+ encoder: this.eventStreamCodec,
+ includeEndFrame: true
+ });
+ }
+};
+
+// src/provider.ts
+var eventStreamSerdeProvider = /* @__PURE__ */ __name((options) => new EventStreamMarshaller(options), "eventStreamSerdeProvider");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 82687:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ FetchHttpHandler: () => FetchHttpHandler,
+ keepAliveSupport: () => keepAliveSupport,
+ streamCollector: () => streamCollector
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/fetch-http-handler.ts
+var import_protocol_http = __nccwpck_require__(64418);
+var import_querystring_builder = __nccwpck_require__(68031);
+
+// src/create-request.ts
+function createRequest(url, requestOptions) {
+ return new Request(url, requestOptions);
+}
+__name(createRequest, "createRequest");
+
+// src/request-timeout.ts
+function requestTimeout(timeoutInMs = 0) {
+ return new Promise((resolve, reject) => {
+ if (timeoutInMs) {
+ setTimeout(() => {
+ const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`);
+ timeoutError.name = "TimeoutError";
+ reject(timeoutError);
+ }, timeoutInMs);
+ }
+ });
+}
+__name(requestTimeout, "requestTimeout");
+
+// src/fetch-http-handler.ts
+var keepAliveSupport = {
+ supported: void 0
+};
+var FetchHttpHandler = class _FetchHttpHandler {
+ static {
+ __name(this, "FetchHttpHandler");
+ }
+ /**
+ * @returns the input if it is an HttpHandler of any class,
+ * or instantiates a new instance of this handler.
+ */
+ static create(instanceOrOptions) {
+ if (typeof instanceOrOptions?.handle === "function") {
+ return instanceOrOptions;
+ }
+ return new _FetchHttpHandler(instanceOrOptions);
+ }
+ constructor(options) {
+ if (typeof options === "function") {
+ this.configProvider = options().then((opts) => opts || {});
+ } else {
+ this.config = options ?? {};
+ this.configProvider = Promise.resolve(this.config);
+ }
+ if (keepAliveSupport.supported === void 0) {
+ keepAliveSupport.supported = Boolean(
+ typeof Request !== "undefined" && "keepalive" in createRequest("https://[::1]")
+ );
+ }
+ }
+ destroy() {
+ }
+ async handle(request, { abortSignal } = {}) {
+ if (!this.config) {
+ this.config = await this.configProvider;
+ }
+ const requestTimeoutInMs = this.config.requestTimeout;
+ const keepAlive = this.config.keepAlive === true;
+ const credentials = this.config.credentials;
+ if (abortSignal?.aborted) {
+ const abortError = new Error("Request aborted");
+ abortError.name = "AbortError";
+ return Promise.reject(abortError);
+ }
+ let path = request.path;
+ const queryString = (0, import_querystring_builder.buildQueryString)(request.query || {});
+ if (queryString) {
+ path += `?${queryString}`;
+ }
+ if (request.fragment) {
+ path += `#${request.fragment}`;
+ }
+ let auth = "";
+ if (request.username != null || request.password != null) {
+ const username = request.username ?? "";
+ const password = request.password ?? "";
+ auth = `${username}:${password}@`;
+ }
+ const { port, method } = request;
+ const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path}`;
+ const body = method === "GET" || method === "HEAD" ? void 0 : request.body;
+ const requestOptions = {
+ body,
+ headers: new Headers(request.headers),
+ method,
+ credentials
+ };
+ if (this.config?.cache) {
+ requestOptions.cache = this.config.cache;
+ }
+ if (body) {
+ requestOptions.duplex = "half";
+ }
+ if (typeof AbortController !== "undefined") {
+ requestOptions.signal = abortSignal;
+ }
+ if (keepAliveSupport.supported) {
+ requestOptions.keepalive = keepAlive;
+ }
+ if (typeof this.config.requestInit === "function") {
+ Object.assign(requestOptions, this.config.requestInit(request));
+ }
+ let removeSignalEventListener = /* @__PURE__ */ __name(() => {
+ }, "removeSignalEventListener");
+ const fetchRequest = createRequest(url, requestOptions);
+ const raceOfPromises = [
+ fetch(fetchRequest).then((response) => {
+ const fetchHeaders = response.headers;
+ const transformedHeaders = {};
+ for (const pair of fetchHeaders.entries()) {
+ transformedHeaders[pair[0]] = pair[1];
+ }
+ const hasReadableStream = response.body != void 0;
+ if (!hasReadableStream) {
+ return response.blob().then((body2) => ({
+ response: new import_protocol_http.HttpResponse({
+ headers: transformedHeaders,
+ reason: response.statusText,
+ statusCode: response.status,
+ body: body2
+ })
+ }));
+ }
+ return {
+ response: new import_protocol_http.HttpResponse({
+ headers: transformedHeaders,
+ reason: response.statusText,
+ statusCode: response.status,
+ body: response.body
+ })
+ };
+ }),
+ requestTimeout(requestTimeoutInMs)
+ ];
+ if (abortSignal) {
+ raceOfPromises.push(
+ new Promise((resolve, reject) => {
+ const onAbort = /* @__PURE__ */ __name(() => {
+ const abortError = new Error("Request aborted");
+ abortError.name = "AbortError";
+ reject(abortError);
+ }, "onAbort");
+ if (typeof abortSignal.addEventListener === "function") {
+ const signal = abortSignal;
+ signal.addEventListener("abort", onAbort, { once: true });
+ removeSignalEventListener = /* @__PURE__ */ __name(() => signal.removeEventListener("abort", onAbort), "removeSignalEventListener");
+ } else {
+ abortSignal.onabort = onAbort;
+ }
+ })
+ );
+ }
+ return Promise.race(raceOfPromises).finally(removeSignalEventListener);
+ }
+ updateHttpClientConfig(key, value) {
+ this.config = void 0;
+ this.configProvider = this.configProvider.then((config) => {
+ config[key] = value;
+ return config;
+ });
+ }
+ httpHandlerConfigs() {
+ return this.config ?? {};
+ }
+};
+
+// src/stream-collector.ts
+var import_util_base64 = __nccwpck_require__(75600);
+var streamCollector = /* @__PURE__ */ __name(async (stream) => {
+ if (typeof Blob === "function" && stream instanceof Blob || stream.constructor?.name === "Blob") {
+ if (Blob.prototype.arrayBuffer !== void 0) {
+ return new Uint8Array(await stream.arrayBuffer());
+ }
+ return collectBlob(stream);
+ }
+ return collectStream(stream);
+}, "streamCollector");
+async function collectBlob(blob) {
+ const base64 = await readToBase64(blob);
+ const arrayBuffer = (0, import_util_base64.fromBase64)(base64);
+ return new Uint8Array(arrayBuffer);
+}
+__name(collectBlob, "collectBlob");
+async function collectStream(stream) {
+ const chunks = [];
+ const reader = stream.getReader();
+ let isDone = false;
+ let length = 0;
+ while (!isDone) {
+ const { done, value } = await reader.read();
+ if (value) {
+ chunks.push(value);
+ length += value.length;
+ }
+ isDone = done;
+ }
+ const collected = new Uint8Array(length);
+ let offset = 0;
+ for (const chunk of chunks) {
+ collected.set(chunk, offset);
+ offset += chunk.length;
+ }
+ return collected;
+}
+__name(collectStream, "collectStream");
+function readToBase64(blob) {
+ return new Promise((resolve, reject) => {
+ const reader = new FileReader();
+ reader.onloadend = () => {
+ if (reader.readyState !== 2) {
+ return reject(new Error("Reader aborted too early"));
+ }
+ const result = reader.result ?? "";
+ const commaIndex = result.indexOf(",");
+ const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
+ resolve(result.substring(dataOffset));
+ };
+ reader.onabort = () => reject(new Error("Read aborted"));
+ reader.onerror = () => reject(reader.error);
+ reader.readAsDataURL(blob);
+ });
+}
+__name(readToBase64, "readToBase64");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 3081:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ Hash: () => Hash
+});
+module.exports = __toCommonJS(src_exports);
+var import_util_buffer_from = __nccwpck_require__(31381);
+var import_util_utf8 = __nccwpck_require__(41895);
+var import_buffer = __nccwpck_require__(14300);
+var import_crypto = __nccwpck_require__(6113);
+var Hash = class {
+ static {
+ __name(this, "Hash");
+ }
+ constructor(algorithmIdentifier, secret) {
+ this.algorithmIdentifier = algorithmIdentifier;
+ this.secret = secret;
+ this.reset();
+ }
+ update(toHash, encoding) {
+ this.hash.update((0, import_util_utf8.toUint8Array)(castSourceData(toHash, encoding)));
+ }
+ digest() {
+ return Promise.resolve(this.hash.digest());
+ }
+ reset() {
+ this.hash = this.secret ? (0, import_crypto.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_crypto.createHash)(this.algorithmIdentifier);
+ }
+};
+function castSourceData(toCast, encoding) {
+ if (import_buffer.Buffer.isBuffer(toCast)) {
+ return toCast;
+ }
+ if (typeof toCast === "string") {
+ return (0, import_util_buffer_from.fromString)(toCast, encoding);
+ }
+ if (ArrayBuffer.isView(toCast)) {
+ return (0, import_util_buffer_from.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength);
+ }
+ return (0, import_util_buffer_from.fromArrayBuffer)(toCast);
+}
+__name(castSourceData, "castSourceData");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 48866:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ fileStreamHasher: () => fileStreamHasher,
+ readableStreamHasher: () => readableStreamHasher
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/fileStreamHasher.ts
+var import_fs = __nccwpck_require__(57147);
+
+// src/HashCalculator.ts
+var import_util_utf8 = __nccwpck_require__(41895);
+var import_stream = __nccwpck_require__(12781);
+var HashCalculator = class extends import_stream.Writable {
+ constructor(hash, options) {
+ super(options);
+ this.hash = hash;
+ }
+ static {
+ __name(this, "HashCalculator");
+ }
+ _write(chunk, encoding, callback) {
+ try {
+ this.hash.update((0, import_util_utf8.toUint8Array)(chunk));
+ } catch (err) {
+ return callback(err);
+ }
+ callback();
+ }
+};
+
+// src/fileStreamHasher.ts
+var fileStreamHasher = /* @__PURE__ */ __name((hashCtor, fileStream) => new Promise((resolve, reject) => {
+ if (!isReadStream(fileStream)) {
+ reject(new Error("Unable to calculate hash for non-file streams."));
+ return;
+ }
+ const fileStreamTee = (0, import_fs.createReadStream)(fileStream.path, {
+ start: fileStream.start,
+ end: fileStream.end
+ });
+ const hash = new hashCtor();
+ const hashCalculator = new HashCalculator(hash);
+ fileStreamTee.pipe(hashCalculator);
+ fileStreamTee.on("error", (err) => {
+ hashCalculator.end();
+ reject(err);
+ });
+ hashCalculator.on("error", reject);
+ hashCalculator.on("finish", function() {
+ hash.digest().then(resolve).catch(reject);
+ });
+}), "fileStreamHasher");
+var isReadStream = /* @__PURE__ */ __name((stream) => typeof stream.path === "string", "isReadStream");
+
+// src/readableStreamHasher.ts
+var readableStreamHasher = /* @__PURE__ */ __name((hashCtor, readableStream) => {
+ if (readableStream.readableFlowing !== null) {
+ throw new Error("Unable to calculate hash for flowing readable stream");
+ }
+ const hash = new hashCtor();
+ const hashCalculator = new HashCalculator(hash);
+ readableStream.pipe(hashCalculator);
+ return new Promise((resolve, reject) => {
+ readableStream.on("error", (err) => {
+ hashCalculator.end();
+ reject(err);
+ });
+ hashCalculator.on("error", reject);
+ hashCalculator.on("finish", () => {
+ hash.digest().then(resolve).catch(reject);
+ });
+ });
+}, "readableStreamHasher");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 10780:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ isArrayBuffer: () => isArrayBuffer
+});
+module.exports = __toCommonJS(src_exports);
+var isArrayBuffer = /* @__PURE__ */ __name((arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]", "isArrayBuffer");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 82800:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ contentLengthMiddleware: () => contentLengthMiddleware,
+ contentLengthMiddlewareOptions: () => contentLengthMiddlewareOptions,
+ getContentLengthPlugin: () => getContentLengthPlugin
+});
+module.exports = __toCommonJS(src_exports);
+var import_protocol_http = __nccwpck_require__(64418);
+var CONTENT_LENGTH_HEADER = "content-length";
+function contentLengthMiddleware(bodyLengthChecker) {
+ return (next) => async (args) => {
+ const request = args.request;
+ if (import_protocol_http.HttpRequest.isInstance(request)) {
+ const { body, headers } = request;
+ if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) {
+ try {
+ const length = bodyLengthChecker(body);
+ request.headers = {
+ ...request.headers,
+ [CONTENT_LENGTH_HEADER]: String(length)
+ };
+ } catch (error) {
+ }
+ }
+ }
+ return next({
+ ...args,
+ request
+ });
+ };
+}
+__name(contentLengthMiddleware, "contentLengthMiddleware");
+var contentLengthMiddlewareOptions = {
+ step: "build",
+ tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"],
+ name: "contentLengthMiddleware",
+ override: true
+};
+var getContentLengthPlugin = /* @__PURE__ */ __name((options) => ({
+ applyToStack: (clientStack) => {
+ clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions);
+ }
+}), "getContentLengthPlugin");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 31518:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getEndpointFromConfig = void 0;
+const node_config_provider_1 = __nccwpck_require__(33461);
+const getEndpointUrlConfig_1 = __nccwpck_require__(7574);
+const getEndpointFromConfig = async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId !== null && serviceId !== void 0 ? serviceId : ""))();
+exports.getEndpointFromConfig = getEndpointFromConfig;
+
+
+/***/ }),
+
+/***/ 7574:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getEndpointUrlConfig = void 0;
+const shared_ini_file_loader_1 = __nccwpck_require__(43507);
+const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
+const CONFIG_ENDPOINT_URL = "endpoint_url";
+const getEndpointUrlConfig = (serviceId) => ({
+ environmentVariableSelector: (env) => {
+ const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase());
+ const serviceEndpointUrl = env[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")];
+ if (serviceEndpointUrl)
+ return serviceEndpointUrl;
+ const endpointUrl = env[ENV_ENDPOINT_URL];
+ if (endpointUrl)
+ return endpointUrl;
+ return undefined;
+ },
+ configFileSelector: (profile, config) => {
+ if (config && profile.services) {
+ const servicesSection = config[["services", profile.services].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];
+ if (servicesSection) {
+ const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase());
+ const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];
+ if (endpointUrl)
+ return endpointUrl;
+ }
+ }
+ const endpointUrl = profile[CONFIG_ENDPOINT_URL];
+ if (endpointUrl)
+ return endpointUrl;
+ return undefined;
+ },
+ default: undefined,
+});
+exports.getEndpointUrlConfig = getEndpointUrlConfig;
+
+
+/***/ }),
+
+/***/ 82918:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ endpointMiddleware: () => endpointMiddleware,
+ endpointMiddlewareOptions: () => endpointMiddlewareOptions,
+ getEndpointFromInstructions: () => getEndpointFromInstructions,
+ getEndpointPlugin: () => getEndpointPlugin,
+ resolveEndpointConfig: () => resolveEndpointConfig,
+ resolveParams: () => resolveParams,
+ toEndpointV1: () => toEndpointV1
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/service-customizations/s3.ts
+var resolveParamsForS3 = /* @__PURE__ */ __name(async (endpointParams) => {
+ const bucket = endpointParams?.Bucket || "";
+ if (typeof endpointParams.Bucket === "string") {
+ endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?"));
+ }
+ if (isArnBucketName(bucket)) {
+ if (endpointParams.ForcePathStyle === true) {
+ throw new Error("Path-style addressing cannot be used with ARN buckets");
+ }
+ } else if (!isDnsCompatibleBucketName(bucket) || bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:") || bucket.toLowerCase() !== bucket || bucket.length < 3) {
+ endpointParams.ForcePathStyle = true;
+ }
+ if (endpointParams.DisableMultiRegionAccessPoints) {
+ endpointParams.disableMultiRegionAccessPoints = true;
+ endpointParams.DisableMRAP = true;
+ }
+ return endpointParams;
+}, "resolveParamsForS3");
+var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;
+var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
+var DOTS_PATTERN = /\.\./;
+var isDnsCompatibleBucketName = /* @__PURE__ */ __name((bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName), "isDnsCompatibleBucketName");
+var isArnBucketName = /* @__PURE__ */ __name((bucketName) => {
+ const [arn, partition, service, , , bucket] = bucketName.split(":");
+ const isArn = arn === "arn" && bucketName.split(":").length >= 6;
+ const isValidArn = Boolean(isArn && partition && service && bucket);
+ if (isArn && !isValidArn) {
+ throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`);
+ }
+ return isValidArn;
+}, "isArnBucketName");
+
+// src/adaptors/createConfigValueProvider.ts
+var createConfigValueProvider = /* @__PURE__ */ __name((configKey, canonicalEndpointParamKey, config) => {
+ const configProvider = /* @__PURE__ */ __name(async () => {
+ const configValue = config[configKey] ?? config[canonicalEndpointParamKey];
+ if (typeof configValue === "function") {
+ return configValue();
+ }
+ return configValue;
+ }, "configProvider");
+ if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") {
+ return async () => {
+ const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
+ const configValue = credentials?.credentialScope ?? credentials?.CredentialScope;
+ return configValue;
+ };
+ }
+ if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") {
+ return async () => {
+ const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
+ const configValue = credentials?.accountId ?? credentials?.AccountId;
+ return configValue;
+ };
+ }
+ if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
+ return async () => {
+ const endpoint = await configProvider();
+ if (endpoint && typeof endpoint === "object") {
+ if ("url" in endpoint) {
+ return endpoint.url.href;
+ }
+ if ("hostname" in endpoint) {
+ const { protocol, hostname, port, path } = endpoint;
+ return `${protocol}//${hostname}${port ? ":" + port : ""}${path}`;
+ }
+ }
+ return endpoint;
+ };
+ }
+ return configProvider;
+}, "createConfigValueProvider");
+
+// src/adaptors/getEndpointFromInstructions.ts
+var import_getEndpointFromConfig = __nccwpck_require__(31518);
+
+// src/adaptors/toEndpointV1.ts
+var import_url_parser = __nccwpck_require__(14681);
+var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => {
+ if (typeof endpoint === "object") {
+ if ("url" in endpoint) {
+ return (0, import_url_parser.parseUrl)(endpoint.url);
+ }
+ return endpoint;
+ }
+ return (0, import_url_parser.parseUrl)(endpoint);
+}, "toEndpointV1");
+
+// src/adaptors/getEndpointFromInstructions.ts
+var getEndpointFromInstructions = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig, context) => {
+ if (!clientConfig.endpoint) {
+ let endpointFromConfig;
+ if (clientConfig.serviceConfiguredEndpoint) {
+ endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
+ } else {
+ endpointFromConfig = await (0, import_getEndpointFromConfig.getEndpointFromConfig)(clientConfig.serviceId);
+ }
+ if (endpointFromConfig) {
+ clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
+ }
+ }
+ const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
+ if (typeof clientConfig.endpointProvider !== "function") {
+ throw new Error("config.endpointProvider is not set.");
+ }
+ const endpoint = clientConfig.endpointProvider(endpointParams, context);
+ return endpoint;
+}, "getEndpointFromInstructions");
+var resolveParams = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig) => {
+ const endpointParams = {};
+ const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {};
+ for (const [name, instruction] of Object.entries(instructions)) {
+ switch (instruction.type) {
+ case "staticContextParams":
+ endpointParams[name] = instruction.value;
+ break;
+ case "contextParams":
+ endpointParams[name] = commandInput[instruction.name];
+ break;
+ case "clientContextParams":
+ case "builtInParams":
+ endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)();
+ break;
+ case "operationContextParams":
+ endpointParams[name] = instruction.get(commandInput);
+ break;
+ default:
+ throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction));
+ }
+ }
+ if (Object.keys(instructions).length === 0) {
+ Object.assign(endpointParams, clientConfig);
+ }
+ if (String(clientConfig.serviceId).toLowerCase() === "s3") {
+ await resolveParamsForS3(endpointParams);
+ }
+ return endpointParams;
+}, "resolveParams");
+
+// src/endpointMiddleware.ts
+var import_core = __nccwpck_require__(55829);
+var import_util_middleware = __nccwpck_require__(2390);
+var endpointMiddleware = /* @__PURE__ */ __name(({
+ config,
+ instructions
+}) => {
+ return (next, context) => async (args) => {
+ if (config.endpoint) {
+ (0, import_core.setFeature)(context, "ENDPOINT_OVERRIDE", "N");
+ }
+ const endpoint = await getEndpointFromInstructions(
+ args.input,
+ {
+ getEndpointParameterInstructions() {
+ return instructions;
+ }
+ },
+ { ...config },
+ context
+ );
+ context.endpointV2 = endpoint;
+ context.authSchemes = endpoint.properties?.authSchemes;
+ const authScheme = context.authSchemes?.[0];
+ if (authScheme) {
+ context["signing_region"] = authScheme.signingRegion;
+ context["signing_service"] = authScheme.signingName;
+ const smithyContext = (0, import_util_middleware.getSmithyContext)(context);
+ const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
+ if (httpAuthOption) {
+ httpAuthOption.signingProperties = Object.assign(
+ httpAuthOption.signingProperties || {},
+ {
+ signing_region: authScheme.signingRegion,
+ signingRegion: authScheme.signingRegion,
+ signing_service: authScheme.signingName,
+ signingName: authScheme.signingName,
+ signingRegionSet: authScheme.signingRegionSet
+ },
+ authScheme.properties
+ );
+ }
+ }
+ return next({
+ ...args
+ });
+ };
+}, "endpointMiddleware");
+
+// src/getEndpointPlugin.ts
+var import_middleware_serde = __nccwpck_require__(81238);
+var endpointMiddlewareOptions = {
+ step: "serialize",
+ tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"],
+ name: "endpointV2Middleware",
+ override: true,
+ relation: "before",
+ toMiddleware: import_middleware_serde.serializerMiddlewareOption.name
+};
+var getEndpointPlugin = /* @__PURE__ */ __name((config, instructions) => ({
+ applyToStack: (clientStack) => {
+ clientStack.addRelativeTo(
+ endpointMiddleware({
+ config,
+ instructions
+ }),
+ endpointMiddlewareOptions
+ );
+ }
+}), "getEndpointPlugin");
+
+// src/resolveEndpointConfig.ts
+
+var import_getEndpointFromConfig2 = __nccwpck_require__(31518);
+var resolveEndpointConfig = /* @__PURE__ */ __name((input) => {
+ const tls = input.tls ?? true;
+ const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
+ const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await (0, import_util_middleware.normalizeProvider)(endpoint)()) : void 0;
+ const isCustomEndpoint = !!endpoint;
+ const resolvedConfig = Object.assign(input, {
+ endpoint: customEndpointProvider,
+ tls,
+ isCustomEndpoint,
+ useDualstackEndpoint: (0, import_util_middleware.normalizeProvider)(useDualstackEndpoint ?? false),
+ useFipsEndpoint: (0, import_util_middleware.normalizeProvider)(useFipsEndpoint ?? false)
+ });
+ let configuredEndpointPromise = void 0;
+ resolvedConfig.serviceConfiguredEndpoint = async () => {
+ if (input.serviceId && !configuredEndpointPromise) {
+ configuredEndpointPromise = (0, import_getEndpointFromConfig2.getEndpointFromConfig)(input.serviceId);
+ }
+ return configuredEndpointPromise;
+ };
+ return resolvedConfig;
+}, "resolveEndpointConfig");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 96039:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ AdaptiveRetryStrategy: () => AdaptiveRetryStrategy,
+ CONFIG_MAX_ATTEMPTS: () => CONFIG_MAX_ATTEMPTS,
+ CONFIG_RETRY_MODE: () => CONFIG_RETRY_MODE,
+ ENV_MAX_ATTEMPTS: () => ENV_MAX_ATTEMPTS,
+ ENV_RETRY_MODE: () => ENV_RETRY_MODE,
+ NODE_MAX_ATTEMPT_CONFIG_OPTIONS: () => NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
+ NODE_RETRY_MODE_CONFIG_OPTIONS: () => NODE_RETRY_MODE_CONFIG_OPTIONS,
+ StandardRetryStrategy: () => StandardRetryStrategy,
+ defaultDelayDecider: () => defaultDelayDecider,
+ defaultRetryDecider: () => defaultRetryDecider,
+ getOmitRetryHeadersPlugin: () => getOmitRetryHeadersPlugin,
+ getRetryAfterHint: () => getRetryAfterHint,
+ getRetryPlugin: () => getRetryPlugin,
+ omitRetryHeadersMiddleware: () => omitRetryHeadersMiddleware,
+ omitRetryHeadersMiddlewareOptions: () => omitRetryHeadersMiddlewareOptions,
+ resolveRetryConfig: () => resolveRetryConfig,
+ retryMiddleware: () => retryMiddleware,
+ retryMiddlewareOptions: () => retryMiddlewareOptions
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/AdaptiveRetryStrategy.ts
+
+
+// src/StandardRetryStrategy.ts
+var import_protocol_http = __nccwpck_require__(64418);
+
+
+var import_uuid = __nccwpck_require__(7761);
+
+// src/defaultRetryQuota.ts
+var import_util_retry = __nccwpck_require__(84902);
+var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => {
+ const MAX_CAPACITY = initialRetryTokens;
+ const noRetryIncrement = options?.noRetryIncrement ?? import_util_retry.NO_RETRY_INCREMENT;
+ const retryCost = options?.retryCost ?? import_util_retry.RETRY_COST;
+ const timeoutRetryCost = options?.timeoutRetryCost ?? import_util_retry.TIMEOUT_RETRY_COST;
+ let availableCapacity = initialRetryTokens;
+ const getCapacityAmount = /* @__PURE__ */ __name((error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost, "getCapacityAmount");
+ const hasRetryTokens = /* @__PURE__ */ __name((error) => getCapacityAmount(error) <= availableCapacity, "hasRetryTokens");
+ const retrieveRetryTokens = /* @__PURE__ */ __name((error) => {
+ if (!hasRetryTokens(error)) {
+ throw new Error("No retry token available");
+ }
+ const capacityAmount = getCapacityAmount(error);
+ availableCapacity -= capacityAmount;
+ return capacityAmount;
+ }, "retrieveRetryTokens");
+ const releaseRetryTokens = /* @__PURE__ */ __name((capacityReleaseAmount) => {
+ availableCapacity += capacityReleaseAmount ?? noRetryIncrement;
+ availableCapacity = Math.min(availableCapacity, MAX_CAPACITY);
+ }, "releaseRetryTokens");
+ return Object.freeze({
+ hasRetryTokens,
+ retrieveRetryTokens,
+ releaseRetryTokens
+ });
+}, "getDefaultRetryQuota");
+
+// src/delayDecider.ts
+
+var defaultDelayDecider = /* @__PURE__ */ __name((delayBase, attempts) => Math.floor(Math.min(import_util_retry.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)), "defaultDelayDecider");
+
+// src/retryDecider.ts
+var import_service_error_classification = __nccwpck_require__(6375);
+var defaultRetryDecider = /* @__PURE__ */ __name((error) => {
+ if (!error) {
+ return false;
+ }
+ return (0, import_service_error_classification.isRetryableByTrait)(error) || (0, import_service_error_classification.isClockSkewError)(error) || (0, import_service_error_classification.isThrottlingError)(error) || (0, import_service_error_classification.isTransientError)(error);
+}, "defaultRetryDecider");
+
+// src/util.ts
+var asSdkError = /* @__PURE__ */ __name((error) => {
+ if (error instanceof Error)
+ return error;
+ if (error instanceof Object)
+ return Object.assign(new Error(), error);
+ if (typeof error === "string")
+ return new Error(error);
+ return new Error(`AWS SDK error wrapper for ${error}`);
+}, "asSdkError");
+
+// src/StandardRetryStrategy.ts
+var StandardRetryStrategy = class {
+ constructor(maxAttemptsProvider, options) {
+ this.maxAttemptsProvider = maxAttemptsProvider;
+ this.mode = import_util_retry.RETRY_MODES.STANDARD;
+ this.retryDecider = options?.retryDecider ?? defaultRetryDecider;
+ this.delayDecider = options?.delayDecider ?? defaultDelayDecider;
+ this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(import_util_retry.INITIAL_RETRY_TOKENS);
+ }
+ static {
+ __name(this, "StandardRetryStrategy");
+ }
+ shouldRetry(error, attempts, maxAttempts) {
+ return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error);
+ }
+ async getMaxAttempts() {
+ let maxAttempts;
+ try {
+ maxAttempts = await this.maxAttemptsProvider();
+ } catch (error) {
+ maxAttempts = import_util_retry.DEFAULT_MAX_ATTEMPTS;
+ }
+ return maxAttempts;
+ }
+ async retry(next, args, options) {
+ let retryTokenAmount;
+ let attempts = 0;
+ let totalDelay = 0;
+ const maxAttempts = await this.getMaxAttempts();
+ const { request } = args;
+ if (import_protocol_http.HttpRequest.isInstance(request)) {
+ request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)();
+ }
+ while (true) {
+ try {
+ if (import_protocol_http.HttpRequest.isInstance(request)) {
+ request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
+ }
+ if (options?.beforeRequest) {
+ await options.beforeRequest();
+ }
+ const { response, output } = await next(args);
+ if (options?.afterRequest) {
+ options.afterRequest(response);
+ }
+ this.retryQuota.releaseRetryTokens(retryTokenAmount);
+ output.$metadata.attempts = attempts + 1;
+ output.$metadata.totalRetryDelay = totalDelay;
+ return { response, output };
+ } catch (e) {
+ const err = asSdkError(e);
+ attempts++;
+ if (this.shouldRetry(err, attempts, maxAttempts)) {
+ retryTokenAmount = this.retryQuota.retrieveRetryTokens(err);
+ const delayFromDecider = this.delayDecider(
+ (0, import_service_error_classification.isThrottlingError)(err) ? import_util_retry.THROTTLING_RETRY_DELAY_BASE : import_util_retry.DEFAULT_RETRY_DELAY_BASE,
+ attempts
+ );
+ const delayFromResponse = getDelayFromRetryAfterHeader(err.$response);
+ const delay = Math.max(delayFromResponse || 0, delayFromDecider);
+ totalDelay += delay;
+ await new Promise((resolve) => setTimeout(resolve, delay));
+ continue;
+ }
+ if (!err.$metadata) {
+ err.$metadata = {};
+ }
+ err.$metadata.attempts = attempts;
+ err.$metadata.totalRetryDelay = totalDelay;
+ throw err;
+ }
+ }
+ }
+};
+var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => {
+ if (!import_protocol_http.HttpResponse.isInstance(response))
+ return;
+ const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
+ if (!retryAfterHeaderName)
+ return;
+ const retryAfter = response.headers[retryAfterHeaderName];
+ const retryAfterSeconds = Number(retryAfter);
+ if (!Number.isNaN(retryAfterSeconds))
+ return retryAfterSeconds * 1e3;
+ const retryAfterDate = new Date(retryAfter);
+ return retryAfterDate.getTime() - Date.now();
+}, "getDelayFromRetryAfterHeader");
+
+// src/AdaptiveRetryStrategy.ts
+var AdaptiveRetryStrategy = class extends StandardRetryStrategy {
+ static {
+ __name(this, "AdaptiveRetryStrategy");
+ }
+ constructor(maxAttemptsProvider, options) {
+ const { rateLimiter, ...superOptions } = options ?? {};
+ super(maxAttemptsProvider, superOptions);
+ this.rateLimiter = rateLimiter ?? new import_util_retry.DefaultRateLimiter();
+ this.mode = import_util_retry.RETRY_MODES.ADAPTIVE;
+ }
+ async retry(next, args) {
+ return super.retry(next, args, {
+ beforeRequest: async () => {
+ return this.rateLimiter.getSendToken();
+ },
+ afterRequest: (response) => {
+ this.rateLimiter.updateClientSendingRate(response);
+ }
+ });
+ }
+};
+
+// src/configurations.ts
+var import_util_middleware = __nccwpck_require__(2390);
+
+var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
+var CONFIG_MAX_ATTEMPTS = "max_attempts";
+var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
+ environmentVariableSelector: (env) => {
+ const value = env[ENV_MAX_ATTEMPTS];
+ if (!value)
+ return void 0;
+ const maxAttempt = parseInt(value);
+ if (Number.isNaN(maxAttempt)) {
+ throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`);
+ }
+ return maxAttempt;
+ },
+ configFileSelector: (profile) => {
+ const value = profile[CONFIG_MAX_ATTEMPTS];
+ if (!value)
+ return void 0;
+ const maxAttempt = parseInt(value);
+ if (Number.isNaN(maxAttempt)) {
+ throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`);
+ }
+ return maxAttempt;
+ },
+ default: import_util_retry.DEFAULT_MAX_ATTEMPTS
+};
+var resolveRetryConfig = /* @__PURE__ */ __name((input) => {
+ const { retryStrategy, retryMode: _retryMode, maxAttempts: _maxAttempts } = input;
+ const maxAttempts = (0, import_util_middleware.normalizeProvider)(_maxAttempts ?? import_util_retry.DEFAULT_MAX_ATTEMPTS);
+ return Object.assign(input, {
+ maxAttempts,
+ retryStrategy: async () => {
+ if (retryStrategy) {
+ return retryStrategy;
+ }
+ const retryMode = await (0, import_util_middleware.normalizeProvider)(_retryMode)();
+ if (retryMode === import_util_retry.RETRY_MODES.ADAPTIVE) {
+ return new import_util_retry.AdaptiveRetryStrategy(maxAttempts);
+ }
+ return new import_util_retry.StandardRetryStrategy(maxAttempts);
+ }
+ });
+}, "resolveRetryConfig");
+var ENV_RETRY_MODE = "AWS_RETRY_MODE";
+var CONFIG_RETRY_MODE = "retry_mode";
+var NODE_RETRY_MODE_CONFIG_OPTIONS = {
+ environmentVariableSelector: (env) => env[ENV_RETRY_MODE],
+ configFileSelector: (profile) => profile[CONFIG_RETRY_MODE],
+ default: import_util_retry.DEFAULT_RETRY_MODE
+};
+
+// src/omitRetryHeadersMiddleware.ts
+
+
+var omitRetryHeadersMiddleware = /* @__PURE__ */ __name(() => (next) => async (args) => {
+ const { request } = args;
+ if (import_protocol_http.HttpRequest.isInstance(request)) {
+ delete request.headers[import_util_retry.INVOCATION_ID_HEADER];
+ delete request.headers[import_util_retry.REQUEST_HEADER];
+ }
+ return next(args);
+}, "omitRetryHeadersMiddleware");
+var omitRetryHeadersMiddlewareOptions = {
+ name: "omitRetryHeadersMiddleware",
+ tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"],
+ relation: "before",
+ toMiddleware: "awsAuthMiddleware",
+ override: true
+};
+var getOmitRetryHeadersPlugin = /* @__PURE__ */ __name((options) => ({
+ applyToStack: (clientStack) => {
+ clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions);
+ }
+}), "getOmitRetryHeadersPlugin");
+
+// src/retryMiddleware.ts
+
+
+var import_smithy_client = __nccwpck_require__(63570);
+
+
+var import_isStreamingPayload = __nccwpck_require__(18977);
+var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => {
+ let retryStrategy = await options.retryStrategy();
+ const maxAttempts = await options.maxAttempts();
+ if (isRetryStrategyV2(retryStrategy)) {
+ retryStrategy = retryStrategy;
+ let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]);
+ let lastError = new Error();
+ let attempts = 0;
+ let totalRetryDelay = 0;
+ const { request } = args;
+ const isRequest = import_protocol_http.HttpRequest.isInstance(request);
+ if (isRequest) {
+ request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)();
+ }
+ while (true) {
+ try {
+ if (isRequest) {
+ request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
+ }
+ const { response, output } = await next(args);
+ retryStrategy.recordSuccess(retryToken);
+ output.$metadata.attempts = attempts + 1;
+ output.$metadata.totalRetryDelay = totalRetryDelay;
+ return { response, output };
+ } catch (e) {
+ const retryErrorInfo = getRetryErrorInfo(e);
+ lastError = asSdkError(e);
+ if (isRequest && (0, import_isStreamingPayload.isStreamingPayload)(request)) {
+ (context.logger instanceof import_smithy_client.NoOpLogger ? console : context.logger)?.warn(
+ "An error was encountered in a non-retryable streaming request."
+ );
+ throw lastError;
+ }
+ try {
+ retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
+ } catch (refreshError) {
+ if (!lastError.$metadata) {
+ lastError.$metadata = {};
+ }
+ lastError.$metadata.attempts = attempts + 1;
+ lastError.$metadata.totalRetryDelay = totalRetryDelay;
+ throw lastError;
+ }
+ attempts = retryToken.getRetryCount();
+ const delay = retryToken.getRetryDelay();
+ totalRetryDelay += delay;
+ await new Promise((resolve) => setTimeout(resolve, delay));
+ }
+ }
+ } else {
+ retryStrategy = retryStrategy;
+ if (retryStrategy?.mode)
+ context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]];
+ return retryStrategy.retry(next, args);
+ }
+}, "retryMiddleware");
+var isRetryStrategyV2 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
+var getRetryErrorInfo = /* @__PURE__ */ __name((error) => {
+ const errorInfo = {
+ error,
+ errorType: getRetryErrorType(error)
+ };
+ const retryAfterHint = getRetryAfterHint(error.$response);
+ if (retryAfterHint) {
+ errorInfo.retryAfterHint = retryAfterHint;
+ }
+ return errorInfo;
+}, "getRetryErrorInfo");
+var getRetryErrorType = /* @__PURE__ */ __name((error) => {
+ if ((0, import_service_error_classification.isThrottlingError)(error))
+ return "THROTTLING";
+ if ((0, import_service_error_classification.isTransientError)(error))
+ return "TRANSIENT";
+ if ((0, import_service_error_classification.isServerError)(error))
+ return "SERVER_ERROR";
+ return "CLIENT_ERROR";
+}, "getRetryErrorType");
+var retryMiddlewareOptions = {
+ name: "retryMiddleware",
+ tags: ["RETRY"],
+ step: "finalizeRequest",
+ priority: "high",
+ override: true
+};
+var getRetryPlugin = /* @__PURE__ */ __name((options) => ({
+ applyToStack: (clientStack) => {
+ clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
+ }
+}), "getRetryPlugin");
+var getRetryAfterHint = /* @__PURE__ */ __name((response) => {
+ if (!import_protocol_http.HttpResponse.isInstance(response))
+ return;
+ const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
+ if (!retryAfterHeaderName)
+ return;
+ const retryAfter = response.headers[retryAfterHeaderName];
+ const retryAfterSeconds = Number(retryAfter);
+ if (!Number.isNaN(retryAfterSeconds))
+ return new Date(retryAfterSeconds * 1e3);
+ const retryAfterDate = new Date(retryAfter);
+ return retryAfterDate;
+}, "getRetryAfterHint");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 18977:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isStreamingPayload = void 0;
+const stream_1 = __nccwpck_require__(12781);
+const isStreamingPayload = (request) => (request === null || request === void 0 ? void 0 : request.body) instanceof stream_1.Readable ||
+ (typeof ReadableStream !== "undefined" && (request === null || request === void 0 ? void 0 : request.body) instanceof ReadableStream);
+exports.isStreamingPayload = isStreamingPayload;
+
+
+/***/ }),
+
+/***/ 7761:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+Object.defineProperty(exports, "NIL", ({
+ enumerable: true,
+ get: function () {
+ return _nil.default;
+ }
+}));
+Object.defineProperty(exports, "parse", ({
+ enumerable: true,
+ get: function () {
+ return _parse.default;
+ }
+}));
+Object.defineProperty(exports, "stringify", ({
+ enumerable: true,
+ get: function () {
+ return _stringify.default;
+ }
+}));
+Object.defineProperty(exports, "v1", ({
+ enumerable: true,
+ get: function () {
+ return _v.default;
+ }
+}));
+Object.defineProperty(exports, "v3", ({
+ enumerable: true,
+ get: function () {
+ return _v2.default;
+ }
+}));
+Object.defineProperty(exports, "v4", ({
+ enumerable: true,
+ get: function () {
+ return _v3.default;
+ }
+}));
+Object.defineProperty(exports, "v5", ({
+ enumerable: true,
+ get: function () {
+ return _v4.default;
+ }
+}));
+Object.defineProperty(exports, "validate", ({
+ enumerable: true,
+ get: function () {
+ return _validate.default;
+ }
+}));
+Object.defineProperty(exports, "version", ({
+ enumerable: true,
+ get: function () {
+ return _version.default;
+ }
+}));
+
+var _v = _interopRequireDefault(__nccwpck_require__(36310));
+
+var _v2 = _interopRequireDefault(__nccwpck_require__(9465));
+
+var _v3 = _interopRequireDefault(__nccwpck_require__(86001));
+
+var _v4 = _interopRequireDefault(__nccwpck_require__(38310));
+
+var _nil = _interopRequireDefault(__nccwpck_require__(3436));
+
+var _version = _interopRequireDefault(__nccwpck_require__(17780));
+
+var _validate = _interopRequireDefault(__nccwpck_require__(66992));
+
+var _stringify = _interopRequireDefault(__nccwpck_require__(79618));
+
+var _parse = _interopRequireDefault(__nccwpck_require__(40086));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/***/ }),
+
+/***/ 11380:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function md5(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('md5').update(bytes).digest();
+}
+
+var _default = md5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 34672:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var _default = {
+ randomUUID: _crypto.default.randomUUID
+};
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 3436:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = '00000000-0000-0000-0000-000000000000';
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 40086:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(66992));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function parse(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ let v;
+ const arr = new Uint8Array(16); // Parse ########-....-....-....-............
+
+ arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
+ arr[1] = v >>> 16 & 0xff;
+ arr[2] = v >>> 8 & 0xff;
+ arr[3] = v & 0xff; // Parse ........-####-....-....-............
+
+ arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
+ arr[5] = v & 0xff; // Parse ........-....-####-....-............
+
+ arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
+ arr[7] = v & 0xff; // Parse ........-....-....-####-............
+
+ arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
+ arr[9] = v & 0xff; // Parse ........-....-....-....-############
+ // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
+
+ arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
+ arr[11] = v / 0x100000000 & 0xff;
+ arr[12] = v >>> 24 & 0xff;
+ arr[13] = v >>> 16 & 0xff;
+ arr[14] = v >>> 8 & 0xff;
+ arr[15] = v & 0xff;
+ return arr;
+}
+
+var _default = parse;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 3194:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 68136:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = rng;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
+
+let poolPtr = rnds8Pool.length;
+
+function rng() {
+ if (poolPtr > rnds8Pool.length - 16) {
+ _crypto.default.randomFillSync(rnds8Pool);
+
+ poolPtr = 0;
+ }
+
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
+}
+
+/***/ }),
+
+/***/ 46679:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _crypto = _interopRequireDefault(__nccwpck_require__(6113));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function sha1(bytes) {
+ if (Array.isArray(bytes)) {
+ bytes = Buffer.from(bytes);
+ } else if (typeof bytes === 'string') {
+ bytes = Buffer.from(bytes, 'utf8');
+ }
+
+ return _crypto.default.createHash('sha1').update(bytes).digest();
+}
+
+var _default = sha1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 79618:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+exports.unsafeStringify = unsafeStringify;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(66992));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/**
+ * Convert array of 16 byte values to UUID string format of the form:
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+ */
+const byteToHex = [];
+
+for (let i = 0; i < 256; ++i) {
+ byteToHex.push((i + 0x100).toString(16).slice(1));
+}
+
+function unsafeStringify(arr, offset = 0) {
+ // Note: Be careful editing this code! It's been tuned for performance
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
+}
+
+function stringify(arr, offset = 0) {
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
+ // of the following:
+ // - One or more input array values don't map to a hex octet (leading to
+ // "undefined" in the uuid)
+ // - Invalid input values for the RFC `version` or `variant` fields
+
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Stringified UUID is invalid');
+ }
+
+ return uuid;
+}
+
+var _default = stringify;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 36310:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _rng = _interopRequireDefault(__nccwpck_require__(68136));
+
+var _stringify = __nccwpck_require__(79618);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+// **`v1()` - Generate time-based UUID**
+//
+// Inspired by https://github.com/LiosK/UUID.js
+// and http://docs.python.org/library/uuid.html
+let _nodeId;
+
+let _clockseq; // Previous uuid creation time
+
+
+let _lastMSecs = 0;
+let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
+
+function v1(options, buf, offset) {
+ let i = buf && offset || 0;
+ const b = buf || new Array(16);
+ options = options || {};
+ let node = options.node || _nodeId;
+ let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
+ // specified. We do this lazily to minimize issues related to insufficient
+ // system entropy. See #189
+
+ if (node == null || clockseq == null) {
+ const seedBytes = options.random || (options.rng || _rng.default)();
+
+ if (node == null) {
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
+ node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
+ }
+
+ if (clockseq == null) {
+ // Per 4.2.2, randomize (14 bit) clockseq
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
+ }
+ } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
+
+
+ let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
+ // cycle to simulate higher resolution clock
+
+ let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
+
+ const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
+
+ if (dt < 0 && options.clockseq === undefined) {
+ clockseq = clockseq + 1 & 0x3fff;
+ } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
+ // time interval
+
+
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
+ nsecs = 0;
+ } // Per 4.2.1.2 Throw error if too many uuids are requested
+
+
+ if (nsecs >= 10000) {
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
+ }
+
+ _lastMSecs = msecs;
+ _lastNSecs = nsecs;
+ _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
+
+ msecs += 12219292800000; // `time_low`
+
+ const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
+ b[i++] = tl >>> 24 & 0xff;
+ b[i++] = tl >>> 16 & 0xff;
+ b[i++] = tl >>> 8 & 0xff;
+ b[i++] = tl & 0xff; // `time_mid`
+
+ const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
+ b[i++] = tmh >>> 8 & 0xff;
+ b[i++] = tmh & 0xff; // `time_high_and_version`
+
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
+
+ b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
+
+ b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
+
+ b[i++] = clockseq & 0xff; // `node`
+
+ for (let n = 0; n < 6; ++n) {
+ b[i + n] = node[n];
+ }
+
+ return buf || (0, _stringify.unsafeStringify)(b);
+}
+
+var _default = v1;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 9465:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(2568));
+
+var _md = _interopRequireDefault(__nccwpck_require__(11380));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v3 = (0, _v.default)('v3', 0x30, _md.default);
+var _default = v3;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 2568:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.URL = exports.DNS = void 0;
+exports["default"] = v35;
+
+var _stringify = __nccwpck_require__(79618);
+
+var _parse = _interopRequireDefault(__nccwpck_require__(40086));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function stringToBytes(str) {
+ str = unescape(encodeURIComponent(str)); // UTF8 escape
+
+ const bytes = [];
+
+ for (let i = 0; i < str.length; ++i) {
+ bytes.push(str.charCodeAt(i));
+ }
+
+ return bytes;
+}
+
+const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
+exports.DNS = DNS;
+const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
+exports.URL = URL;
+
+function v35(name, version, hashfunc) {
+ function generateUUID(value, namespace, buf, offset) {
+ var _namespace;
+
+ if (typeof value === 'string') {
+ value = stringToBytes(value);
+ }
+
+ if (typeof namespace === 'string') {
+ namespace = (0, _parse.default)(namespace);
+ }
+
+ if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
+ throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
+ } // Compute hash of namespace and value, Per 4.3
+ // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
+ // hashfunc([...namespace, ... value])`
+
+
+ let bytes = new Uint8Array(16 + value.length);
+ bytes.set(namespace);
+ bytes.set(value, namespace.length);
+ bytes = hashfunc(bytes);
+ bytes[6] = bytes[6] & 0x0f | version;
+ bytes[8] = bytes[8] & 0x3f | 0x80;
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = bytes[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.unsafeStringify)(bytes);
+ } // Function#name is not settable on some platforms (#270)
+
+
+ try {
+ generateUUID.name = name; // eslint-disable-next-line no-empty
+ } catch (err) {} // For CommonJS default export support
+
+
+ generateUUID.DNS = DNS;
+ generateUUID.URL = URL;
+ return generateUUID;
+}
+
+/***/ }),
+
+/***/ 86001:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _native = _interopRequireDefault(__nccwpck_require__(34672));
+
+var _rng = _interopRequireDefault(__nccwpck_require__(68136));
+
+var _stringify = __nccwpck_require__(79618);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function v4(options, buf, offset) {
+ if (_native.default.randomUUID && !buf && !options) {
+ return _native.default.randomUUID();
+ }
+
+ options = options || {};
+
+ const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
+
+
+ rnds[6] = rnds[6] & 0x0f | 0x40;
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
+
+ if (buf) {
+ offset = offset || 0;
+
+ for (let i = 0; i < 16; ++i) {
+ buf[offset + i] = rnds[i];
+ }
+
+ return buf;
+ }
+
+ return (0, _stringify.unsafeStringify)(rnds);
+}
+
+var _default = v4;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 38310:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _v = _interopRequireDefault(__nccwpck_require__(2568));
+
+var _sha = _interopRequireDefault(__nccwpck_require__(46679));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+const v5 = (0, _v.default)('v5', 0x50, _sha.default);
+var _default = v5;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 66992:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _regex = _interopRequireDefault(__nccwpck_require__(3194));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function validate(uuid) {
+ return typeof uuid === 'string' && _regex.default.test(uuid);
+}
+
+var _default = validate;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 17780:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = void 0;
+
+var _validate = _interopRequireDefault(__nccwpck_require__(66992));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function version(uuid) {
+ if (!(0, _validate.default)(uuid)) {
+ throw TypeError('Invalid UUID');
+ }
+
+ return parseInt(uuid.slice(14, 15), 16);
+}
+
+var _default = version;
+exports["default"] = _default;
+
+/***/ }),
+
+/***/ 81238:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ deserializerMiddleware: () => deserializerMiddleware,
+ deserializerMiddlewareOption: () => deserializerMiddlewareOption,
+ getSerdePlugin: () => getSerdePlugin,
+ serializerMiddleware: () => serializerMiddleware,
+ serializerMiddlewareOption: () => serializerMiddlewareOption
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/deserializerMiddleware.ts
+var deserializerMiddleware = /* @__PURE__ */ __name((options, deserializer) => (next, context) => async (args) => {
+ const { response } = await next(args);
+ try {
+ const parsed = await deserializer(response, options);
+ return {
+ response,
+ output: parsed
+ };
+ } catch (error) {
+ Object.defineProperty(error, "$response", {
+ value: response
+ });
+ if (!("$metadata" in error)) {
+ const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
+ try {
+ error.message += "\n " + hint;
+ } catch (e) {
+ if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
+ console.warn(hint);
+ } else {
+ context.logger?.warn?.(hint);
+ }
+ }
+ if (typeof error.$responseBodyText !== "undefined") {
+ if (error.$response) {
+ error.$response.body = error.$responseBodyText;
+ }
+ }
+ }
+ throw error;
+ }
+}, "deserializerMiddleware");
+
+// src/serializerMiddleware.ts
+var serializerMiddleware = /* @__PURE__ */ __name((options, serializer) => (next, context) => async (args) => {
+ const endpoint = context.endpointV2?.url && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint;
+ if (!endpoint) {
+ throw new Error("No valid endpoint provider available.");
+ }
+ const request = await serializer(args.input, { ...options, endpoint });
+ return next({
+ ...args,
+ request
+ });
+}, "serializerMiddleware");
+
+// src/serdePlugin.ts
+var deserializerMiddlewareOption = {
+ name: "deserializerMiddleware",
+ step: "deserialize",
+ tags: ["DESERIALIZER"],
+ override: true
+};
+var serializerMiddlewareOption = {
+ name: "serializerMiddleware",
+ step: "serialize",
+ tags: ["SERIALIZER"],
+ override: true
+};
+function getSerdePlugin(config, serializer, deserializer) {
+ return {
+ applyToStack: (commandStack) => {
+ commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption);
+ commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption);
+ }
+ };
+}
+__name(getSerdePlugin, "getSerdePlugin");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 97911:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ constructStack: () => constructStack
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/MiddlewareStack.ts
+var getAllAliases = /* @__PURE__ */ __name((name, aliases) => {
+ const _aliases = [];
+ if (name) {
+ _aliases.push(name);
+ }
+ if (aliases) {
+ for (const alias of aliases) {
+ _aliases.push(alias);
+ }
+ }
+ return _aliases;
+}, "getAllAliases");
+var getMiddlewareNameWithAliases = /* @__PURE__ */ __name((name, aliases) => {
+ return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`;
+}, "getMiddlewareNameWithAliases");
+var constructStack = /* @__PURE__ */ __name(() => {
+ let absoluteEntries = [];
+ let relativeEntries = [];
+ let identifyOnResolve = false;
+ const entriesNameSet = /* @__PURE__ */ new Set();
+ const sort = /* @__PURE__ */ __name((entries) => entries.sort(
+ (a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]
+ ), "sort");
+ const removeByName = /* @__PURE__ */ __name((toRemove) => {
+ let isRemoved = false;
+ const filterCb = /* @__PURE__ */ __name((entry) => {
+ const aliases = getAllAliases(entry.name, entry.aliases);
+ if (aliases.includes(toRemove)) {
+ isRemoved = true;
+ for (const alias of aliases) {
+ entriesNameSet.delete(alias);
+ }
+ return false;
+ }
+ return true;
+ }, "filterCb");
+ absoluteEntries = absoluteEntries.filter(filterCb);
+ relativeEntries = relativeEntries.filter(filterCb);
+ return isRemoved;
+ }, "removeByName");
+ const removeByReference = /* @__PURE__ */ __name((toRemove) => {
+ let isRemoved = false;
+ const filterCb = /* @__PURE__ */ __name((entry) => {
+ if (entry.middleware === toRemove) {
+ isRemoved = true;
+ for (const alias of getAllAliases(entry.name, entry.aliases)) {
+ entriesNameSet.delete(alias);
+ }
+ return false;
+ }
+ return true;
+ }, "filterCb");
+ absoluteEntries = absoluteEntries.filter(filterCb);
+ relativeEntries = relativeEntries.filter(filterCb);
+ return isRemoved;
+ }, "removeByReference");
+ const cloneTo = /* @__PURE__ */ __name((toStack) => {
+ absoluteEntries.forEach((entry) => {
+ toStack.add(entry.middleware, { ...entry });
+ });
+ relativeEntries.forEach((entry) => {
+ toStack.addRelativeTo(entry.middleware, { ...entry });
+ });
+ toStack.identifyOnResolve?.(stack.identifyOnResolve());
+ return toStack;
+ }, "cloneTo");
+ const expandRelativeMiddlewareList = /* @__PURE__ */ __name((from) => {
+ const expandedMiddlewareList = [];
+ from.before.forEach((entry) => {
+ if (entry.before.length === 0 && entry.after.length === 0) {
+ expandedMiddlewareList.push(entry);
+ } else {
+ expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
+ }
+ });
+ expandedMiddlewareList.push(from);
+ from.after.reverse().forEach((entry) => {
+ if (entry.before.length === 0 && entry.after.length === 0) {
+ expandedMiddlewareList.push(entry);
+ } else {
+ expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
+ }
+ });
+ return expandedMiddlewareList;
+ }, "expandRelativeMiddlewareList");
+ const getMiddlewareList = /* @__PURE__ */ __name((debug = false) => {
+ const normalizedAbsoluteEntries = [];
+ const normalizedRelativeEntries = [];
+ const normalizedEntriesNameMap = {};
+ absoluteEntries.forEach((entry) => {
+ const normalizedEntry = {
+ ...entry,
+ before: [],
+ after: []
+ };
+ for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
+ normalizedEntriesNameMap[alias] = normalizedEntry;
+ }
+ normalizedAbsoluteEntries.push(normalizedEntry);
+ });
+ relativeEntries.forEach((entry) => {
+ const normalizedEntry = {
+ ...entry,
+ before: [],
+ after: []
+ };
+ for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
+ normalizedEntriesNameMap[alias] = normalizedEntry;
+ }
+ normalizedRelativeEntries.push(normalizedEntry);
+ });
+ normalizedRelativeEntries.forEach((entry) => {
+ if (entry.toMiddleware) {
+ const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];
+ if (toMiddleware === void 0) {
+ if (debug) {
+ return;
+ }
+ throw new Error(
+ `${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} middleware ${entry.relation} ${entry.toMiddleware}`
+ );
+ }
+ if (entry.relation === "after") {
+ toMiddleware.after.push(entry);
+ }
+ if (entry.relation === "before") {
+ toMiddleware.before.push(entry);
+ }
+ }
+ });
+ const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce(
+ (wholeList, expandedMiddlewareList) => {
+ wholeList.push(...expandedMiddlewareList);
+ return wholeList;
+ },
+ []
+ );
+ return mainChain;
+ }, "getMiddlewareList");
+ const stack = {
+ add: (middleware, options = {}) => {
+ const { name, override, aliases: _aliases } = options;
+ const entry = {
+ step: "initialize",
+ priority: "normal",
+ middleware,
+ ...options
+ };
+ const aliases = getAllAliases(name, _aliases);
+ if (aliases.length > 0) {
+ if (aliases.some((alias) => entriesNameSet.has(alias))) {
+ if (!override)
+ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
+ for (const alias of aliases) {
+ const toOverrideIndex = absoluteEntries.findIndex(
+ (entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias)
+ );
+ if (toOverrideIndex === -1) {
+ continue;
+ }
+ const toOverride = absoluteEntries[toOverrideIndex];
+ if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) {
+ throw new Error(
+ `"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ${entry.priority} priority in ${entry.step} step.`
+ );
+ }
+ absoluteEntries.splice(toOverrideIndex, 1);
+ }
+ }
+ for (const alias of aliases) {
+ entriesNameSet.add(alias);
+ }
+ }
+ absoluteEntries.push(entry);
+ },
+ addRelativeTo: (middleware, options) => {
+ const { name, override, aliases: _aliases } = options;
+ const entry = {
+ middleware,
+ ...options
+ };
+ const aliases = getAllAliases(name, _aliases);
+ if (aliases.length > 0) {
+ if (aliases.some((alias) => entriesNameSet.has(alias))) {
+ if (!override)
+ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
+ for (const alias of aliases) {
+ const toOverrideIndex = relativeEntries.findIndex(
+ (entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias)
+ );
+ if (toOverrideIndex === -1) {
+ continue;
+ }
+ const toOverride = relativeEntries[toOverrideIndex];
+ if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
+ throw new Error(
+ `"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} "${entry.toMiddleware}" middleware.`
+ );
+ }
+ relativeEntries.splice(toOverrideIndex, 1);
+ }
+ }
+ for (const alias of aliases) {
+ entriesNameSet.add(alias);
+ }
+ }
+ relativeEntries.push(entry);
+ },
+ clone: () => cloneTo(constructStack()),
+ use: (plugin) => {
+ plugin.applyToStack(stack);
+ },
+ remove: (toRemove) => {
+ if (typeof toRemove === "string")
+ return removeByName(toRemove);
+ else
+ return removeByReference(toRemove);
+ },
+ removeByTag: (toRemove) => {
+ let isRemoved = false;
+ const filterCb = /* @__PURE__ */ __name((entry) => {
+ const { tags, name, aliases: _aliases } = entry;
+ if (tags && tags.includes(toRemove)) {
+ const aliases = getAllAliases(name, _aliases);
+ for (const alias of aliases) {
+ entriesNameSet.delete(alias);
+ }
+ isRemoved = true;
+ return false;
+ }
+ return true;
+ }, "filterCb");
+ absoluteEntries = absoluteEntries.filter(filterCb);
+ relativeEntries = relativeEntries.filter(filterCb);
+ return isRemoved;
+ },
+ concat: (from) => {
+ const cloned = cloneTo(constructStack());
+ cloned.use(from);
+ cloned.identifyOnResolve(
+ identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false)
+ );
+ return cloned;
+ },
+ applyToStack: cloneTo,
+ identify: () => {
+ return getMiddlewareList(true).map((mw) => {
+ const step = mw.step ?? mw.relation + " " + mw.toMiddleware;
+ return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
+ });
+ },
+ identifyOnResolve(toggle) {
+ if (typeof toggle === "boolean")
+ identifyOnResolve = toggle;
+ return identifyOnResolve;
+ },
+ resolve: (handler, context) => {
+ for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) {
+ handler = middleware(handler, context);
+ }
+ if (identifyOnResolve) {
+ console.log(stack.identify());
+ }
+ return handler;
+ }
+ };
+ return stack;
+}, "constructStack");
+var stepWeights = {
+ initialize: 5,
+ serialize: 4,
+ build: 3,
+ finalizeRequest: 2,
+ deserialize: 1
+};
+var priorityWeights = {
+ high: 3,
+ normal: 2,
+ low: 1
+};
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 33461:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ loadConfig: () => loadConfig
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/configLoader.ts
+
+
+// src/fromEnv.ts
+var import_property_provider = __nccwpck_require__(79721);
+
+// src/getSelectorName.ts
+function getSelectorName(functionString) {
+ try {
+ const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
+ constants.delete("CONFIG");
+ constants.delete("CONFIG_PREFIX_SEPARATOR");
+ constants.delete("ENV");
+ return [...constants].join(", ");
+ } catch (e) {
+ return functionString;
+ }
+}
+__name(getSelectorName, "getSelectorName");
+
+// src/fromEnv.ts
+var fromEnv = /* @__PURE__ */ __name((envVarSelector, logger) => async () => {
+ try {
+ const config = envVarSelector(process.env);
+ if (config === void 0) {
+ throw new Error();
+ }
+ return config;
+ } catch (e) {
+ throw new import_property_provider.CredentialsProviderError(
+ e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`,
+ { logger }
+ );
+ }
+}, "fromEnv");
+
+// src/fromSharedConfigFiles.ts
+
+var import_shared_ini_file_loader = __nccwpck_require__(43507);
+var fromSharedConfigFiles = /* @__PURE__ */ __name((configSelector, { preferredFile = "config", ...init } = {}) => async () => {
+ const profile = (0, import_shared_ini_file_loader.getProfileName)(init);
+ const { configFile, credentialsFile } = await (0, import_shared_ini_file_loader.loadSharedConfigFiles)(init);
+ const profileFromCredentials = credentialsFile[profile] || {};
+ const profileFromConfig = configFile[profile] || {};
+ const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };
+ try {
+ const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
+ const configValue = configSelector(mergedProfile, cfgFile);
+ if (configValue === void 0) {
+ throw new Error();
+ }
+ return configValue;
+ } catch (e) {
+ throw new import_property_provider.CredentialsProviderError(
+ e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`,
+ { logger: init.logger }
+ );
+ }
+}, "fromSharedConfigFiles");
+
+// src/fromStatic.ts
+
+var isFunction = /* @__PURE__ */ __name((func) => typeof func === "function", "isFunction");
+var fromStatic = /* @__PURE__ */ __name((defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, import_property_provider.fromStatic)(defaultValue), "fromStatic");
+
+// src/configLoader.ts
+var loadConfig = /* @__PURE__ */ __name(({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, import_property_provider.memoize)(
+ (0, import_property_provider.chain)(
+ fromEnv(environmentVariableSelector),
+ fromSharedConfigFiles(configFileSelector, configuration),
+ fromStatic(defaultValue)
+ )
+), "loadConfig");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 20258:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
+ // If the importer is in node compatibility mode or this is not an ESM
+ // file that has been converted to a CommonJS file using a Babel-
+ // compatible transform (i.e. "__esModule" has not been set), then set
+ // "default" to the CommonJS "module.exports" for node compatibility.
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
+ mod
+));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ DEFAULT_REQUEST_TIMEOUT: () => DEFAULT_REQUEST_TIMEOUT,
+ NodeHttp2Handler: () => NodeHttp2Handler,
+ NodeHttpHandler: () => NodeHttpHandler,
+ streamCollector: () => streamCollector
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/node-http-handler.ts
+var import_protocol_http = __nccwpck_require__(64418);
+var import_querystring_builder = __nccwpck_require__(68031);
+var import_http = __nccwpck_require__(13685);
+var import_https = __nccwpck_require__(95687);
+
+// src/constants.ts
+var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
+
+// src/get-transformed-headers.ts
+var getTransformedHeaders = /* @__PURE__ */ __name((headers) => {
+ const transformedHeaders = {};
+ for (const name of Object.keys(headers)) {
+ const headerValues = headers[name];
+ transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
+ }
+ return transformedHeaders;
+}, "getTransformedHeaders");
+
+// src/timing.ts
+var timing = {
+ setTimeout: (cb, ms) => setTimeout(cb, ms),
+ clearTimeout: (timeoutId) => clearTimeout(timeoutId)
+};
+
+// src/set-connection-timeout.ts
+var DEFER_EVENT_LISTENER_TIME = 1e3;
+var setConnectionTimeout = /* @__PURE__ */ __name((request, reject, timeoutInMs = 0) => {
+ if (!timeoutInMs) {
+ return -1;
+ }
+ const registerTimeout = /* @__PURE__ */ __name((offset) => {
+ const timeoutId = timing.setTimeout(() => {
+ request.destroy();
+ reject(
+ Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), {
+ name: "TimeoutError"
+ })
+ );
+ }, timeoutInMs - offset);
+ const doWithSocket = /* @__PURE__ */ __name((socket) => {
+ if (socket?.connecting) {
+ socket.on("connect", () => {
+ timing.clearTimeout(timeoutId);
+ });
+ } else {
+ timing.clearTimeout(timeoutId);
+ }
+ }, "doWithSocket");
+ if (request.socket) {
+ doWithSocket(request.socket);
+ } else {
+ request.on("socket", doWithSocket);
+ }
+ }, "registerTimeout");
+ if (timeoutInMs < 2e3) {
+ registerTimeout(0);
+ return 0;
+ }
+ return timing.setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME);
+}, "setConnectionTimeout");
+
+// src/set-socket-keep-alive.ts
+var DEFER_EVENT_LISTENER_TIME2 = 3e3;
+var setSocketKeepAlive = /* @__PURE__ */ __name((request, { keepAlive, keepAliveMsecs }, deferTimeMs = DEFER_EVENT_LISTENER_TIME2) => {
+ if (keepAlive !== true) {
+ return -1;
+ }
+ const registerListener = /* @__PURE__ */ __name(() => {
+ if (request.socket) {
+ request.socket.setKeepAlive(keepAlive, keepAliveMsecs || 0);
+ } else {
+ request.on("socket", (socket) => {
+ socket.setKeepAlive(keepAlive, keepAliveMsecs || 0);
+ });
+ }
+ }, "registerListener");
+ if (deferTimeMs === 0) {
+ registerListener();
+ return 0;
+ }
+ return timing.setTimeout(registerListener, deferTimeMs);
+}, "setSocketKeepAlive");
+
+// src/set-socket-timeout.ts
+var DEFER_EVENT_LISTENER_TIME3 = 3e3;
+var setSocketTimeout = /* @__PURE__ */ __name((request, reject, timeoutInMs = DEFAULT_REQUEST_TIMEOUT) => {
+ const registerTimeout = /* @__PURE__ */ __name((offset) => {
+ const timeout = timeoutInMs - offset;
+ const onTimeout = /* @__PURE__ */ __name(() => {
+ request.destroy();
+ reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" }));
+ }, "onTimeout");
+ if (request.socket) {
+ request.socket.setTimeout(timeout, onTimeout);
+ request.on("close", () => request.socket?.removeListener("timeout", onTimeout));
+ } else {
+ request.setTimeout(timeout, onTimeout);
+ }
+ }, "registerTimeout");
+ if (0 < timeoutInMs && timeoutInMs < 6e3) {
+ registerTimeout(0);
+ return 0;
+ }
+ return timing.setTimeout(
+ registerTimeout.bind(null, timeoutInMs === 0 ? 0 : DEFER_EVENT_LISTENER_TIME3),
+ DEFER_EVENT_LISTENER_TIME3
+ );
+}, "setSocketTimeout");
+
+// src/write-request-body.ts
+var import_stream = __nccwpck_require__(12781);
+var MIN_WAIT_TIME = 6e3;
+async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
+ const headers = request.headers ?? {};
+ const expect = headers["Expect"] || headers["expect"];
+ let timeoutId = -1;
+ let sendBody = true;
+ if (expect === "100-continue") {
+ sendBody = await Promise.race([
+ new Promise((resolve) => {
+ timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
+ }),
+ new Promise((resolve) => {
+ httpRequest.on("continue", () => {
+ timing.clearTimeout(timeoutId);
+ resolve(true);
+ });
+ httpRequest.on("response", () => {
+ timing.clearTimeout(timeoutId);
+ resolve(false);
+ });
+ httpRequest.on("error", () => {
+ timing.clearTimeout(timeoutId);
+ resolve(false);
+ });
+ })
+ ]);
+ }
+ if (sendBody) {
+ writeBody(httpRequest, request.body);
+ }
+}
+__name(writeRequestBody, "writeRequestBody");
+function writeBody(httpRequest, body) {
+ if (body instanceof import_stream.Readable) {
+ body.pipe(httpRequest);
+ return;
+ }
+ if (body) {
+ if (Buffer.isBuffer(body) || typeof body === "string") {
+ httpRequest.end(body);
+ return;
+ }
+ const uint8 = body;
+ if (typeof uint8 === "object" && uint8.buffer && typeof uint8.byteOffset === "number" && typeof uint8.byteLength === "number") {
+ httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
+ return;
+ }
+ httpRequest.end(Buffer.from(body));
+ return;
+ }
+ httpRequest.end();
+}
+__name(writeBody, "writeBody");
+
+// src/node-http-handler.ts
+var DEFAULT_REQUEST_TIMEOUT = 0;
+var NodeHttpHandler = class _NodeHttpHandler {
+ constructor(options) {
+ this.socketWarningTimestamp = 0;
+ // Node http handler is hard-coded to http/1.1: https://github.com/nodejs/node/blob/ff5664b83b89c55e4ab5d5f60068fb457f1f5872/lib/_http_server.js#L286
+ this.metadata = { handlerProtocol: "http/1.1" };
+ this.configProvider = new Promise((resolve, reject) => {
+ if (typeof options === "function") {
+ options().then((_options) => {
+ resolve(this.resolveDefaultConfig(_options));
+ }).catch(reject);
+ } else {
+ resolve(this.resolveDefaultConfig(options));
+ }
+ });
+ }
+ static {
+ __name(this, "NodeHttpHandler");
+ }
+ /**
+ * @returns the input if it is an HttpHandler of any class,
+ * or instantiates a new instance of this handler.
+ */
+ static create(instanceOrOptions) {
+ if (typeof instanceOrOptions?.handle === "function") {
+ return instanceOrOptions;
+ }
+ return new _NodeHttpHandler(instanceOrOptions);
+ }
+ /**
+ * @internal
+ *
+ * @param agent - http(s) agent in use by the NodeHttpHandler instance.
+ * @param socketWarningTimestamp - last socket usage check timestamp.
+ * @param logger - channel for the warning.
+ * @returns timestamp of last emitted warning.
+ */
+ static checkSocketUsage(agent, socketWarningTimestamp, logger = console) {
+ const { sockets, requests, maxSockets } = agent;
+ if (typeof maxSockets !== "number" || maxSockets === Infinity) {
+ return socketWarningTimestamp;
+ }
+ const interval = 15e3;
+ if (Date.now() - interval < socketWarningTimestamp) {
+ return socketWarningTimestamp;
+ }
+ if (sockets && requests) {
+ for (const origin in sockets) {
+ const socketsInUse = sockets[origin]?.length ?? 0;
+ const requestsEnqueued = requests[origin]?.length ?? 0;
+ if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
+ logger?.warn?.(
+ `@smithy/node-http-handler:WARN - socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued.
+See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
+or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`
+ );
+ return Date.now();
+ }
+ }
+ }
+ return socketWarningTimestamp;
+ }
+ resolveDefaultConfig(options) {
+ const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent } = options || {};
+ const keepAlive = true;
+ const maxSockets = 50;
+ return {
+ connectionTimeout,
+ requestTimeout: requestTimeout ?? socketTimeout,
+ socketAcquisitionWarningTimeout,
+ httpAgent: (() => {
+ if (httpAgent instanceof import_http.Agent || typeof httpAgent?.destroy === "function") {
+ return httpAgent;
+ }
+ return new import_http.Agent({ keepAlive, maxSockets, ...httpAgent });
+ })(),
+ httpsAgent: (() => {
+ if (httpsAgent instanceof import_https.Agent || typeof httpsAgent?.destroy === "function") {
+ return httpsAgent;
+ }
+ return new import_https.Agent({ keepAlive, maxSockets, ...httpsAgent });
+ })(),
+ logger: console
+ };
+ }
+ destroy() {
+ this.config?.httpAgent?.destroy();
+ this.config?.httpsAgent?.destroy();
+ }
+ async handle(request, { abortSignal } = {}) {
+ if (!this.config) {
+ this.config = await this.configProvider;
+ }
+ return new Promise((_resolve, _reject) => {
+ let writeRequestBodyPromise = void 0;
+ const timeouts = [];
+ const resolve = /* @__PURE__ */ __name(async (arg) => {
+ await writeRequestBodyPromise;
+ timeouts.forEach(timing.clearTimeout);
+ _resolve(arg);
+ }, "resolve");
+ const reject = /* @__PURE__ */ __name(async (arg) => {
+ await writeRequestBodyPromise;
+ timeouts.forEach(timing.clearTimeout);
+ _reject(arg);
+ }, "reject");
+ if (!this.config) {
+ throw new Error("Node HTTP request handler config is not resolved");
+ }
+ if (abortSignal?.aborted) {
+ const abortError = new Error("Request aborted");
+ abortError.name = "AbortError";
+ reject(abortError);
+ return;
+ }
+ const isSSL = request.protocol === "https:";
+ const agent = isSSL ? this.config.httpsAgent : this.config.httpAgent;
+ timeouts.push(
+ timing.setTimeout(
+ () => {
+ this.socketWarningTimestamp = _NodeHttpHandler.checkSocketUsage(
+ agent,
+ this.socketWarningTimestamp,
+ this.config.logger
+ );
+ },
+ this.config.socketAcquisitionWarningTimeout ?? (this.config.requestTimeout ?? 2e3) + (this.config.connectionTimeout ?? 1e3)
+ )
+ );
+ const queryString = (0, import_querystring_builder.buildQueryString)(request.query || {});
+ let auth = void 0;
+ if (request.username != null || request.password != null) {
+ const username = request.username ?? "";
+ const password = request.password ?? "";
+ auth = `${username}:${password}`;
+ }
+ let path = request.path;
+ if (queryString) {
+ path += `?${queryString}`;
+ }
+ if (request.fragment) {
+ path += `#${request.fragment}`;
+ }
+ let hostname = request.hostname ?? "";
+ if (hostname[0] === "[" && hostname.endsWith("]")) {
+ hostname = request.hostname.slice(1, -1);
+ } else {
+ hostname = request.hostname;
+ }
+ const nodeHttpsOptions = {
+ headers: request.headers,
+ host: hostname,
+ method: request.method,
+ path,
+ port: request.port,
+ agent,
+ auth
+ };
+ const requestFunc = isSSL ? import_https.request : import_http.request;
+ const req = requestFunc(nodeHttpsOptions, (res) => {
+ const httpResponse = new import_protocol_http.HttpResponse({
+ statusCode: res.statusCode || -1,
+ reason: res.statusMessage,
+ headers: getTransformedHeaders(res.headers),
+ body: res
+ });
+ resolve({ response: httpResponse });
+ });
+ req.on("error", (err) => {
+ if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) {
+ reject(Object.assign(err, { name: "TimeoutError" }));
+ } else {
+ reject(err);
+ }
+ });
+ if (abortSignal) {
+ const onAbort = /* @__PURE__ */ __name(() => {
+ req.destroy();
+ const abortError = new Error("Request aborted");
+ abortError.name = "AbortError";
+ reject(abortError);
+ }, "onAbort");
+ if (typeof abortSignal.addEventListener === "function") {
+ const signal = abortSignal;
+ signal.addEventListener("abort", onAbort, { once: true });
+ req.once("close", () => signal.removeEventListener("abort", onAbort));
+ } else {
+ abortSignal.onabort = onAbort;
+ }
+ }
+ timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
+ timeouts.push(setSocketTimeout(req, reject, this.config.requestTimeout));
+ const httpAgent = nodeHttpsOptions.agent;
+ if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
+ timeouts.push(
+ setSocketKeepAlive(req, {
+ // @ts-expect-error keepAlive is not public on httpAgent.
+ keepAlive: httpAgent.keepAlive,
+ // @ts-expect-error keepAliveMsecs is not public on httpAgent.
+ keepAliveMsecs: httpAgent.keepAliveMsecs
+ })
+ );
+ }
+ writeRequestBodyPromise = writeRequestBody(req, request, this.config.requestTimeout).catch((e) => {
+ timeouts.forEach(timing.clearTimeout);
+ return _reject(e);
+ });
+ });
+ }
+ updateHttpClientConfig(key, value) {
+ this.config = void 0;
+ this.configProvider = this.configProvider.then((config) => {
+ return {
+ ...config,
+ [key]: value
+ };
+ });
+ }
+ httpHandlerConfigs() {
+ return this.config ?? {};
+ }
+};
+
+// src/node-http2-handler.ts
+
+
+var import_http22 = __nccwpck_require__(85158);
+
+// src/node-http2-connection-manager.ts
+var import_http2 = __toESM(__nccwpck_require__(85158));
+
+// src/node-http2-connection-pool.ts
+var NodeHttp2ConnectionPool = class {
+ constructor(sessions) {
+ this.sessions = [];
+ this.sessions = sessions ?? [];
+ }
+ static {
+ __name(this, "NodeHttp2ConnectionPool");
+ }
+ poll() {
+ if (this.sessions.length > 0) {
+ return this.sessions.shift();
+ }
+ }
+ offerLast(session) {
+ this.sessions.push(session);
+ }
+ contains(session) {
+ return this.sessions.includes(session);
+ }
+ remove(session) {
+ this.sessions = this.sessions.filter((s) => s !== session);
+ }
+ [Symbol.iterator]() {
+ return this.sessions[Symbol.iterator]();
+ }
+ destroy(connection) {
+ for (const session of this.sessions) {
+ if (session === connection) {
+ if (!session.destroyed) {
+ session.destroy();
+ }
+ }
+ }
+ }
+};
+
+// src/node-http2-connection-manager.ts
+var NodeHttp2ConnectionManager = class {
+ constructor(config) {
+ this.sessionCache = /* @__PURE__ */ new Map();
+ this.config = config;
+ if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) {
+ throw new RangeError("maxConcurrency must be greater than zero.");
+ }
+ }
+ static {
+ __name(this, "NodeHttp2ConnectionManager");
+ }
+ lease(requestContext, connectionConfiguration) {
+ const url = this.getUrlString(requestContext);
+ const existingPool = this.sessionCache.get(url);
+ if (existingPool) {
+ const existingSession = existingPool.poll();
+ if (existingSession && !this.config.disableConcurrency) {
+ return existingSession;
+ }
+ }
+ const session = import_http2.default.connect(url);
+ if (this.config.maxConcurrency) {
+ session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => {
+ if (err) {
+ throw new Error(
+ "Fail to set maxConcurrentStreams to " + this.config.maxConcurrency + "when creating new session for " + requestContext.destination.toString()
+ );
+ }
+ });
+ }
+ session.unref();
+ const destroySessionCb = /* @__PURE__ */ __name(() => {
+ session.destroy();
+ this.deleteSession(url, session);
+ }, "destroySessionCb");
+ session.on("goaway", destroySessionCb);
+ session.on("error", destroySessionCb);
+ session.on("frameError", destroySessionCb);
+ session.on("close", () => this.deleteSession(url, session));
+ if (connectionConfiguration.requestTimeout) {
+ session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb);
+ }
+ const connectionPool = this.sessionCache.get(url) || new NodeHttp2ConnectionPool();
+ connectionPool.offerLast(session);
+ this.sessionCache.set(url, connectionPool);
+ return session;
+ }
+ /**
+ * Delete a session from the connection pool.
+ * @param authority The authority of the session to delete.
+ * @param session The session to delete.
+ */
+ deleteSession(authority, session) {
+ const existingConnectionPool = this.sessionCache.get(authority);
+ if (!existingConnectionPool) {
+ return;
+ }
+ if (!existingConnectionPool.contains(session)) {
+ return;
+ }
+ existingConnectionPool.remove(session);
+ this.sessionCache.set(authority, existingConnectionPool);
+ }
+ release(requestContext, session) {
+ const cacheKey = this.getUrlString(requestContext);
+ this.sessionCache.get(cacheKey)?.offerLast(session);
+ }
+ destroy() {
+ for (const [key, connectionPool] of this.sessionCache) {
+ for (const session of connectionPool) {
+ if (!session.destroyed) {
+ session.destroy();
+ }
+ connectionPool.remove(session);
+ }
+ this.sessionCache.delete(key);
+ }
+ }
+ setMaxConcurrentStreams(maxConcurrentStreams) {
+ if (maxConcurrentStreams && maxConcurrentStreams <= 0) {
+ throw new RangeError("maxConcurrentStreams must be greater than zero.");
+ }
+ this.config.maxConcurrency = maxConcurrentStreams;
+ }
+ setDisableConcurrentStreams(disableConcurrentStreams) {
+ this.config.disableConcurrency = disableConcurrentStreams;
+ }
+ getUrlString(request) {
+ return request.destination.toString();
+ }
+};
+
+// src/node-http2-handler.ts
+var NodeHttp2Handler = class _NodeHttp2Handler {
+ constructor(options) {
+ this.metadata = { handlerProtocol: "h2" };
+ this.connectionManager = new NodeHttp2ConnectionManager({});
+ this.configProvider = new Promise((resolve, reject) => {
+ if (typeof options === "function") {
+ options().then((opts) => {
+ resolve(opts || {});
+ }).catch(reject);
+ } else {
+ resolve(options || {});
+ }
+ });
+ }
+ static {
+ __name(this, "NodeHttp2Handler");
+ }
+ /**
+ * @returns the input if it is an HttpHandler of any class,
+ * or instantiates a new instance of this handler.
+ */
+ static create(instanceOrOptions) {
+ if (typeof instanceOrOptions?.handle === "function") {
+ return instanceOrOptions;
+ }
+ return new _NodeHttp2Handler(instanceOrOptions);
+ }
+ destroy() {
+ this.connectionManager.destroy();
+ }
+ async handle(request, { abortSignal } = {}) {
+ if (!this.config) {
+ this.config = await this.configProvider;
+ this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false);
+ if (this.config.maxConcurrentStreams) {
+ this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams);
+ }
+ }
+ const { requestTimeout, disableConcurrentStreams } = this.config;
+ return new Promise((_resolve, _reject) => {
+ let fulfilled = false;
+ let writeRequestBodyPromise = void 0;
+ const resolve = /* @__PURE__ */ __name(async (arg) => {
+ await writeRequestBodyPromise;
+ _resolve(arg);
+ }, "resolve");
+ const reject = /* @__PURE__ */ __name(async (arg) => {
+ await writeRequestBodyPromise;
+ _reject(arg);
+ }, "reject");
+ if (abortSignal?.aborted) {
+ fulfilled = true;
+ const abortError = new Error("Request aborted");
+ abortError.name = "AbortError";
+ reject(abortError);
+ return;
+ }
+ const { hostname, method, port, protocol, query } = request;
+ let auth = "";
+ if (request.username != null || request.password != null) {
+ const username = request.username ?? "";
+ const password = request.password ?? "";
+ auth = `${username}:${password}@`;
+ }
+ const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`;
+ const requestContext = { destination: new URL(authority) };
+ const session = this.connectionManager.lease(requestContext, {
+ requestTimeout: this.config?.sessionTimeout,
+ disableConcurrentStreams: disableConcurrentStreams || false
+ });
+ const rejectWithDestroy = /* @__PURE__ */ __name((err) => {
+ if (disableConcurrentStreams) {
+ this.destroySession(session);
+ }
+ fulfilled = true;
+ reject(err);
+ }, "rejectWithDestroy");
+ const queryString = (0, import_querystring_builder.buildQueryString)(query || {});
+ let path = request.path;
+ if (queryString) {
+ path += `?${queryString}`;
+ }
+ if (request.fragment) {
+ path += `#${request.fragment}`;
+ }
+ const req = session.request({
+ ...request.headers,
+ [import_http22.constants.HTTP2_HEADER_PATH]: path,
+ [import_http22.constants.HTTP2_HEADER_METHOD]: method
+ });
+ session.ref();
+ req.on("response", (headers) => {
+ const httpResponse = new import_protocol_http.HttpResponse({
+ statusCode: headers[":status"] || -1,
+ headers: getTransformedHeaders(headers),
+ body: req
+ });
+ fulfilled = true;
+ resolve({ response: httpResponse });
+ if (disableConcurrentStreams) {
+ session.close();
+ this.connectionManager.deleteSession(authority, session);
+ }
+ });
+ if (requestTimeout) {
+ req.setTimeout(requestTimeout, () => {
+ req.close();
+ const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`);
+ timeoutError.name = "TimeoutError";
+ rejectWithDestroy(timeoutError);
+ });
+ }
+ if (abortSignal) {
+ const onAbort = /* @__PURE__ */ __name(() => {
+ req.close();
+ const abortError = new Error("Request aborted");
+ abortError.name = "AbortError";
+ rejectWithDestroy(abortError);
+ }, "onAbort");
+ if (typeof abortSignal.addEventListener === "function") {
+ const signal = abortSignal;
+ signal.addEventListener("abort", onAbort, { once: true });
+ req.once("close", () => signal.removeEventListener("abort", onAbort));
+ } else {
+ abortSignal.onabort = onAbort;
+ }
+ }
+ req.on("frameError", (type, code, id) => {
+ rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));
+ });
+ req.on("error", rejectWithDestroy);
+ req.on("aborted", () => {
+ rejectWithDestroy(
+ new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)
+ );
+ });
+ req.on("close", () => {
+ session.unref();
+ if (disableConcurrentStreams) {
+ session.destroy();
+ }
+ if (!fulfilled) {
+ rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
+ }
+ });
+ writeRequestBodyPromise = writeRequestBody(req, request, requestTimeout);
+ });
+ }
+ updateHttpClientConfig(key, value) {
+ this.config = void 0;
+ this.configProvider = this.configProvider.then((config) => {
+ return {
+ ...config,
+ [key]: value
+ };
+ });
+ }
+ httpHandlerConfigs() {
+ return this.config ?? {};
+ }
+ /**
+ * Destroys a session.
+ * @param session - the session to destroy.
+ */
+ destroySession(session) {
+ if (!session.destroyed) {
+ session.destroy();
+ }
+ }
+};
+
+// src/stream-collector/collector.ts
+
+var Collector = class extends import_stream.Writable {
+ constructor() {
+ super(...arguments);
+ this.bufferedBytes = [];
+ }
+ static {
+ __name(this, "Collector");
+ }
+ _write(chunk, encoding, callback) {
+ this.bufferedBytes.push(chunk);
+ callback();
+ }
+};
+
+// src/stream-collector/index.ts
+var streamCollector = /* @__PURE__ */ __name((stream) => {
+ if (isReadableStreamInstance(stream)) {
+ return collectReadableStream(stream);
+ }
+ return new Promise((resolve, reject) => {
+ const collector = new Collector();
+ stream.pipe(collector);
+ stream.on("error", (err) => {
+ collector.end();
+ reject(err);
+ });
+ collector.on("error", reject);
+ collector.on("finish", function() {
+ const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
+ resolve(bytes);
+ });
+ });
+}, "streamCollector");
+var isReadableStreamInstance = /* @__PURE__ */ __name((stream) => typeof ReadableStream === "function" && stream instanceof ReadableStream, "isReadableStreamInstance");
+async function collectReadableStream(stream) {
+ const chunks = [];
+ const reader = stream.getReader();
+ let isDone = false;
+ let length = 0;
+ while (!isDone) {
+ const { done, value } = await reader.read();
+ if (value) {
+ chunks.push(value);
+ length += value.length;
+ }
+ isDone = done;
+ }
+ const collected = new Uint8Array(length);
+ let offset = 0;
+ for (const chunk of chunks) {
+ collected.set(chunk, offset);
+ offset += chunk.length;
+ }
+ return collected;
+}
+__name(collectReadableStream, "collectReadableStream");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 79721:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ CredentialsProviderError: () => CredentialsProviderError,
+ ProviderError: () => ProviderError,
+ TokenProviderError: () => TokenProviderError,
+ chain: () => chain,
+ fromStatic: () => fromStatic,
+ memoize: () => memoize
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/ProviderError.ts
+var ProviderError = class _ProviderError extends Error {
+ constructor(message, options = true) {
+ let logger;
+ let tryNextLink = true;
+ if (typeof options === "boolean") {
+ logger = void 0;
+ tryNextLink = options;
+ } else if (options != null && typeof options === "object") {
+ logger = options.logger;
+ tryNextLink = options.tryNextLink ?? true;
+ }
+ super(message);
+ this.name = "ProviderError";
+ this.tryNextLink = tryNextLink;
+ Object.setPrototypeOf(this, _ProviderError.prototype);
+ logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
+ }
+ static {
+ __name(this, "ProviderError");
+ }
+ /**
+ * @deprecated use new operator.
+ */
+ static from(error, options = true) {
+ return Object.assign(new this(error.message, options), error);
+ }
+};
+
+// src/CredentialsProviderError.ts
+var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
+ /**
+ * @override
+ */
+ constructor(message, options = true) {
+ super(message, options);
+ this.name = "CredentialsProviderError";
+ Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
+ }
+ static {
+ __name(this, "CredentialsProviderError");
+ }
+};
+
+// src/TokenProviderError.ts
+var TokenProviderError = class _TokenProviderError extends ProviderError {
+ /**
+ * @override
+ */
+ constructor(message, options = true) {
+ super(message, options);
+ this.name = "TokenProviderError";
+ Object.setPrototypeOf(this, _TokenProviderError.prototype);
+ }
+ static {
+ __name(this, "TokenProviderError");
+ }
+};
+
+// src/chain.ts
+var chain = /* @__PURE__ */ __name((...providers) => async () => {
+ if (providers.length === 0) {
+ throw new ProviderError("No providers in chain");
+ }
+ let lastProviderError;
+ for (const provider of providers) {
+ try {
+ const credentials = await provider();
+ return credentials;
+ } catch (err) {
+ lastProviderError = err;
+ if (err?.tryNextLink) {
+ continue;
+ }
+ throw err;
+ }
+ }
+ throw lastProviderError;
+}, "chain");
+
+// src/fromStatic.ts
+var fromStatic = /* @__PURE__ */ __name((staticValue) => () => Promise.resolve(staticValue), "fromStatic");
+
+// src/memoize.ts
+var memoize = /* @__PURE__ */ __name((provider, isExpired, requiresRefresh) => {
+ let resolved;
+ let pending;
+ let hasResult;
+ let isConstant = false;
+ const coalesceProvider = /* @__PURE__ */ __name(async () => {
+ if (!pending) {
+ pending = provider();
+ }
+ try {
+ resolved = await pending;
+ hasResult = true;
+ isConstant = false;
+ } finally {
+ pending = void 0;
+ }
+ return resolved;
+ }, "coalesceProvider");
+ if (isExpired === void 0) {
+ return async (options) => {
+ if (!hasResult || options?.forceRefresh) {
+ resolved = await coalesceProvider();
+ }
+ return resolved;
+ };
+ }
+ return async (options) => {
+ if (!hasResult || options?.forceRefresh) {
+ resolved = await coalesceProvider();
+ }
+ if (isConstant) {
+ return resolved;
+ }
+ if (requiresRefresh && !requiresRefresh(resolved)) {
+ isConstant = true;
+ return resolved;
+ }
+ if (isExpired(resolved)) {
+ await coalesceProvider();
+ return resolved;
+ }
+ return resolved;
+ };
+}, "memoize");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 64418:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ Field: () => Field,
+ Fields: () => Fields,
+ HttpRequest: () => HttpRequest,
+ HttpResponse: () => HttpResponse,
+ IHttpRequest: () => import_types.HttpRequest,
+ getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration,
+ isValidHostname: () => isValidHostname,
+ resolveHttpHandlerRuntimeConfig: () => resolveHttpHandlerRuntimeConfig
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/extensions/httpExtensionConfiguration.ts
+var getHttpHandlerExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ return {
+ setHttpHandler(handler) {
+ runtimeConfig.httpHandler = handler;
+ },
+ httpHandler() {
+ return runtimeConfig.httpHandler;
+ },
+ updateHttpClientConfig(key, value) {
+ runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
+ },
+ httpHandlerConfigs() {
+ return runtimeConfig.httpHandler.httpHandlerConfigs();
+ }
+ };
+}, "getHttpHandlerExtensionConfiguration");
+var resolveHttpHandlerRuntimeConfig = /* @__PURE__ */ __name((httpHandlerExtensionConfiguration) => {
+ return {
+ httpHandler: httpHandlerExtensionConfiguration.httpHandler()
+ };
+}, "resolveHttpHandlerRuntimeConfig");
+
+// src/Field.ts
+var import_types = __nccwpck_require__(55756);
+var Field = class {
+ static {
+ __name(this, "Field");
+ }
+ constructor({ name, kind = import_types.FieldPosition.HEADER, values = [] }) {
+ this.name = name;
+ this.kind = kind;
+ this.values = values;
+ }
+ /**
+ * Appends a value to the field.
+ *
+ * @param value The value to append.
+ */
+ add(value) {
+ this.values.push(value);
+ }
+ /**
+ * Overwrite existing field values.
+ *
+ * @param values The new field values.
+ */
+ set(values) {
+ this.values = values;
+ }
+ /**
+ * Remove all matching entries from list.
+ *
+ * @param value Value to remove.
+ */
+ remove(value) {
+ this.values = this.values.filter((v) => v !== value);
+ }
+ /**
+ * Get comma-delimited string.
+ *
+ * @returns String representation of {@link Field}.
+ */
+ toString() {
+ return this.values.map((v) => v.includes(",") || v.includes(" ") ? `"${v}"` : v).join(", ");
+ }
+ /**
+ * Get string values as a list
+ *
+ * @returns Values in {@link Field} as a list.
+ */
+ get() {
+ return this.values;
+ }
+};
+
+// src/Fields.ts
+var Fields = class {
+ constructor({ fields = [], encoding = "utf-8" }) {
+ this.entries = {};
+ fields.forEach(this.setField.bind(this));
+ this.encoding = encoding;
+ }
+ static {
+ __name(this, "Fields");
+ }
+ /**
+ * Set entry for a {@link Field} name. The `name`
+ * attribute will be used to key the collection.
+ *
+ * @param field The {@link Field} to set.
+ */
+ setField(field) {
+ this.entries[field.name.toLowerCase()] = field;
+ }
+ /**
+ * Retrieve {@link Field} entry by name.
+ *
+ * @param name The name of the {@link Field} entry
+ * to retrieve
+ * @returns The {@link Field} if it exists.
+ */
+ getField(name) {
+ return this.entries[name.toLowerCase()];
+ }
+ /**
+ * Delete entry from collection.
+ *
+ * @param name Name of the entry to delete.
+ */
+ removeField(name) {
+ delete this.entries[name.toLowerCase()];
+ }
+ /**
+ * Helper function for retrieving specific types of fields.
+ * Used to grab all headers or all trailers.
+ *
+ * @param kind {@link FieldPosition} of entries to retrieve.
+ * @returns The {@link Field} entries with the specified
+ * {@link FieldPosition}.
+ */
+ getByType(kind) {
+ return Object.values(this.entries).filter((field) => field.kind === kind);
+ }
+};
+
+// src/httpRequest.ts
+
+var HttpRequest = class _HttpRequest {
+ static {
+ __name(this, "HttpRequest");
+ }
+ constructor(options) {
+ this.method = options.method || "GET";
+ this.hostname = options.hostname || "localhost";
+ this.port = options.port;
+ this.query = options.query || {};
+ this.headers = options.headers || {};
+ this.body = options.body;
+ this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
+ this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
+ this.username = options.username;
+ this.password = options.password;
+ this.fragment = options.fragment;
+ }
+ /**
+ * Note: this does not deep-clone the body.
+ */
+ static clone(request) {
+ const cloned = new _HttpRequest({
+ ...request,
+ headers: { ...request.headers }
+ });
+ if (cloned.query) {
+ cloned.query = cloneQuery(cloned.query);
+ }
+ return cloned;
+ }
+ /**
+ * This method only actually asserts that request is the interface {@link IHttpRequest},
+ * and not necessarily this concrete class. Left in place for API stability.
+ *
+ * Do not call instance methods on the input of this function, and
+ * do not assume it has the HttpRequest prototype.
+ */
+ static isInstance(request) {
+ if (!request) {
+ return false;
+ }
+ const req = request;
+ return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
+ }
+ /**
+ * @deprecated use static HttpRequest.clone(request) instead. It's not safe to call
+ * this method because {@link HttpRequest.isInstance} incorrectly
+ * asserts that IHttpRequest (interface) objects are of type HttpRequest (class).
+ */
+ clone() {
+ return _HttpRequest.clone(this);
+ }
+};
+function cloneQuery(query) {
+ return Object.keys(query).reduce((carry, paramName) => {
+ const param = query[paramName];
+ return {
+ ...carry,
+ [paramName]: Array.isArray(param) ? [...param] : param
+ };
+ }, {});
+}
+__name(cloneQuery, "cloneQuery");
+
+// src/httpResponse.ts
+var HttpResponse = class {
+ static {
+ __name(this, "HttpResponse");
+ }
+ constructor(options) {
+ this.statusCode = options.statusCode;
+ this.reason = options.reason;
+ this.headers = options.headers || {};
+ this.body = options.body;
+ }
+ static isInstance(response) {
+ if (!response)
+ return false;
+ const resp = response;
+ return typeof resp.statusCode === "number" && typeof resp.headers === "object";
+ }
+};
+
+// src/isValidHostname.ts
+function isValidHostname(hostname) {
+ const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;
+ return hostPattern.test(hostname);
+}
+__name(isValidHostname, "isValidHostname");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 68031:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ buildQueryString: () => buildQueryString
+});
+module.exports = __toCommonJS(src_exports);
+var import_util_uri_escape = __nccwpck_require__(54197);
+function buildQueryString(query) {
+ const parts = [];
+ for (let key of Object.keys(query).sort()) {
+ const value = query[key];
+ key = (0, import_util_uri_escape.escapeUri)(key);
+ if (Array.isArray(value)) {
+ for (let i = 0, iLen = value.length; i < iLen; i++) {
+ parts.push(`${key}=${(0, import_util_uri_escape.escapeUri)(value[i])}`);
+ }
+ } else {
+ let qsEntry = key;
+ if (value || typeof value === "string") {
+ qsEntry += `=${(0, import_util_uri_escape.escapeUri)(value)}`;
+ }
+ parts.push(qsEntry);
+ }
+ }
+ return parts.join("&");
+}
+__name(buildQueryString, "buildQueryString");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 4769:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ parseQueryString: () => parseQueryString
+});
+module.exports = __toCommonJS(src_exports);
+function parseQueryString(querystring) {
+ const query = {};
+ querystring = querystring.replace(/^\?/, "");
+ if (querystring) {
+ for (const pair of querystring.split("&")) {
+ let [key, value = null] = pair.split("=");
+ key = decodeURIComponent(key);
+ if (value) {
+ value = decodeURIComponent(value);
+ }
+ if (!(key in query)) {
+ query[key] = value;
+ } else if (Array.isArray(query[key])) {
+ query[key].push(value);
+ } else {
+ query[key] = [query[key], value];
+ }
+ }
+ }
+ return query;
+}
+__name(parseQueryString, "parseQueryString");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 6375:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ isClockSkewCorrectedError: () => isClockSkewCorrectedError,
+ isClockSkewError: () => isClockSkewError,
+ isRetryableByTrait: () => isRetryableByTrait,
+ isServerError: () => isServerError,
+ isThrottlingError: () => isThrottlingError,
+ isTransientError: () => isTransientError
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/constants.ts
+var CLOCK_SKEW_ERROR_CODES = [
+ "AuthFailure",
+ "InvalidSignatureException",
+ "RequestExpired",
+ "RequestInTheFuture",
+ "RequestTimeTooSkewed",
+ "SignatureDoesNotMatch"
+];
+var THROTTLING_ERROR_CODES = [
+ "BandwidthLimitExceeded",
+ "EC2ThrottledException",
+ "LimitExceededException",
+ "PriorRequestNotComplete",
+ "ProvisionedThroughputExceededException",
+ "RequestLimitExceeded",
+ "RequestThrottled",
+ "RequestThrottledException",
+ "SlowDown",
+ "ThrottledException",
+ "Throttling",
+ "ThrottlingException",
+ "TooManyRequestsException",
+ "TransactionInProgressException"
+ // DynamoDB
+];
+var TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
+var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
+var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
+
+// src/index.ts
+var isRetryableByTrait = /* @__PURE__ */ __name((error) => error.$retryable !== void 0, "isRetryableByTrait");
+var isClockSkewError = /* @__PURE__ */ __name((error) => CLOCK_SKEW_ERROR_CODES.includes(error.name), "isClockSkewError");
+var isClockSkewCorrectedError = /* @__PURE__ */ __name((error) => error.$metadata?.clockSkewCorrected, "isClockSkewCorrectedError");
+var isThrottlingError = /* @__PURE__ */ __name((error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true, "isThrottlingError");
+var isTransientError = /* @__PURE__ */ __name((error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1), "isTransientError");
+var isServerError = /* @__PURE__ */ __name((error) => {
+ if (error.$metadata?.httpStatusCode !== void 0) {
+ const statusCode = error.$metadata.httpStatusCode;
+ if (500 <= statusCode && statusCode <= 599 && !isTransientError(error)) {
+ return true;
+ }
+ return false;
+ }
+ return false;
+}, "isServerError");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 68340:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getHomeDir = void 0;
+const os_1 = __nccwpck_require__(22037);
+const path_1 = __nccwpck_require__(71017);
+const homeDirCache = {};
+const getHomeDirCacheKey = () => {
+ if (process && process.geteuid) {
+ return `${process.geteuid()}`;
+ }
+ return "DEFAULT";
+};
+const getHomeDir = () => {
+ const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env;
+ if (HOME)
+ return HOME;
+ if (USERPROFILE)
+ return USERPROFILE;
+ if (HOMEPATH)
+ return `${HOMEDRIVE}${HOMEPATH}`;
+ const homeDirCacheKey = getHomeDirCacheKey();
+ if (!homeDirCache[homeDirCacheKey])
+ homeDirCache[homeDirCacheKey] = (0, os_1.homedir)();
+ return homeDirCache[homeDirCacheKey];
+};
+exports.getHomeDir = getHomeDir;
+
+
+/***/ }),
+
+/***/ 24740:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getSSOTokenFilepath = void 0;
+const crypto_1 = __nccwpck_require__(6113);
+const path_1 = __nccwpck_require__(71017);
+const getHomeDir_1 = __nccwpck_require__(68340);
+const getSSOTokenFilepath = (id) => {
+ const hasher = (0, crypto_1.createHash)("sha1");
+ const cacheName = hasher.update(id).digest("hex");
+ return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`);
+};
+exports.getSSOTokenFilepath = getSSOTokenFilepath;
+
+
+/***/ }),
+
+/***/ 69678:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getSSOTokenFromFile = void 0;
+const fs_1 = __nccwpck_require__(57147);
+const getSSOTokenFilepath_1 = __nccwpck_require__(24740);
+const { readFile } = fs_1.promises;
+const getSSOTokenFromFile = async (id) => {
+ const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);
+ const ssoTokenText = await readFile(ssoTokenFilepath, "utf8");
+ return JSON.parse(ssoTokenText);
+};
+exports.getSSOTokenFromFile = getSSOTokenFromFile;
+
+
+/***/ }),
+
+/***/ 43507:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ CONFIG_PREFIX_SEPARATOR: () => CONFIG_PREFIX_SEPARATOR,
+ DEFAULT_PROFILE: () => DEFAULT_PROFILE,
+ ENV_PROFILE: () => ENV_PROFILE,
+ getProfileName: () => getProfileName,
+ loadSharedConfigFiles: () => loadSharedConfigFiles,
+ loadSsoSessionData: () => loadSsoSessionData,
+ parseKnownFiles: () => parseKnownFiles
+});
+module.exports = __toCommonJS(src_exports);
+__reExport(src_exports, __nccwpck_require__(68340), module.exports);
+
+// src/getProfileName.ts
+var ENV_PROFILE = "AWS_PROFILE";
+var DEFAULT_PROFILE = "default";
+var getProfileName = /* @__PURE__ */ __name((init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE, "getProfileName");
+
+// src/index.ts
+__reExport(src_exports, __nccwpck_require__(24740), module.exports);
+__reExport(src_exports, __nccwpck_require__(69678), module.exports);
+
+// src/loadSharedConfigFiles.ts
+
+
+// src/getConfigData.ts
+var import_types = __nccwpck_require__(55756);
+var getConfigData = /* @__PURE__ */ __name((data) => Object.entries(data).filter(([key]) => {
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
+ if (indexOfSeparator === -1) {
+ return false;
+ }
+ return Object.values(import_types.IniSectionType).includes(key.substring(0, indexOfSeparator));
+}).reduce(
+ (acc, [key, value]) => {
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
+ const updatedKey = key.substring(0, indexOfSeparator) === import_types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
+ acc[updatedKey] = value;
+ return acc;
+ },
+ {
+ // Populate default profile, if present.
+ ...data.default && { default: data.default }
+ }
+), "getConfigData");
+
+// src/getConfigFilepath.ts
+var import_path = __nccwpck_require__(71017);
+var import_getHomeDir = __nccwpck_require__(68340);
+var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
+var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || (0, import_path.join)((0, import_getHomeDir.getHomeDir)(), ".aws", "config"), "getConfigFilepath");
+
+// src/getCredentialsFilepath.ts
+
+var import_getHomeDir2 = __nccwpck_require__(68340);
+var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
+var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || (0, import_path.join)((0, import_getHomeDir2.getHomeDir)(), ".aws", "credentials"), "getCredentialsFilepath");
+
+// src/loadSharedConfigFiles.ts
+var import_getHomeDir3 = __nccwpck_require__(68340);
+
+// src/parseIni.ts
+
+var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
+var profileNameBlockList = ["__proto__", "profile __proto__"];
+var parseIni = /* @__PURE__ */ __name((iniData) => {
+ const map = {};
+ let currentSection;
+ let currentSubSection;
+ for (const iniLine of iniData.split(/\r?\n/)) {
+ const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
+ const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
+ if (isSection) {
+ currentSection = void 0;
+ currentSubSection = void 0;
+ const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
+ const matches = prefixKeyRegex.exec(sectionName);
+ if (matches) {
+ const [, prefix, , name] = matches;
+ if (Object.values(import_types.IniSectionType).includes(prefix)) {
+ currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
+ }
+ } else {
+ currentSection = sectionName;
+ }
+ if (profileNameBlockList.includes(sectionName)) {
+ throw new Error(`Found invalid profile name "${sectionName}"`);
+ }
+ } else if (currentSection) {
+ const indexOfEqualsSign = trimmedLine.indexOf("=");
+ if (![0, -1].includes(indexOfEqualsSign)) {
+ const [name, value] = [
+ trimmedLine.substring(0, indexOfEqualsSign).trim(),
+ trimmedLine.substring(indexOfEqualsSign + 1).trim()
+ ];
+ if (value === "") {
+ currentSubSection = name;
+ } else {
+ if (currentSubSection && iniLine.trimStart() === iniLine) {
+ currentSubSection = void 0;
+ }
+ map[currentSection] = map[currentSection] || {};
+ const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
+ map[currentSection][key] = value;
+ }
+ }
+ }
+ }
+ return map;
+}, "parseIni");
+
+// src/loadSharedConfigFiles.ts
+var import_slurpFile = __nccwpck_require__(19155);
+var swallowError = /* @__PURE__ */ __name(() => ({}), "swallowError");
+var CONFIG_PREFIX_SEPARATOR = ".";
+var loadSharedConfigFiles = /* @__PURE__ */ __name(async (init = {}) => {
+ const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
+ const homeDir = (0, import_getHomeDir3.getHomeDir)();
+ const relativeHomeDirPrefix = "~/";
+ let resolvedFilepath = filepath;
+ if (filepath.startsWith(relativeHomeDirPrefix)) {
+ resolvedFilepath = (0, import_path.join)(homeDir, filepath.slice(2));
+ }
+ let resolvedConfigFilepath = configFilepath;
+ if (configFilepath.startsWith(relativeHomeDirPrefix)) {
+ resolvedConfigFilepath = (0, import_path.join)(homeDir, configFilepath.slice(2));
+ }
+ const parsedFiles = await Promise.all([
+ (0, import_slurpFile.slurpFile)(resolvedConfigFilepath, {
+ ignoreCache: init.ignoreCache
+ }).then(parseIni).then(getConfigData).catch(swallowError),
+ (0, import_slurpFile.slurpFile)(resolvedFilepath, {
+ ignoreCache: init.ignoreCache
+ }).then(parseIni).catch(swallowError)
+ ]);
+ return {
+ configFile: parsedFiles[0],
+ credentialsFile: parsedFiles[1]
+ };
+}, "loadSharedConfigFiles");
+
+// src/getSsoSessionData.ts
+
+var getSsoSessionData = /* @__PURE__ */ __name((data) => Object.entries(data).filter(([key]) => key.startsWith(import_types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {}), "getSsoSessionData");
+
+// src/loadSsoSessionData.ts
+var import_slurpFile2 = __nccwpck_require__(19155);
+var swallowError2 = /* @__PURE__ */ __name(() => ({}), "swallowError");
+var loadSsoSessionData = /* @__PURE__ */ __name(async (init = {}) => (0, import_slurpFile2.slurpFile)(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2), "loadSsoSessionData");
+
+// src/mergeConfigFiles.ts
+var mergeConfigFiles = /* @__PURE__ */ __name((...files) => {
+ const merged = {};
+ for (const file of files) {
+ for (const [key, values] of Object.entries(file)) {
+ if (merged[key] !== void 0) {
+ Object.assign(merged[key], values);
+ } else {
+ merged[key] = values;
+ }
+ }
+ }
+ return merged;
+}, "mergeConfigFiles");
+
+// src/parseKnownFiles.ts
+var parseKnownFiles = /* @__PURE__ */ __name(async (init) => {
+ const parsedFiles = await loadSharedConfigFiles(init);
+ return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
+}, "parseKnownFiles");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 19155:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.slurpFile = void 0;
+const fs_1 = __nccwpck_require__(57147);
+const { readFile } = fs_1.promises;
+const filePromisesHash = {};
+const slurpFile = (path, options) => {
+ if (!filePromisesHash[path] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) {
+ filePromisesHash[path] = readFile(path, "utf8");
+ }
+ return filePromisesHash[path];
+};
+exports.slurpFile = slurpFile;
+
+
+/***/ }),
+
+/***/ 11528:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ SignatureV4: () => SignatureV4,
+ clearCredentialCache: () => clearCredentialCache,
+ createScope: () => createScope,
+ getCanonicalHeaders: () => getCanonicalHeaders,
+ getCanonicalQuery: () => getCanonicalQuery,
+ getPayloadHash: () => getPayloadHash,
+ getSigningKey: () => getSigningKey,
+ moveHeadersToQuery: () => moveHeadersToQuery,
+ prepareRequest: () => prepareRequest
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/SignatureV4.ts
+
+var import_util_middleware = __nccwpck_require__(2390);
+
+var import_util_utf84 = __nccwpck_require__(41895);
+
+// src/constants.ts
+var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
+var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
+var AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
+var SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders";
+var EXPIRES_QUERY_PARAM = "X-Amz-Expires";
+var SIGNATURE_QUERY_PARAM = "X-Amz-Signature";
+var TOKEN_QUERY_PARAM = "X-Amz-Security-Token";
+var AUTH_HEADER = "authorization";
+var AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase();
+var DATE_HEADER = "date";
+var GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER];
+var SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase();
+var SHA256_HEADER = "x-amz-content-sha256";
+var TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase();
+var ALWAYS_UNSIGNABLE_HEADERS = {
+ authorization: true,
+ "cache-control": true,
+ connection: true,
+ expect: true,
+ from: true,
+ "keep-alive": true,
+ "max-forwards": true,
+ pragma: true,
+ referer: true,
+ te: true,
+ trailer: true,
+ "transfer-encoding": true,
+ upgrade: true,
+ "user-agent": true,
+ "x-amzn-trace-id": true
+};
+var PROXY_HEADER_PATTERN = /^proxy-/;
+var SEC_HEADER_PATTERN = /^sec-/;
+var ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
+var EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD";
+var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
+var MAX_CACHE_SIZE = 50;
+var KEY_TYPE_IDENTIFIER = "aws4_request";
+var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
+
+// src/credentialDerivation.ts
+var import_util_hex_encoding = __nccwpck_require__(45364);
+var import_util_utf8 = __nccwpck_require__(41895);
+var signingKeyCache = {};
+var cacheQueue = [];
+var createScope = /* @__PURE__ */ __name((shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`, "createScope");
+var getSigningKey = /* @__PURE__ */ __name(async (sha256Constructor, credentials, shortDate, region, service) => {
+ const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId);
+ const cacheKey = `${shortDate}:${region}:${service}:${(0, import_util_hex_encoding.toHex)(credsHash)}:${credentials.sessionToken}`;
+ if (cacheKey in signingKeyCache) {
+ return signingKeyCache[cacheKey];
+ }
+ cacheQueue.push(cacheKey);
+ while (cacheQueue.length > MAX_CACHE_SIZE) {
+ delete signingKeyCache[cacheQueue.shift()];
+ }
+ let key = `AWS4${credentials.secretAccessKey}`;
+ for (const signable of [shortDate, region, service, KEY_TYPE_IDENTIFIER]) {
+ key = await hmac(sha256Constructor, key, signable);
+ }
+ return signingKeyCache[cacheKey] = key;
+}, "getSigningKey");
+var clearCredentialCache = /* @__PURE__ */ __name(() => {
+ cacheQueue.length = 0;
+ Object.keys(signingKeyCache).forEach((cacheKey) => {
+ delete signingKeyCache[cacheKey];
+ });
+}, "clearCredentialCache");
+var hmac = /* @__PURE__ */ __name((ctor, secret, data) => {
+ const hash = new ctor(secret);
+ hash.update((0, import_util_utf8.toUint8Array)(data));
+ return hash.digest();
+}, "hmac");
+
+// src/getCanonicalHeaders.ts
+var getCanonicalHeaders = /* @__PURE__ */ __name(({ headers }, unsignableHeaders, signableHeaders) => {
+ const canonical = {};
+ for (const headerName of Object.keys(headers).sort()) {
+ if (headers[headerName] == void 0) {
+ continue;
+ }
+ const canonicalHeaderName = headerName.toLowerCase();
+ if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || unsignableHeaders?.has(canonicalHeaderName) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) {
+ if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) {
+ continue;
+ }
+ }
+ canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " ");
+ }
+ return canonical;
+}, "getCanonicalHeaders");
+
+// src/getCanonicalQuery.ts
+var import_util_uri_escape = __nccwpck_require__(54197);
+var getCanonicalQuery = /* @__PURE__ */ __name(({ query = {} }) => {
+ const keys = [];
+ const serialized = {};
+ for (const key of Object.keys(query)) {
+ if (key.toLowerCase() === SIGNATURE_HEADER) {
+ continue;
+ }
+ const encodedKey = (0, import_util_uri_escape.escapeUri)(key);
+ keys.push(encodedKey);
+ const value = query[key];
+ if (typeof value === "string") {
+ serialized[encodedKey] = `${encodedKey}=${(0, import_util_uri_escape.escapeUri)(value)}`;
+ } else if (Array.isArray(value)) {
+ serialized[encodedKey] = value.slice(0).reduce((encoded, value2) => encoded.concat([`${encodedKey}=${(0, import_util_uri_escape.escapeUri)(value2)}`]), []).sort().join("&");
+ }
+ }
+ return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join("&");
+}, "getCanonicalQuery");
+
+// src/getPayloadHash.ts
+var import_is_array_buffer = __nccwpck_require__(10780);
+
+var import_util_utf82 = __nccwpck_require__(41895);
+var getPayloadHash = /* @__PURE__ */ __name(async ({ headers, body }, hashConstructor) => {
+ for (const headerName of Object.keys(headers)) {
+ if (headerName.toLowerCase() === SHA256_HEADER) {
+ return headers[headerName];
+ }
+ }
+ if (body == void 0) {
+ return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
+ } else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, import_is_array_buffer.isArrayBuffer)(body)) {
+ const hashCtor = new hashConstructor();
+ hashCtor.update((0, import_util_utf82.toUint8Array)(body));
+ return (0, import_util_hex_encoding.toHex)(await hashCtor.digest());
+ }
+ return UNSIGNED_PAYLOAD;
+}, "getPayloadHash");
+
+// src/HeaderFormatter.ts
+
+var import_util_utf83 = __nccwpck_require__(41895);
+var HeaderFormatter = class {
+ static {
+ __name(this, "HeaderFormatter");
+ }
+ format(headers) {
+ const chunks = [];
+ for (const headerName of Object.keys(headers)) {
+ const bytes = (0, import_util_utf83.fromUtf8)(headerName);
+ chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
+ }
+ const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));
+ let position = 0;
+ for (const chunk of chunks) {
+ out.set(chunk, position);
+ position += chunk.byteLength;
+ }
+ return out;
+ }
+ formatHeaderValue(header) {
+ switch (header.type) {
+ case "boolean":
+ return Uint8Array.from([header.value ? 0 /* boolTrue */ : 1 /* boolFalse */]);
+ case "byte":
+ return Uint8Array.from([2 /* byte */, header.value]);
+ case "short":
+ const shortView = new DataView(new ArrayBuffer(3));
+ shortView.setUint8(0, 3 /* short */);
+ shortView.setInt16(1, header.value, false);
+ return new Uint8Array(shortView.buffer);
+ case "integer":
+ const intView = new DataView(new ArrayBuffer(5));
+ intView.setUint8(0, 4 /* integer */);
+ intView.setInt32(1, header.value, false);
+ return new Uint8Array(intView.buffer);
+ case "long":
+ const longBytes = new Uint8Array(9);
+ longBytes[0] = 5 /* long */;
+ longBytes.set(header.value.bytes, 1);
+ return longBytes;
+ case "binary":
+ const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
+ binView.setUint8(0, 6 /* byteArray */);
+ binView.setUint16(1, header.value.byteLength, false);
+ const binBytes = new Uint8Array(binView.buffer);
+ binBytes.set(header.value, 3);
+ return binBytes;
+ case "string":
+ const utf8Bytes = (0, import_util_utf83.fromUtf8)(header.value);
+ const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
+ strView.setUint8(0, 7 /* string */);
+ strView.setUint16(1, utf8Bytes.byteLength, false);
+ const strBytes = new Uint8Array(strView.buffer);
+ strBytes.set(utf8Bytes, 3);
+ return strBytes;
+ case "timestamp":
+ const tsBytes = new Uint8Array(9);
+ tsBytes[0] = 8 /* timestamp */;
+ tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
+ return tsBytes;
+ case "uuid":
+ if (!UUID_PATTERN.test(header.value)) {
+ throw new Error(`Invalid UUID received: ${header.value}`);
+ }
+ const uuidBytes = new Uint8Array(17);
+ uuidBytes[0] = 9 /* uuid */;
+ uuidBytes.set((0, import_util_hex_encoding.fromHex)(header.value.replace(/\-/g, "")), 1);
+ return uuidBytes;
+ }
+ }
+};
+var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
+var Int64 = class _Int64 {
+ constructor(bytes) {
+ this.bytes = bytes;
+ if (bytes.byteLength !== 8) {
+ throw new Error("Int64 buffers must be exactly 8 bytes");
+ }
+ }
+ static {
+ __name(this, "Int64");
+ }
+ static fromNumber(number) {
+ if (number > 9223372036854776e3 || number < -9223372036854776e3) {
+ throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
+ }
+ const bytes = new Uint8Array(8);
+ for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {
+ bytes[i] = remaining;
+ }
+ if (number < 0) {
+ negate(bytes);
+ }
+ return new _Int64(bytes);
+ }
+ /**
+ * Called implicitly by infix arithmetic operators.
+ */
+ valueOf() {
+ const bytes = this.bytes.slice(0);
+ const negative = bytes[0] & 128;
+ if (negative) {
+ negate(bytes);
+ }
+ return parseInt((0, import_util_hex_encoding.toHex)(bytes), 16) * (negative ? -1 : 1);
+ }
+ toString() {
+ return String(this.valueOf());
+ }
+};
+function negate(bytes) {
+ for (let i = 0; i < 8; i++) {
+ bytes[i] ^= 255;
+ }
+ for (let i = 7; i > -1; i--) {
+ bytes[i]++;
+ if (bytes[i] !== 0)
+ break;
+ }
+}
+__name(negate, "negate");
+
+// src/headerUtil.ts
+var hasHeader = /* @__PURE__ */ __name((soughtHeader, headers) => {
+ soughtHeader = soughtHeader.toLowerCase();
+ for (const headerName of Object.keys(headers)) {
+ if (soughtHeader === headerName.toLowerCase()) {
+ return true;
+ }
+ }
+ return false;
+}, "hasHeader");
+
+// src/moveHeadersToQuery.ts
+var import_protocol_http = __nccwpck_require__(64418);
+var moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => {
+ const { headers, query = {} } = import_protocol_http.HttpRequest.clone(request);
+ for (const name of Object.keys(headers)) {
+ const lname = name.toLowerCase();
+ if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) {
+ query[name] = headers[name];
+ delete headers[name];
+ }
+ }
+ return {
+ ...request,
+ headers,
+ query
+ };
+}, "moveHeadersToQuery");
+
+// src/prepareRequest.ts
+
+var prepareRequest = /* @__PURE__ */ __name((request) => {
+ request = import_protocol_http.HttpRequest.clone(request);
+ for (const headerName of Object.keys(request.headers)) {
+ if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
+ delete request.headers[headerName];
+ }
+ }
+ return request;
+}, "prepareRequest");
+
+// src/utilDate.ts
+var iso8601 = /* @__PURE__ */ __name((time) => toDate(time).toISOString().replace(/\.\d{3}Z$/, "Z"), "iso8601");
+var toDate = /* @__PURE__ */ __name((time) => {
+ if (typeof time === "number") {
+ return new Date(time * 1e3);
+ }
+ if (typeof time === "string") {
+ if (Number(time)) {
+ return new Date(Number(time) * 1e3);
+ }
+ return new Date(time);
+ }
+ return time;
+}, "toDate");
+
+// src/SignatureV4.ts
+var SignatureV4 = class {
+ constructor({
+ applyChecksum,
+ credentials,
+ region,
+ service,
+ sha256,
+ uriEscapePath = true
+ }) {
+ this.headerFormatter = new HeaderFormatter();
+ this.service = service;
+ this.sha256 = sha256;
+ this.uriEscapePath = uriEscapePath;
+ this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true;
+ this.regionProvider = (0, import_util_middleware.normalizeProvider)(region);
+ this.credentialProvider = (0, import_util_middleware.normalizeProvider)(credentials);
+ }
+ static {
+ __name(this, "SignatureV4");
+ }
+ async presign(originalRequest, options = {}) {
+ const {
+ signingDate = /* @__PURE__ */ new Date(),
+ expiresIn = 3600,
+ unsignableHeaders,
+ unhoistableHeaders,
+ signableHeaders,
+ hoistableHeaders,
+ signingRegion,
+ signingService
+ } = options;
+ const credentials = await this.credentialProvider();
+ this.validateResolvedCredentials(credentials);
+ const region = signingRegion ?? await this.regionProvider();
+ const { longDate, shortDate } = formatDate(signingDate);
+ if (expiresIn > MAX_PRESIGNED_TTL) {
+ return Promise.reject(
+ "Signature version 4 presigned URLs must have an expiration date less than one week in the future"
+ );
+ }
+ const scope = createScope(shortDate, region, signingService ?? this.service);
+ const request = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders, hoistableHeaders });
+ if (credentials.sessionToken) {
+ request.query[TOKEN_QUERY_PARAM] = credentials.sessionToken;
+ }
+ request.query[ALGORITHM_QUERY_PARAM] = ALGORITHM_IDENTIFIER;
+ request.query[CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`;
+ request.query[AMZ_DATE_QUERY_PARAM] = longDate;
+ request.query[EXPIRES_QUERY_PARAM] = expiresIn.toString(10);
+ const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders);
+ request.query[SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders);
+ request.query[SIGNATURE_QUERY_PARAM] = await this.getSignature(
+ longDate,
+ scope,
+ this.getSigningKey(credentials, region, shortDate, signingService),
+ this.createCanonicalRequest(request, canonicalHeaders, await getPayloadHash(originalRequest, this.sha256))
+ );
+ return request;
+ }
+ async sign(toSign, options) {
+ if (typeof toSign === "string") {
+ return this.signString(toSign, options);
+ } else if (toSign.headers && toSign.payload) {
+ return this.signEvent(toSign, options);
+ } else if (toSign.message) {
+ return this.signMessage(toSign, options);
+ } else {
+ return this.signRequest(toSign, options);
+ }
+ }
+ async signEvent({ headers, payload }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService }) {
+ const region = signingRegion ?? await this.regionProvider();
+ const { shortDate, longDate } = formatDate(signingDate);
+ const scope = createScope(shortDate, region, signingService ?? this.service);
+ const hashedPayload = await getPayloadHash({ headers: {}, body: payload }, this.sha256);
+ const hash = new this.sha256();
+ hash.update(headers);
+ const hashedHeaders = (0, import_util_hex_encoding.toHex)(await hash.digest());
+ const stringToSign = [
+ EVENT_ALGORITHM_IDENTIFIER,
+ longDate,
+ scope,
+ priorSignature,
+ hashedHeaders,
+ hashedPayload
+ ].join("\n");
+ return this.signString(stringToSign, { signingDate, signingRegion: region, signingService });
+ }
+ async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService }) {
+ const promise = this.signEvent(
+ {
+ headers: this.headerFormatter.format(signableMessage.message.headers),
+ payload: signableMessage.message.body
+ },
+ {
+ signingDate,
+ signingRegion,
+ signingService,
+ priorSignature: signableMessage.priorSignature
+ }
+ );
+ return promise.then((signature) => {
+ return { message: signableMessage.message, signature };
+ });
+ }
+ async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService } = {}) {
+ const credentials = await this.credentialProvider();
+ this.validateResolvedCredentials(credentials);
+ const region = signingRegion ?? await this.regionProvider();
+ const { shortDate } = formatDate(signingDate);
+ const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService));
+ hash.update((0, import_util_utf84.toUint8Array)(stringToSign));
+ return (0, import_util_hex_encoding.toHex)(await hash.digest());
+ }
+ async signRequest(requestToSign, {
+ signingDate = /* @__PURE__ */ new Date(),
+ signableHeaders,
+ unsignableHeaders,
+ signingRegion,
+ signingService
+ } = {}) {
+ const credentials = await this.credentialProvider();
+ this.validateResolvedCredentials(credentials);
+ const region = signingRegion ?? await this.regionProvider();
+ const request = prepareRequest(requestToSign);
+ const { longDate, shortDate } = formatDate(signingDate);
+ const scope = createScope(shortDate, region, signingService ?? this.service);
+ request.headers[AMZ_DATE_HEADER] = longDate;
+ if (credentials.sessionToken) {
+ request.headers[TOKEN_HEADER] = credentials.sessionToken;
+ }
+ const payloadHash = await getPayloadHash(request, this.sha256);
+ if (!hasHeader(SHA256_HEADER, request.headers) && this.applyChecksum) {
+ request.headers[SHA256_HEADER] = payloadHash;
+ }
+ const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders);
+ const signature = await this.getSignature(
+ longDate,
+ scope,
+ this.getSigningKey(credentials, region, shortDate, signingService),
+ this.createCanonicalRequest(request, canonicalHeaders, payloadHash)
+ );
+ request.headers[AUTH_HEADER] = `${ALGORITHM_IDENTIFIER} Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, Signature=${signature}`;
+ return request;
+ }
+ createCanonicalRequest(request, canonicalHeaders, payloadHash) {
+ const sortedHeaders = Object.keys(canonicalHeaders).sort();
+ return `${request.method}
+${this.getCanonicalPath(request)}
+${getCanonicalQuery(request)}
+${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")}
+
+${sortedHeaders.join(";")}
+${payloadHash}`;
+ }
+ async createStringToSign(longDate, credentialScope, canonicalRequest) {
+ const hash = new this.sha256();
+ hash.update((0, import_util_utf84.toUint8Array)(canonicalRequest));
+ const hashedRequest = await hash.digest();
+ return `${ALGORITHM_IDENTIFIER}
+${longDate}
+${credentialScope}
+${(0, import_util_hex_encoding.toHex)(hashedRequest)}`;
+ }
+ getCanonicalPath({ path }) {
+ if (this.uriEscapePath) {
+ const normalizedPathSegments = [];
+ for (const pathSegment of path.split("/")) {
+ if (pathSegment?.length === 0)
+ continue;
+ if (pathSegment === ".")
+ continue;
+ if (pathSegment === "..") {
+ normalizedPathSegments.pop();
+ } else {
+ normalizedPathSegments.push(pathSegment);
+ }
+ }
+ const normalizedPath = `${path?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path?.endsWith("/") ? "/" : ""}`;
+ const doubleEncoded = (0, import_util_uri_escape.escapeUri)(normalizedPath);
+ return doubleEncoded.replace(/%2F/g, "/");
+ }
+ return path;
+ }
+ async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {
+ const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest);
+ const hash = new this.sha256(await keyPromise);
+ hash.update((0, import_util_utf84.toUint8Array)(stringToSign));
+ return (0, import_util_hex_encoding.toHex)(await hash.digest());
+ }
+ getSigningKey(credentials, region, shortDate, service) {
+ return getSigningKey(this.sha256, credentials, shortDate, region, service || this.service);
+ }
+ validateResolvedCredentials(credentials) {
+ if (typeof credentials !== "object" || // @ts-expect-error: Property 'accessKeyId' does not exist on type 'object'.ts(2339)
+ typeof credentials.accessKeyId !== "string" || // @ts-expect-error: Property 'secretAccessKey' does not exist on type 'object'.ts(2339)
+ typeof credentials.secretAccessKey !== "string") {
+ throw new Error("Resolved credential object is not valid");
+ }
+ }
+};
+var formatDate = /* @__PURE__ */ __name((now) => {
+ const longDate = iso8601(now).replace(/[\-:]/g, "");
+ return {
+ longDate,
+ shortDate: longDate.slice(0, 8)
+ };
+}, "formatDate");
+var getCanonicalHeaderList = /* @__PURE__ */ __name((headers) => Object.keys(headers).sort().join(";"), "getCanonicalHeaderList");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 63570:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ Client: () => Client,
+ Command: () => Command,
+ LazyJsonString: () => LazyJsonString,
+ NoOpLogger: () => NoOpLogger,
+ SENSITIVE_STRING: () => SENSITIVE_STRING,
+ ServiceException: () => ServiceException,
+ _json: () => _json,
+ collectBody: () => import_protocols.collectBody,
+ convertMap: () => convertMap,
+ createAggregatedClient: () => createAggregatedClient,
+ dateToUtcString: () => dateToUtcString,
+ decorateServiceException: () => decorateServiceException,
+ emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
+ expectBoolean: () => expectBoolean,
+ expectByte: () => expectByte,
+ expectFloat32: () => expectFloat32,
+ expectInt: () => expectInt,
+ expectInt32: () => expectInt32,
+ expectLong: () => expectLong,
+ expectNonNull: () => expectNonNull,
+ expectNumber: () => expectNumber,
+ expectObject: () => expectObject,
+ expectShort: () => expectShort,
+ expectString: () => expectString,
+ expectUnion: () => expectUnion,
+ extendedEncodeURIComponent: () => import_protocols.extendedEncodeURIComponent,
+ getArrayIfSingleItem: () => getArrayIfSingleItem,
+ getDefaultClientConfiguration: () => getDefaultClientConfiguration,
+ getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration,
+ getValueFromTextNode: () => getValueFromTextNode,
+ handleFloat: () => handleFloat,
+ isSerializableHeaderValue: () => isSerializableHeaderValue,
+ limitedParseDouble: () => limitedParseDouble,
+ limitedParseFloat: () => limitedParseFloat,
+ limitedParseFloat32: () => limitedParseFloat32,
+ loadConfigsForDefaultMode: () => loadConfigsForDefaultMode,
+ logger: () => logger,
+ map: () => map,
+ parseBoolean: () => parseBoolean,
+ parseEpochTimestamp: () => parseEpochTimestamp,
+ parseRfc3339DateTime: () => parseRfc3339DateTime,
+ parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset,
+ parseRfc7231DateTime: () => parseRfc7231DateTime,
+ quoteHeader: () => quoteHeader,
+ resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig,
+ resolvedPath: () => import_protocols.resolvedPath,
+ serializeDateTime: () => serializeDateTime,
+ serializeFloat: () => serializeFloat,
+ splitEvery: () => splitEvery,
+ splitHeader: () => splitHeader,
+ strictParseByte: () => strictParseByte,
+ strictParseDouble: () => strictParseDouble,
+ strictParseFloat: () => strictParseFloat,
+ strictParseFloat32: () => strictParseFloat32,
+ strictParseInt: () => strictParseInt,
+ strictParseInt32: () => strictParseInt32,
+ strictParseLong: () => strictParseLong,
+ strictParseShort: () => strictParseShort,
+ take: () => take,
+ throwDefaultError: () => throwDefaultError,
+ withBaseException: () => withBaseException
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/client.ts
+var import_middleware_stack = __nccwpck_require__(97911);
+var Client = class {
+ constructor(config) {
+ this.config = config;
+ this.middlewareStack = (0, import_middleware_stack.constructStack)();
+ }
+ static {
+ __name(this, "Client");
+ }
+ send(command, optionsOrCb, cb) {
+ const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;
+ const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
+ const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true;
+ let handler;
+ if (useHandlerCache) {
+ if (!this.handlers) {
+ this.handlers = /* @__PURE__ */ new WeakMap();
+ }
+ const handlers = this.handlers;
+ if (handlers.has(command.constructor)) {
+ handler = handlers.get(command.constructor);
+ } else {
+ handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
+ handlers.set(command.constructor, handler);
+ }
+ } else {
+ delete this.handlers;
+ handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
+ }
+ if (callback) {
+ handler(command).then(
+ (result) => callback(null, result.output),
+ (err) => callback(err)
+ ).catch(
+ // prevent any errors thrown in the callback from triggering an
+ // unhandled promise rejection
+ () => {
+ }
+ );
+ } else {
+ return handler(command).then((result) => result.output);
+ }
+ }
+ destroy() {
+ this.config?.requestHandler?.destroy?.();
+ delete this.handlers;
+ }
+};
+
+// src/collect-stream-body.ts
+var import_protocols = __nccwpck_require__(2241);
+
+// src/command.ts
+
+var import_types = __nccwpck_require__(55756);
+var Command = class {
+ constructor() {
+ this.middlewareStack = (0, import_middleware_stack.constructStack)();
+ }
+ static {
+ __name(this, "Command");
+ }
+ /**
+ * Factory for Command ClassBuilder.
+ * @internal
+ */
+ static classBuilder() {
+ return new ClassBuilder();
+ }
+ /**
+ * @internal
+ */
+ resolveMiddlewareWithContext(clientStack, configuration, options, {
+ middlewareFn,
+ clientName,
+ commandName,
+ inputFilterSensitiveLog,
+ outputFilterSensitiveLog,
+ smithyContext,
+ additionalContext,
+ CommandCtor
+ }) {
+ for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
+ this.middlewareStack.use(mw);
+ }
+ const stack = clientStack.concat(this.middlewareStack);
+ const { logger: logger2 } = configuration;
+ const handlerExecutionContext = {
+ logger: logger2,
+ clientName,
+ commandName,
+ inputFilterSensitiveLog,
+ outputFilterSensitiveLog,
+ [import_types.SMITHY_CONTEXT_KEY]: {
+ commandInstance: this,
+ ...smithyContext
+ },
+ ...additionalContext
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request) => requestHandler.handle(request.request, options || {}),
+ handlerExecutionContext
+ );
+ }
+};
+var ClassBuilder = class {
+ constructor() {
+ this._init = () => {
+ };
+ this._ep = {};
+ this._middlewareFn = () => [];
+ this._commandName = "";
+ this._clientName = "";
+ this._additionalContext = {};
+ this._smithyContext = {};
+ this._inputFilterSensitiveLog = (_) => _;
+ this._outputFilterSensitiveLog = (_) => _;
+ this._serializer = null;
+ this._deserializer = null;
+ }
+ static {
+ __name(this, "ClassBuilder");
+ }
+ /**
+ * Optional init callback.
+ */
+ init(cb) {
+ this._init = cb;
+ }
+ /**
+ * Set the endpoint parameter instructions.
+ */
+ ep(endpointParameterInstructions) {
+ this._ep = endpointParameterInstructions;
+ return this;
+ }
+ /**
+ * Add any number of middleware.
+ */
+ m(middlewareSupplier) {
+ this._middlewareFn = middlewareSupplier;
+ return this;
+ }
+ /**
+ * Set the initial handler execution context Smithy field.
+ */
+ s(service, operation, smithyContext = {}) {
+ this._smithyContext = {
+ service,
+ operation,
+ ...smithyContext
+ };
+ return this;
+ }
+ /**
+ * Set the initial handler execution context.
+ */
+ c(additionalContext = {}) {
+ this._additionalContext = additionalContext;
+ return this;
+ }
+ /**
+ * Set constant string identifiers for the operation.
+ */
+ n(clientName, commandName) {
+ this._clientName = clientName;
+ this._commandName = commandName;
+ return this;
+ }
+ /**
+ * Set the input and output sensistive log filters.
+ */
+ f(inputFilter = (_) => _, outputFilter = (_) => _) {
+ this._inputFilterSensitiveLog = inputFilter;
+ this._outputFilterSensitiveLog = outputFilter;
+ return this;
+ }
+ /**
+ * Sets the serializer.
+ */
+ ser(serializer) {
+ this._serializer = serializer;
+ return this;
+ }
+ /**
+ * Sets the deserializer.
+ */
+ de(deserializer) {
+ this._deserializer = deserializer;
+ return this;
+ }
+ /**
+ * @returns a Command class with the classBuilder properties.
+ */
+ build() {
+ const closure = this;
+ let CommandRef;
+ return CommandRef = class extends Command {
+ /**
+ * @public
+ */
+ constructor(...[input]) {
+ super();
+ /**
+ * @internal
+ */
+ // @ts-ignore used in middlewareFn closure.
+ this.serialize = closure._serializer;
+ /**
+ * @internal
+ */
+ // @ts-ignore used in middlewareFn closure.
+ this.deserialize = closure._deserializer;
+ this.input = input ?? {};
+ closure._init(this);
+ }
+ static {
+ __name(this, "CommandRef");
+ }
+ /**
+ * @public
+ */
+ static getEndpointParameterInstructions() {
+ return closure._ep;
+ }
+ /**
+ * @internal
+ */
+ resolveMiddleware(stack, configuration, options) {
+ return this.resolveMiddlewareWithContext(stack, configuration, options, {
+ CommandCtor: CommandRef,
+ middlewareFn: closure._middlewareFn,
+ clientName: closure._clientName,
+ commandName: closure._commandName,
+ inputFilterSensitiveLog: closure._inputFilterSensitiveLog,
+ outputFilterSensitiveLog: closure._outputFilterSensitiveLog,
+ smithyContext: closure._smithyContext,
+ additionalContext: closure._additionalContext
+ });
+ }
+ };
+ }
+};
+
+// src/constants.ts
+var SENSITIVE_STRING = "***SensitiveInformation***";
+
+// src/create-aggregated-client.ts
+var createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => {
+ for (const command of Object.keys(commands)) {
+ const CommandCtor = commands[command];
+ const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) {
+ const command2 = new CommandCtor(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command2, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
+ this.send(command2, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command2, optionsOrCb);
+ }
+ }, "methodImpl");
+ const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
+ Client2.prototype[methodName] = methodImpl;
+ }
+}, "createAggregatedClient");
+
+// src/parse-utils.ts
+var parseBoolean = /* @__PURE__ */ __name((value) => {
+ switch (value) {
+ case "true":
+ return true;
+ case "false":
+ return false;
+ default:
+ throw new Error(`Unable to parse boolean value "${value}"`);
+ }
+}, "parseBoolean");
+var expectBoolean = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return void 0;
+ }
+ if (typeof value === "number") {
+ if (value === 0 || value === 1) {
+ logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`));
+ }
+ if (value === 0) {
+ return false;
+ }
+ if (value === 1) {
+ return true;
+ }
+ }
+ if (typeof value === "string") {
+ const lower = value.toLowerCase();
+ if (lower === "false" || lower === "true") {
+ logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`));
+ }
+ if (lower === "false") {
+ return false;
+ }
+ if (lower === "true") {
+ return true;
+ }
+ }
+ if (typeof value === "boolean") {
+ return value;
+ }
+ throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`);
+}, "expectBoolean");
+var expectNumber = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return void 0;
+ }
+ if (typeof value === "string") {
+ const parsed = parseFloat(value);
+ if (!Number.isNaN(parsed)) {
+ if (String(parsed) !== String(value)) {
+ logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`));
+ }
+ return parsed;
+ }
+ }
+ if (typeof value === "number") {
+ return value;
+ }
+ throw new TypeError(`Expected number, got ${typeof value}: ${value}`);
+}, "expectNumber");
+var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23));
+var expectFloat32 = /* @__PURE__ */ __name((value) => {
+ const expected = expectNumber(value);
+ if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) {
+ if (Math.abs(expected) > MAX_FLOAT) {
+ throw new TypeError(`Expected 32-bit float, got ${value}`);
+ }
+ }
+ return expected;
+}, "expectFloat32");
+var expectLong = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return void 0;
+ }
+ if (Number.isInteger(value) && !Number.isNaN(value)) {
+ return value;
+ }
+ throw new TypeError(`Expected integer, got ${typeof value}: ${value}`);
+}, "expectLong");
+var expectInt = expectLong;
+var expectInt32 = /* @__PURE__ */ __name((value) => expectSizedInt(value, 32), "expectInt32");
+var expectShort = /* @__PURE__ */ __name((value) => expectSizedInt(value, 16), "expectShort");
+var expectByte = /* @__PURE__ */ __name((value) => expectSizedInt(value, 8), "expectByte");
+var expectSizedInt = /* @__PURE__ */ __name((value, size) => {
+ const expected = expectLong(value);
+ if (expected !== void 0 && castInt(expected, size) !== expected) {
+ throw new TypeError(`Expected ${size}-bit integer, got ${value}`);
+ }
+ return expected;
+}, "expectSizedInt");
+var castInt = /* @__PURE__ */ __name((value, size) => {
+ switch (size) {
+ case 32:
+ return Int32Array.of(value)[0];
+ case 16:
+ return Int16Array.of(value)[0];
+ case 8:
+ return Int8Array.of(value)[0];
+ }
+}, "castInt");
+var expectNonNull = /* @__PURE__ */ __name((value, location) => {
+ if (value === null || value === void 0) {
+ if (location) {
+ throw new TypeError(`Expected a non-null value for ${location}`);
+ }
+ throw new TypeError("Expected a non-null value");
+ }
+ return value;
+}, "expectNonNull");
+var expectObject = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return void 0;
+ }
+ if (typeof value === "object" && !Array.isArray(value)) {
+ return value;
+ }
+ const receivedType = Array.isArray(value) ? "array" : typeof value;
+ throw new TypeError(`Expected object, got ${receivedType}: ${value}`);
+}, "expectObject");
+var expectString = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return void 0;
+ }
+ if (typeof value === "string") {
+ return value;
+ }
+ if (["boolean", "number", "bigint"].includes(typeof value)) {
+ logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`));
+ return String(value);
+ }
+ throw new TypeError(`Expected string, got ${typeof value}: ${value}`);
+}, "expectString");
+var expectUnion = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return void 0;
+ }
+ const asObject = expectObject(value);
+ const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k);
+ if (setKeys.length === 0) {
+ throw new TypeError(`Unions must have exactly one non-null member. None were found.`);
+ }
+ if (setKeys.length > 1) {
+ throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`);
+ }
+ return asObject;
+}, "expectUnion");
+var strictParseDouble = /* @__PURE__ */ __name((value) => {
+ if (typeof value == "string") {
+ return expectNumber(parseNumber(value));
+ }
+ return expectNumber(value);
+}, "strictParseDouble");
+var strictParseFloat = strictParseDouble;
+var strictParseFloat32 = /* @__PURE__ */ __name((value) => {
+ if (typeof value == "string") {
+ return expectFloat32(parseNumber(value));
+ }
+ return expectFloat32(value);
+}, "strictParseFloat32");
+var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;
+var parseNumber = /* @__PURE__ */ __name((value) => {
+ const matches = value.match(NUMBER_REGEX);
+ if (matches === null || matches[0].length !== value.length) {
+ throw new TypeError(`Expected real number, got implicit NaN`);
+ }
+ return parseFloat(value);
+}, "parseNumber");
+var limitedParseDouble = /* @__PURE__ */ __name((value) => {
+ if (typeof value == "string") {
+ return parseFloatString(value);
+ }
+ return expectNumber(value);
+}, "limitedParseDouble");
+var handleFloat = limitedParseDouble;
+var limitedParseFloat = limitedParseDouble;
+var limitedParseFloat32 = /* @__PURE__ */ __name((value) => {
+ if (typeof value == "string") {
+ return parseFloatString(value);
+ }
+ return expectFloat32(value);
+}, "limitedParseFloat32");
+var parseFloatString = /* @__PURE__ */ __name((value) => {
+ switch (value) {
+ case "NaN":
+ return NaN;
+ case "Infinity":
+ return Infinity;
+ case "-Infinity":
+ return -Infinity;
+ default:
+ throw new Error(`Unable to parse float value: ${value}`);
+ }
+}, "parseFloatString");
+var strictParseLong = /* @__PURE__ */ __name((value) => {
+ if (typeof value === "string") {
+ return expectLong(parseNumber(value));
+ }
+ return expectLong(value);
+}, "strictParseLong");
+var strictParseInt = strictParseLong;
+var strictParseInt32 = /* @__PURE__ */ __name((value) => {
+ if (typeof value === "string") {
+ return expectInt32(parseNumber(value));
+ }
+ return expectInt32(value);
+}, "strictParseInt32");
+var strictParseShort = /* @__PURE__ */ __name((value) => {
+ if (typeof value === "string") {
+ return expectShort(parseNumber(value));
+ }
+ return expectShort(value);
+}, "strictParseShort");
+var strictParseByte = /* @__PURE__ */ __name((value) => {
+ if (typeof value === "string") {
+ return expectByte(parseNumber(value));
+ }
+ return expectByte(value);
+}, "strictParseByte");
+var stackTraceWarning = /* @__PURE__ */ __name((message) => {
+ return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n");
+}, "stackTraceWarning");
+var logger = {
+ warn: console.warn
+};
+
+// src/date-utils.ts
+var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
+var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
+function dateToUtcString(date) {
+ const year = date.getUTCFullYear();
+ const month = date.getUTCMonth();
+ const dayOfWeek = date.getUTCDay();
+ const dayOfMonthInt = date.getUTCDate();
+ const hoursInt = date.getUTCHours();
+ const minutesInt = date.getUTCMinutes();
+ const secondsInt = date.getUTCSeconds();
+ const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`;
+ const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`;
+ const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`;
+ const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`;
+ return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`;
+}
+__name(dateToUtcString, "dateToUtcString");
+var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);
+var parseRfc3339DateTime = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return void 0;
+ }
+ if (typeof value !== "string") {
+ throw new TypeError("RFC-3339 date-times must be expressed as strings");
+ }
+ const match = RFC3339.exec(value);
+ if (!match) {
+ throw new TypeError("Invalid RFC-3339 date-time value");
+ }
+ const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match;
+ const year = strictParseShort(stripLeadingZeroes(yearStr));
+ const month = parseDateValue(monthStr, "month", 1, 12);
+ const day = parseDateValue(dayStr, "day", 1, 31);
+ return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
+}, "parseRfc3339DateTime");
+var RFC3339_WITH_OFFSET = new RegExp(
+ /^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/
+);
+var parseRfc3339DateTimeWithOffset = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return void 0;
+ }
+ if (typeof value !== "string") {
+ throw new TypeError("RFC-3339 date-times must be expressed as strings");
+ }
+ const match = RFC3339_WITH_OFFSET.exec(value);
+ if (!match) {
+ throw new TypeError("Invalid RFC-3339 date-time value");
+ }
+ const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match;
+ const year = strictParseShort(stripLeadingZeroes(yearStr));
+ const month = parseDateValue(monthStr, "month", 1, 12);
+ const day = parseDateValue(dayStr, "day", 1, 31);
+ const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
+ if (offsetStr.toUpperCase() != "Z") {
+ date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr));
+ }
+ return date;
+}, "parseRfc3339DateTimeWithOffset");
+var IMF_FIXDATE = new RegExp(
+ /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/
+);
+var RFC_850_DATE = new RegExp(
+ /^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/
+);
+var ASC_TIME = new RegExp(
+ /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/
+);
+var parseRfc7231DateTime = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return void 0;
+ }
+ if (typeof value !== "string") {
+ throw new TypeError("RFC-7231 date-times must be expressed as strings");
+ }
+ let match = IMF_FIXDATE.exec(value);
+ if (match) {
+ const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
+ return buildDate(
+ strictParseShort(stripLeadingZeroes(yearStr)),
+ parseMonthByShortName(monthStr),
+ parseDateValue(dayStr, "day", 1, 31),
+ { hours, minutes, seconds, fractionalMilliseconds }
+ );
+ }
+ match = RFC_850_DATE.exec(value);
+ if (match) {
+ const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
+ return adjustRfc850Year(
+ buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), {
+ hours,
+ minutes,
+ seconds,
+ fractionalMilliseconds
+ })
+ );
+ }
+ match = ASC_TIME.exec(value);
+ if (match) {
+ const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match;
+ return buildDate(
+ strictParseShort(stripLeadingZeroes(yearStr)),
+ parseMonthByShortName(monthStr),
+ parseDateValue(dayStr.trimLeft(), "day", 1, 31),
+ { hours, minutes, seconds, fractionalMilliseconds }
+ );
+ }
+ throw new TypeError("Invalid RFC-7231 date-time value");
+}, "parseRfc7231DateTime");
+var parseEpochTimestamp = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return void 0;
+ }
+ let valueAsDouble;
+ if (typeof value === "number") {
+ valueAsDouble = value;
+ } else if (typeof value === "string") {
+ valueAsDouble = strictParseDouble(value);
+ } else if (typeof value === "object" && value.tag === 1) {
+ valueAsDouble = value.value;
+ } else {
+ throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");
+ }
+ if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) {
+ throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");
+ }
+ return new Date(Math.round(valueAsDouble * 1e3));
+}, "parseEpochTimestamp");
+var buildDate = /* @__PURE__ */ __name((year, month, day, time) => {
+ const adjustedMonth = month - 1;
+ validateDayOfMonth(year, adjustedMonth, day);
+ return new Date(
+ Date.UTC(
+ year,
+ adjustedMonth,
+ day,
+ parseDateValue(time.hours, "hour", 0, 23),
+ parseDateValue(time.minutes, "minute", 0, 59),
+ // seconds can go up to 60 for leap seconds
+ parseDateValue(time.seconds, "seconds", 0, 60),
+ parseMilliseconds(time.fractionalMilliseconds)
+ )
+ );
+}, "buildDate");
+var parseTwoDigitYear = /* @__PURE__ */ __name((value) => {
+ const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear();
+ const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value));
+ if (valueInThisCentury < thisYear) {
+ return valueInThisCentury + 100;
+ }
+ return valueInThisCentury;
+}, "parseTwoDigitYear");
+var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3;
+var adjustRfc850Year = /* @__PURE__ */ __name((input) => {
+ if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) {
+ return new Date(
+ Date.UTC(
+ input.getUTCFullYear() - 100,
+ input.getUTCMonth(),
+ input.getUTCDate(),
+ input.getUTCHours(),
+ input.getUTCMinutes(),
+ input.getUTCSeconds(),
+ input.getUTCMilliseconds()
+ )
+ );
+ }
+ return input;
+}, "adjustRfc850Year");
+var parseMonthByShortName = /* @__PURE__ */ __name((value) => {
+ const monthIdx = MONTHS.indexOf(value);
+ if (monthIdx < 0) {
+ throw new TypeError(`Invalid month: ${value}`);
+ }
+ return monthIdx + 1;
+}, "parseMonthByShortName");
+var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
+var validateDayOfMonth = /* @__PURE__ */ __name((year, month, day) => {
+ let maxDays = DAYS_IN_MONTH[month];
+ if (month === 1 && isLeapYear(year)) {
+ maxDays = 29;
+ }
+ if (day > maxDays) {
+ throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`);
+ }
+}, "validateDayOfMonth");
+var isLeapYear = /* @__PURE__ */ __name((year) => {
+ return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
+}, "isLeapYear");
+var parseDateValue = /* @__PURE__ */ __name((value, type, lower, upper) => {
+ const dateVal = strictParseByte(stripLeadingZeroes(value));
+ if (dateVal < lower || dateVal > upper) {
+ throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`);
+ }
+ return dateVal;
+}, "parseDateValue");
+var parseMilliseconds = /* @__PURE__ */ __name((value) => {
+ if (value === null || value === void 0) {
+ return 0;
+ }
+ return strictParseFloat32("0." + value) * 1e3;
+}, "parseMilliseconds");
+var parseOffsetToMilliseconds = /* @__PURE__ */ __name((value) => {
+ const directionStr = value[0];
+ let direction = 1;
+ if (directionStr == "+") {
+ direction = 1;
+ } else if (directionStr == "-") {
+ direction = -1;
+ } else {
+ throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`);
+ }
+ const hour = Number(value.substring(1, 3));
+ const minute = Number(value.substring(4, 6));
+ return direction * (hour * 60 + minute) * 60 * 1e3;
+}, "parseOffsetToMilliseconds");
+var stripLeadingZeroes = /* @__PURE__ */ __name((value) => {
+ let idx = 0;
+ while (idx < value.length - 1 && value.charAt(idx) === "0") {
+ idx++;
+ }
+ if (idx === 0) {
+ return value;
+ }
+ return value.slice(idx);
+}, "stripLeadingZeroes");
+
+// src/exceptions.ts
+var ServiceException = class _ServiceException extends Error {
+ static {
+ __name(this, "ServiceException");
+ }
+ constructor(options) {
+ super(options.message);
+ Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
+ this.name = options.name;
+ this.$fault = options.$fault;
+ this.$metadata = options.$metadata;
+ }
+ /**
+ * Checks if a value is an instance of ServiceException (duck typed)
+ */
+ static isInstance(value) {
+ if (!value)
+ return false;
+ const candidate = value;
+ return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
+ }
+ /**
+ * Custom instanceof check to support the operator for ServiceException base class
+ */
+ static [Symbol.hasInstance](instance) {
+ if (!instance)
+ return false;
+ const candidate = instance;
+ if (this === _ServiceException) {
+ return _ServiceException.isInstance(instance);
+ }
+ if (_ServiceException.isInstance(instance)) {
+ if (candidate.name && this.name) {
+ return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
+ }
+ return this.prototype.isPrototypeOf(instance);
+ }
+ return false;
+ }
+};
+var decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => {
+ Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {
+ if (exception[k] == void 0 || exception[k] === "") {
+ exception[k] = v;
+ }
+ });
+ const message = exception.message || exception.Message || "UnknownError";
+ exception.message = message;
+ delete exception.Message;
+ return exception;
+}, "decorateServiceException");
+
+// src/default-error-handler.ts
+var throwDefaultError = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => {
+ const $metadata = deserializeMetadata(output);
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0;
+ const response = new exceptionCtor({
+ name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError",
+ $fault: "client",
+ $metadata
+ });
+ throw decorateServiceException(response, parsedBody);
+}, "throwDefaultError");
+var withBaseException = /* @__PURE__ */ __name((ExceptionCtor) => {
+ return ({ output, parsedBody, errorCode }) => {
+ throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode });
+ };
+}, "withBaseException");
+var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
+ httpStatusCode: output.statusCode,
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
+ extendedRequestId: output.headers["x-amz-id-2"],
+ cfId: output.headers["x-amz-cf-id"]
+}), "deserializeMetadata");
+
+// src/defaults-mode.ts
+var loadConfigsForDefaultMode = /* @__PURE__ */ __name((mode) => {
+ switch (mode) {
+ case "standard":
+ return {
+ retryMode: "standard",
+ connectionTimeout: 3100
+ };
+ case "in-region":
+ return {
+ retryMode: "standard",
+ connectionTimeout: 1100
+ };
+ case "cross-region":
+ return {
+ retryMode: "standard",
+ connectionTimeout: 3100
+ };
+ case "mobile":
+ return {
+ retryMode: "standard",
+ connectionTimeout: 3e4
+ };
+ default:
+ return {};
+ }
+}, "loadConfigsForDefaultMode");
+
+// src/emitWarningIfUnsupportedVersion.ts
+var warningEmitted = false;
+var emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version) => {
+ if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
+ warningEmitted = true;
+ }
+}, "emitWarningIfUnsupportedVersion");
+
+// src/extended-encode-uri-component.ts
+
+
+// src/extensions/checksum.ts
+
+var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ const checksumAlgorithms = [];
+ for (const id in import_types.AlgorithmId) {
+ const algorithmId = import_types.AlgorithmId[id];
+ if (runtimeConfig[algorithmId] === void 0) {
+ continue;
+ }
+ checksumAlgorithms.push({
+ algorithmId: () => algorithmId,
+ checksumConstructor: () => runtimeConfig[algorithmId]
+ });
+ }
+ return {
+ addChecksumAlgorithm(algo) {
+ checksumAlgorithms.push(algo);
+ },
+ checksumAlgorithms() {
+ return checksumAlgorithms;
+ }
+ };
+}, "getChecksumConfiguration");
+var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
+ const runtimeConfig = {};
+ clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
+ runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
+ });
+ return runtimeConfig;
+}, "resolveChecksumRuntimeConfig");
+
+// src/extensions/retry.ts
+var getRetryConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ return {
+ setRetryStrategy(retryStrategy) {
+ runtimeConfig.retryStrategy = retryStrategy;
+ },
+ retryStrategy() {
+ return runtimeConfig.retryStrategy;
+ }
+ };
+}, "getRetryConfiguration");
+var resolveRetryRuntimeConfig = /* @__PURE__ */ __name((retryStrategyConfiguration) => {
+ const runtimeConfig = {};
+ runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
+ return runtimeConfig;
+}, "resolveRetryRuntimeConfig");
+
+// src/extensions/defaultExtensionConfiguration.ts
+var getDefaultExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig));
+}, "getDefaultExtensionConfiguration");
+var getDefaultClientConfiguration = getDefaultExtensionConfiguration;
+var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {
+ return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config));
+}, "resolveDefaultRuntimeConfig");
+
+// src/get-array-if-single-item.ts
+var getArrayIfSingleItem = /* @__PURE__ */ __name((mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray], "getArrayIfSingleItem");
+
+// src/get-value-from-text-node.ts
+var getValueFromTextNode = /* @__PURE__ */ __name((obj) => {
+ const textNodeName = "#text";
+ for (const key in obj) {
+ if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) {
+ obj[key] = obj[key][textNodeName];
+ } else if (typeof obj[key] === "object" && obj[key] !== null) {
+ obj[key] = getValueFromTextNode(obj[key]);
+ }
+ }
+ return obj;
+}, "getValueFromTextNode");
+
+// src/is-serializable-header-value.ts
+var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => {
+ return value != null;
+}, "isSerializableHeaderValue");
+
+// src/lazy-json.ts
+var LazyJsonString = /* @__PURE__ */ __name(function LazyJsonString2(val) {
+ const str = Object.assign(new String(val), {
+ deserializeJSON() {
+ return JSON.parse(String(val));
+ },
+ toString() {
+ return String(val);
+ },
+ toJSON() {
+ return String(val);
+ }
+ });
+ return str;
+}, "LazyJsonString");
+LazyJsonString.from = (object) => {
+ if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) {
+ return object;
+ } else if (typeof object === "string" || Object.getPrototypeOf(object) === String.prototype) {
+ return LazyJsonString(String(object));
+ }
+ return LazyJsonString(JSON.stringify(object));
+};
+LazyJsonString.fromObject = LazyJsonString.from;
+
+// src/NoOpLogger.ts
+var NoOpLogger = class {
+ static {
+ __name(this, "NoOpLogger");
+ }
+ trace() {
+ }
+ debug() {
+ }
+ info() {
+ }
+ warn() {
+ }
+ error() {
+ }
+};
+
+// src/object-mapping.ts
+function map(arg0, arg1, arg2) {
+ let target;
+ let filter;
+ let instructions;
+ if (typeof arg1 === "undefined" && typeof arg2 === "undefined") {
+ target = {};
+ instructions = arg0;
+ } else {
+ target = arg0;
+ if (typeof arg1 === "function") {
+ filter = arg1;
+ instructions = arg2;
+ return mapWithFilter(target, filter, instructions);
+ } else {
+ instructions = arg1;
+ }
+ }
+ for (const key of Object.keys(instructions)) {
+ if (!Array.isArray(instructions[key])) {
+ target[key] = instructions[key];
+ continue;
+ }
+ applyInstruction(target, null, instructions, key);
+ }
+ return target;
+}
+__name(map, "map");
+var convertMap = /* @__PURE__ */ __name((target) => {
+ const output = {};
+ for (const [k, v] of Object.entries(target || {})) {
+ output[k] = [, v];
+ }
+ return output;
+}, "convertMap");
+var take = /* @__PURE__ */ __name((source, instructions) => {
+ const out = {};
+ for (const key in instructions) {
+ applyInstruction(out, source, instructions, key);
+ }
+ return out;
+}, "take");
+var mapWithFilter = /* @__PURE__ */ __name((target, filter, instructions) => {
+ return map(
+ target,
+ Object.entries(instructions).reduce(
+ (_instructions, [key, value]) => {
+ if (Array.isArray(value)) {
+ _instructions[key] = value;
+ } else {
+ if (typeof value === "function") {
+ _instructions[key] = [filter, value()];
+ } else {
+ _instructions[key] = [filter, value];
+ }
+ }
+ return _instructions;
+ },
+ {}
+ )
+ );
+}, "mapWithFilter");
+var applyInstruction = /* @__PURE__ */ __name((target, source, instructions, targetKey) => {
+ if (source !== null) {
+ let instruction = instructions[targetKey];
+ if (typeof instruction === "function") {
+ instruction = [, instruction];
+ }
+ const [filter2 = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction;
+ if (typeof filter2 === "function" && filter2(source[sourceKey]) || typeof filter2 !== "function" && !!filter2) {
+ target[targetKey] = valueFn(source[sourceKey]);
+ }
+ return;
+ }
+ let [filter, value] = instructions[targetKey];
+ if (typeof value === "function") {
+ let _value;
+ const defaultFilterPassed = filter === void 0 && (_value = value()) != null;
+ const customFilterPassed = typeof filter === "function" && !!filter(void 0) || typeof filter !== "function" && !!filter;
+ if (defaultFilterPassed) {
+ target[targetKey] = _value;
+ } else if (customFilterPassed) {
+ target[targetKey] = value();
+ }
+ } else {
+ const defaultFilterPassed = filter === void 0 && value != null;
+ const customFilterPassed = typeof filter === "function" && !!filter(value) || typeof filter !== "function" && !!filter;
+ if (defaultFilterPassed || customFilterPassed) {
+ target[targetKey] = value;
+ }
+ }
+}, "applyInstruction");
+var nonNullish = /* @__PURE__ */ __name((_) => _ != null, "nonNullish");
+var pass = /* @__PURE__ */ __name((_) => _, "pass");
+
+// src/quote-header.ts
+function quoteHeader(part) {
+ if (part.includes(",") || part.includes('"')) {
+ part = `"${part.replace(/"/g, '\\"')}"`;
+ }
+ return part;
+}
+__name(quoteHeader, "quoteHeader");
+
+// src/resolve-path.ts
+
+
+// src/ser-utils.ts
+var serializeFloat = /* @__PURE__ */ __name((value) => {
+ if (value !== value) {
+ return "NaN";
+ }
+ switch (value) {
+ case Infinity:
+ return "Infinity";
+ case -Infinity:
+ return "-Infinity";
+ default:
+ return value;
+ }
+}, "serializeFloat");
+var serializeDateTime = /* @__PURE__ */ __name((date) => date.toISOString().replace(".000Z", "Z"), "serializeDateTime");
+
+// src/serde-json.ts
+var _json = /* @__PURE__ */ __name((obj) => {
+ if (obj == null) {
+ return {};
+ }
+ if (Array.isArray(obj)) {
+ return obj.filter((_) => _ != null).map(_json);
+ }
+ if (typeof obj === "object") {
+ const target = {};
+ for (const key of Object.keys(obj)) {
+ if (obj[key] == null) {
+ continue;
+ }
+ target[key] = _json(obj[key]);
+ }
+ return target;
+ }
+ return obj;
+}, "_json");
+
+// src/split-every.ts
+function splitEvery(value, delimiter, numDelimiters) {
+ if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) {
+ throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery.");
+ }
+ const segments = value.split(delimiter);
+ if (numDelimiters === 1) {
+ return segments;
+ }
+ const compoundSegments = [];
+ let currentSegment = "";
+ for (let i = 0; i < segments.length; i++) {
+ if (currentSegment === "") {
+ currentSegment = segments[i];
+ } else {
+ currentSegment += delimiter + segments[i];
+ }
+ if ((i + 1) % numDelimiters === 0) {
+ compoundSegments.push(currentSegment);
+ currentSegment = "";
+ }
+ }
+ if (currentSegment !== "") {
+ compoundSegments.push(currentSegment);
+ }
+ return compoundSegments;
+}
+__name(splitEvery, "splitEvery");
+
+// src/split-header.ts
+var splitHeader = /* @__PURE__ */ __name((value) => {
+ const z = value.length;
+ const values = [];
+ let withinQuotes = false;
+ let prevChar = void 0;
+ let anchor = 0;
+ for (let i = 0; i < z; ++i) {
+ const char = value[i];
+ switch (char) {
+ case `"`:
+ if (prevChar !== "\\") {
+ withinQuotes = !withinQuotes;
+ }
+ break;
+ case ",":
+ if (!withinQuotes) {
+ values.push(value.slice(anchor, i));
+ anchor = i + 1;
+ }
+ break;
+ default:
+ }
+ prevChar = char;
+ }
+ values.push(value.slice(anchor));
+ return values.map((v) => {
+ v = v.trim();
+ const z2 = v.length;
+ if (z2 < 2) {
+ return v;
+ }
+ if (v[0] === `"` && v[z2 - 1] === `"`) {
+ v = v.slice(1, z2 - 1);
+ }
+ return v.replace(/\\"/g, '"');
+ });
+}, "splitHeader");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 55756:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ AlgorithmId: () => AlgorithmId,
+ EndpointURLScheme: () => EndpointURLScheme,
+ FieldPosition: () => FieldPosition,
+ HttpApiKeyAuthLocation: () => HttpApiKeyAuthLocation,
+ HttpAuthLocation: () => HttpAuthLocation,
+ IniSectionType: () => IniSectionType,
+ RequestHandlerProtocol: () => RequestHandlerProtocol,
+ SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY,
+ getDefaultClientConfiguration: () => getDefaultClientConfiguration,
+ resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/auth/auth.ts
+var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => {
+ HttpAuthLocation2["HEADER"] = "header";
+ HttpAuthLocation2["QUERY"] = "query";
+ return HttpAuthLocation2;
+})(HttpAuthLocation || {});
+
+// src/auth/HttpApiKeyAuth.ts
+var HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => {
+ HttpApiKeyAuthLocation2["HEADER"] = "header";
+ HttpApiKeyAuthLocation2["QUERY"] = "query";
+ return HttpApiKeyAuthLocation2;
+})(HttpApiKeyAuthLocation || {});
+
+// src/endpoint.ts
+var EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => {
+ EndpointURLScheme2["HTTP"] = "http";
+ EndpointURLScheme2["HTTPS"] = "https";
+ return EndpointURLScheme2;
+})(EndpointURLScheme || {});
+
+// src/extensions/checksum.ts
+var AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => {
+ AlgorithmId2["MD5"] = "md5";
+ AlgorithmId2["CRC32"] = "crc32";
+ AlgorithmId2["CRC32C"] = "crc32c";
+ AlgorithmId2["SHA1"] = "sha1";
+ AlgorithmId2["SHA256"] = "sha256";
+ return AlgorithmId2;
+})(AlgorithmId || {});
+var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ const checksumAlgorithms = [];
+ if (runtimeConfig.sha256 !== void 0) {
+ checksumAlgorithms.push({
+ algorithmId: () => "sha256" /* SHA256 */,
+ checksumConstructor: () => runtimeConfig.sha256
+ });
+ }
+ if (runtimeConfig.md5 != void 0) {
+ checksumAlgorithms.push({
+ algorithmId: () => "md5" /* MD5 */,
+ checksumConstructor: () => runtimeConfig.md5
+ });
+ }
+ return {
+ addChecksumAlgorithm(algo) {
+ checksumAlgorithms.push(algo);
+ },
+ checksumAlgorithms() {
+ return checksumAlgorithms;
+ }
+ };
+}, "getChecksumConfiguration");
+var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
+ const runtimeConfig = {};
+ clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
+ runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
+ });
+ return runtimeConfig;
+}, "resolveChecksumRuntimeConfig");
+
+// src/extensions/defaultClientConfiguration.ts
+var getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
+ return getChecksumConfiguration(runtimeConfig);
+}, "getDefaultClientConfiguration");
+var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {
+ return resolveChecksumRuntimeConfig(config);
+}, "resolveDefaultRuntimeConfig");
+
+// src/http.ts
+var FieldPosition = /* @__PURE__ */ ((FieldPosition2) => {
+ FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
+ FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
+ return FieldPosition2;
+})(FieldPosition || {});
+
+// src/middleware.ts
+var SMITHY_CONTEXT_KEY = "__smithy_context";
+
+// src/profile.ts
+var IniSectionType = /* @__PURE__ */ ((IniSectionType2) => {
+ IniSectionType2["PROFILE"] = "profile";
+ IniSectionType2["SSO_SESSION"] = "sso-session";
+ IniSectionType2["SERVICES"] = "services";
+ return IniSectionType2;
+})(IniSectionType || {});
+
+// src/transfer.ts
+var RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => {
+ RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
+ RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
+ RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
+ return RequestHandlerProtocol2;
+})(RequestHandlerProtocol || {});
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 14681:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ parseUrl: () => parseUrl
+});
+module.exports = __toCommonJS(src_exports);
+var import_querystring_parser = __nccwpck_require__(4769);
+var parseUrl = /* @__PURE__ */ __name((url) => {
+ if (typeof url === "string") {
+ return parseUrl(new URL(url));
+ }
+ const { hostname, pathname, port, protocol, search } = url;
+ let query;
+ if (search) {
+ query = (0, import_querystring_parser.parseQueryString)(search);
+ }
+ return {
+ hostname,
+ port: port ? parseInt(port) : void 0,
+ protocol,
+ path: pathname,
+ query
+ };
+}, "parseUrl");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 30305:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.fromBase64 = void 0;
+const util_buffer_from_1 = __nccwpck_require__(31381);
+const BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;
+const fromBase64 = (input) => {
+ if ((input.length * 3) % 4 !== 0) {
+ throw new TypeError(`Incorrect padding on base64 string.`);
+ }
+ if (!BASE64_REGEX.exec(input)) {
+ throw new TypeError(`Invalid base64 string.`);
+ }
+ const buffer = (0, util_buffer_from_1.fromString)(input, "base64");
+ return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
+};
+exports.fromBase64 = fromBase64;
+
+
+/***/ }),
+
+/***/ 75600:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+module.exports = __toCommonJS(src_exports);
+__reExport(src_exports, __nccwpck_require__(30305), module.exports);
+__reExport(src_exports, __nccwpck_require__(74730), module.exports);
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 74730:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.toBase64 = void 0;
+const util_buffer_from_1 = __nccwpck_require__(31381);
+const util_utf8_1 = __nccwpck_require__(41895);
+const toBase64 = (_input) => {
+ let input;
+ if (typeof _input === "string") {
+ input = (0, util_utf8_1.fromUtf8)(_input);
+ }
+ else {
+ input = _input;
+ }
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
+ throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
+ }
+ return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64");
+};
+exports.toBase64 = toBase64;
+
+
+/***/ }),
+
+/***/ 68075:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ calculateBodyLength: () => calculateBodyLength
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/calculateBodyLength.ts
+var import_fs = __nccwpck_require__(57147);
+var calculateBodyLength = /* @__PURE__ */ __name((body) => {
+ if (!body) {
+ return 0;
+ }
+ if (typeof body === "string") {
+ return Buffer.byteLength(body);
+ } else if (typeof body.byteLength === "number") {
+ return body.byteLength;
+ } else if (typeof body.size === "number") {
+ return body.size;
+ } else if (typeof body.start === "number" && typeof body.end === "number") {
+ return body.end + 1 - body.start;
+ } else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) {
+ return (0, import_fs.lstatSync)(body.path).size;
+ } else if (typeof body.fd === "number") {
+ return (0, import_fs.fstatSync)(body.fd).size;
+ }
+ throw new Error(`Body Length computation failed for ${body}`);
+}, "calculateBodyLength");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 31381:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ fromArrayBuffer: () => fromArrayBuffer,
+ fromString: () => fromString
+});
+module.exports = __toCommonJS(src_exports);
+var import_is_array_buffer = __nccwpck_require__(10780);
+var import_buffer = __nccwpck_require__(14300);
+var fromArrayBuffer = /* @__PURE__ */ __name((input, offset = 0, length = input.byteLength - offset) => {
+ if (!(0, import_is_array_buffer.isArrayBuffer)(input)) {
+ throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
+ }
+ return import_buffer.Buffer.from(input, offset, length);
+}, "fromArrayBuffer");
+var fromString = /* @__PURE__ */ __name((input, encoding) => {
+ if (typeof input !== "string") {
+ throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
+ }
+ return encoding ? import_buffer.Buffer.from(input, encoding) : import_buffer.Buffer.from(input);
+}, "fromString");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 83375:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ SelectorType: () => SelectorType,
+ booleanSelector: () => booleanSelector,
+ numberSelector: () => numberSelector
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/booleanSelector.ts
+var booleanSelector = /* @__PURE__ */ __name((obj, key, type) => {
+ if (!(key in obj))
+ return void 0;
+ if (obj[key] === "true")
+ return true;
+ if (obj[key] === "false")
+ return false;
+ throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
+}, "booleanSelector");
+
+// src/numberSelector.ts
+var numberSelector = /* @__PURE__ */ __name((obj, key, type) => {
+ if (!(key in obj))
+ return void 0;
+ const numberValue = parseInt(obj[key], 10);
+ if (Number.isNaN(numberValue)) {
+ throw new TypeError(`Cannot load ${type} '${key}'. Expected number, got '${obj[key]}'.`);
+ }
+ return numberValue;
+}, "numberSelector");
+
+// src/types.ts
+var SelectorType = /* @__PURE__ */ ((SelectorType2) => {
+ SelectorType2["ENV"] = "env";
+ SelectorType2["CONFIG"] = "shared config entry";
+ return SelectorType2;
+})(SelectorType || {});
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 72429:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
+ // If the importer is in node compatibility mode or this is not an ESM
+ // file that has been converted to a CommonJS file using a Babel-
+ // compatible transform (i.e. "__esModule" has not been set), then set
+ // "default" to the CommonJS "module.exports" for node compatibility.
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
+ mod
+));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ resolveDefaultsModeConfig: () => resolveDefaultsModeConfig
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/resolveDefaultsModeConfig.ts
+var import_config_resolver = __nccwpck_require__(53098);
+var import_node_config_provider = __nccwpck_require__(33461);
+var import_property_provider = __nccwpck_require__(79721);
+
+// src/constants.ts
+var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
+var AWS_REGION_ENV = "AWS_REGION";
+var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
+var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
+var DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
+var IMDS_REGION_PATH = "/latest/meta-data/placement/region";
+
+// src/defaultsModeConfig.ts
+var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
+var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
+var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
+ environmentVariableSelector: (env) => {
+ return env[AWS_DEFAULTS_MODE_ENV];
+ },
+ configFileSelector: (profile) => {
+ return profile[AWS_DEFAULTS_MODE_CONFIG];
+ },
+ default: "legacy"
+};
+
+// src/resolveDefaultsModeConfig.ts
+var resolveDefaultsModeConfig = /* @__PURE__ */ __name(({
+ region = (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_REGION_CONFIG_OPTIONS),
+ defaultsMode = (0, import_node_config_provider.loadConfig)(NODE_DEFAULTS_MODE_CONFIG_OPTIONS)
+} = {}) => (0, import_property_provider.memoize)(async () => {
+ const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
+ switch (mode?.toLowerCase()) {
+ case "auto":
+ return resolveNodeDefaultsModeAuto(region);
+ case "in-region":
+ case "cross-region":
+ case "mobile":
+ case "standard":
+ case "legacy":
+ return Promise.resolve(mode?.toLocaleLowerCase());
+ case void 0:
+ return Promise.resolve("legacy");
+ default:
+ throw new Error(
+ `Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`
+ );
+ }
+}), "resolveDefaultsModeConfig");
+var resolveNodeDefaultsModeAuto = /* @__PURE__ */ __name(async (clientRegion) => {
+ if (clientRegion) {
+ const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion;
+ const inferredRegion = await inferPhysicalRegion();
+ if (!inferredRegion) {
+ return "standard";
+ }
+ if (resolvedRegion === inferredRegion) {
+ return "in-region";
+ } else {
+ return "cross-region";
+ }
+ }
+ return "standard";
+}, "resolveNodeDefaultsModeAuto");
+var inferPhysicalRegion = /* @__PURE__ */ __name(async () => {
+ if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) {
+ return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV];
+ }
+ if (!process.env[ENV_IMDS_DISABLED]) {
+ try {
+ const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(7477)));
+ const endpoint = await getInstanceMetadataEndpoint();
+ return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
+ } catch (e) {
+ }
+ }
+}, "inferPhysicalRegion");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 45473:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ EndpointCache: () => EndpointCache,
+ EndpointError: () => EndpointError,
+ customEndpointFunctions: () => customEndpointFunctions,
+ isIpAddress: () => isIpAddress,
+ isValidHostLabel: () => isValidHostLabel,
+ resolveEndpoint: () => resolveEndpoint
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/cache/EndpointCache.ts
+var EndpointCache = class {
+ /**
+ * @param [size] - desired average maximum capacity. A buffer of 10 additional keys will be allowed
+ * before keys are dropped.
+ * @param [params] - list of params to consider as part of the cache key.
+ *
+ * If the params list is not populated, no caching will happen.
+ * This may be out of order depending on how the object is created and arrives to this class.
+ */
+ constructor({ size, params }) {
+ this.data = /* @__PURE__ */ new Map();
+ this.parameters = [];
+ this.capacity = size ?? 50;
+ if (params) {
+ this.parameters = params;
+ }
+ }
+ static {
+ __name(this, "EndpointCache");
+ }
+ /**
+ * @param endpointParams - query for endpoint.
+ * @param resolver - provider of the value if not present.
+ * @returns endpoint corresponding to the query.
+ */
+ get(endpointParams, resolver) {
+ const key = this.hash(endpointParams);
+ if (key === false) {
+ return resolver();
+ }
+ if (!this.data.has(key)) {
+ if (this.data.size > this.capacity + 10) {
+ const keys = this.data.keys();
+ let i = 0;
+ while (true) {
+ const { value, done } = keys.next();
+ this.data.delete(value);
+ if (done || ++i > 10) {
+ break;
+ }
+ }
+ }
+ this.data.set(key, resolver());
+ }
+ return this.data.get(key);
+ }
+ size() {
+ return this.data.size;
+ }
+ /**
+ * @returns cache key or false if not cachable.
+ */
+ hash(endpointParams) {
+ let buffer = "";
+ const { parameters } = this;
+ if (parameters.length === 0) {
+ return false;
+ }
+ for (const param of parameters) {
+ const val = String(endpointParams[param] ?? "");
+ if (val.includes("|;")) {
+ return false;
+ }
+ buffer += val + "|;";
+ }
+ return buffer;
+ }
+};
+
+// src/lib/isIpAddress.ts
+var IP_V4_REGEX = new RegExp(
+ `^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`
+);
+var isIpAddress = /* @__PURE__ */ __name((value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]"), "isIpAddress");
+
+// src/lib/isValidHostLabel.ts
+var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
+var isValidHostLabel = /* @__PURE__ */ __name((value, allowSubDomains = false) => {
+ if (!allowSubDomains) {
+ return VALID_HOST_LABEL_REGEX.test(value);
+ }
+ const labels = value.split(".");
+ for (const label of labels) {
+ if (!isValidHostLabel(label)) {
+ return false;
+ }
+ }
+ return true;
+}, "isValidHostLabel");
+
+// src/utils/customEndpointFunctions.ts
+var customEndpointFunctions = {};
+
+// src/debug/debugId.ts
+var debugId = "endpoints";
+
+// src/debug/toDebugString.ts
+function toDebugString(input) {
+ if (typeof input !== "object" || input == null) {
+ return input;
+ }
+ if ("ref" in input) {
+ return `$${toDebugString(input.ref)}`;
+ }
+ if ("fn" in input) {
+ return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`;
+ }
+ return JSON.stringify(input, null, 2);
+}
+__name(toDebugString, "toDebugString");
+
+// src/types/EndpointError.ts
+var EndpointError = class extends Error {
+ static {
+ __name(this, "EndpointError");
+ }
+ constructor(message) {
+ super(message);
+ this.name = "EndpointError";
+ }
+};
+
+// src/lib/booleanEquals.ts
+var booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "booleanEquals");
+
+// src/lib/getAttrPathList.ts
+var getAttrPathList = /* @__PURE__ */ __name((path) => {
+ const parts = path.split(".");
+ const pathList = [];
+ for (const part of parts) {
+ const squareBracketIndex = part.indexOf("[");
+ if (squareBracketIndex !== -1) {
+ if (part.indexOf("]") !== part.length - 1) {
+ throw new EndpointError(`Path: '${path}' does not end with ']'`);
+ }
+ const arrayIndex = part.slice(squareBracketIndex + 1, -1);
+ if (Number.isNaN(parseInt(arrayIndex))) {
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`);
+ }
+ if (squareBracketIndex !== 0) {
+ pathList.push(part.slice(0, squareBracketIndex));
+ }
+ pathList.push(arrayIndex);
+ } else {
+ pathList.push(part);
+ }
+ }
+ return pathList;
+}, "getAttrPathList");
+
+// src/lib/getAttr.ts
+var getAttr = /* @__PURE__ */ __name((value, path) => getAttrPathList(path).reduce((acc, index) => {
+ if (typeof acc !== "object") {
+ throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
+ } else if (Array.isArray(acc)) {
+ return acc[parseInt(index)];
+ }
+ return acc[index];
+}, value), "getAttr");
+
+// src/lib/isSet.ts
+var isSet = /* @__PURE__ */ __name((value) => value != null, "isSet");
+
+// src/lib/not.ts
+var not = /* @__PURE__ */ __name((value) => !value, "not");
+
+// src/lib/parseURL.ts
+var import_types3 = __nccwpck_require__(55756);
+var DEFAULT_PORTS = {
+ [import_types3.EndpointURLScheme.HTTP]: 80,
+ [import_types3.EndpointURLScheme.HTTPS]: 443
+};
+var parseURL = /* @__PURE__ */ __name((value) => {
+ const whatwgURL = (() => {
+ try {
+ if (value instanceof URL) {
+ return value;
+ }
+ if (typeof value === "object" && "hostname" in value) {
+ const { hostname: hostname2, port, protocol: protocol2 = "", path = "", query = {} } = value;
+ const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path}`);
+ url.search = Object.entries(query).map(([k, v]) => `${k}=${v}`).join("&");
+ return url;
+ }
+ return new URL(value);
+ } catch (error) {
+ return null;
+ }
+ })();
+ if (!whatwgURL) {
+ console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`);
+ return null;
+ }
+ const urlString = whatwgURL.href;
+ const { host, hostname, pathname, protocol, search } = whatwgURL;
+ if (search) {
+ return null;
+ }
+ const scheme = protocol.slice(0, -1);
+ if (!Object.values(import_types3.EndpointURLScheme).includes(scheme)) {
+ return null;
+ }
+ const isIp = isIpAddress(hostname);
+ const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);
+ const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
+ return {
+ scheme,
+ authority,
+ path: pathname,
+ normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`,
+ isIp
+ };
+}, "parseURL");
+
+// src/lib/stringEquals.ts
+var stringEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "stringEquals");
+
+// src/lib/substring.ts
+var substring = /* @__PURE__ */ __name((input, start, stop, reverse) => {
+ if (start >= stop || input.length < stop) {
+ return null;
+ }
+ if (!reverse) {
+ return input.substring(start, stop);
+ }
+ return input.substring(input.length - stop, input.length - start);
+}, "substring");
+
+// src/lib/uriEncode.ts
+var uriEncode = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`), "uriEncode");
+
+// src/utils/endpointFunctions.ts
+var endpointFunctions = {
+ booleanEquals,
+ getAttr,
+ isSet,
+ isValidHostLabel,
+ not,
+ parseURL,
+ stringEquals,
+ substring,
+ uriEncode
+};
+
+// src/utils/evaluateTemplate.ts
+var evaluateTemplate = /* @__PURE__ */ __name((template, options) => {
+ const evaluatedTemplateArr = [];
+ const templateContext = {
+ ...options.endpointParams,
+ ...options.referenceRecord
+ };
+ let currentIndex = 0;
+ while (currentIndex < template.length) {
+ const openingBraceIndex = template.indexOf("{", currentIndex);
+ if (openingBraceIndex === -1) {
+ evaluatedTemplateArr.push(template.slice(currentIndex));
+ break;
+ }
+ evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex));
+ const closingBraceIndex = template.indexOf("}", openingBraceIndex);
+ if (closingBraceIndex === -1) {
+ evaluatedTemplateArr.push(template.slice(openingBraceIndex));
+ break;
+ }
+ if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") {
+ evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex));
+ currentIndex = closingBraceIndex + 2;
+ }
+ const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);
+ if (parameterName.includes("#")) {
+ const [refName, attrName] = parameterName.split("#");
+ evaluatedTemplateArr.push(getAttr(templateContext[refName], attrName));
+ } else {
+ evaluatedTemplateArr.push(templateContext[parameterName]);
+ }
+ currentIndex = closingBraceIndex + 1;
+ }
+ return evaluatedTemplateArr.join("");
+}, "evaluateTemplate");
+
+// src/utils/getReferenceValue.ts
+var getReferenceValue = /* @__PURE__ */ __name(({ ref }, options) => {
+ const referenceRecord = {
+ ...options.endpointParams,
+ ...options.referenceRecord
+ };
+ return referenceRecord[ref];
+}, "getReferenceValue");
+
+// src/utils/evaluateExpression.ts
+var evaluateExpression = /* @__PURE__ */ __name((obj, keyName, options) => {
+ if (typeof obj === "string") {
+ return evaluateTemplate(obj, options);
+ } else if (obj["fn"]) {
+ return callFunction(obj, options);
+ } else if (obj["ref"]) {
+ return getReferenceValue(obj, options);
+ }
+ throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
+}, "evaluateExpression");
+
+// src/utils/callFunction.ts
+var callFunction = /* @__PURE__ */ __name(({ fn, argv }, options) => {
+ const evaluatedArgs = argv.map(
+ (arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options)
+ );
+ const fnSegments = fn.split(".");
+ if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
+ return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
+ }
+ return endpointFunctions[fn](...evaluatedArgs);
+}, "callFunction");
+
+// src/utils/evaluateCondition.ts
+var evaluateCondition = /* @__PURE__ */ __name(({ assign, ...fnArgs }, options) => {
+ if (assign && assign in options.referenceRecord) {
+ throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
+ }
+ const value = callFunction(fnArgs, options);
+ options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
+ return {
+ result: value === "" ? true : !!value,
+ ...assign != null && { toAssign: { name: assign, value } }
+ };
+}, "evaluateCondition");
+
+// src/utils/evaluateConditions.ts
+var evaluateConditions = /* @__PURE__ */ __name((conditions = [], options) => {
+ const conditionsReferenceRecord = {};
+ for (const condition of conditions) {
+ const { result, toAssign } = evaluateCondition(condition, {
+ ...options,
+ referenceRecord: {
+ ...options.referenceRecord,
+ ...conditionsReferenceRecord
+ }
+ });
+ if (!result) {
+ return { result };
+ }
+ if (toAssign) {
+ conditionsReferenceRecord[toAssign.name] = toAssign.value;
+ options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`);
+ }
+ }
+ return { result: true, referenceRecord: conditionsReferenceRecord };
+}, "evaluateConditions");
+
+// src/utils/getEndpointHeaders.ts
+var getEndpointHeaders = /* @__PURE__ */ __name((headers, options) => Object.entries(headers).reduce(
+ (acc, [headerKey, headerVal]) => ({
+ ...acc,
+ [headerKey]: headerVal.map((headerValEntry) => {
+ const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
+ if (typeof processedExpr !== "string") {
+ throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
+ }
+ return processedExpr;
+ })
+ }),
+ {}
+), "getEndpointHeaders");
+
+// src/utils/getEndpointProperty.ts
+var getEndpointProperty = /* @__PURE__ */ __name((property, options) => {
+ if (Array.isArray(property)) {
+ return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
+ }
+ switch (typeof property) {
+ case "string":
+ return evaluateTemplate(property, options);
+ case "object":
+ if (property === null) {
+ throw new EndpointError(`Unexpected endpoint property: ${property}`);
+ }
+ return getEndpointProperties(property, options);
+ case "boolean":
+ return property;
+ default:
+ throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`);
+ }
+}, "getEndpointProperty");
+
+// src/utils/getEndpointProperties.ts
+var getEndpointProperties = /* @__PURE__ */ __name((properties, options) => Object.entries(properties).reduce(
+ (acc, [propertyKey, propertyVal]) => ({
+ ...acc,
+ [propertyKey]: getEndpointProperty(propertyVal, options)
+ }),
+ {}
+), "getEndpointProperties");
+
+// src/utils/getEndpointUrl.ts
+var getEndpointUrl = /* @__PURE__ */ __name((endpointUrl, options) => {
+ const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
+ if (typeof expression === "string") {
+ try {
+ return new URL(expression);
+ } catch (error) {
+ console.error(`Failed to construct URL with ${expression}`, error);
+ throw error;
+ }
+ }
+ throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
+}, "getEndpointUrl");
+
+// src/utils/evaluateEndpointRule.ts
+var evaluateEndpointRule = /* @__PURE__ */ __name((endpointRule, options) => {
+ const { conditions, endpoint } = endpointRule;
+ const { result, referenceRecord } = evaluateConditions(conditions, options);
+ if (!result) {
+ return;
+ }
+ const endpointRuleOptions = {
+ ...options,
+ referenceRecord: { ...options.referenceRecord, ...referenceRecord }
+ };
+ const { url, properties, headers } = endpoint;
+ options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`);
+ return {
+ ...headers != void 0 && {
+ headers: getEndpointHeaders(headers, endpointRuleOptions)
+ },
+ ...properties != void 0 && {
+ properties: getEndpointProperties(properties, endpointRuleOptions)
+ },
+ url: getEndpointUrl(url, endpointRuleOptions)
+ };
+}, "evaluateEndpointRule");
+
+// src/utils/evaluateErrorRule.ts
+var evaluateErrorRule = /* @__PURE__ */ __name((errorRule, options) => {
+ const { conditions, error } = errorRule;
+ const { result, referenceRecord } = evaluateConditions(conditions, options);
+ if (!result) {
+ return;
+ }
+ throw new EndpointError(
+ evaluateExpression(error, "Error", {
+ ...options,
+ referenceRecord: { ...options.referenceRecord, ...referenceRecord }
+ })
+ );
+}, "evaluateErrorRule");
+
+// src/utils/evaluateTreeRule.ts
+var evaluateTreeRule = /* @__PURE__ */ __name((treeRule, options) => {
+ const { conditions, rules } = treeRule;
+ const { result, referenceRecord } = evaluateConditions(conditions, options);
+ if (!result) {
+ return;
+ }
+ return evaluateRules(rules, {
+ ...options,
+ referenceRecord: { ...options.referenceRecord, ...referenceRecord }
+ });
+}, "evaluateTreeRule");
+
+// src/utils/evaluateRules.ts
+var evaluateRules = /* @__PURE__ */ __name((rules, options) => {
+ for (const rule of rules) {
+ if (rule.type === "endpoint") {
+ const endpointOrUndefined = evaluateEndpointRule(rule, options);
+ if (endpointOrUndefined) {
+ return endpointOrUndefined;
+ }
+ } else if (rule.type === "error") {
+ evaluateErrorRule(rule, options);
+ } else if (rule.type === "tree") {
+ const endpointOrUndefined = evaluateTreeRule(rule, options);
+ if (endpointOrUndefined) {
+ return endpointOrUndefined;
+ }
+ } else {
+ throw new EndpointError(`Unknown endpoint rule: ${rule}`);
+ }
+ }
+ throw new EndpointError(`Rules evaluation failed`);
+}, "evaluateRules");
+
+// src/resolveEndpoint.ts
+var resolveEndpoint = /* @__PURE__ */ __name((ruleSetObject, options) => {
+ const { endpointParams, logger } = options;
+ const { parameters, rules } = ruleSetObject;
+ options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
+ const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]);
+ if (paramsWithDefault.length > 0) {
+ for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
+ endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
+ }
+ }
+ const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k]) => k);
+ for (const requiredParam of requiredParams) {
+ if (endpointParams[requiredParam] == null) {
+ throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
+ }
+ }
+ const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });
+ options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
+ return endpoint;
+}, "resolveEndpoint");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 45364:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ fromHex: () => fromHex,
+ toHex: () => toHex
+});
+module.exports = __toCommonJS(src_exports);
+var SHORT_TO_HEX = {};
+var HEX_TO_SHORT = {};
+for (let i = 0; i < 256; i++) {
+ let encodedByte = i.toString(16).toLowerCase();
+ if (encodedByte.length === 1) {
+ encodedByte = `0${encodedByte}`;
+ }
+ SHORT_TO_HEX[i] = encodedByte;
+ HEX_TO_SHORT[encodedByte] = i;
+}
+function fromHex(encoded) {
+ if (encoded.length % 2 !== 0) {
+ throw new Error("Hex encoded strings must have an even number length");
+ }
+ const out = new Uint8Array(encoded.length / 2);
+ for (let i = 0; i < encoded.length; i += 2) {
+ const encodedByte = encoded.slice(i, i + 2).toLowerCase();
+ if (encodedByte in HEX_TO_SHORT) {
+ out[i / 2] = HEX_TO_SHORT[encodedByte];
+ } else {
+ throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`);
+ }
+ }
+ return out;
+}
+__name(fromHex, "fromHex");
+function toHex(bytes) {
+ let out = "";
+ for (let i = 0; i < bytes.byteLength; i++) {
+ out += SHORT_TO_HEX[bytes[i]];
+ }
+ return out;
+}
+__name(toHex, "toHex");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 2390:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ getSmithyContext: () => getSmithyContext,
+ normalizeProvider: () => normalizeProvider
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/getSmithyContext.ts
+var import_types = __nccwpck_require__(55756);
+var getSmithyContext = /* @__PURE__ */ __name((context) => context[import_types.SMITHY_CONTEXT_KEY] || (context[import_types.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext");
+
+// src/normalizeProvider.ts
+var normalizeProvider = /* @__PURE__ */ __name((input) => {
+ if (typeof input === "function")
+ return input;
+ const promisified = Promise.resolve(input);
+ return () => promisified;
+}, "normalizeProvider");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 84902:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ AdaptiveRetryStrategy: () => AdaptiveRetryStrategy,
+ ConfiguredRetryStrategy: () => ConfiguredRetryStrategy,
+ DEFAULT_MAX_ATTEMPTS: () => DEFAULT_MAX_ATTEMPTS,
+ DEFAULT_RETRY_DELAY_BASE: () => DEFAULT_RETRY_DELAY_BASE,
+ DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE,
+ DefaultRateLimiter: () => DefaultRateLimiter,
+ INITIAL_RETRY_TOKENS: () => INITIAL_RETRY_TOKENS,
+ INVOCATION_ID_HEADER: () => INVOCATION_ID_HEADER,
+ MAXIMUM_RETRY_DELAY: () => MAXIMUM_RETRY_DELAY,
+ NO_RETRY_INCREMENT: () => NO_RETRY_INCREMENT,
+ REQUEST_HEADER: () => REQUEST_HEADER,
+ RETRY_COST: () => RETRY_COST,
+ RETRY_MODES: () => RETRY_MODES,
+ StandardRetryStrategy: () => StandardRetryStrategy,
+ THROTTLING_RETRY_DELAY_BASE: () => THROTTLING_RETRY_DELAY_BASE,
+ TIMEOUT_RETRY_COST: () => TIMEOUT_RETRY_COST
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/config.ts
+var RETRY_MODES = /* @__PURE__ */ ((RETRY_MODES2) => {
+ RETRY_MODES2["STANDARD"] = "standard";
+ RETRY_MODES2["ADAPTIVE"] = "adaptive";
+ return RETRY_MODES2;
+})(RETRY_MODES || {});
+var DEFAULT_MAX_ATTEMPTS = 3;
+var DEFAULT_RETRY_MODE = "standard" /* STANDARD */;
+
+// src/DefaultRateLimiter.ts
+var import_service_error_classification = __nccwpck_require__(6375);
+var DefaultRateLimiter = class _DefaultRateLimiter {
+ constructor(options) {
+ // Pre-set state variables
+ this.currentCapacity = 0;
+ this.enabled = false;
+ this.lastMaxRate = 0;
+ this.measuredTxRate = 0;
+ this.requestCount = 0;
+ this.lastTimestamp = 0;
+ this.timeWindow = 0;
+ this.beta = options?.beta ?? 0.7;
+ this.minCapacity = options?.minCapacity ?? 1;
+ this.minFillRate = options?.minFillRate ?? 0.5;
+ this.scaleConstant = options?.scaleConstant ?? 0.4;
+ this.smooth = options?.smooth ?? 0.8;
+ const currentTimeInSeconds = this.getCurrentTimeInSeconds();
+ this.lastThrottleTime = currentTimeInSeconds;
+ this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds());
+ this.fillRate = this.minFillRate;
+ this.maxCapacity = this.minCapacity;
+ }
+ static {
+ __name(this, "DefaultRateLimiter");
+ }
+ static {
+ /**
+ * Only used in testing.
+ */
+ this.setTimeoutFn = setTimeout;
+ }
+ getCurrentTimeInSeconds() {
+ return Date.now() / 1e3;
+ }
+ async getSendToken() {
+ return this.acquireTokenBucket(1);
+ }
+ async acquireTokenBucket(amount) {
+ if (!this.enabled) {
+ return;
+ }
+ this.refillTokenBucket();
+ if (amount > this.currentCapacity) {
+ const delay = (amount - this.currentCapacity) / this.fillRate * 1e3;
+ await new Promise((resolve) => _DefaultRateLimiter.setTimeoutFn(resolve, delay));
+ }
+ this.currentCapacity = this.currentCapacity - amount;
+ }
+ refillTokenBucket() {
+ const timestamp = this.getCurrentTimeInSeconds();
+ if (!this.lastTimestamp) {
+ this.lastTimestamp = timestamp;
+ return;
+ }
+ const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate;
+ this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount);
+ this.lastTimestamp = timestamp;
+ }
+ updateClientSendingRate(response) {
+ let calculatedRate;
+ this.updateMeasuredRate();
+ if ((0, import_service_error_classification.isThrottlingError)(response)) {
+ const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
+ this.lastMaxRate = rateToUse;
+ this.calculateTimeWindow();
+ this.lastThrottleTime = this.getCurrentTimeInSeconds();
+ calculatedRate = this.cubicThrottle(rateToUse);
+ this.enableTokenBucket();
+ } else {
+ this.calculateTimeWindow();
+ calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds());
+ }
+ const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate);
+ this.updateTokenBucketRate(newRate);
+ }
+ calculateTimeWindow() {
+ this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3));
+ }
+ cubicThrottle(rateToUse) {
+ return this.getPrecise(rateToUse * this.beta);
+ }
+ cubicSuccess(timestamp) {
+ return this.getPrecise(
+ this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate
+ );
+ }
+ enableTokenBucket() {
+ this.enabled = true;
+ }
+ updateTokenBucketRate(newRate) {
+ this.refillTokenBucket();
+ this.fillRate = Math.max(newRate, this.minFillRate);
+ this.maxCapacity = Math.max(newRate, this.minCapacity);
+ this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity);
+ }
+ updateMeasuredRate() {
+ const t = this.getCurrentTimeInSeconds();
+ const timeBucket = Math.floor(t * 2) / 2;
+ this.requestCount++;
+ if (timeBucket > this.lastTxRateBucket) {
+ const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket);
+ this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth));
+ this.requestCount = 0;
+ this.lastTxRateBucket = timeBucket;
+ }
+ }
+ getPrecise(num) {
+ return parseFloat(num.toFixed(8));
+ }
+};
+
+// src/constants.ts
+var DEFAULT_RETRY_DELAY_BASE = 100;
+var MAXIMUM_RETRY_DELAY = 20 * 1e3;
+var THROTTLING_RETRY_DELAY_BASE = 500;
+var INITIAL_RETRY_TOKENS = 500;
+var RETRY_COST = 5;
+var TIMEOUT_RETRY_COST = 10;
+var NO_RETRY_INCREMENT = 1;
+var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
+var REQUEST_HEADER = "amz-sdk-request";
+
+// src/defaultRetryBackoffStrategy.ts
+var getDefaultRetryBackoffStrategy = /* @__PURE__ */ __name(() => {
+ let delayBase = DEFAULT_RETRY_DELAY_BASE;
+ const computeNextBackoffDelay = /* @__PURE__ */ __name((attempts) => {
+ return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));
+ }, "computeNextBackoffDelay");
+ const setDelayBase = /* @__PURE__ */ __name((delay) => {
+ delayBase = delay;
+ }, "setDelayBase");
+ return {
+ computeNextBackoffDelay,
+ setDelayBase
+ };
+}, "getDefaultRetryBackoffStrategy");
+
+// src/defaultRetryToken.ts
+var createDefaultRetryToken = /* @__PURE__ */ __name(({
+ retryDelay,
+ retryCount,
+ retryCost
+}) => {
+ const getRetryCount = /* @__PURE__ */ __name(() => retryCount, "getRetryCount");
+ const getRetryDelay = /* @__PURE__ */ __name(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), "getRetryDelay");
+ const getRetryCost = /* @__PURE__ */ __name(() => retryCost, "getRetryCost");
+ return {
+ getRetryCount,
+ getRetryDelay,
+ getRetryCost
+ };
+}, "createDefaultRetryToken");
+
+// src/StandardRetryStrategy.ts
+var StandardRetryStrategy = class {
+ constructor(maxAttempts) {
+ this.maxAttempts = maxAttempts;
+ this.mode = "standard" /* STANDARD */;
+ this.capacity = INITIAL_RETRY_TOKENS;
+ this.retryBackoffStrategy = getDefaultRetryBackoffStrategy();
+ this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts;
+ }
+ static {
+ __name(this, "StandardRetryStrategy");
+ }
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ async acquireInitialRetryToken(retryTokenScope) {
+ return createDefaultRetryToken({
+ retryDelay: DEFAULT_RETRY_DELAY_BASE,
+ retryCount: 0
+ });
+ }
+ async refreshRetryTokenForRetry(token, errorInfo) {
+ const maxAttempts = await this.getMaxAttempts();
+ if (this.shouldRetry(token, errorInfo, maxAttempts)) {
+ const errorType = errorInfo.errorType;
+ this.retryBackoffStrategy.setDelayBase(
+ errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE
+ );
+ const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount());
+ const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType;
+ const capacityCost = this.getCapacityCost(errorType);
+ this.capacity -= capacityCost;
+ return createDefaultRetryToken({
+ retryDelay,
+ retryCount: token.getRetryCount() + 1,
+ retryCost: capacityCost
+ });
+ }
+ throw new Error("No retry token available");
+ }
+ recordSuccess(token) {
+ this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT));
+ }
+ /**
+ * @returns the current available retry capacity.
+ *
+ * This number decreases when retries are executed and refills when requests or retries succeed.
+ */
+ getCapacity() {
+ return this.capacity;
+ }
+ async getMaxAttempts() {
+ try {
+ return await this.maxAttemptsProvider();
+ } catch (error) {
+ console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`);
+ return DEFAULT_MAX_ATTEMPTS;
+ }
+ }
+ shouldRetry(tokenToRenew, errorInfo, maxAttempts) {
+ const attempts = tokenToRenew.getRetryCount() + 1;
+ return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType);
+ }
+ getCapacityCost(errorType) {
+ return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST;
+ }
+ isRetryableError(errorType) {
+ return errorType === "THROTTLING" || errorType === "TRANSIENT";
+ }
+};
+
+// src/AdaptiveRetryStrategy.ts
+var AdaptiveRetryStrategy = class {
+ constructor(maxAttemptsProvider, options) {
+ this.maxAttemptsProvider = maxAttemptsProvider;
+ this.mode = "adaptive" /* ADAPTIVE */;
+ const { rateLimiter } = options ?? {};
+ this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
+ this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);
+ }
+ static {
+ __name(this, "AdaptiveRetryStrategy");
+ }
+ async acquireInitialRetryToken(retryTokenScope) {
+ await this.rateLimiter.getSendToken();
+ return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);
+ }
+ async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
+ this.rateLimiter.updateClientSendingRate(errorInfo);
+ return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
+ }
+ recordSuccess(token) {
+ this.rateLimiter.updateClientSendingRate({});
+ this.standardRetryStrategy.recordSuccess(token);
+ }
+};
+
+// src/ConfiguredRetryStrategy.ts
+var ConfiguredRetryStrategy = class extends StandardRetryStrategy {
+ static {
+ __name(this, "ConfiguredRetryStrategy");
+ }
+ /**
+ * @param maxAttempts - the maximum number of retry attempts allowed.
+ * e.g., if set to 3, then 4 total requests are possible.
+ * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt
+ * and returns the delay.
+ *
+ * @example exponential backoff.
+ * ```js
+ * new Client({
+ * retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2)
+ * });
+ * ```
+ * @example constant delay.
+ * ```js
+ * new Client({
+ * retryStrategy: new ConfiguredRetryStrategy(3, 2000)
+ * });
+ * ```
+ */
+ constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) {
+ super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts);
+ if (typeof computeNextBackoffDelay === "number") {
+ this.computeNextBackoffDelay = () => computeNextBackoffDelay;
+ } else {
+ this.computeNextBackoffDelay = computeNextBackoffDelay;
+ }
+ }
+ async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
+ const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
+ token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount());
+ return token;
+ }
+};
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 39361:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ByteArrayCollector = void 0;
+class ByteArrayCollector {
+ constructor(allocByteArray) {
+ this.allocByteArray = allocByteArray;
+ this.byteLength = 0;
+ this.byteArrays = [];
+ }
+ push(byteArray) {
+ this.byteArrays.push(byteArray);
+ this.byteLength += byteArray.byteLength;
+ }
+ flush() {
+ if (this.byteArrays.length === 1) {
+ const bytes = this.byteArrays[0];
+ this.reset();
+ return bytes;
+ }
+ const aggregation = this.allocByteArray(this.byteLength);
+ let cursor = 0;
+ for (let i = 0; i < this.byteArrays.length; ++i) {
+ const bytes = this.byteArrays[i];
+ aggregation.set(bytes, cursor);
+ cursor += bytes.byteLength;
+ }
+ this.reset();
+ return aggregation;
+ }
+ reset() {
+ this.byteArrays = [];
+ this.byteLength = 0;
+ }
+}
+exports.ByteArrayCollector = ByteArrayCollector;
+
+
+/***/ }),
+
+/***/ 78551:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ChecksumStream = void 0;
+const ReadableStreamRef = typeof ReadableStream === "function" ? ReadableStream : function () { };
+class ChecksumStream extends ReadableStreamRef {
+}
+exports.ChecksumStream = ChecksumStream;
+
+
+/***/ }),
+
+/***/ 6982:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ChecksumStream = void 0;
+const util_base64_1 = __nccwpck_require__(75600);
+const stream_1 = __nccwpck_require__(12781);
+class ChecksumStream extends stream_1.Duplex {
+ constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) {
+ var _a, _b;
+ super();
+ if (typeof source.pipe === "function") {
+ this.source = source;
+ }
+ else {
+ throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a = source === null || source === void 0 ? void 0 : source.constructor) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`);
+ }
+ this.base64Encoder = base64Encoder !== null && base64Encoder !== void 0 ? base64Encoder : util_base64_1.toBase64;
+ this.expectedChecksum = expectedChecksum;
+ this.checksum = checksum;
+ this.checksumSourceLocation = checksumSourceLocation;
+ this.source.pipe(this);
+ }
+ _read(size) { }
+ _write(chunk, encoding, callback) {
+ try {
+ this.checksum.update(chunk);
+ this.push(chunk);
+ }
+ catch (e) {
+ return callback(e);
+ }
+ return callback();
+ }
+ async _final(callback) {
+ try {
+ const digest = await this.checksum.digest();
+ const received = this.base64Encoder(digest);
+ if (this.expectedChecksum !== received) {
+ return callback(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}"` +
+ ` in response header "${this.checksumSourceLocation}".`));
+ }
+ }
+ catch (e) {
+ return callback(e);
+ }
+ this.push(null);
+ return callback();
+ }
+}
+exports.ChecksumStream = ChecksumStream;
+
+
+/***/ }),
+
+/***/ 72313:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createChecksumStream = void 0;
+const util_base64_1 = __nccwpck_require__(75600);
+const stream_type_check_1 = __nccwpck_require__(57578);
+const ChecksumStream_browser_1 = __nccwpck_require__(78551);
+const createChecksumStream = ({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) => {
+ var _a, _b;
+ if (!(0, stream_type_check_1.isReadableStream)(source)) {
+ throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a = source === null || source === void 0 ? void 0 : source.constructor) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`);
+ }
+ const encoder = base64Encoder !== null && base64Encoder !== void 0 ? base64Encoder : util_base64_1.toBase64;
+ if (typeof TransformStream !== "function") {
+ throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");
+ }
+ const transform = new TransformStream({
+ start() { },
+ async transform(chunk, controller) {
+ checksum.update(chunk);
+ controller.enqueue(chunk);
+ },
+ async flush(controller) {
+ const digest = await checksum.digest();
+ const received = encoder(digest);
+ if (expectedChecksum !== received) {
+ const error = new Error(`Checksum mismatch: expected "${expectedChecksum}" but received "${received}"` +
+ ` in response header "${checksumSourceLocation}".`);
+ controller.error(error);
+ }
+ else {
+ controller.terminate();
+ }
+ },
+ });
+ source.pipeThrough(transform);
+ const readable = transform.readable;
+ Object.setPrototypeOf(readable, ChecksumStream_browser_1.ChecksumStream.prototype);
+ return readable;
+};
+exports.createChecksumStream = createChecksumStream;
+
+
+/***/ }),
+
+/***/ 21927:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createChecksumStream = void 0;
+const stream_type_check_1 = __nccwpck_require__(57578);
+const ChecksumStream_1 = __nccwpck_require__(6982);
+const createChecksumStream_browser_1 = __nccwpck_require__(72313);
+function createChecksumStream(init) {
+ if (typeof ReadableStream === "function" && (0, stream_type_check_1.isReadableStream)(init.source)) {
+ return (0, createChecksumStream_browser_1.createChecksumStream)(init);
+ }
+ return new ChecksumStream_1.ChecksumStream(init);
+}
+exports.createChecksumStream = createChecksumStream;
+
+
+/***/ }),
+
+/***/ 33259:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.createBufferedReadable = void 0;
+const node_stream_1 = __nccwpck_require__(84492);
+const ByteArrayCollector_1 = __nccwpck_require__(39361);
+const createBufferedReadableStream_1 = __nccwpck_require__(92558);
+const stream_type_check_1 = __nccwpck_require__(57578);
+function createBufferedReadable(upstream, size, logger) {
+ if ((0, stream_type_check_1.isReadableStream)(upstream)) {
+ return (0, createBufferedReadableStream_1.createBufferedReadableStream)(upstream, size, logger);
+ }
+ const downstream = new node_stream_1.Readable({ read() { } });
+ let streamBufferingLoggedWarning = false;
+ let bytesSeen = 0;
+ const buffers = [
+ "",
+ new ByteArrayCollector_1.ByteArrayCollector((size) => new Uint8Array(size)),
+ new ByteArrayCollector_1.ByteArrayCollector((size) => Buffer.from(new Uint8Array(size))),
+ ];
+ let mode = -1;
+ upstream.on("data", (chunk) => {
+ const chunkMode = (0, createBufferedReadableStream_1.modeOf)(chunk, true);
+ if (mode !== chunkMode) {
+ if (mode >= 0) {
+ downstream.push((0, createBufferedReadableStream_1.flush)(buffers, mode));
+ }
+ mode = chunkMode;
+ }
+ if (mode === -1) {
+ downstream.push(chunk);
+ return;
+ }
+ const chunkSize = (0, createBufferedReadableStream_1.sizeOf)(chunk);
+ bytesSeen += chunkSize;
+ const bufferSize = (0, createBufferedReadableStream_1.sizeOf)(buffers[mode]);
+ if (chunkSize >= size && bufferSize === 0) {
+ downstream.push(chunk);
+ }
+ else {
+ const newSize = (0, createBufferedReadableStream_1.merge)(buffers, mode, chunk);
+ if (!streamBufferingLoggedWarning && bytesSeen > size * 2) {
+ streamBufferingLoggedWarning = true;
+ logger === null || logger === void 0 ? void 0 : logger.warn(`@smithy/util-stream - stream chunk size ${chunkSize} is below threshold of ${size}, automatically buffering.`);
+ }
+ if (newSize >= size) {
+ downstream.push((0, createBufferedReadableStream_1.flush)(buffers, mode));
+ }
+ }
+ });
+ upstream.on("end", () => {
+ if (mode !== -1) {
+ const remainder = (0, createBufferedReadableStream_1.flush)(buffers, mode);
+ if ((0, createBufferedReadableStream_1.sizeOf)(remainder) > 0) {
+ downstream.push(remainder);
+ }
+ }
+ downstream.push(null);
+ });
+ return downstream;
+}
+exports.createBufferedReadable = createBufferedReadable;
+
+
+/***/ }),
+
+/***/ 92558:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.modeOf = exports.sizeOf = exports.flush = exports.merge = exports.createBufferedReadable = exports.createBufferedReadableStream = void 0;
+const ByteArrayCollector_1 = __nccwpck_require__(39361);
+function createBufferedReadableStream(upstream, size, logger) {
+ const reader = upstream.getReader();
+ let streamBufferingLoggedWarning = false;
+ let bytesSeen = 0;
+ const buffers = ["", new ByteArrayCollector_1.ByteArrayCollector((size) => new Uint8Array(size))];
+ let mode = -1;
+ const pull = async (controller) => {
+ const { value, done } = await reader.read();
+ const chunk = value;
+ if (done) {
+ if (mode !== -1) {
+ const remainder = flush(buffers, mode);
+ if (sizeOf(remainder) > 0) {
+ controller.enqueue(remainder);
+ }
+ }
+ controller.close();
+ }
+ else {
+ const chunkMode = modeOf(chunk, false);
+ if (mode !== chunkMode) {
+ if (mode >= 0) {
+ controller.enqueue(flush(buffers, mode));
+ }
+ mode = chunkMode;
+ }
+ if (mode === -1) {
+ controller.enqueue(chunk);
+ return;
+ }
+ const chunkSize = sizeOf(chunk);
+ bytesSeen += chunkSize;
+ const bufferSize = sizeOf(buffers[mode]);
+ if (chunkSize >= size && bufferSize === 0) {
+ controller.enqueue(chunk);
+ }
+ else {
+ const newSize = merge(buffers, mode, chunk);
+ if (!streamBufferingLoggedWarning && bytesSeen > size * 2) {
+ streamBufferingLoggedWarning = true;
+ logger === null || logger === void 0 ? void 0 : logger.warn(`@smithy/util-stream - stream chunk size ${chunkSize} is below threshold of ${size}, automatically buffering.`);
+ }
+ if (newSize >= size) {
+ controller.enqueue(flush(buffers, mode));
+ }
+ else {
+ await pull(controller);
+ }
+ }
+ }
+ };
+ return new ReadableStream({
+ pull,
+ });
+}
+exports.createBufferedReadableStream = createBufferedReadableStream;
+exports.createBufferedReadable = createBufferedReadableStream;
+function merge(buffers, mode, chunk) {
+ switch (mode) {
+ case 0:
+ buffers[0] += chunk;
+ return sizeOf(buffers[0]);
+ case 1:
+ case 2:
+ buffers[mode].push(chunk);
+ return sizeOf(buffers[mode]);
+ }
+}
+exports.merge = merge;
+function flush(buffers, mode) {
+ switch (mode) {
+ case 0:
+ const s = buffers[0];
+ buffers[0] = "";
+ return s;
+ case 1:
+ case 2:
+ return buffers[mode].flush();
+ }
+ throw new Error(`@smithy/util-stream - invalid index ${mode} given to flush()`);
+}
+exports.flush = flush;
+function sizeOf(chunk) {
+ var _a, _b;
+ return (_b = (_a = chunk === null || chunk === void 0 ? void 0 : chunk.byteLength) !== null && _a !== void 0 ? _a : chunk === null || chunk === void 0 ? void 0 : chunk.length) !== null && _b !== void 0 ? _b : 0;
+}
+exports.sizeOf = sizeOf;
+function modeOf(chunk, allowBuffer = true) {
+ if (allowBuffer && typeof Buffer !== "undefined" && chunk instanceof Buffer) {
+ return 2;
+ }
+ if (chunk instanceof Uint8Array) {
+ return 1;
+ }
+ if (typeof chunk === "string") {
+ return 0;
+ }
+ return -1;
+}
+exports.modeOf = modeOf;
+
+
+/***/ }),
+
+/***/ 23636:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getAwsChunkedEncodingStream = void 0;
+const stream_1 = __nccwpck_require__(12781);
+const getAwsChunkedEncodingStream = (readableStream, options) => {
+ const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
+ const checksumRequired = base64Encoder !== undefined &&
+ checksumAlgorithmFn !== undefined &&
+ checksumLocationName !== undefined &&
+ streamHasher !== undefined;
+ const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
+ const awsChunkedEncodingStream = new stream_1.Readable({ read: () => { } });
+ readableStream.on("data", (data) => {
+ const length = bodyLengthChecker(data) || 0;
+ awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
+ awsChunkedEncodingStream.push(data);
+ awsChunkedEncodingStream.push("\r\n");
+ });
+ readableStream.on("end", async () => {
+ awsChunkedEncodingStream.push(`0\r\n`);
+ if (checksumRequired) {
+ const checksum = base64Encoder(await digest);
+ awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
+ awsChunkedEncodingStream.push(`\r\n`);
+ }
+ awsChunkedEncodingStream.push(null);
+ });
+ return awsChunkedEncodingStream;
+};
+exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
+
+
+/***/ }),
+
+/***/ 56711:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.headStream = void 0;
+async function headStream(stream, bytes) {
+ var _a;
+ let byteLengthCounter = 0;
+ const chunks = [];
+ const reader = stream.getReader();
+ let isDone = false;
+ while (!isDone) {
+ const { done, value } = await reader.read();
+ if (value) {
+ chunks.push(value);
+ byteLengthCounter += (_a = value === null || value === void 0 ? void 0 : value.byteLength) !== null && _a !== void 0 ? _a : 0;
+ }
+ if (byteLengthCounter >= bytes) {
+ break;
+ }
+ isDone = done;
+ }
+ reader.releaseLock();
+ const collected = new Uint8Array(Math.min(bytes, byteLengthCounter));
+ let offset = 0;
+ for (const chunk of chunks) {
+ if (chunk.byteLength > collected.byteLength - offset) {
+ collected.set(chunk.subarray(0, collected.byteLength - offset), offset);
+ break;
+ }
+ else {
+ collected.set(chunk, offset);
+ }
+ offset += chunk.length;
+ }
+ return collected;
+}
+exports.headStream = headStream;
+
+
+/***/ }),
+
+/***/ 6708:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.headStream = void 0;
+const stream_1 = __nccwpck_require__(12781);
+const headStream_browser_1 = __nccwpck_require__(56711);
+const stream_type_check_1 = __nccwpck_require__(57578);
+const headStream = (stream, bytes) => {
+ if ((0, stream_type_check_1.isReadableStream)(stream)) {
+ return (0, headStream_browser_1.headStream)(stream, bytes);
+ }
+ return new Promise((resolve, reject) => {
+ const collector = new Collector();
+ collector.limit = bytes;
+ stream.pipe(collector);
+ stream.on("error", (err) => {
+ collector.end();
+ reject(err);
+ });
+ collector.on("error", reject);
+ collector.on("finish", function () {
+ const bytes = new Uint8Array(Buffer.concat(this.buffers));
+ resolve(bytes);
+ });
+ });
+};
+exports.headStream = headStream;
+class Collector extends stream_1.Writable {
+ constructor() {
+ super(...arguments);
+ this.buffers = [];
+ this.limit = Infinity;
+ this.bytesBuffered = 0;
+ }
+ _write(chunk, encoding, callback) {
+ var _a;
+ this.buffers.push(chunk);
+ this.bytesBuffered += (_a = chunk.byteLength) !== null && _a !== void 0 ? _a : 0;
+ if (this.bytesBuffered >= this.limit) {
+ const excess = this.bytesBuffered - this.limit;
+ const tailBuffer = this.buffers[this.buffers.length - 1];
+ this.buffers[this.buffers.length - 1] = tailBuffer.subarray(0, tailBuffer.byteLength - excess);
+ this.emit("finish");
+ }
+ callback();
+ }
+}
+
+
+/***/ }),
+
+/***/ 96607:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ Uint8ArrayBlobAdapter: () => Uint8ArrayBlobAdapter
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/blob/transforms.ts
+var import_util_base64 = __nccwpck_require__(75600);
+var import_util_utf8 = __nccwpck_require__(41895);
+function transformToString(payload, encoding = "utf-8") {
+ if (encoding === "base64") {
+ return (0, import_util_base64.toBase64)(payload);
+ }
+ return (0, import_util_utf8.toUtf8)(payload);
+}
+__name(transformToString, "transformToString");
+function transformFromString(str, encoding) {
+ if (encoding === "base64") {
+ return Uint8ArrayBlobAdapter.mutate((0, import_util_base64.fromBase64)(str));
+ }
+ return Uint8ArrayBlobAdapter.mutate((0, import_util_utf8.fromUtf8)(str));
+}
+__name(transformFromString, "transformFromString");
+
+// src/blob/Uint8ArrayBlobAdapter.ts
+var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
+ static {
+ __name(this, "Uint8ArrayBlobAdapter");
+ }
+ /**
+ * @param source - such as a string or Stream.
+ * @returns a new Uint8ArrayBlobAdapter extending Uint8Array.
+ */
+ static fromString(source, encoding = "utf-8") {
+ switch (typeof source) {
+ case "string":
+ return transformFromString(source, encoding);
+ default:
+ throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
+ }
+ }
+ /**
+ * @param source - Uint8Array to be mutated.
+ * @returns the same Uint8Array but with prototype switched to Uint8ArrayBlobAdapter.
+ */
+ static mutate(source) {
+ Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
+ return source;
+ }
+ /**
+ * @param encoding - default 'utf-8'.
+ * @returns the blob as string.
+ */
+ transformToString(encoding = "utf-8") {
+ return transformToString(this, encoding);
+ }
+};
+
+// src/index.ts
+__reExport(src_exports, __nccwpck_require__(6982), module.exports);
+__reExport(src_exports, __nccwpck_require__(21927), module.exports);
+__reExport(src_exports, __nccwpck_require__(33259), module.exports);
+__reExport(src_exports, __nccwpck_require__(23636), module.exports);
+__reExport(src_exports, __nccwpck_require__(6708), module.exports);
+__reExport(src_exports, __nccwpck_require__(4515), module.exports);
+__reExport(src_exports, __nccwpck_require__(88321), module.exports);
+__reExport(src_exports, __nccwpck_require__(57578), module.exports);
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 12942:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.sdkStreamMixin = void 0;
+const fetch_http_handler_1 = __nccwpck_require__(82687);
+const util_base64_1 = __nccwpck_require__(75600);
+const util_hex_encoding_1 = __nccwpck_require__(45364);
+const util_utf8_1 = __nccwpck_require__(41895);
+const stream_type_check_1 = __nccwpck_require__(57578);
+const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
+const sdkStreamMixin = (stream) => {
+ var _a, _b;
+ if (!isBlobInstance(stream) && !(0, stream_type_check_1.isReadableStream)(stream)) {
+ const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream;
+ throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${name}`);
+ }
+ let transformed = false;
+ const transformToByteArray = async () => {
+ if (transformed) {
+ throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
+ }
+ transformed = true;
+ return await (0, fetch_http_handler_1.streamCollector)(stream);
+ };
+ const blobToWebStream = (blob) => {
+ if (typeof blob.stream !== "function") {
+ throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n" +
+ "If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");
+ }
+ return blob.stream();
+ };
+ return Object.assign(stream, {
+ transformToByteArray: transformToByteArray,
+ transformToString: async (encoding) => {
+ const buf = await transformToByteArray();
+ if (encoding === "base64") {
+ return (0, util_base64_1.toBase64)(buf);
+ }
+ else if (encoding === "hex") {
+ return (0, util_hex_encoding_1.toHex)(buf);
+ }
+ else if (encoding === undefined || encoding === "utf8" || encoding === "utf-8") {
+ return (0, util_utf8_1.toUtf8)(buf);
+ }
+ else if (typeof TextDecoder === "function") {
+ return new TextDecoder(encoding).decode(buf);
+ }
+ else {
+ throw new Error("TextDecoder is not available, please make sure polyfill is provided.");
+ }
+ },
+ transformToWebStream: () => {
+ if (transformed) {
+ throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
+ }
+ transformed = true;
+ if (isBlobInstance(stream)) {
+ return blobToWebStream(stream);
+ }
+ else if ((0, stream_type_check_1.isReadableStream)(stream)) {
+ return stream;
+ }
+ else {
+ throw new Error(`Cannot transform payload to web stream, got ${stream}`);
+ }
+ },
+ });
+};
+exports.sdkStreamMixin = sdkStreamMixin;
+const isBlobInstance = (stream) => typeof Blob === "function" && stream instanceof Blob;
+
+
+/***/ }),
+
+/***/ 4515:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.sdkStreamMixin = void 0;
+const node_http_handler_1 = __nccwpck_require__(20258);
+const util_buffer_from_1 = __nccwpck_require__(31381);
+const stream_1 = __nccwpck_require__(12781);
+const sdk_stream_mixin_browser_1 = __nccwpck_require__(12942);
+const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
+const sdkStreamMixin = (stream) => {
+ var _a, _b;
+ if (!(stream instanceof stream_1.Readable)) {
+ try {
+ return (0, sdk_stream_mixin_browser_1.sdkStreamMixin)(stream);
+ }
+ catch (e) {
+ const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream;
+ throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`);
+ }
+ }
+ let transformed = false;
+ const transformToByteArray = async () => {
+ if (transformed) {
+ throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
+ }
+ transformed = true;
+ return await (0, node_http_handler_1.streamCollector)(stream);
+ };
+ return Object.assign(stream, {
+ transformToByteArray,
+ transformToString: async (encoding) => {
+ const buf = await transformToByteArray();
+ if (encoding === undefined || Buffer.isEncoding(encoding)) {
+ return (0, util_buffer_from_1.fromArrayBuffer)(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding);
+ }
+ else {
+ const decoder = new TextDecoder(encoding);
+ return decoder.decode(buf);
+ }
+ },
+ transformToWebStream: () => {
+ if (transformed) {
+ throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
+ }
+ if (stream.readableFlowing !== null) {
+ throw new Error("The stream has been consumed by other callbacks.");
+ }
+ if (typeof stream_1.Readable.toWeb !== "function") {
+ throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");
+ }
+ transformed = true;
+ return stream_1.Readable.toWeb(stream);
+ },
+ });
+};
+exports.sdkStreamMixin = sdkStreamMixin;
+
+
+/***/ }),
+
+/***/ 64693:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.splitStream = void 0;
+async function splitStream(stream) {
+ if (typeof stream.stream === "function") {
+ stream = stream.stream();
+ }
+ const readableStream = stream;
+ return readableStream.tee();
+}
+exports.splitStream = splitStream;
+
+
+/***/ }),
+
+/***/ 88321:
+/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.splitStream = void 0;
+const stream_1 = __nccwpck_require__(12781);
+const splitStream_browser_1 = __nccwpck_require__(64693);
+const stream_type_check_1 = __nccwpck_require__(57578);
+async function splitStream(stream) {
+ if ((0, stream_type_check_1.isReadableStream)(stream) || (0, stream_type_check_1.isBlob)(stream)) {
+ return (0, splitStream_browser_1.splitStream)(stream);
+ }
+ const stream1 = new stream_1.PassThrough();
+ const stream2 = new stream_1.PassThrough();
+ stream.pipe(stream1);
+ stream.pipe(stream2);
+ return [stream1, stream2];
+}
+exports.splitStream = splitStream;
+
+
+/***/ }),
+
+/***/ 57578:
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.isBlob = exports.isReadableStream = void 0;
+const isReadableStream = (stream) => {
+ var _a;
+ return typeof ReadableStream === "function" &&
+ (((_a = stream === null || stream === void 0 ? void 0 : stream.constructor) === null || _a === void 0 ? void 0 : _a.name) === ReadableStream.name || stream instanceof ReadableStream);
+};
+exports.isReadableStream = isReadableStream;
+const isBlob = (blob) => {
+ var _a;
+ return typeof Blob === "function" && (((_a = blob === null || blob === void 0 ? void 0 : blob.constructor) === null || _a === void 0 ? void 0 : _a.name) === Blob.name || blob instanceof Blob);
+};
+exports.isBlob = isBlob;
+
+
+/***/ }),
+
+/***/ 54197:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ escapeUri: () => escapeUri,
+ escapeUriPath: () => escapeUriPath
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/escape-uri.ts
+var escapeUri = /* @__PURE__ */ __name((uri) => (
+ // AWS percent-encodes some extra non-standard characters in a URI
+ encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode)
+), "escapeUri");
+var hexEncode = /* @__PURE__ */ __name((c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`, "hexEncode");
+
+// src/escape-uri-path.ts
+var escapeUriPath = /* @__PURE__ */ __name((uri) => uri.split("/").map(escapeUri).join("/"), "escapeUriPath");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 41895:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ fromUtf8: () => fromUtf8,
+ toUint8Array: () => toUint8Array,
+ toUtf8: () => toUtf8
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/fromUtf8.ts
+var import_util_buffer_from = __nccwpck_require__(31381);
+var fromUtf8 = /* @__PURE__ */ __name((input) => {
+ const buf = (0, import_util_buffer_from.fromString)(input, "utf8");
+ return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
+}, "fromUtf8");
+
+// src/toUint8Array.ts
+var toUint8Array = /* @__PURE__ */ __name((data) => {
+ if (typeof data === "string") {
+ return fromUtf8(data);
+ }
+ if (ArrayBuffer.isView(data)) {
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
+ }
+ return new Uint8Array(data);
+}, "toUint8Array");
+
+// src/toUtf8.ts
+
+var toUtf8 = /* @__PURE__ */ __name((input) => {
+ if (typeof input === "string") {
+ return input;
+ }
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
+ }
+ return (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
+}, "toUtf8");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
+/***/ }),
+
+/***/ 78011:
+/***/ ((module) => {
+
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
+
+// src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ WaiterState: () => WaiterState,
+ checkExceptions: () => checkExceptions,
+ createWaiter: () => createWaiter,
+ waiterServiceDefaults: () => waiterServiceDefaults
+});
+module.exports = __toCommonJS(src_exports);
+
+// src/utils/sleep.ts
+var sleep = /* @__PURE__ */ __name((seconds) => {
+ return new Promise((resolve) => setTimeout(resolve, seconds * 1e3));
+}, "sleep");
+
+// src/waiter.ts
+var waiterServiceDefaults = {
+ minDelay: 2,
+ maxDelay: 120
+};
+var WaiterState = /* @__PURE__ */ ((WaiterState2) => {
+ WaiterState2["ABORTED"] = "ABORTED";
+ WaiterState2["FAILURE"] = "FAILURE";
+ WaiterState2["SUCCESS"] = "SUCCESS";
+ WaiterState2["RETRY"] = "RETRY";
+ WaiterState2["TIMEOUT"] = "TIMEOUT";
+ return WaiterState2;
+})(WaiterState || {});
+var checkExceptions = /* @__PURE__ */ __name((result) => {
+ if (result.state === "ABORTED" /* ABORTED */) {
+ const abortError = new Error(
+ `${JSON.stringify({
+ ...result,
+ reason: "Request was aborted"
+ })}`
+ );
+ abortError.name = "AbortError";
+ throw abortError;
+ } else if (result.state === "TIMEOUT" /* TIMEOUT */) {
+ const timeoutError = new Error(
+ `${JSON.stringify({
+ ...result,
+ reason: "Waiter has timed out"
+ })}`
+ );
+ timeoutError.name = "TimeoutError";
+ throw timeoutError;
+ } else if (result.state !== "SUCCESS" /* SUCCESS */) {
+ throw new Error(`${JSON.stringify(result)}`);
+ }
+ return result;
+}, "checkExceptions");
+
+// src/poller.ts
+var exponentialBackoffWithJitter = /* @__PURE__ */ __name((minDelay, maxDelay, attemptCeiling, attempt) => {
+ if (attempt > attemptCeiling)
+ return maxDelay;
+ const delay = minDelay * 2 ** (attempt - 1);
+ return randomInRange(minDelay, delay);
+}, "exponentialBackoffWithJitter");
+var randomInRange = /* @__PURE__ */ __name((min, max) => min + Math.random() * (max - min), "randomInRange");
+var runPolling = /* @__PURE__ */ __name(async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => {
+ const observedResponses = {};
+ const { state, reason } = await acceptorChecks(client, input);
+ if (reason) {
+ const message = createMessageFromResponse(reason);
+ observedResponses[message] |= 0;
+ observedResponses[message] += 1;
+ }
+ if (state !== "RETRY" /* RETRY */) {
+ return { state, reason, observedResponses };
+ }
+ let currentAttempt = 1;
+ const waitUntil = Date.now() + maxWaitTime * 1e3;
+ const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1;
+ while (true) {
+ if (abortController?.signal?.aborted || abortSignal?.aborted) {
+ const message = "AbortController signal aborted.";
+ observedResponses[message] |= 0;
+ observedResponses[message] += 1;
+ return { state: "ABORTED" /* ABORTED */, observedResponses };
+ }
+ const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt);
+ if (Date.now() + delay * 1e3 > waitUntil) {
+ return { state: "TIMEOUT" /* TIMEOUT */, observedResponses };
+ }
+ await sleep(delay);
+ const { state: state2, reason: reason2 } = await acceptorChecks(client, input);
+ if (reason2) {
+ const message = createMessageFromResponse(reason2);
+ observedResponses[message] |= 0;
+ observedResponses[message] += 1;
+ }
+ if (state2 !== "RETRY" /* RETRY */) {
+ return { state: state2, reason: reason2, observedResponses };
+ }
+ currentAttempt += 1;
+ }
+}, "runPolling");
+var createMessageFromResponse = /* @__PURE__ */ __name((reason) => {
+ if (reason?.$responseBodyText) {
+ return `Deserialization error for body: ${reason.$responseBodyText}`;
+ }
+ if (reason?.$metadata?.httpStatusCode) {
+ if (reason.$response || reason.message) {
+ return `${reason.$response.statusCode ?? reason.$metadata.httpStatusCode ?? "Unknown"}: ${reason.message}`;
+ }
+ return `${reason.$metadata.httpStatusCode}: OK`;
+ }
+ return String(reason?.message ?? JSON.stringify(reason) ?? "Unknown");
+}, "createMessageFromResponse");
+
+// src/utils/validate.ts
+var validateWaiterOptions = /* @__PURE__ */ __name((options) => {
+ if (options.maxWaitTime <= 0) {
+ throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`);
+ } else if (options.minDelay <= 0) {
+ throw new Error(`WaiterConfiguration.minDelay must be greater than 0`);
+ } else if (options.maxDelay <= 0) {
+ throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`);
+ } else if (options.maxWaitTime <= options.minDelay) {
+ throw new Error(
+ `WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`
+ );
+ } else if (options.maxDelay < options.minDelay) {
+ throw new Error(
+ `WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`
+ );
+ }
+}, "validateWaiterOptions");
+
+// src/createWaiter.ts
+var abortTimeout = /* @__PURE__ */ __name(async (abortSignal) => {
+ return new Promise((resolve) => {
+ const onAbort = /* @__PURE__ */ __name(() => resolve({ state: "ABORTED" /* ABORTED */ }), "onAbort");
+ if (typeof abortSignal.addEventListener === "function") {
+ abortSignal.addEventListener("abort", onAbort);
+ } else {
+ abortSignal.onabort = onAbort;
+ }
+ });
+}, "abortTimeout");
+var createWaiter = /* @__PURE__ */ __name(async (options, input, acceptorChecks) => {
+ const params = {
+ ...waiterServiceDefaults,
+ ...options
+ };
+ validateWaiterOptions(params);
+ const exitConditions = [runPolling(params, input, acceptorChecks)];
+ if (options.abortController) {
+ exitConditions.push(abortTimeout(options.abortController.signal));
+ }
+ if (options.abortSignal) {
+ exitConditions.push(abortTimeout(options.abortSignal));
+ }
+ return Promise.race(exitConditions);
+}, "createWaiter");
+// Annotate the CommonJS export names for ESM import in node:
+
+0 && (0);
+
+
+
/***/ }),
/***/ 61231:
@@ -193200,30141 +253096,6 @@ function descending(a, b)
}
-/***/ }),
-
-/***/ 20940:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['accessanalyzer'] = {};
-AWS.AccessAnalyzer = Service.defineService('accessanalyzer', ['2019-11-01']);
-Object.defineProperty(apiLoader.services['accessanalyzer'], '2019-11-01', {
- get: function get() {
- var model = __nccwpck_require__(30590);
- model.paginators = (__nccwpck_require__(63080)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AccessAnalyzer;
-
-
-/***/ }),
-
-/***/ 32400:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['account'] = {};
-AWS.Account = Service.defineService('account', ['2021-02-01']);
-Object.defineProperty(apiLoader.services['account'], '2021-02-01', {
- get: function get() {
- var model = __nccwpck_require__(36713);
- model.paginators = (__nccwpck_require__(52324)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Account;
-
-
-/***/ }),
-
-/***/ 30838:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['acm'] = {};
-AWS.ACM = Service.defineService('acm', ['2015-12-08']);
-Object.defineProperty(apiLoader.services['acm'], '2015-12-08', {
- get: function get() {
- var model = __nccwpck_require__(34662);
- model.paginators = (__nccwpck_require__(42680)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(85678)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ACM;
-
-
-/***/ }),
-
-/***/ 18450:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['acmpca'] = {};
-AWS.ACMPCA = Service.defineService('acmpca', ['2017-08-22']);
-Object.defineProperty(apiLoader.services['acmpca'], '2017-08-22', {
- get: function get() {
- var model = __nccwpck_require__(33004);
- model.paginators = (__nccwpck_require__(21209)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(89217)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ACMPCA;
-
-
-/***/ }),
-
-/***/ 14578:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['alexaforbusiness'] = {};
-AWS.AlexaForBusiness = Service.defineService('alexaforbusiness', ['2017-11-09']);
-Object.defineProperty(apiLoader.services['alexaforbusiness'], '2017-11-09', {
- get: function get() {
- var model = __nccwpck_require__(69786);
- model.paginators = (__nccwpck_require__(21009)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AlexaForBusiness;
-
-
-/***/ }),
-
-/***/ 26296:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-module.exports = {
- ACM: __nccwpck_require__(30838),
- APIGateway: __nccwpck_require__(91759),
- ApplicationAutoScaling: __nccwpck_require__(25598),
- AppStream: __nccwpck_require__(21730),
- AutoScaling: __nccwpck_require__(31652),
- Batch: __nccwpck_require__(10000),
- Budgets: __nccwpck_require__(43923),
- CloudDirectory: __nccwpck_require__(56231),
- CloudFormation: __nccwpck_require__(74643),
- CloudFront: __nccwpck_require__(48058),
- CloudHSM: __nccwpck_require__(59976),
- CloudSearch: __nccwpck_require__(72321),
- CloudSearchDomain: __nccwpck_require__(64072),
- CloudTrail: __nccwpck_require__(65512),
- CloudWatch: __nccwpck_require__(6763),
- CloudWatchEvents: __nccwpck_require__(38124),
- CloudWatchLogs: __nccwpck_require__(96693),
- CodeBuild: __nccwpck_require__(60450),
- CodeCommit: __nccwpck_require__(71323),
- CodeDeploy: __nccwpck_require__(54599),
- CodePipeline: __nccwpck_require__(22938),
- CognitoIdentity: __nccwpck_require__(58291),
- CognitoIdentityServiceProvider: __nccwpck_require__(31379),
- CognitoSync: __nccwpck_require__(74770),
- ConfigService: __nccwpck_require__(34061),
- CUR: __nccwpck_require__(5026),
- DataPipeline: __nccwpck_require__(65688),
- DeviceFarm: __nccwpck_require__(26272),
- DirectConnect: __nccwpck_require__(73783),
- DirectoryService: __nccwpck_require__(83908),
- Discovery: __nccwpck_require__(81690),
- DMS: __nccwpck_require__(69868),
- DynamoDB: __nccwpck_require__(14347),
- DynamoDBStreams: __nccwpck_require__(88090),
- EC2: __nccwpck_require__(7778),
- ECR: __nccwpck_require__(15211),
- ECS: __nccwpck_require__(16615),
- EFS: __nccwpck_require__(34375),
- ElastiCache: __nccwpck_require__(81065),
- ElasticBeanstalk: __nccwpck_require__(14897),
- ELB: __nccwpck_require__(10907),
- ELBv2: __nccwpck_require__(44311),
- EMR: __nccwpck_require__(50470),
- ES: __nccwpck_require__(84462),
- ElasticTranscoder: __nccwpck_require__(40745),
- Firehose: __nccwpck_require__(92831),
- GameLift: __nccwpck_require__(8085),
- Glacier: __nccwpck_require__(63249),
- Health: __nccwpck_require__(21834),
- IAM: __nccwpck_require__(50058),
- ImportExport: __nccwpck_require__(6769),
- Inspector: __nccwpck_require__(89439),
- Iot: __nccwpck_require__(98392),
- IotData: __nccwpck_require__(6564),
- Kinesis: __nccwpck_require__(49876),
- KinesisAnalytics: __nccwpck_require__(90042),
- KMS: __nccwpck_require__(56782),
- Lambda: __nccwpck_require__(13321),
- LexRuntime: __nccwpck_require__(62716),
- Lightsail: __nccwpck_require__(22718),
- MachineLearning: __nccwpck_require__(82907),
- MarketplaceCommerceAnalytics: __nccwpck_require__(4540),
- MarketplaceMetering: __nccwpck_require__(39297),
- MTurk: __nccwpck_require__(79954),
- MobileAnalytics: __nccwpck_require__(66690),
- OpsWorks: __nccwpck_require__(75691),
- OpsWorksCM: __nccwpck_require__(80388),
- Organizations: __nccwpck_require__(44670),
- Pinpoint: __nccwpck_require__(18388),
- Polly: __nccwpck_require__(97332),
- RDS: __nccwpck_require__(71578),
- Redshift: __nccwpck_require__(84853),
- Rekognition: __nccwpck_require__(65470),
- ResourceGroupsTaggingAPI: __nccwpck_require__(7385),
- Route53: __nccwpck_require__(44968),
- Route53Domains: __nccwpck_require__(51994),
- S3: __nccwpck_require__(83256),
- S3Control: __nccwpck_require__(99817),
- ServiceCatalog: __nccwpck_require__(822),
- SES: __nccwpck_require__(46816),
- Shield: __nccwpck_require__(20271),
- SimpleDB: __nccwpck_require__(10120),
- SMS: __nccwpck_require__(57719),
- Snowball: __nccwpck_require__(510),
- SNS: __nccwpck_require__(28581),
- SQS: __nccwpck_require__(63172),
- SSM: __nccwpck_require__(83380),
- StorageGateway: __nccwpck_require__(89190),
- StepFunctions: __nccwpck_require__(8136),
- STS: __nccwpck_require__(57513),
- Support: __nccwpck_require__(1099),
- SWF: __nccwpck_require__(32327),
- XRay: __nccwpck_require__(41548),
- WAF: __nccwpck_require__(72742),
- WAFRegional: __nccwpck_require__(23153),
- WorkDocs: __nccwpck_require__(38835),
- WorkSpaces: __nccwpck_require__(25513),
- CodeStar: __nccwpck_require__(98336),
- LexModelBuildingService: __nccwpck_require__(37397),
- MarketplaceEntitlementService: __nccwpck_require__(53707),
- Athena: __nccwpck_require__(29434),
- Greengrass: __nccwpck_require__(20690),
- DAX: __nccwpck_require__(71398),
- MigrationHub: __nccwpck_require__(14688),
- CloudHSMV2: __nccwpck_require__(70889),
- Glue: __nccwpck_require__(31658),
- Mobile: __nccwpck_require__(39782),
- Pricing: __nccwpck_require__(92765),
- CostExplorer: __nccwpck_require__(79523),
- MediaConvert: __nccwpck_require__(57220),
- MediaLive: __nccwpck_require__(7509),
- MediaPackage: __nccwpck_require__(91620),
- MediaStore: __nccwpck_require__(83748),
- MediaStoreData: __nccwpck_require__(98703),
- AppSync: __nccwpck_require__(12402),
- GuardDuty: __nccwpck_require__(40755),
- MQ: __nccwpck_require__(23093),
- Comprehend: __nccwpck_require__(62878),
- IoTJobsDataPlane: __nccwpck_require__(42332),
- KinesisVideoArchivedMedia: __nccwpck_require__(5580),
- KinesisVideoMedia: __nccwpck_require__(81308),
- KinesisVideo: __nccwpck_require__(89927),
- SageMakerRuntime: __nccwpck_require__(85044),
- SageMaker: __nccwpck_require__(77657),
- Translate: __nccwpck_require__(72544),
- ResourceGroups: __nccwpck_require__(58756),
- AlexaForBusiness: __nccwpck_require__(14578),
- Cloud9: __nccwpck_require__(85473),
- ServerlessApplicationRepository: __nccwpck_require__(62402),
- ServiceDiscovery: __nccwpck_require__(91569),
- WorkMail: __nccwpck_require__(38374),
- AutoScalingPlans: __nccwpck_require__(2554),
- TranscribeService: __nccwpck_require__(75811),
- Connect: __nccwpck_require__(13879),
- ACMPCA: __nccwpck_require__(18450),
- FMS: __nccwpck_require__(11316),
- SecretsManager: __nccwpck_require__(85131),
- IoTAnalytics: __nccwpck_require__(67409),
- IoT1ClickDevicesService: __nccwpck_require__(39474),
- IoT1ClickProjects: __nccwpck_require__(4686),
- PI: __nccwpck_require__(15505),
- Neptune: __nccwpck_require__(30047),
- MediaTailor: __nccwpck_require__(99658),
- EKS: __nccwpck_require__(23337),
- Macie: __nccwpck_require__(86427),
- DLM: __nccwpck_require__(24958),
- Signer: __nccwpck_require__(71596),
- Chime: __nccwpck_require__(84646),
- PinpointEmail: __nccwpck_require__(83060),
- RAM: __nccwpck_require__(94394),
- Route53Resolver: __nccwpck_require__(25894),
- PinpointSMSVoice: __nccwpck_require__(46605),
- QuickSight: __nccwpck_require__(29898),
- RDSDataService: __nccwpck_require__(30147),
- Amplify: __nccwpck_require__(38090),
- DataSync: __nccwpck_require__(25308),
- RoboMaker: __nccwpck_require__(18068),
- Transfer: __nccwpck_require__(51585),
- GlobalAccelerator: __nccwpck_require__(19306),
- ComprehendMedical: __nccwpck_require__(32349),
- KinesisAnalyticsV2: __nccwpck_require__(74631),
- MediaConnect: __nccwpck_require__(67639),
- FSx: __nccwpck_require__(60642),
- SecurityHub: __nccwpck_require__(21550),
- AppMesh: __nccwpck_require__(69226),
- LicenseManager: __nccwpck_require__(34693),
- Kafka: __nccwpck_require__(56775),
- ApiGatewayManagementApi: __nccwpck_require__(31762),
- ApiGatewayV2: __nccwpck_require__(44987),
- DocDB: __nccwpck_require__(55129),
- Backup: __nccwpck_require__(82455),
- WorkLink: __nccwpck_require__(48579),
- Textract: __nccwpck_require__(58523),
- ManagedBlockchain: __nccwpck_require__(85143),
- MediaPackageVod: __nccwpck_require__(14962),
- GroundStation: __nccwpck_require__(80494),
- IoTThingsGraph: __nccwpck_require__(58905),
- IoTEvents: __nccwpck_require__(88065),
- IoTEventsData: __nccwpck_require__(56973),
- Personalize: __nccwpck_require__(33696),
- PersonalizeEvents: __nccwpck_require__(88170),
- PersonalizeRuntime: __nccwpck_require__(66184),
- ApplicationInsights: __nccwpck_require__(83972),
- ServiceQuotas: __nccwpck_require__(57800),
- EC2InstanceConnect: __nccwpck_require__(92209),
- EventBridge: __nccwpck_require__(898),
- LakeFormation: __nccwpck_require__(6726),
- ForecastService: __nccwpck_require__(12942),
- ForecastQueryService: __nccwpck_require__(36822),
- QLDB: __nccwpck_require__(71266),
- QLDBSession: __nccwpck_require__(55423),
- WorkMailMessageFlow: __nccwpck_require__(67025),
- CodeStarNotifications: __nccwpck_require__(15141),
- SavingsPlans: __nccwpck_require__(62825),
- SSO: __nccwpck_require__(71096),
- SSOOIDC: __nccwpck_require__(49870),
- MarketplaceCatalog: __nccwpck_require__(2609),
- DataExchange: __nccwpck_require__(11024),
- SESV2: __nccwpck_require__(20142),
- MigrationHubConfig: __nccwpck_require__(62658),
- ConnectParticipant: __nccwpck_require__(94198),
- AppConfig: __nccwpck_require__(78606),
- IoTSecureTunneling: __nccwpck_require__(98562),
- WAFV2: __nccwpck_require__(50353),
- ElasticInference: __nccwpck_require__(37708),
- Imagebuilder: __nccwpck_require__(57511),
- Schemas: __nccwpck_require__(55713),
- AccessAnalyzer: __nccwpck_require__(20940),
- CodeGuruReviewer: __nccwpck_require__(60070),
- CodeGuruProfiler: __nccwpck_require__(65704),
- ComputeOptimizer: __nccwpck_require__(64459),
- FraudDetector: __nccwpck_require__(99830),
- Kendra: __nccwpck_require__(66122),
- NetworkManager: __nccwpck_require__(37610),
- Outposts: __nccwpck_require__(27551),
- AugmentedAIRuntime: __nccwpck_require__(33960),
- EBS: __nccwpck_require__(62837),
- KinesisVideoSignalingChannels: __nccwpck_require__(12710),
- Detective: __nccwpck_require__(60674),
- CodeStarconnections: __nccwpck_require__(78270),
- Synthetics: __nccwpck_require__(25910),
- IoTSiteWise: __nccwpck_require__(89690),
- Macie2: __nccwpck_require__(57330),
- CodeArtifact: __nccwpck_require__(91983),
- Honeycode: __nccwpck_require__(38889),
- IVS: __nccwpck_require__(67701),
- Braket: __nccwpck_require__(35429),
- IdentityStore: __nccwpck_require__(60222),
- Appflow: __nccwpck_require__(60844),
- RedshiftData: __nccwpck_require__(203),
- SSOAdmin: __nccwpck_require__(66644),
- TimestreamQuery: __nccwpck_require__(24529),
- TimestreamWrite: __nccwpck_require__(1573),
- S3Outposts: __nccwpck_require__(90493),
- DataBrew: __nccwpck_require__(35846),
- ServiceCatalogAppRegistry: __nccwpck_require__(79068),
- NetworkFirewall: __nccwpck_require__(84626),
- MWAA: __nccwpck_require__(32712),
- AmplifyBackend: __nccwpck_require__(2806),
- AppIntegrations: __nccwpck_require__(85479),
- ConnectContactLens: __nccwpck_require__(41847),
- DevOpsGuru: __nccwpck_require__(90673),
- ECRPUBLIC: __nccwpck_require__(90244),
- LookoutVision: __nccwpck_require__(65046),
- SageMakerFeatureStoreRuntime: __nccwpck_require__(67644),
- CustomerProfiles: __nccwpck_require__(28379),
- AuditManager: __nccwpck_require__(20472),
- EMRcontainers: __nccwpck_require__(49984),
- HealthLake: __nccwpck_require__(64254),
- SagemakerEdge: __nccwpck_require__(38966),
- Amp: __nccwpck_require__(96881),
- GreengrassV2: __nccwpck_require__(45126),
- IotDeviceAdvisor: __nccwpck_require__(97569),
- IoTFleetHub: __nccwpck_require__(42513),
- IoTWireless: __nccwpck_require__(8226),
- Location: __nccwpck_require__(44594),
- WellArchitected: __nccwpck_require__(86263),
- LexModelsV2: __nccwpck_require__(27254),
- LexRuntimeV2: __nccwpck_require__(33855),
- Fis: __nccwpck_require__(73003),
- LookoutMetrics: __nccwpck_require__(78708),
- Mgn: __nccwpck_require__(41339),
- LookoutEquipment: __nccwpck_require__(21843),
- Nimble: __nccwpck_require__(89428),
- Finspace: __nccwpck_require__(3052),
- Finspacedata: __nccwpck_require__(96869),
- SSMContacts: __nccwpck_require__(12577),
- SSMIncidents: __nccwpck_require__(20590),
- ApplicationCostProfiler: __nccwpck_require__(20887),
- AppRunner: __nccwpck_require__(75589),
- Proton: __nccwpck_require__(9275),
- Route53RecoveryCluster: __nccwpck_require__(35738),
- Route53RecoveryControlConfig: __nccwpck_require__(16063),
- Route53RecoveryReadiness: __nccwpck_require__(79106),
- ChimeSDKIdentity: __nccwpck_require__(55975),
- ChimeSDKMessaging: __nccwpck_require__(25255),
- SnowDeviceManagement: __nccwpck_require__(64655),
- MemoryDB: __nccwpck_require__(50782),
- OpenSearch: __nccwpck_require__(60358),
- KafkaConnect: __nccwpck_require__(61879),
- VoiceID: __nccwpck_require__(28747),
- Wisdom: __nccwpck_require__(85266),
- Account: __nccwpck_require__(32400),
- CloudControl: __nccwpck_require__(25630),
- Grafana: __nccwpck_require__(51050),
- Panorama: __nccwpck_require__(20368),
- ChimeSDKMeetings: __nccwpck_require__(80788),
- Resiliencehub: __nccwpck_require__(21173),
- MigrationHubStrategy: __nccwpck_require__(96533),
- AppConfigData: __nccwpck_require__(45282),
- Drs: __nccwpck_require__(41116),
- MigrationHubRefactorSpaces: __nccwpck_require__(2925),
- Evidently: __nccwpck_require__(21440),
- Inspector2: __nccwpck_require__(98650),
- Rbin: __nccwpck_require__(70145),
- RUM: __nccwpck_require__(53237),
- BackupGateway: __nccwpck_require__(68277),
- IoTTwinMaker: __nccwpck_require__(65010),
- WorkSpacesWeb: __nccwpck_require__(94124),
- AmplifyUIBuilder: __nccwpck_require__(89937),
- Keyspaces: __nccwpck_require__(24789),
- Billingconductor: __nccwpck_require__(38416),
- GameSparks: __nccwpck_require__(83025),
- PinpointSMSVoiceV2: __nccwpck_require__(478),
- Ivschat: __nccwpck_require__(17077),
- ChimeSDKMediaPipelines: __nccwpck_require__(18423),
- EMRServerless: __nccwpck_require__(219),
- M2: __nccwpck_require__(22482),
- ConnectCampaigns: __nccwpck_require__(42789),
- RedshiftServerless: __nccwpck_require__(29987),
- RolesAnywhere: __nccwpck_require__(83604),
- LicenseManagerUserSubscriptions: __nccwpck_require__(37725),
- BackupStorage: __nccwpck_require__(82304),
- PrivateNetworks: __nccwpck_require__(63088),
- SupportApp: __nccwpck_require__(51288),
- ControlTower: __nccwpck_require__(77574),
- IoTFleetWise: __nccwpck_require__(94329),
- MigrationHubOrchestrator: __nccwpck_require__(66120),
- ConnectCases: __nccwpck_require__(72223),
- ResourceExplorer2: __nccwpck_require__(74071),
- Scheduler: __nccwpck_require__(94840),
- ChimeSDKVoice: __nccwpck_require__(349),
- IoTRoboRunner: __nccwpck_require__(22163),
- SsmSap: __nccwpck_require__(44552),
- OAM: __nccwpck_require__(9319),
- ARCZonalShift: __nccwpck_require__(54280),
- Omics: __nccwpck_require__(75114),
- OpenSearchServerless: __nccwpck_require__(86277),
- SecurityLake: __nccwpck_require__(84296),
- SimSpaceWeaver: __nccwpck_require__(37090),
- DocDBElastic: __nccwpck_require__(20792),
- SageMakerGeospatial: __nccwpck_require__(4707),
- CodeCatalyst: __nccwpck_require__(19499),
- Pipes: __nccwpck_require__(14220),
- SageMakerMetrics: __nccwpck_require__(28199),
- KinesisVideoWebRTCStorage: __nccwpck_require__(52642),
- LicenseManagerLinuxSubscriptions: __nccwpck_require__(52687),
- KendraRanking: __nccwpck_require__(46255),
- CleanRooms: __nccwpck_require__(15130),
- CloudTrailData: __nccwpck_require__(31191),
- Tnb: __nccwpck_require__(15300),
- InternetMonitor: __nccwpck_require__(84099),
- IVSRealTime: __nccwpck_require__(51946),
- VPCLattice: __nccwpck_require__(78952),
- OSIS: __nccwpck_require__(98021),
- MediaPackageV2: __nccwpck_require__(53264),
- PaymentCryptography: __nccwpck_require__(11594),
- PaymentCryptographyData: __nccwpck_require__(96559),
- CodeGuruSecurity: __nccwpck_require__(32620),
- VerifiedPermissions: __nccwpck_require__(35604),
- AppFabric: __nccwpck_require__(46318),
- MedicalImaging: __nccwpck_require__(79712),
- EntityResolution: __nccwpck_require__(22697),
- ManagedBlockchainQuery: __nccwpck_require__(51046)
-};
-
-/***/ }),
-
-/***/ 96881:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['amp'] = {};
-AWS.Amp = Service.defineService('amp', ['2020-08-01']);
-Object.defineProperty(apiLoader.services['amp'], '2020-08-01', {
- get: function get() {
- var model = __nccwpck_require__(78362);
- model.paginators = (__nccwpck_require__(75928)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(58239)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Amp;
-
-
-/***/ }),
-
-/***/ 38090:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['amplify'] = {};
-AWS.Amplify = Service.defineService('amplify', ['2017-07-25']);
-Object.defineProperty(apiLoader.services['amplify'], '2017-07-25', {
- get: function get() {
- var model = __nccwpck_require__(36813);
- model.paginators = (__nccwpck_require__(53733)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Amplify;
-
-
-/***/ }),
-
-/***/ 2806:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['amplifybackend'] = {};
-AWS.AmplifyBackend = Service.defineService('amplifybackend', ['2020-08-11']);
-Object.defineProperty(apiLoader.services['amplifybackend'], '2020-08-11', {
- get: function get() {
- var model = __nccwpck_require__(23939);
- model.paginators = (__nccwpck_require__(27232)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AmplifyBackend;
-
-
-/***/ }),
-
-/***/ 89937:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['amplifyuibuilder'] = {};
-AWS.AmplifyUIBuilder = Service.defineService('amplifyuibuilder', ['2021-08-11']);
-Object.defineProperty(apiLoader.services['amplifyuibuilder'], '2021-08-11', {
- get: function get() {
- var model = __nccwpck_require__(48987);
- model.paginators = (__nccwpck_require__(56072)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(70564)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AmplifyUIBuilder;
-
-
-/***/ }),
-
-/***/ 91759:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['apigateway'] = {};
-AWS.APIGateway = Service.defineService('apigateway', ['2015-07-09']);
-__nccwpck_require__(4338);
-Object.defineProperty(apiLoader.services['apigateway'], '2015-07-09', {
- get: function get() {
- var model = __nccwpck_require__(59463);
- model.paginators = (__nccwpck_require__(25878)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.APIGateway;
-
-
-/***/ }),
-
-/***/ 31762:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['apigatewaymanagementapi'] = {};
-AWS.ApiGatewayManagementApi = Service.defineService('apigatewaymanagementapi', ['2018-11-29']);
-Object.defineProperty(apiLoader.services['apigatewaymanagementapi'], '2018-11-29', {
- get: function get() {
- var model = __nccwpck_require__(57832);
- model.paginators = (__nccwpck_require__(2787)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ApiGatewayManagementApi;
-
-
-/***/ }),
-
-/***/ 44987:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['apigatewayv2'] = {};
-AWS.ApiGatewayV2 = Service.defineService('apigatewayv2', ['2018-11-29']);
-Object.defineProperty(apiLoader.services['apigatewayv2'], '2018-11-29', {
- get: function get() {
- var model = __nccwpck_require__(59326);
- model.paginators = (__nccwpck_require__(90171)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ApiGatewayV2;
-
-
-/***/ }),
-
-/***/ 78606:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['appconfig'] = {};
-AWS.AppConfig = Service.defineService('appconfig', ['2019-10-09']);
-Object.defineProperty(apiLoader.services['appconfig'], '2019-10-09', {
- get: function get() {
- var model = __nccwpck_require__(44701);
- model.paginators = (__nccwpck_require__(41789)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AppConfig;
-
-
-/***/ }),
-
-/***/ 45282:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['appconfigdata'] = {};
-AWS.AppConfigData = Service.defineService('appconfigdata', ['2021-11-11']);
-Object.defineProperty(apiLoader.services['appconfigdata'], '2021-11-11', {
- get: function get() {
- var model = __nccwpck_require__(86796);
- model.paginators = (__nccwpck_require__(48010)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AppConfigData;
-
-
-/***/ }),
-
-/***/ 46318:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['appfabric'] = {};
-AWS.AppFabric = Service.defineService('appfabric', ['2023-05-19']);
-Object.defineProperty(apiLoader.services['appfabric'], '2023-05-19', {
- get: function get() {
- var model = __nccwpck_require__(78267);
- model.paginators = (__nccwpck_require__(42193)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(44821)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AppFabric;
-
-
-/***/ }),
-
-/***/ 60844:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['appflow'] = {};
-AWS.Appflow = Service.defineService('appflow', ['2020-08-23']);
-Object.defineProperty(apiLoader.services['appflow'], '2020-08-23', {
- get: function get() {
- var model = __nccwpck_require__(32840);
- model.paginators = (__nccwpck_require__(16916)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Appflow;
-
-
-/***/ }),
-
-/***/ 85479:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['appintegrations'] = {};
-AWS.AppIntegrations = Service.defineService('appintegrations', ['2020-07-29']);
-Object.defineProperty(apiLoader.services['appintegrations'], '2020-07-29', {
- get: function get() {
- var model = __nccwpck_require__(62033);
- model.paginators = (__nccwpck_require__(61866)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AppIntegrations;
-
-
-/***/ }),
-
-/***/ 25598:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['applicationautoscaling'] = {};
-AWS.ApplicationAutoScaling = Service.defineService('applicationautoscaling', ['2016-02-06']);
-Object.defineProperty(apiLoader.services['applicationautoscaling'], '2016-02-06', {
- get: function get() {
- var model = __nccwpck_require__(47320);
- model.paginators = (__nccwpck_require__(40322)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ApplicationAutoScaling;
-
-
-/***/ }),
-
-/***/ 20887:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['applicationcostprofiler'] = {};
-AWS.ApplicationCostProfiler = Service.defineService('applicationcostprofiler', ['2020-09-10']);
-Object.defineProperty(apiLoader.services['applicationcostprofiler'], '2020-09-10', {
- get: function get() {
- var model = __nccwpck_require__(96818);
- model.paginators = (__nccwpck_require__(41331)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ApplicationCostProfiler;
-
-
-/***/ }),
-
-/***/ 83972:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['applicationinsights'] = {};
-AWS.ApplicationInsights = Service.defineService('applicationinsights', ['2018-11-25']);
-Object.defineProperty(apiLoader.services['applicationinsights'], '2018-11-25', {
- get: function get() {
- var model = __nccwpck_require__(96143);
- model.paginators = (__nccwpck_require__(22242)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ApplicationInsights;
-
-
-/***/ }),
-
-/***/ 69226:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['appmesh'] = {};
-AWS.AppMesh = Service.defineService('appmesh', ['2018-10-01', '2018-10-01*', '2019-01-25']);
-Object.defineProperty(apiLoader.services['appmesh'], '2018-10-01', {
- get: function get() {
- var model = __nccwpck_require__(64780);
- model.paginators = (__nccwpck_require__(54936)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['appmesh'], '2019-01-25', {
- get: function get() {
- var model = __nccwpck_require__(78066);
- model.paginators = (__nccwpck_require__(37698)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AppMesh;
-
-
-/***/ }),
-
-/***/ 75589:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['apprunner'] = {};
-AWS.AppRunner = Service.defineService('apprunner', ['2020-05-15']);
-Object.defineProperty(apiLoader.services['apprunner'], '2020-05-15', {
- get: function get() {
- var model = __nccwpck_require__(30036);
- model.paginators = (__nccwpck_require__(50293)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AppRunner;
-
-
-/***/ }),
-
-/***/ 21730:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['appstream'] = {};
-AWS.AppStream = Service.defineService('appstream', ['2016-12-01']);
-Object.defineProperty(apiLoader.services['appstream'], '2016-12-01', {
- get: function get() {
- var model = __nccwpck_require__(85538);
- model.paginators = (__nccwpck_require__(32191)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(21134)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AppStream;
-
-
-/***/ }),
-
-/***/ 12402:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['appsync'] = {};
-AWS.AppSync = Service.defineService('appsync', ['2017-07-25']);
-Object.defineProperty(apiLoader.services['appsync'], '2017-07-25', {
- get: function get() {
- var model = __nccwpck_require__(94937);
- model.paginators = (__nccwpck_require__(50233)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AppSync;
-
-
-/***/ }),
-
-/***/ 54280:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['arczonalshift'] = {};
-AWS.ARCZonalShift = Service.defineService('arczonalshift', ['2022-10-30']);
-Object.defineProperty(apiLoader.services['arczonalshift'], '2022-10-30', {
- get: function get() {
- var model = __nccwpck_require__(52286);
- model.paginators = (__nccwpck_require__(70002)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ARCZonalShift;
-
-
-/***/ }),
-
-/***/ 29434:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['athena'] = {};
-AWS.Athena = Service.defineService('athena', ['2017-05-18']);
-Object.defineProperty(apiLoader.services['athena'], '2017-05-18', {
- get: function get() {
- var model = __nccwpck_require__(28680);
- model.paginators = (__nccwpck_require__(44417)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Athena;
-
-
-/***/ }),
-
-/***/ 20472:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['auditmanager'] = {};
-AWS.AuditManager = Service.defineService('auditmanager', ['2017-07-25']);
-Object.defineProperty(apiLoader.services['auditmanager'], '2017-07-25', {
- get: function get() {
- var model = __nccwpck_require__(41672);
- model.paginators = (__nccwpck_require__(41321)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AuditManager;
-
-
-/***/ }),
-
-/***/ 33960:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['augmentedairuntime'] = {};
-AWS.AugmentedAIRuntime = Service.defineService('augmentedairuntime', ['2019-11-07']);
-Object.defineProperty(apiLoader.services['augmentedairuntime'], '2019-11-07', {
- get: function get() {
- var model = __nccwpck_require__(57704);
- model.paginators = (__nccwpck_require__(13201)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AugmentedAIRuntime;
-
-
-/***/ }),
-
-/***/ 31652:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['autoscaling'] = {};
-AWS.AutoScaling = Service.defineService('autoscaling', ['2011-01-01']);
-Object.defineProperty(apiLoader.services['autoscaling'], '2011-01-01', {
- get: function get() {
- var model = __nccwpck_require__(55394);
- model.paginators = (__nccwpck_require__(81436)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AutoScaling;
-
-
-/***/ }),
-
-/***/ 2554:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['autoscalingplans'] = {};
-AWS.AutoScalingPlans = Service.defineService('autoscalingplans', ['2018-01-06']);
-Object.defineProperty(apiLoader.services['autoscalingplans'], '2018-01-06', {
- get: function get() {
- var model = __nccwpck_require__(53216);
- model.paginators = (__nccwpck_require__(64985)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.AutoScalingPlans;
-
-
-/***/ }),
-
-/***/ 82455:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['backup'] = {};
-AWS.Backup = Service.defineService('backup', ['2018-11-15']);
-Object.defineProperty(apiLoader.services['backup'], '2018-11-15', {
- get: function get() {
- var model = __nccwpck_require__(77990);
- model.paginators = (__nccwpck_require__(54869)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Backup;
-
-
-/***/ }),
-
-/***/ 68277:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['backupgateway'] = {};
-AWS.BackupGateway = Service.defineService('backupgateway', ['2021-01-01']);
-Object.defineProperty(apiLoader.services['backupgateway'], '2021-01-01', {
- get: function get() {
- var model = __nccwpck_require__(96863);
- model.paginators = (__nccwpck_require__(34946)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.BackupGateway;
-
-
-/***/ }),
-
-/***/ 82304:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['backupstorage'] = {};
-AWS.BackupStorage = Service.defineService('backupstorage', ['2018-04-10']);
-Object.defineProperty(apiLoader.services['backupstorage'], '2018-04-10', {
- get: function get() {
- var model = __nccwpck_require__(97436);
- model.paginators = (__nccwpck_require__(73644)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.BackupStorage;
-
-
-/***/ }),
-
-/***/ 10000:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['batch'] = {};
-AWS.Batch = Service.defineService('batch', ['2016-08-10']);
-Object.defineProperty(apiLoader.services['batch'], '2016-08-10', {
- get: function get() {
- var model = __nccwpck_require__(12617);
- model.paginators = (__nccwpck_require__(36988)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Batch;
-
-
-/***/ }),
-
-/***/ 38416:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['billingconductor'] = {};
-AWS.Billingconductor = Service.defineService('billingconductor', ['2021-07-30']);
-Object.defineProperty(apiLoader.services['billingconductor'], '2021-07-30', {
- get: function get() {
- var model = __nccwpck_require__(54862);
- model.paginators = (__nccwpck_require__(97894)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(64224)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Billingconductor;
-
-
-/***/ }),
-
-/***/ 35429:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['braket'] = {};
-AWS.Braket = Service.defineService('braket', ['2019-09-01']);
-Object.defineProperty(apiLoader.services['braket'], '2019-09-01', {
- get: function get() {
- var model = __nccwpck_require__(23332);
- model.paginators = (__nccwpck_require__(15732)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Braket;
-
-
-/***/ }),
-
-/***/ 43923:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['budgets'] = {};
-AWS.Budgets = Service.defineService('budgets', ['2016-10-20']);
-Object.defineProperty(apiLoader.services['budgets'], '2016-10-20', {
- get: function get() {
- var model = __nccwpck_require__(11978);
- model.paginators = (__nccwpck_require__(23694)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Budgets;
-
-
-/***/ }),
-
-/***/ 84646:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['chime'] = {};
-AWS.Chime = Service.defineService('chime', ['2018-05-01']);
-Object.defineProperty(apiLoader.services['chime'], '2018-05-01', {
- get: function get() {
- var model = __nccwpck_require__(44811);
- model.paginators = (__nccwpck_require__(31890)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Chime;
-
-
-/***/ }),
-
-/***/ 55975:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['chimesdkidentity'] = {};
-AWS.ChimeSDKIdentity = Service.defineService('chimesdkidentity', ['2021-04-20']);
-Object.defineProperty(apiLoader.services['chimesdkidentity'], '2021-04-20', {
- get: function get() {
- var model = __nccwpck_require__(97402);
- model.paginators = (__nccwpck_require__(133)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ChimeSDKIdentity;
-
-
-/***/ }),
-
-/***/ 18423:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['chimesdkmediapipelines'] = {};
-AWS.ChimeSDKMediaPipelines = Service.defineService('chimesdkmediapipelines', ['2021-07-15']);
-Object.defineProperty(apiLoader.services['chimesdkmediapipelines'], '2021-07-15', {
- get: function get() {
- var model = __nccwpck_require__(14679);
- model.paginators = (__nccwpck_require__(82201)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ChimeSDKMediaPipelines;
-
-
-/***/ }),
-
-/***/ 80788:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['chimesdkmeetings'] = {};
-AWS.ChimeSDKMeetings = Service.defineService('chimesdkmeetings', ['2021-07-15']);
-Object.defineProperty(apiLoader.services['chimesdkmeetings'], '2021-07-15', {
- get: function get() {
- var model = __nccwpck_require__(17090);
- model.paginators = (__nccwpck_require__(70582)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ChimeSDKMeetings;
-
-
-/***/ }),
-
-/***/ 25255:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['chimesdkmessaging'] = {};
-AWS.ChimeSDKMessaging = Service.defineService('chimesdkmessaging', ['2021-05-15']);
-Object.defineProperty(apiLoader.services['chimesdkmessaging'], '2021-05-15', {
- get: function get() {
- var model = __nccwpck_require__(52239);
- model.paginators = (__nccwpck_require__(60807)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ChimeSDKMessaging;
-
-
-/***/ }),
-
-/***/ 349:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['chimesdkvoice'] = {};
-AWS.ChimeSDKVoice = Service.defineService('chimesdkvoice', ['2022-08-03']);
-Object.defineProperty(apiLoader.services['chimesdkvoice'], '2022-08-03', {
- get: function get() {
- var model = __nccwpck_require__(26420);
- model.paginators = (__nccwpck_require__(7986)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ChimeSDKVoice;
-
-
-/***/ }),
-
-/***/ 15130:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cleanrooms'] = {};
-AWS.CleanRooms = Service.defineService('cleanrooms', ['2022-02-17']);
-Object.defineProperty(apiLoader.services['cleanrooms'], '2022-02-17', {
- get: function get() {
- var model = __nccwpck_require__(11585);
- model.paginators = (__nccwpck_require__(73060)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(29284)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CleanRooms;
-
-
-/***/ }),
-
-/***/ 85473:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloud9'] = {};
-AWS.Cloud9 = Service.defineService('cloud9', ['2017-09-23']);
-Object.defineProperty(apiLoader.services['cloud9'], '2017-09-23', {
- get: function get() {
- var model = __nccwpck_require__(82981);
- model.paginators = (__nccwpck_require__(9313)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Cloud9;
-
-
-/***/ }),
-
-/***/ 25630:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudcontrol'] = {};
-AWS.CloudControl = Service.defineService('cloudcontrol', ['2021-09-30']);
-Object.defineProperty(apiLoader.services['cloudcontrol'], '2021-09-30', {
- get: function get() {
- var model = __nccwpck_require__(24689);
- model.paginators = (__nccwpck_require__(16041)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(31933)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudControl;
-
-
-/***/ }),
-
-/***/ 56231:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['clouddirectory'] = {};
-AWS.CloudDirectory = Service.defineService('clouddirectory', ['2016-05-10', '2016-05-10*', '2017-01-11']);
-Object.defineProperty(apiLoader.services['clouddirectory'], '2016-05-10', {
- get: function get() {
- var model = __nccwpck_require__(72862);
- model.paginators = (__nccwpck_require__(87597)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['clouddirectory'], '2017-01-11', {
- get: function get() {
- var model = __nccwpck_require__(88729);
- model.paginators = (__nccwpck_require__(10156)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudDirectory;
-
-
-/***/ }),
-
-/***/ 74643:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudformation'] = {};
-AWS.CloudFormation = Service.defineService('cloudformation', ['2010-05-15']);
-Object.defineProperty(apiLoader.services['cloudformation'], '2010-05-15', {
- get: function get() {
- var model = __nccwpck_require__(31930);
- model.paginators = (__nccwpck_require__(10611)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(53732)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudFormation;
-
-
-/***/ }),
-
-/***/ 48058:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudfront'] = {};
-AWS.CloudFront = Service.defineService('cloudfront', ['2013-05-12*', '2013-11-11*', '2014-05-31*', '2014-10-21*', '2014-11-06*', '2015-04-17*', '2015-07-27*', '2015-09-17*', '2016-01-13*', '2016-01-28*', '2016-08-01*', '2016-08-20*', '2016-09-07*', '2016-09-29*', '2016-11-25', '2016-11-25*', '2017-03-25', '2017-03-25*', '2017-10-30', '2017-10-30*', '2018-06-18', '2018-06-18*', '2018-11-05', '2018-11-05*', '2019-03-26', '2019-03-26*', '2020-05-31']);
-__nccwpck_require__(95483);
-Object.defineProperty(apiLoader.services['cloudfront'], '2016-11-25', {
- get: function get() {
- var model = __nccwpck_require__(64908);
- model.paginators = (__nccwpck_require__(57305)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(71106)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['cloudfront'], '2017-03-25', {
- get: function get() {
- var model = __nccwpck_require__(76944);
- model.paginators = (__nccwpck_require__(83654)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(83406)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['cloudfront'], '2017-10-30', {
- get: function get() {
- var model = __nccwpck_require__(80198);
- model.paginators = (__nccwpck_require__(52915)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(13399)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['cloudfront'], '2018-06-18', {
- get: function get() {
- var model = __nccwpck_require__(29549);
- model.paginators = (__nccwpck_require__(7805)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(2353)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['cloudfront'], '2018-11-05', {
- get: function get() {
- var model = __nccwpck_require__(22253);
- model.paginators = (__nccwpck_require__(29533)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(36883)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['cloudfront'], '2019-03-26', {
- get: function get() {
- var model = __nccwpck_require__(29574);
- model.paginators = (__nccwpck_require__(35556)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(97142)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['cloudfront'], '2020-05-31', {
- get: function get() {
- var model = __nccwpck_require__(66310);
- model.paginators = (__nccwpck_require__(48335)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(83517)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudFront;
-
-
-/***/ }),
-
-/***/ 59976:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudhsm'] = {};
-AWS.CloudHSM = Service.defineService('cloudhsm', ['2014-05-30']);
-Object.defineProperty(apiLoader.services['cloudhsm'], '2014-05-30', {
- get: function get() {
- var model = __nccwpck_require__(18637);
- model.paginators = (__nccwpck_require__(18988)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudHSM;
-
-
-/***/ }),
-
-/***/ 70889:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudhsmv2'] = {};
-AWS.CloudHSMV2 = Service.defineService('cloudhsmv2', ['2017-04-28']);
-Object.defineProperty(apiLoader.services['cloudhsmv2'], '2017-04-28', {
- get: function get() {
- var model = __nccwpck_require__(90554);
- model.paginators = (__nccwpck_require__(77334)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudHSMV2;
-
-
-/***/ }),
-
-/***/ 72321:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudsearch'] = {};
-AWS.CloudSearch = Service.defineService('cloudsearch', ['2011-02-01', '2013-01-01']);
-Object.defineProperty(apiLoader.services['cloudsearch'], '2011-02-01', {
- get: function get() {
- var model = __nccwpck_require__(11732);
- model.paginators = (__nccwpck_require__(51357)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['cloudsearch'], '2013-01-01', {
- get: function get() {
- var model = __nccwpck_require__(56880);
- model.paginators = (__nccwpck_require__(81127)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudSearch;
-
-
-/***/ }),
-
-/***/ 64072:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudsearchdomain'] = {};
-AWS.CloudSearchDomain = Service.defineService('cloudsearchdomain', ['2013-01-01']);
-__nccwpck_require__(48571);
-Object.defineProperty(apiLoader.services['cloudsearchdomain'], '2013-01-01', {
- get: function get() {
- var model = __nccwpck_require__(78255);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudSearchDomain;
-
-
-/***/ }),
-
-/***/ 65512:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudtrail'] = {};
-AWS.CloudTrail = Service.defineService('cloudtrail', ['2013-11-01']);
-Object.defineProperty(apiLoader.services['cloudtrail'], '2013-11-01', {
- get: function get() {
- var model = __nccwpck_require__(11506);
- model.paginators = (__nccwpck_require__(27523)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudTrail;
-
-
-/***/ }),
-
-/***/ 31191:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudtraildata'] = {};
-AWS.CloudTrailData = Service.defineService('cloudtraildata', ['2021-08-11']);
-Object.defineProperty(apiLoader.services['cloudtraildata'], '2021-08-11', {
- get: function get() {
- var model = __nccwpck_require__(27372);
- model.paginators = (__nccwpck_require__(79223)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudTrailData;
-
-
-/***/ }),
-
-/***/ 6763:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudwatch'] = {};
-AWS.CloudWatch = Service.defineService('cloudwatch', ['2010-08-01']);
-Object.defineProperty(apiLoader.services['cloudwatch'], '2010-08-01', {
- get: function get() {
- var model = __nccwpck_require__(16363);
- model.paginators = (__nccwpck_require__(46675)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(21466)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudWatch;
-
-
-/***/ }),
-
-/***/ 38124:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudwatchevents'] = {};
-AWS.CloudWatchEvents = Service.defineService('cloudwatchevents', ['2014-02-03*', '2015-10-07']);
-Object.defineProperty(apiLoader.services['cloudwatchevents'], '2015-10-07', {
- get: function get() {
- var model = __nccwpck_require__(40299);
- model.paginators = (__nccwpck_require__(54031)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudWatchEvents;
-
-
-/***/ }),
-
-/***/ 96693:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cloudwatchlogs'] = {};
-AWS.CloudWatchLogs = Service.defineService('cloudwatchlogs', ['2014-03-28']);
-Object.defineProperty(apiLoader.services['cloudwatchlogs'], '2014-03-28', {
- get: function get() {
- var model = __nccwpck_require__(73044);
- model.paginators = (__nccwpck_require__(15472)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CloudWatchLogs;
-
-
-/***/ }),
-
-/***/ 91983:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codeartifact'] = {};
-AWS.CodeArtifact = Service.defineService('codeartifact', ['2018-09-22']);
-Object.defineProperty(apiLoader.services['codeartifact'], '2018-09-22', {
- get: function get() {
- var model = __nccwpck_require__(87923);
- model.paginators = (__nccwpck_require__(40983)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeArtifact;
-
-
-/***/ }),
-
-/***/ 60450:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codebuild'] = {};
-AWS.CodeBuild = Service.defineService('codebuild', ['2016-10-06']);
-Object.defineProperty(apiLoader.services['codebuild'], '2016-10-06', {
- get: function get() {
- var model = __nccwpck_require__(40893);
- model.paginators = (__nccwpck_require__(23010)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeBuild;
-
-
-/***/ }),
-
-/***/ 19499:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codecatalyst'] = {};
-AWS.CodeCatalyst = Service.defineService('codecatalyst', ['2022-09-28']);
-Object.defineProperty(apiLoader.services['codecatalyst'], '2022-09-28', {
- get: function get() {
- var model = __nccwpck_require__(22999);
- model.paginators = (__nccwpck_require__(14522)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(42522)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeCatalyst;
-
-
-/***/ }),
-
-/***/ 71323:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codecommit'] = {};
-AWS.CodeCommit = Service.defineService('codecommit', ['2015-04-13']);
-Object.defineProperty(apiLoader.services['codecommit'], '2015-04-13', {
- get: function get() {
- var model = __nccwpck_require__(57144);
- model.paginators = (__nccwpck_require__(62599)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeCommit;
-
-
-/***/ }),
-
-/***/ 54599:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codedeploy'] = {};
-AWS.CodeDeploy = Service.defineService('codedeploy', ['2014-10-06']);
-Object.defineProperty(apiLoader.services['codedeploy'], '2014-10-06', {
- get: function get() {
- var model = __nccwpck_require__(10967);
- model.paginators = (__nccwpck_require__(1917)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(52416)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeDeploy;
-
-
-/***/ }),
-
-/***/ 65704:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codeguruprofiler'] = {};
-AWS.CodeGuruProfiler = Service.defineService('codeguruprofiler', ['2019-07-18']);
-Object.defineProperty(apiLoader.services['codeguruprofiler'], '2019-07-18', {
- get: function get() {
- var model = __nccwpck_require__(34890);
- model.paginators = (__nccwpck_require__(25274)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeGuruProfiler;
-
-
-/***/ }),
-
-/***/ 60070:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codegurureviewer'] = {};
-AWS.CodeGuruReviewer = Service.defineService('codegurureviewer', ['2019-09-19']);
-Object.defineProperty(apiLoader.services['codegurureviewer'], '2019-09-19', {
- get: function get() {
- var model = __nccwpck_require__(66739);
- model.paginators = (__nccwpck_require__(37775)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(69276)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeGuruReviewer;
-
-
-/***/ }),
-
-/***/ 32620:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codegurusecurity'] = {};
-AWS.CodeGuruSecurity = Service.defineService('codegurusecurity', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['codegurusecurity'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(7662);
- model.paginators = (__nccwpck_require__(77755)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeGuruSecurity;
-
-
-/***/ }),
-
-/***/ 22938:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codepipeline'] = {};
-AWS.CodePipeline = Service.defineService('codepipeline', ['2015-07-09']);
-Object.defineProperty(apiLoader.services['codepipeline'], '2015-07-09', {
- get: function get() {
- var model = __nccwpck_require__(4039);
- model.paginators = (__nccwpck_require__(78953)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodePipeline;
-
-
-/***/ }),
-
-/***/ 98336:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codestar'] = {};
-AWS.CodeStar = Service.defineService('codestar', ['2017-04-19']);
-Object.defineProperty(apiLoader.services['codestar'], '2017-04-19', {
- get: function get() {
- var model = __nccwpck_require__(12425);
- model.paginators = (__nccwpck_require__(70046)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeStar;
-
-
-/***/ }),
-
-/***/ 78270:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codestarconnections'] = {};
-AWS.CodeStarconnections = Service.defineService('codestarconnections', ['2019-12-01']);
-Object.defineProperty(apiLoader.services['codestarconnections'], '2019-12-01', {
- get: function get() {
- var model = __nccwpck_require__(88428);
- model.paginators = (__nccwpck_require__(31506)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeStarconnections;
-
-
-/***/ }),
-
-/***/ 15141:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['codestarnotifications'] = {};
-AWS.CodeStarNotifications = Service.defineService('codestarnotifications', ['2019-10-15']);
-Object.defineProperty(apiLoader.services['codestarnotifications'], '2019-10-15', {
- get: function get() {
- var model = __nccwpck_require__(33362);
- model.paginators = (__nccwpck_require__(44301)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CodeStarNotifications;
-
-
-/***/ }),
-
-/***/ 58291:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cognitoidentity'] = {};
-AWS.CognitoIdentity = Service.defineService('cognitoidentity', ['2014-06-30']);
-Object.defineProperty(apiLoader.services['cognitoidentity'], '2014-06-30', {
- get: function get() {
- var model = __nccwpck_require__(57377);
- model.paginators = (__nccwpck_require__(85010)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CognitoIdentity;
-
-
-/***/ }),
-
-/***/ 31379:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cognitoidentityserviceprovider'] = {};
-AWS.CognitoIdentityServiceProvider = Service.defineService('cognitoidentityserviceprovider', ['2016-04-18']);
-Object.defineProperty(apiLoader.services['cognitoidentityserviceprovider'], '2016-04-18', {
- get: function get() {
- var model = __nccwpck_require__(53166);
- model.paginators = (__nccwpck_require__(17149)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CognitoIdentityServiceProvider;
-
-
-/***/ }),
-
-/***/ 74770:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cognitosync'] = {};
-AWS.CognitoSync = Service.defineService('cognitosync', ['2014-06-30']);
-Object.defineProperty(apiLoader.services['cognitosync'], '2014-06-30', {
- get: function get() {
- var model = __nccwpck_require__(29128);
- model.paginators = (__nccwpck_require__(5865)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CognitoSync;
-
-
-/***/ }),
-
-/***/ 62878:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['comprehend'] = {};
-AWS.Comprehend = Service.defineService('comprehend', ['2017-11-27']);
-Object.defineProperty(apiLoader.services['comprehend'], '2017-11-27', {
- get: function get() {
- var model = __nccwpck_require__(24433);
- model.paginators = (__nccwpck_require__(82518)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Comprehend;
-
-
-/***/ }),
-
-/***/ 32349:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['comprehendmedical'] = {};
-AWS.ComprehendMedical = Service.defineService('comprehendmedical', ['2018-10-30']);
-Object.defineProperty(apiLoader.services['comprehendmedical'], '2018-10-30', {
- get: function get() {
- var model = __nccwpck_require__(96649);
- model.paginators = (__nccwpck_require__(43172)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ComprehendMedical;
-
-
-/***/ }),
-
-/***/ 64459:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['computeoptimizer'] = {};
-AWS.ComputeOptimizer = Service.defineService('computeoptimizer', ['2019-11-01']);
-Object.defineProperty(apiLoader.services['computeoptimizer'], '2019-11-01', {
- get: function get() {
- var model = __nccwpck_require__(85802);
- model.paginators = (__nccwpck_require__(6831)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ComputeOptimizer;
-
-
-/***/ }),
-
-/***/ 34061:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['configservice'] = {};
-AWS.ConfigService = Service.defineService('configservice', ['2014-11-12']);
-Object.defineProperty(apiLoader.services['configservice'], '2014-11-12', {
- get: function get() {
- var model = __nccwpck_require__(47124);
- model.paginators = (__nccwpck_require__(85980)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ConfigService;
-
-
-/***/ }),
-
-/***/ 13879:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['connect'] = {};
-AWS.Connect = Service.defineService('connect', ['2017-08-08']);
-Object.defineProperty(apiLoader.services['connect'], '2017-08-08', {
- get: function get() {
- var model = __nccwpck_require__(54511);
- model.paginators = (__nccwpck_require__(19742)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Connect;
-
-
-/***/ }),
-
-/***/ 42789:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['connectcampaigns'] = {};
-AWS.ConnectCampaigns = Service.defineService('connectcampaigns', ['2021-01-30']);
-Object.defineProperty(apiLoader.services['connectcampaigns'], '2021-01-30', {
- get: function get() {
- var model = __nccwpck_require__(71566);
- model.paginators = (__nccwpck_require__(45198)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ConnectCampaigns;
-
-
-/***/ }),
-
-/***/ 72223:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['connectcases'] = {};
-AWS.ConnectCases = Service.defineService('connectcases', ['2022-10-03']);
-Object.defineProperty(apiLoader.services['connectcases'], '2022-10-03', {
- get: function get() {
- var model = __nccwpck_require__(3923);
- model.paginators = (__nccwpck_require__(8429)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ConnectCases;
-
-
-/***/ }),
-
-/***/ 41847:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['connectcontactlens'] = {};
-AWS.ConnectContactLens = Service.defineService('connectcontactlens', ['2020-08-21']);
-Object.defineProperty(apiLoader.services['connectcontactlens'], '2020-08-21', {
- get: function get() {
- var model = __nccwpck_require__(16527);
- model.paginators = (__nccwpck_require__(76658)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ConnectContactLens;
-
-
-/***/ }),
-
-/***/ 94198:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['connectparticipant'] = {};
-AWS.ConnectParticipant = Service.defineService('connectparticipant', ['2018-09-07']);
-Object.defineProperty(apiLoader.services['connectparticipant'], '2018-09-07', {
- get: function get() {
- var model = __nccwpck_require__(70132);
- model.paginators = (__nccwpck_require__(29947)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ConnectParticipant;
-
-
-/***/ }),
-
-/***/ 77574:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['controltower'] = {};
-AWS.ControlTower = Service.defineService('controltower', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['controltower'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(1095);
- model.paginators = (__nccwpck_require__(55167)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ControlTower;
-
-
-/***/ }),
-
-/***/ 79523:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['costexplorer'] = {};
-AWS.CostExplorer = Service.defineService('costexplorer', ['2017-10-25']);
-Object.defineProperty(apiLoader.services['costexplorer'], '2017-10-25', {
- get: function get() {
- var model = __nccwpck_require__(4060);
- model.paginators = (__nccwpck_require__(75642)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CostExplorer;
-
-
-/***/ }),
-
-/***/ 5026:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['cur'] = {};
-AWS.CUR = Service.defineService('cur', ['2017-01-06']);
-Object.defineProperty(apiLoader.services['cur'], '2017-01-06', {
- get: function get() {
- var model = __nccwpck_require__(46858);
- model.paginators = (__nccwpck_require__(40528)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CUR;
-
-
-/***/ }),
-
-/***/ 28379:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['customerprofiles'] = {};
-AWS.CustomerProfiles = Service.defineService('customerprofiles', ['2020-08-15']);
-Object.defineProperty(apiLoader.services['customerprofiles'], '2020-08-15', {
- get: function get() {
- var model = __nccwpck_require__(56793);
- model.paginators = (__nccwpck_require__(53892)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.CustomerProfiles;
-
-
-/***/ }),
-
-/***/ 35846:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['databrew'] = {};
-AWS.DataBrew = Service.defineService('databrew', ['2017-07-25']);
-Object.defineProperty(apiLoader.services['databrew'], '2017-07-25', {
- get: function get() {
- var model = __nccwpck_require__(96089);
- model.paginators = (__nccwpck_require__(92224)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DataBrew;
-
-
-/***/ }),
-
-/***/ 11024:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['dataexchange'] = {};
-AWS.DataExchange = Service.defineService('dataexchange', ['2017-07-25']);
-Object.defineProperty(apiLoader.services['dataexchange'], '2017-07-25', {
- get: function get() {
- var model = __nccwpck_require__(42346);
- model.paginators = (__nccwpck_require__(55607)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(43176)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DataExchange;
-
-
-/***/ }),
-
-/***/ 65688:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['datapipeline'] = {};
-AWS.DataPipeline = Service.defineService('datapipeline', ['2012-10-29']);
-Object.defineProperty(apiLoader.services['datapipeline'], '2012-10-29', {
- get: function get() {
- var model = __nccwpck_require__(79908);
- model.paginators = (__nccwpck_require__(89659)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DataPipeline;
-
-
-/***/ }),
-
-/***/ 25308:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['datasync'] = {};
-AWS.DataSync = Service.defineService('datasync', ['2018-11-09']);
-Object.defineProperty(apiLoader.services['datasync'], '2018-11-09', {
- get: function get() {
- var model = __nccwpck_require__(93640);
- model.paginators = (__nccwpck_require__(80063)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DataSync;
-
-
-/***/ }),
-
-/***/ 71398:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['dax'] = {};
-AWS.DAX = Service.defineService('dax', ['2017-04-19']);
-Object.defineProperty(apiLoader.services['dax'], '2017-04-19', {
- get: function get() {
- var model = __nccwpck_require__(24709);
- model.paginators = (__nccwpck_require__(87564)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DAX;
-
-
-/***/ }),
-
-/***/ 60674:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['detective'] = {};
-AWS.Detective = Service.defineService('detective', ['2018-10-26']);
-Object.defineProperty(apiLoader.services['detective'], '2018-10-26', {
- get: function get() {
- var model = __nccwpck_require__(25236);
- model.paginators = (__nccwpck_require__(46384)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Detective;
-
-
-/***/ }),
-
-/***/ 26272:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['devicefarm'] = {};
-AWS.DeviceFarm = Service.defineService('devicefarm', ['2015-06-23']);
-Object.defineProperty(apiLoader.services['devicefarm'], '2015-06-23', {
- get: function get() {
- var model = __nccwpck_require__(34023);
- model.paginators = (__nccwpck_require__(37161)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DeviceFarm;
-
-
-/***/ }),
-
-/***/ 90673:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['devopsguru'] = {};
-AWS.DevOpsGuru = Service.defineService('devopsguru', ['2020-12-01']);
-Object.defineProperty(apiLoader.services['devopsguru'], '2020-12-01', {
- get: function get() {
- var model = __nccwpck_require__(36592);
- model.paginators = (__nccwpck_require__(95551)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DevOpsGuru;
-
-
-/***/ }),
-
-/***/ 73783:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['directconnect'] = {};
-AWS.DirectConnect = Service.defineService('directconnect', ['2012-10-25']);
-Object.defineProperty(apiLoader.services['directconnect'], '2012-10-25', {
- get: function get() {
- var model = __nccwpck_require__(45125);
- model.paginators = (__nccwpck_require__(26404)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DirectConnect;
-
-
-/***/ }),
-
-/***/ 83908:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['directoryservice'] = {};
-AWS.DirectoryService = Service.defineService('directoryservice', ['2015-04-16']);
-Object.defineProperty(apiLoader.services['directoryservice'], '2015-04-16', {
- get: function get() {
- var model = __nccwpck_require__(47357);
- model.paginators = (__nccwpck_require__(93412)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DirectoryService;
-
-
-/***/ }),
-
-/***/ 81690:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['discovery'] = {};
-AWS.Discovery = Service.defineService('discovery', ['2015-11-01']);
-Object.defineProperty(apiLoader.services['discovery'], '2015-11-01', {
- get: function get() {
- var model = __nccwpck_require__(68951);
- model.paginators = (__nccwpck_require__(19822)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Discovery;
-
-
-/***/ }),
-
-/***/ 24958:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['dlm'] = {};
-AWS.DLM = Service.defineService('dlm', ['2018-01-12']);
-Object.defineProperty(apiLoader.services['dlm'], '2018-01-12', {
- get: function get() {
- var model = __nccwpck_require__(75485);
- model.paginators = (__nccwpck_require__(98881)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DLM;
-
-
-/***/ }),
-
-/***/ 69868:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['dms'] = {};
-AWS.DMS = Service.defineService('dms', ['2016-01-01']);
-Object.defineProperty(apiLoader.services['dms'], '2016-01-01', {
- get: function get() {
- var model = __nccwpck_require__(77953);
- model.paginators = (__nccwpck_require__(36772)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(3500)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DMS;
-
-
-/***/ }),
-
-/***/ 55129:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['docdb'] = {};
-AWS.DocDB = Service.defineService('docdb', ['2014-10-31']);
-__nccwpck_require__(59050);
-Object.defineProperty(apiLoader.services['docdb'], '2014-10-31', {
- get: function get() {
- var model = __nccwpck_require__(4932);
- model.paginators = (__nccwpck_require__(41408)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(36607)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DocDB;
-
-
-/***/ }),
-
-/***/ 20792:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['docdbelastic'] = {};
-AWS.DocDBElastic = Service.defineService('docdbelastic', ['2022-11-28']);
-Object.defineProperty(apiLoader.services['docdbelastic'], '2022-11-28', {
- get: function get() {
- var model = __nccwpck_require__(34162);
- model.paginators = (__nccwpck_require__(89093)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DocDBElastic;
-
-
-/***/ }),
-
-/***/ 41116:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['drs'] = {};
-AWS.Drs = Service.defineService('drs', ['2020-02-26']);
-Object.defineProperty(apiLoader.services['drs'], '2020-02-26', {
- get: function get() {
- var model = __nccwpck_require__(42548);
- model.paginators = (__nccwpck_require__(44057)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Drs;
-
-
-/***/ }),
-
-/***/ 14347:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['dynamodb'] = {};
-AWS.DynamoDB = Service.defineService('dynamodb', ['2011-12-05', '2012-08-10']);
-__nccwpck_require__(17101);
-Object.defineProperty(apiLoader.services['dynamodb'], '2011-12-05', {
- get: function get() {
- var model = __nccwpck_require__(46148);
- model.paginators = (__nccwpck_require__(86884)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(24864)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['dynamodb'], '2012-08-10', {
- get: function get() {
- var model = __nccwpck_require__(54047);
- model.paginators = (__nccwpck_require__(30482)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(48411)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DynamoDB;
-
-
-/***/ }),
-
-/***/ 88090:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['dynamodbstreams'] = {};
-AWS.DynamoDBStreams = Service.defineService('dynamodbstreams', ['2012-08-10']);
-Object.defineProperty(apiLoader.services['dynamodbstreams'], '2012-08-10', {
- get: function get() {
- var model = __nccwpck_require__(26098);
- model.paginators = (__nccwpck_require__(40549)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.DynamoDBStreams;
-
-
-/***/ }),
-
-/***/ 62837:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ebs'] = {};
-AWS.EBS = Service.defineService('ebs', ['2019-11-02']);
-Object.defineProperty(apiLoader.services['ebs'], '2019-11-02', {
- get: function get() {
- var model = __nccwpck_require__(72220);
- model.paginators = (__nccwpck_require__(85366)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.EBS;
-
-
-/***/ }),
-
-/***/ 7778:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ec2'] = {};
-AWS.EC2 = Service.defineService('ec2', ['2013-06-15*', '2013-10-15*', '2014-02-01*', '2014-05-01*', '2014-06-15*', '2014-09-01*', '2014-10-01*', '2015-03-01*', '2015-04-15*', '2015-10-01*', '2016-04-01*', '2016-09-15*', '2016-11-15']);
-__nccwpck_require__(92501);
-Object.defineProperty(apiLoader.services['ec2'], '2016-11-15', {
- get: function get() {
- var model = __nccwpck_require__(2658);
- model.paginators = (__nccwpck_require__(82477)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(19153)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.EC2;
-
-
-/***/ }),
-
-/***/ 92209:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ec2instanceconnect'] = {};
-AWS.EC2InstanceConnect = Service.defineService('ec2instanceconnect', ['2018-04-02']);
-Object.defineProperty(apiLoader.services['ec2instanceconnect'], '2018-04-02', {
- get: function get() {
- var model = __nccwpck_require__(36007);
- model.paginators = (__nccwpck_require__(38333)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.EC2InstanceConnect;
-
-
-/***/ }),
-
-/***/ 15211:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ecr'] = {};
-AWS.ECR = Service.defineService('ecr', ['2015-09-21']);
-Object.defineProperty(apiLoader.services['ecr'], '2015-09-21', {
- get: function get() {
- var model = __nccwpck_require__(92405);
- model.paginators = (__nccwpck_require__(25504)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(78925)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ECR;
-
-
-/***/ }),
-
-/***/ 90244:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ecrpublic'] = {};
-AWS.ECRPUBLIC = Service.defineService('ecrpublic', ['2020-10-30']);
-Object.defineProperty(apiLoader.services['ecrpublic'], '2020-10-30', {
- get: function get() {
- var model = __nccwpck_require__(9668);
- model.paginators = (__nccwpck_require__(81193)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ECRPUBLIC;
-
-
-/***/ }),
-
-/***/ 16615:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ecs'] = {};
-AWS.ECS = Service.defineService('ecs', ['2014-11-13']);
-Object.defineProperty(apiLoader.services['ecs'], '2014-11-13', {
- get: function get() {
- var model = __nccwpck_require__(44208);
- model.paginators = (__nccwpck_require__(15738)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(1299)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ECS;
-
-
-/***/ }),
-
-/***/ 34375:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['efs'] = {};
-AWS.EFS = Service.defineService('efs', ['2015-02-01']);
-Object.defineProperty(apiLoader.services['efs'], '2015-02-01', {
- get: function get() {
- var model = __nccwpck_require__(54784);
- model.paginators = (__nccwpck_require__(40174)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.EFS;
-
-
-/***/ }),
-
-/***/ 23337:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['eks'] = {};
-AWS.EKS = Service.defineService('eks', ['2017-11-01']);
-Object.defineProperty(apiLoader.services['eks'], '2017-11-01', {
- get: function get() {
- var model = __nccwpck_require__(51370);
- model.paginators = (__nccwpck_require__(36490)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(88058)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.EKS;
-
-
-/***/ }),
-
-/***/ 81065:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['elasticache'] = {};
-AWS.ElastiCache = Service.defineService('elasticache', ['2012-11-15*', '2014-03-24*', '2014-07-15*', '2014-09-30*', '2015-02-02']);
-Object.defineProperty(apiLoader.services['elasticache'], '2015-02-02', {
- get: function get() {
- var model = __nccwpck_require__(58426);
- model.paginators = (__nccwpck_require__(79559)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(29787)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ElastiCache;
-
-
-/***/ }),
-
-/***/ 14897:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['elasticbeanstalk'] = {};
-AWS.ElasticBeanstalk = Service.defineService('elasticbeanstalk', ['2010-12-01']);
-Object.defineProperty(apiLoader.services['elasticbeanstalk'], '2010-12-01', {
- get: function get() {
- var model = __nccwpck_require__(72508);
- model.paginators = (__nccwpck_require__(72305)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(62534)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ElasticBeanstalk;
-
-
-/***/ }),
-
-/***/ 37708:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['elasticinference'] = {};
-AWS.ElasticInference = Service.defineService('elasticinference', ['2017-07-25']);
-Object.defineProperty(apiLoader.services['elasticinference'], '2017-07-25', {
- get: function get() {
- var model = __nccwpck_require__(83967);
- model.paginators = (__nccwpck_require__(64906)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ElasticInference;
-
-
-/***/ }),
-
-/***/ 40745:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['elastictranscoder'] = {};
-AWS.ElasticTranscoder = Service.defineService('elastictranscoder', ['2012-09-25']);
-Object.defineProperty(apiLoader.services['elastictranscoder'], '2012-09-25', {
- get: function get() {
- var model = __nccwpck_require__(23463);
- model.paginators = (__nccwpck_require__(36121)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(59345)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ElasticTranscoder;
-
-
-/***/ }),
-
-/***/ 10907:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['elb'] = {};
-AWS.ELB = Service.defineService('elb', ['2012-06-01']);
-Object.defineProperty(apiLoader.services['elb'], '2012-06-01', {
- get: function get() {
- var model = __nccwpck_require__(66258);
- model.paginators = (__nccwpck_require__(77372)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(56717)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ELB;
-
-
-/***/ }),
-
-/***/ 44311:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['elbv2'] = {};
-AWS.ELBv2 = Service.defineService('elbv2', ['2015-12-01']);
-Object.defineProperty(apiLoader.services['elbv2'], '2015-12-01', {
- get: function get() {
- var model = __nccwpck_require__(42628);
- model.paginators = (__nccwpck_require__(12274)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(56106)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ELBv2;
-
-
-/***/ }),
-
-/***/ 50470:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['emr'] = {};
-AWS.EMR = Service.defineService('emr', ['2009-03-31']);
-Object.defineProperty(apiLoader.services['emr'], '2009-03-31', {
- get: function get() {
- var model = __nccwpck_require__(91298);
- model.paginators = (__nccwpck_require__(62965)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(86792)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.EMR;
-
-
-/***/ }),
-
-/***/ 49984:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['emrcontainers'] = {};
-AWS.EMRcontainers = Service.defineService('emrcontainers', ['2020-10-01']);
-Object.defineProperty(apiLoader.services['emrcontainers'], '2020-10-01', {
- get: function get() {
- var model = __nccwpck_require__(33922);
- model.paginators = (__nccwpck_require__(87789)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.EMRcontainers;
-
-
-/***/ }),
-
-/***/ 219:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['emrserverless'] = {};
-AWS.EMRServerless = Service.defineService('emrserverless', ['2021-07-13']);
-Object.defineProperty(apiLoader.services['emrserverless'], '2021-07-13', {
- get: function get() {
- var model = __nccwpck_require__(41070);
- model.paginators = (__nccwpck_require__(39521)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.EMRServerless;
-
-
-/***/ }),
-
-/***/ 22697:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['entityresolution'] = {};
-AWS.EntityResolution = Service.defineService('entityresolution', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['entityresolution'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(61033);
- model.paginators = (__nccwpck_require__(37403)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.EntityResolution;
-
-
-/***/ }),
-
-/***/ 84462:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['es'] = {};
-AWS.ES = Service.defineService('es', ['2015-01-01']);
-Object.defineProperty(apiLoader.services['es'], '2015-01-01', {
- get: function get() {
- var model = __nccwpck_require__(33943);
- model.paginators = (__nccwpck_require__(78836)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ES;
-
-
-/***/ }),
-
-/***/ 898:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['eventbridge'] = {};
-AWS.EventBridge = Service.defineService('eventbridge', ['2015-10-07']);
-__nccwpck_require__(3034);
-Object.defineProperty(apiLoader.services['eventbridge'], '2015-10-07', {
- get: function get() {
- var model = __nccwpck_require__(9659);
- model.paginators = (__nccwpck_require__(10871)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.EventBridge;
-
-
-/***/ }),
-
-/***/ 21440:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['evidently'] = {};
-AWS.Evidently = Service.defineService('evidently', ['2021-02-01']);
-Object.defineProperty(apiLoader.services['evidently'], '2021-02-01', {
- get: function get() {
- var model = __nccwpck_require__(41971);
- model.paginators = (__nccwpck_require__(72960)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Evidently;
-
-
-/***/ }),
-
-/***/ 3052:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['finspace'] = {};
-AWS.Finspace = Service.defineService('finspace', ['2021-03-12']);
-Object.defineProperty(apiLoader.services['finspace'], '2021-03-12', {
- get: function get() {
- var model = __nccwpck_require__(37836);
- model.paginators = (__nccwpck_require__(7328)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Finspace;
-
-
-/***/ }),
-
-/***/ 96869:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['finspacedata'] = {};
-AWS.Finspacedata = Service.defineService('finspacedata', ['2020-07-13']);
-Object.defineProperty(apiLoader.services['finspacedata'], '2020-07-13', {
- get: function get() {
- var model = __nccwpck_require__(83394);
- model.paginators = (__nccwpck_require__(70371)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Finspacedata;
-
-
-/***/ }),
-
-/***/ 92831:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['firehose'] = {};
-AWS.Firehose = Service.defineService('firehose', ['2015-08-04']);
-Object.defineProperty(apiLoader.services['firehose'], '2015-08-04', {
- get: function get() {
- var model = __nccwpck_require__(48886);
- model.paginators = (__nccwpck_require__(47400)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Firehose;
-
-
-/***/ }),
-
-/***/ 73003:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['fis'] = {};
-AWS.Fis = Service.defineService('fis', ['2020-12-01']);
-Object.defineProperty(apiLoader.services['fis'], '2020-12-01', {
- get: function get() {
- var model = __nccwpck_require__(98356);
- model.paginators = (__nccwpck_require__(6544)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Fis;
-
-
-/***/ }),
-
-/***/ 11316:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['fms'] = {};
-AWS.FMS = Service.defineService('fms', ['2018-01-01']);
-Object.defineProperty(apiLoader.services['fms'], '2018-01-01', {
- get: function get() {
- var model = __nccwpck_require__(22212);
- model.paginators = (__nccwpck_require__(49570)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.FMS;
-
-
-/***/ }),
-
-/***/ 36822:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['forecastqueryservice'] = {};
-AWS.ForecastQueryService = Service.defineService('forecastqueryservice', ['2018-06-26']);
-Object.defineProperty(apiLoader.services['forecastqueryservice'], '2018-06-26', {
- get: function get() {
- var model = __nccwpck_require__(23865);
- model.paginators = (__nccwpck_require__(98135)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ForecastQueryService;
-
-
-/***/ }),
-
-/***/ 12942:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['forecastservice'] = {};
-AWS.ForecastService = Service.defineService('forecastservice', ['2018-06-26']);
-Object.defineProperty(apiLoader.services['forecastservice'], '2018-06-26', {
- get: function get() {
- var model = __nccwpck_require__(6468);
- model.paginators = (__nccwpck_require__(45338)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ForecastService;
-
-
-/***/ }),
-
-/***/ 99830:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['frauddetector'] = {};
-AWS.FraudDetector = Service.defineService('frauddetector', ['2019-11-15']);
-Object.defineProperty(apiLoader.services['frauddetector'], '2019-11-15', {
- get: function get() {
- var model = __nccwpck_require__(96105);
- model.paginators = (__nccwpck_require__(9177)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.FraudDetector;
-
-
-/***/ }),
-
-/***/ 60642:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['fsx'] = {};
-AWS.FSx = Service.defineService('fsx', ['2018-03-01']);
-Object.defineProperty(apiLoader.services['fsx'], '2018-03-01', {
- get: function get() {
- var model = __nccwpck_require__(58245);
- model.paginators = (__nccwpck_require__(19882)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.FSx;
-
-
-/***/ }),
-
-/***/ 8085:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['gamelift'] = {};
-AWS.GameLift = Service.defineService('gamelift', ['2015-10-01']);
-Object.defineProperty(apiLoader.services['gamelift'], '2015-10-01', {
- get: function get() {
- var model = __nccwpck_require__(69257);
- model.paginators = (__nccwpck_require__(88381)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.GameLift;
-
-
-/***/ }),
-
-/***/ 83025:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['gamesparks'] = {};
-AWS.GameSparks = Service.defineService('gamesparks', ['2021-08-17']);
-Object.defineProperty(apiLoader.services['gamesparks'], '2021-08-17', {
- get: function get() {
- var model = __nccwpck_require__(54092);
- model.paginators = (__nccwpck_require__(51734)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.GameSparks;
-
-
-/***/ }),
-
-/***/ 63249:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['glacier'] = {};
-AWS.Glacier = Service.defineService('glacier', ['2012-06-01']);
-__nccwpck_require__(14472);
-Object.defineProperty(apiLoader.services['glacier'], '2012-06-01', {
- get: function get() {
- var model = __nccwpck_require__(11545);
- model.paginators = (__nccwpck_require__(54145)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(65182)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Glacier;
-
-
-/***/ }),
-
-/***/ 19306:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['globalaccelerator'] = {};
-AWS.GlobalAccelerator = Service.defineService('globalaccelerator', ['2018-08-08']);
-Object.defineProperty(apiLoader.services['globalaccelerator'], '2018-08-08', {
- get: function get() {
- var model = __nccwpck_require__(35365);
- model.paginators = (__nccwpck_require__(14796)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.GlobalAccelerator;
-
-
-/***/ }),
-
-/***/ 31658:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['glue'] = {};
-AWS.Glue = Service.defineService('glue', ['2017-03-31']);
-Object.defineProperty(apiLoader.services['glue'], '2017-03-31', {
- get: function get() {
- var model = __nccwpck_require__(72268);
- model.paginators = (__nccwpck_require__(26545)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Glue;
-
-
-/***/ }),
-
-/***/ 51050:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['grafana'] = {};
-AWS.Grafana = Service.defineService('grafana', ['2020-08-18']);
-Object.defineProperty(apiLoader.services['grafana'], '2020-08-18', {
- get: function get() {
- var model = __nccwpck_require__(29655);
- model.paginators = (__nccwpck_require__(83188)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Grafana;
-
-
-/***/ }),
-
-/***/ 20690:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['greengrass'] = {};
-AWS.Greengrass = Service.defineService('greengrass', ['2017-06-07']);
-Object.defineProperty(apiLoader.services['greengrass'], '2017-06-07', {
- get: function get() {
- var model = __nccwpck_require__(72575);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Greengrass;
-
-
-/***/ }),
-
-/***/ 45126:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['greengrassv2'] = {};
-AWS.GreengrassV2 = Service.defineService('greengrassv2', ['2020-11-30']);
-Object.defineProperty(apiLoader.services['greengrassv2'], '2020-11-30', {
- get: function get() {
- var model = __nccwpck_require__(57546);
- model.paginators = (__nccwpck_require__(47961)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.GreengrassV2;
-
-
-/***/ }),
-
-/***/ 80494:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['groundstation'] = {};
-AWS.GroundStation = Service.defineService('groundstation', ['2019-05-23']);
-Object.defineProperty(apiLoader.services['groundstation'], '2019-05-23', {
- get: function get() {
- var model = __nccwpck_require__(27733);
- model.paginators = (__nccwpck_require__(55974)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(77815)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.GroundStation;
-
-
-/***/ }),
-
-/***/ 40755:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['guardduty'] = {};
-AWS.GuardDuty = Service.defineService('guardduty', ['2017-11-28']);
-Object.defineProperty(apiLoader.services['guardduty'], '2017-11-28', {
- get: function get() {
- var model = __nccwpck_require__(37793);
- model.paginators = (__nccwpck_require__(87510)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.GuardDuty;
-
-
-/***/ }),
-
-/***/ 21834:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['health'] = {};
-AWS.Health = Service.defineService('health', ['2016-08-04']);
-Object.defineProperty(apiLoader.services['health'], '2016-08-04', {
- get: function get() {
- var model = __nccwpck_require__(8618);
- model.paginators = (__nccwpck_require__(46725)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Health;
-
-
-/***/ }),
-
-/***/ 64254:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['healthlake'] = {};
-AWS.HealthLake = Service.defineService('healthlake', ['2017-07-01']);
-Object.defineProperty(apiLoader.services['healthlake'], '2017-07-01', {
- get: function get() {
- var model = __nccwpck_require__(13637);
- model.paginators = (__nccwpck_require__(92834)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.HealthLake;
-
-
-/***/ }),
-
-/***/ 38889:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['honeycode'] = {};
-AWS.Honeycode = Service.defineService('honeycode', ['2020-03-01']);
-Object.defineProperty(apiLoader.services['honeycode'], '2020-03-01', {
- get: function get() {
- var model = __nccwpck_require__(27577);
- model.paginators = (__nccwpck_require__(12243)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Honeycode;
-
-
-/***/ }),
-
-/***/ 50058:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iam'] = {};
-AWS.IAM = Service.defineService('iam', ['2010-05-08']);
-Object.defineProperty(apiLoader.services['iam'], '2010-05-08', {
- get: function get() {
- var model = __nccwpck_require__(27041);
- model.paginators = (__nccwpck_require__(97583)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(37757)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IAM;
-
-
-/***/ }),
-
-/***/ 60222:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['identitystore'] = {};
-AWS.IdentityStore = Service.defineService('identitystore', ['2020-06-15']);
-Object.defineProperty(apiLoader.services['identitystore'], '2020-06-15', {
- get: function get() {
- var model = __nccwpck_require__(75797);
- model.paginators = (__nccwpck_require__(44872)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IdentityStore;
-
-
-/***/ }),
-
-/***/ 57511:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['imagebuilder'] = {};
-AWS.Imagebuilder = Service.defineService('imagebuilder', ['2019-12-02']);
-Object.defineProperty(apiLoader.services['imagebuilder'], '2019-12-02', {
- get: function get() {
- var model = __nccwpck_require__(98139);
- model.paginators = (__nccwpck_require__(60410)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Imagebuilder;
-
-
-/***/ }),
-
-/***/ 6769:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['importexport'] = {};
-AWS.ImportExport = Service.defineService('importexport', ['2010-06-01']);
-Object.defineProperty(apiLoader.services['importexport'], '2010-06-01', {
- get: function get() {
- var model = __nccwpck_require__(80317);
- model.paginators = (__nccwpck_require__(58037)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ImportExport;
-
-
-/***/ }),
-
-/***/ 89439:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['inspector'] = {};
-AWS.Inspector = Service.defineService('inspector', ['2015-08-18*', '2016-02-16']);
-Object.defineProperty(apiLoader.services['inspector'], '2016-02-16', {
- get: function get() {
- var model = __nccwpck_require__(71649);
- model.paginators = (__nccwpck_require__(69242)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Inspector;
-
-
-/***/ }),
-
-/***/ 98650:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['inspector2'] = {};
-AWS.Inspector2 = Service.defineService('inspector2', ['2020-06-08']);
-Object.defineProperty(apiLoader.services['inspector2'], '2020-06-08', {
- get: function get() {
- var model = __nccwpck_require__(61291);
- model.paginators = (__nccwpck_require__(17472)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Inspector2;
-
-
-/***/ }),
-
-/***/ 84099:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['internetmonitor'] = {};
-AWS.InternetMonitor = Service.defineService('internetmonitor', ['2021-06-03']);
-Object.defineProperty(apiLoader.services['internetmonitor'], '2021-06-03', {
- get: function get() {
- var model = __nccwpck_require__(62158);
- model.paginators = (__nccwpck_require__(64409)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(76543)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.InternetMonitor;
-
-
-/***/ }),
-
-/***/ 98392:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iot'] = {};
-AWS.Iot = Service.defineService('iot', ['2015-05-28']);
-Object.defineProperty(apiLoader.services['iot'], '2015-05-28', {
- get: function get() {
- var model = __nccwpck_require__(40063);
- model.paginators = (__nccwpck_require__(43999)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Iot;
-
-
-/***/ }),
-
-/***/ 39474:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iot1clickdevicesservice'] = {};
-AWS.IoT1ClickDevicesService = Service.defineService('iot1clickdevicesservice', ['2018-05-14']);
-Object.defineProperty(apiLoader.services['iot1clickdevicesservice'], '2018-05-14', {
- get: function get() {
- var model = __nccwpck_require__(26663);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoT1ClickDevicesService;
-
-
-/***/ }),
-
-/***/ 4686:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iot1clickprojects'] = {};
-AWS.IoT1ClickProjects = Service.defineService('iot1clickprojects', ['2018-05-14']);
-Object.defineProperty(apiLoader.services['iot1clickprojects'], '2018-05-14', {
- get: function get() {
- var model = __nccwpck_require__(17364);
- model.paginators = (__nccwpck_require__(54033)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoT1ClickProjects;
-
-
-/***/ }),
-
-/***/ 67409:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotanalytics'] = {};
-AWS.IoTAnalytics = Service.defineService('iotanalytics', ['2017-11-27']);
-Object.defineProperty(apiLoader.services['iotanalytics'], '2017-11-27', {
- get: function get() {
- var model = __nccwpck_require__(84609);
- model.paginators = (__nccwpck_require__(45498)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTAnalytics;
-
-
-/***/ }),
-
-/***/ 6564:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotdata'] = {};
-AWS.IotData = Service.defineService('iotdata', ['2015-05-28']);
-__nccwpck_require__(27062);
-Object.defineProperty(apiLoader.services['iotdata'], '2015-05-28', {
- get: function get() {
- var model = __nccwpck_require__(21717);
- model.paginators = (__nccwpck_require__(31896)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IotData;
-
-
-/***/ }),
-
-/***/ 97569:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotdeviceadvisor'] = {};
-AWS.IotDeviceAdvisor = Service.defineService('iotdeviceadvisor', ['2020-09-18']);
-Object.defineProperty(apiLoader.services['iotdeviceadvisor'], '2020-09-18', {
- get: function get() {
- var model = __nccwpck_require__(71394);
- model.paginators = (__nccwpck_require__(49057)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IotDeviceAdvisor;
-
-
-/***/ }),
-
-/***/ 88065:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotevents'] = {};
-AWS.IoTEvents = Service.defineService('iotevents', ['2018-07-27']);
-Object.defineProperty(apiLoader.services['iotevents'], '2018-07-27', {
- get: function get() {
- var model = __nccwpck_require__(4483);
- model.paginators = (__nccwpck_require__(39844)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTEvents;
-
-
-/***/ }),
-
-/***/ 56973:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ioteventsdata'] = {};
-AWS.IoTEventsData = Service.defineService('ioteventsdata', ['2018-10-23']);
-Object.defineProperty(apiLoader.services['ioteventsdata'], '2018-10-23', {
- get: function get() {
- var model = __nccwpck_require__(94282);
- model.paginators = (__nccwpck_require__(11632)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTEventsData;
-
-
-/***/ }),
-
-/***/ 42513:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotfleethub'] = {};
-AWS.IoTFleetHub = Service.defineService('iotfleethub', ['2020-11-03']);
-Object.defineProperty(apiLoader.services['iotfleethub'], '2020-11-03', {
- get: function get() {
- var model = __nccwpck_require__(56534);
- model.paginators = (__nccwpck_require__(76120)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTFleetHub;
-
-
-/***/ }),
-
-/***/ 94329:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotfleetwise'] = {};
-AWS.IoTFleetWise = Service.defineService('iotfleetwise', ['2021-06-17']);
-Object.defineProperty(apiLoader.services['iotfleetwise'], '2021-06-17', {
- get: function get() {
- var model = __nccwpck_require__(68937);
- model.paginators = (__nccwpck_require__(85715)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(23391)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTFleetWise;
-
-
-/***/ }),
-
-/***/ 42332:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotjobsdataplane'] = {};
-AWS.IoTJobsDataPlane = Service.defineService('iotjobsdataplane', ['2017-09-29']);
-Object.defineProperty(apiLoader.services['iotjobsdataplane'], '2017-09-29', {
- get: function get() {
- var model = __nccwpck_require__(12147);
- model.paginators = (__nccwpck_require__(58593)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTJobsDataPlane;
-
-
-/***/ }),
-
-/***/ 22163:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotroborunner'] = {};
-AWS.IoTRoboRunner = Service.defineService('iotroborunner', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['iotroborunner'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(11483);
- model.paginators = (__nccwpck_require__(82393)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTRoboRunner;
-
-
-/***/ }),
-
-/***/ 98562:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotsecuretunneling'] = {};
-AWS.IoTSecureTunneling = Service.defineService('iotsecuretunneling', ['2018-10-05']);
-Object.defineProperty(apiLoader.services['iotsecuretunneling'], '2018-10-05', {
- get: function get() {
- var model = __nccwpck_require__(99946);
- model.paginators = (__nccwpck_require__(97884)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTSecureTunneling;
-
-
-/***/ }),
-
-/***/ 89690:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotsitewise'] = {};
-AWS.IoTSiteWise = Service.defineService('iotsitewise', ['2019-12-02']);
-Object.defineProperty(apiLoader.services['iotsitewise'], '2019-12-02', {
- get: function get() {
- var model = __nccwpck_require__(44429);
- model.paginators = (__nccwpck_require__(27558)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(80458)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTSiteWise;
-
-
-/***/ }),
-
-/***/ 58905:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotthingsgraph'] = {};
-AWS.IoTThingsGraph = Service.defineService('iotthingsgraph', ['2018-09-06']);
-Object.defineProperty(apiLoader.services['iotthingsgraph'], '2018-09-06', {
- get: function get() {
- var model = __nccwpck_require__(84893);
- model.paginators = (__nccwpck_require__(99418)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTThingsGraph;
-
-
-/***/ }),
-
-/***/ 65010:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iottwinmaker'] = {};
-AWS.IoTTwinMaker = Service.defineService('iottwinmaker', ['2021-11-29']);
-Object.defineProperty(apiLoader.services['iottwinmaker'], '2021-11-29', {
- get: function get() {
- var model = __nccwpck_require__(30382);
- model.paginators = (__nccwpck_require__(93389)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(41496)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTTwinMaker;
-
-
-/***/ }),
-
-/***/ 8226:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['iotwireless'] = {};
-AWS.IoTWireless = Service.defineService('iotwireless', ['2020-11-22']);
-Object.defineProperty(apiLoader.services['iotwireless'], '2020-11-22', {
- get: function get() {
- var model = __nccwpck_require__(78052);
- model.paginators = (__nccwpck_require__(13156)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IoTWireless;
-
-
-/***/ }),
-
-/***/ 67701:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ivs'] = {};
-AWS.IVS = Service.defineService('ivs', ['2020-07-14']);
-Object.defineProperty(apiLoader.services['ivs'], '2020-07-14', {
- get: function get() {
- var model = __nccwpck_require__(34175);
- model.paginators = (__nccwpck_require__(45289)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IVS;
-
-
-/***/ }),
-
-/***/ 17077:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ivschat'] = {};
-AWS.Ivschat = Service.defineService('ivschat', ['2020-07-14']);
-Object.defineProperty(apiLoader.services['ivschat'], '2020-07-14', {
- get: function get() {
- var model = __nccwpck_require__(77512);
- model.paginators = (__nccwpck_require__(85556)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Ivschat;
-
-
-/***/ }),
-
-/***/ 51946:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ivsrealtime'] = {};
-AWS.IVSRealTime = Service.defineService('ivsrealtime', ['2020-07-14']);
-Object.defineProperty(apiLoader.services['ivsrealtime'], '2020-07-14', {
- get: function get() {
- var model = __nccwpck_require__(23084);
- model.paginators = (__nccwpck_require__(64507)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.IVSRealTime;
-
-
-/***/ }),
-
-/***/ 56775:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kafka'] = {};
-AWS.Kafka = Service.defineService('kafka', ['2018-11-14']);
-Object.defineProperty(apiLoader.services['kafka'], '2018-11-14', {
- get: function get() {
- var model = __nccwpck_require__(38473);
- model.paginators = (__nccwpck_require__(79729)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Kafka;
-
-
-/***/ }),
-
-/***/ 61879:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kafkaconnect'] = {};
-AWS.KafkaConnect = Service.defineService('kafkaconnect', ['2021-09-14']);
-Object.defineProperty(apiLoader.services['kafkaconnect'], '2021-09-14', {
- get: function get() {
- var model = __nccwpck_require__(80867);
- model.paginators = (__nccwpck_require__(32924)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.KafkaConnect;
-
-
-/***/ }),
-
-/***/ 66122:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kendra'] = {};
-AWS.Kendra = Service.defineService('kendra', ['2019-02-03']);
-Object.defineProperty(apiLoader.services['kendra'], '2019-02-03', {
- get: function get() {
- var model = __nccwpck_require__(80100);
- model.paginators = (__nccwpck_require__(64519)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Kendra;
-
-
-/***/ }),
-
-/***/ 46255:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kendraranking'] = {};
-AWS.KendraRanking = Service.defineService('kendraranking', ['2022-10-19']);
-Object.defineProperty(apiLoader.services['kendraranking'], '2022-10-19', {
- get: function get() {
- var model = __nccwpck_require__(66044);
- model.paginators = (__nccwpck_require__(38563)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.KendraRanking;
-
-
-/***/ }),
-
-/***/ 24789:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['keyspaces'] = {};
-AWS.Keyspaces = Service.defineService('keyspaces', ['2022-02-10']);
-Object.defineProperty(apiLoader.services['keyspaces'], '2022-02-10', {
- get: function get() {
- var model = __nccwpck_require__(59857);
- model.paginators = (__nccwpck_require__(19252)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(53164)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Keyspaces;
-
-
-/***/ }),
-
-/***/ 49876:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kinesis'] = {};
-AWS.Kinesis = Service.defineService('kinesis', ['2013-12-02']);
-Object.defineProperty(apiLoader.services['kinesis'], '2013-12-02', {
- get: function get() {
- var model = __nccwpck_require__(648);
- model.paginators = (__nccwpck_require__(10424)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(54059)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Kinesis;
-
-
-/***/ }),
-
-/***/ 90042:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kinesisanalytics'] = {};
-AWS.KinesisAnalytics = Service.defineService('kinesisanalytics', ['2015-08-14']);
-Object.defineProperty(apiLoader.services['kinesisanalytics'], '2015-08-14', {
- get: function get() {
- var model = __nccwpck_require__(72653);
- model.paginators = (__nccwpck_require__(73535)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.KinesisAnalytics;
-
-
-/***/ }),
-
-/***/ 74631:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kinesisanalyticsv2'] = {};
-AWS.KinesisAnalyticsV2 = Service.defineService('kinesisanalyticsv2', ['2018-05-23']);
-Object.defineProperty(apiLoader.services['kinesisanalyticsv2'], '2018-05-23', {
- get: function get() {
- var model = __nccwpck_require__(56485);
- model.paginators = (__nccwpck_require__(52495)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.KinesisAnalyticsV2;
-
-
-/***/ }),
-
-/***/ 89927:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kinesisvideo'] = {};
-AWS.KinesisVideo = Service.defineService('kinesisvideo', ['2017-09-30']);
-Object.defineProperty(apiLoader.services['kinesisvideo'], '2017-09-30', {
- get: function get() {
- var model = __nccwpck_require__(96305);
- model.paginators = (__nccwpck_require__(50061)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.KinesisVideo;
-
-
-/***/ }),
-
-/***/ 5580:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kinesisvideoarchivedmedia'] = {};
-AWS.KinesisVideoArchivedMedia = Service.defineService('kinesisvideoarchivedmedia', ['2017-09-30']);
-Object.defineProperty(apiLoader.services['kinesisvideoarchivedmedia'], '2017-09-30', {
- get: function get() {
- var model = __nccwpck_require__(78868);
- model.paginators = (__nccwpck_require__(27352)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.KinesisVideoArchivedMedia;
-
-
-/***/ }),
-
-/***/ 81308:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kinesisvideomedia'] = {};
-AWS.KinesisVideoMedia = Service.defineService('kinesisvideomedia', ['2017-09-30']);
-Object.defineProperty(apiLoader.services['kinesisvideomedia'], '2017-09-30', {
- get: function get() {
- var model = __nccwpck_require__(18898);
- model.paginators = (__nccwpck_require__(85061)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.KinesisVideoMedia;
-
-
-/***/ }),
-
-/***/ 12710:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kinesisvideosignalingchannels'] = {};
-AWS.KinesisVideoSignalingChannels = Service.defineService('kinesisvideosignalingchannels', ['2019-12-04']);
-Object.defineProperty(apiLoader.services['kinesisvideosignalingchannels'], '2019-12-04', {
- get: function get() {
- var model = __nccwpck_require__(89769);
- model.paginators = (__nccwpck_require__(41939)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.KinesisVideoSignalingChannels;
-
-
-/***/ }),
-
-/***/ 52642:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kinesisvideowebrtcstorage'] = {};
-AWS.KinesisVideoWebRTCStorage = Service.defineService('kinesisvideowebrtcstorage', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['kinesisvideowebrtcstorage'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(62761);
- model.paginators = (__nccwpck_require__(3540)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.KinesisVideoWebRTCStorage;
-
-
-/***/ }),
-
-/***/ 56782:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['kms'] = {};
-AWS.KMS = Service.defineService('kms', ['2014-11-01']);
-Object.defineProperty(apiLoader.services['kms'], '2014-11-01', {
- get: function get() {
- var model = __nccwpck_require__(1219);
- model.paginators = (__nccwpck_require__(71402)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.KMS;
-
-
-/***/ }),
-
-/***/ 6726:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['lakeformation'] = {};
-AWS.LakeFormation = Service.defineService('lakeformation', ['2017-03-31']);
-Object.defineProperty(apiLoader.services['lakeformation'], '2017-03-31', {
- get: function get() {
- var model = __nccwpck_require__(82210);
- model.paginators = (__nccwpck_require__(61488)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LakeFormation;
-
-
-/***/ }),
-
-/***/ 13321:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['lambda'] = {};
-AWS.Lambda = Service.defineService('lambda', ['2014-11-11', '2015-03-31']);
-__nccwpck_require__(8452);
-Object.defineProperty(apiLoader.services['lambda'], '2014-11-11', {
- get: function get() {
- var model = __nccwpck_require__(91251);
- model.paginators = (__nccwpck_require__(79210)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['lambda'], '2015-03-31', {
- get: function get() {
- var model = __nccwpck_require__(29103);
- model.paginators = (__nccwpck_require__(32057)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(40626)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Lambda;
-
-
-/***/ }),
-
-/***/ 37397:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['lexmodelbuildingservice'] = {};
-AWS.LexModelBuildingService = Service.defineService('lexmodelbuildingservice', ['2017-04-19']);
-Object.defineProperty(apiLoader.services['lexmodelbuildingservice'], '2017-04-19', {
- get: function get() {
- var model = __nccwpck_require__(96327);
- model.paginators = (__nccwpck_require__(12348)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LexModelBuildingService;
-
-
-/***/ }),
-
-/***/ 27254:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['lexmodelsv2'] = {};
-AWS.LexModelsV2 = Service.defineService('lexmodelsv2', ['2020-08-07']);
-Object.defineProperty(apiLoader.services['lexmodelsv2'], '2020-08-07', {
- get: function get() {
- var model = __nccwpck_require__(98781);
- model.paginators = (__nccwpck_require__(49461)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(55520)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LexModelsV2;
-
-
-/***/ }),
-
-/***/ 62716:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['lexruntime'] = {};
-AWS.LexRuntime = Service.defineService('lexruntime', ['2016-11-28']);
-Object.defineProperty(apiLoader.services['lexruntime'], '2016-11-28', {
- get: function get() {
- var model = __nccwpck_require__(11059);
- model.paginators = (__nccwpck_require__(97715)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LexRuntime;
-
-
-/***/ }),
-
-/***/ 33855:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['lexruntimev2'] = {};
-AWS.LexRuntimeV2 = Service.defineService('lexruntimev2', ['2020-08-07']);
-Object.defineProperty(apiLoader.services['lexruntimev2'], '2020-08-07', {
- get: function get() {
- var model = __nccwpck_require__(17908);
- model.paginators = (__nccwpck_require__(469)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LexRuntimeV2;
-
-
-/***/ }),
-
-/***/ 34693:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['licensemanager'] = {};
-AWS.LicenseManager = Service.defineService('licensemanager', ['2018-08-01']);
-Object.defineProperty(apiLoader.services['licensemanager'], '2018-08-01', {
- get: function get() {
- var model = __nccwpck_require__(19160);
- model.paginators = (__nccwpck_require__(77552)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LicenseManager;
-
-
-/***/ }),
-
-/***/ 52687:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['licensemanagerlinuxsubscriptions'] = {};
-AWS.LicenseManagerLinuxSubscriptions = Service.defineService('licensemanagerlinuxsubscriptions', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['licensemanagerlinuxsubscriptions'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(94260);
- model.paginators = (__nccwpck_require__(60467)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LicenseManagerLinuxSubscriptions;
-
-
-/***/ }),
-
-/***/ 37725:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['licensemanagerusersubscriptions'] = {};
-AWS.LicenseManagerUserSubscriptions = Service.defineService('licensemanagerusersubscriptions', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['licensemanagerusersubscriptions'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(48338);
- model.paginators = (__nccwpck_require__(84416)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LicenseManagerUserSubscriptions;
-
-
-/***/ }),
-
-/***/ 22718:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['lightsail'] = {};
-AWS.Lightsail = Service.defineService('lightsail', ['2016-11-28']);
-Object.defineProperty(apiLoader.services['lightsail'], '2016-11-28', {
- get: function get() {
- var model = __nccwpck_require__(94784);
- model.paginators = (__nccwpck_require__(17528)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Lightsail;
-
-
-/***/ }),
-
-/***/ 44594:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['location'] = {};
-AWS.Location = Service.defineService('location', ['2020-11-19']);
-Object.defineProperty(apiLoader.services['location'], '2020-11-19', {
- get: function get() {
- var model = __nccwpck_require__(79257);
- model.paginators = (__nccwpck_require__(53350)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Location;
-
-
-/***/ }),
-
-/***/ 21843:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['lookoutequipment'] = {};
-AWS.LookoutEquipment = Service.defineService('lookoutequipment', ['2020-12-15']);
-Object.defineProperty(apiLoader.services['lookoutequipment'], '2020-12-15', {
- get: function get() {
- var model = __nccwpck_require__(50969);
- model.paginators = (__nccwpck_require__(92858)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LookoutEquipment;
-
-
-/***/ }),
-
-/***/ 78708:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['lookoutmetrics'] = {};
-AWS.LookoutMetrics = Service.defineService('lookoutmetrics', ['2017-07-25']);
-Object.defineProperty(apiLoader.services['lookoutmetrics'], '2017-07-25', {
- get: function get() {
- var model = __nccwpck_require__(37749);
- model.paginators = (__nccwpck_require__(13366)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LookoutMetrics;
-
-
-/***/ }),
-
-/***/ 65046:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['lookoutvision'] = {};
-AWS.LookoutVision = Service.defineService('lookoutvision', ['2020-11-20']);
-Object.defineProperty(apiLoader.services['lookoutvision'], '2020-11-20', {
- get: function get() {
- var model = __nccwpck_require__(15110);
- model.paginators = (__nccwpck_require__(45644)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.LookoutVision;
-
-
-/***/ }),
-
-/***/ 22482:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['m2'] = {};
-AWS.M2 = Service.defineService('m2', ['2021-04-28']);
-Object.defineProperty(apiLoader.services['m2'], '2021-04-28', {
- get: function get() {
- var model = __nccwpck_require__(21363);
- model.paginators = (__nccwpck_require__(96286)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.M2;
-
-
-/***/ }),
-
-/***/ 82907:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['machinelearning'] = {};
-AWS.MachineLearning = Service.defineService('machinelearning', ['2014-12-12']);
-__nccwpck_require__(19174);
-Object.defineProperty(apiLoader.services['machinelearning'], '2014-12-12', {
- get: function get() {
- var model = __nccwpck_require__(4069);
- model.paginators = (__nccwpck_require__(95535)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(23194)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MachineLearning;
-
-
-/***/ }),
-
-/***/ 86427:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['macie'] = {};
-AWS.Macie = Service.defineService('macie', ['2017-12-19']);
-Object.defineProperty(apiLoader.services['macie'], '2017-12-19', {
- get: function get() {
- var model = __nccwpck_require__(99366);
- model.paginators = (__nccwpck_require__(34091)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Macie;
-
-
-/***/ }),
-
-/***/ 57330:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['macie2'] = {};
-AWS.Macie2 = Service.defineService('macie2', ['2020-01-01']);
-Object.defineProperty(apiLoader.services['macie2'], '2020-01-01', {
- get: function get() {
- var model = __nccwpck_require__(50847);
- model.paginators = (__nccwpck_require__(25947)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(71131)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Macie2;
-
-
-/***/ }),
-
-/***/ 85143:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['managedblockchain'] = {};
-AWS.ManagedBlockchain = Service.defineService('managedblockchain', ['2018-09-24']);
-Object.defineProperty(apiLoader.services['managedblockchain'], '2018-09-24', {
- get: function get() {
- var model = __nccwpck_require__(31229);
- model.paginators = (__nccwpck_require__(57358)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ManagedBlockchain;
-
-
-/***/ }),
-
-/***/ 51046:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['managedblockchainquery'] = {};
-AWS.ManagedBlockchainQuery = Service.defineService('managedblockchainquery', ['2023-05-04']);
-Object.defineProperty(apiLoader.services['managedblockchainquery'], '2023-05-04', {
- get: function get() {
- var model = __nccwpck_require__(53546);
- model.paginators = (__nccwpck_require__(95929)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(17688)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ManagedBlockchainQuery;
-
-
-/***/ }),
-
-/***/ 2609:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['marketplacecatalog'] = {};
-AWS.MarketplaceCatalog = Service.defineService('marketplacecatalog', ['2018-09-17']);
-Object.defineProperty(apiLoader.services['marketplacecatalog'], '2018-09-17', {
- get: function get() {
- var model = __nccwpck_require__(87122);
- model.paginators = (__nccwpck_require__(30187)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MarketplaceCatalog;
-
-
-/***/ }),
-
-/***/ 4540:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['marketplacecommerceanalytics'] = {};
-AWS.MarketplaceCommerceAnalytics = Service.defineService('marketplacecommerceanalytics', ['2015-07-01']);
-Object.defineProperty(apiLoader.services['marketplacecommerceanalytics'], '2015-07-01', {
- get: function get() {
- var model = __nccwpck_require__(96696);
- model.paginators = (__nccwpck_require__(43265)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MarketplaceCommerceAnalytics;
-
-
-/***/ }),
-
-/***/ 53707:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['marketplaceentitlementservice'] = {};
-AWS.MarketplaceEntitlementService = Service.defineService('marketplaceentitlementservice', ['2017-01-11']);
-Object.defineProperty(apiLoader.services['marketplaceentitlementservice'], '2017-01-11', {
- get: function get() {
- var model = __nccwpck_require__(64253);
- model.paginators = (__nccwpck_require__(67012)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MarketplaceEntitlementService;
-
-
-/***/ }),
-
-/***/ 39297:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['marketplacemetering'] = {};
-AWS.MarketplaceMetering = Service.defineService('marketplacemetering', ['2016-01-14']);
-Object.defineProperty(apiLoader.services['marketplacemetering'], '2016-01-14', {
- get: function get() {
- var model = __nccwpck_require__(43027);
- model.paginators = (__nccwpck_require__(4843)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MarketplaceMetering;
-
-
-/***/ }),
-
-/***/ 67639:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mediaconnect'] = {};
-AWS.MediaConnect = Service.defineService('mediaconnect', ['2018-11-14']);
-Object.defineProperty(apiLoader.services['mediaconnect'], '2018-11-14', {
- get: function get() {
- var model = __nccwpck_require__(85245);
- model.paginators = (__nccwpck_require__(68160)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(42876)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MediaConnect;
-
-
-/***/ }),
-
-/***/ 57220:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mediaconvert'] = {};
-AWS.MediaConvert = Service.defineService('mediaconvert', ['2017-08-29']);
-Object.defineProperty(apiLoader.services['mediaconvert'], '2017-08-29', {
- get: function get() {
- var model = __nccwpck_require__(41924);
- model.paginators = (__nccwpck_require__(14179)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MediaConvert;
-
-
-/***/ }),
-
-/***/ 7509:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['medialive'] = {};
-AWS.MediaLive = Service.defineService('medialive', ['2017-10-14']);
-Object.defineProperty(apiLoader.services['medialive'], '2017-10-14', {
- get: function get() {
- var model = __nccwpck_require__(32326);
- model.paginators = (__nccwpck_require__(84652)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(17259)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MediaLive;
-
-
-/***/ }),
-
-/***/ 91620:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mediapackage'] = {};
-AWS.MediaPackage = Service.defineService('mediapackage', ['2017-10-12']);
-Object.defineProperty(apiLoader.services['mediapackage'], '2017-10-12', {
- get: function get() {
- var model = __nccwpck_require__(51261);
- model.paginators = (__nccwpck_require__(48933)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MediaPackage;
-
-
-/***/ }),
-
-/***/ 53264:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mediapackagev2'] = {};
-AWS.MediaPackageV2 = Service.defineService('mediapackagev2', ['2022-12-25']);
-Object.defineProperty(apiLoader.services['mediapackagev2'], '2022-12-25', {
- get: function get() {
- var model = __nccwpck_require__(37594);
- model.paginators = (__nccwpck_require__(44503)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(68906)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MediaPackageV2;
-
-
-/***/ }),
-
-/***/ 14962:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mediapackagevod'] = {};
-AWS.MediaPackageVod = Service.defineService('mediapackagevod', ['2018-11-07']);
-Object.defineProperty(apiLoader.services['mediapackagevod'], '2018-11-07', {
- get: function get() {
- var model = __nccwpck_require__(98877);
- model.paginators = (__nccwpck_require__(48422)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MediaPackageVod;
-
-
-/***/ }),
-
-/***/ 83748:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mediastore'] = {};
-AWS.MediaStore = Service.defineService('mediastore', ['2017-09-01']);
-Object.defineProperty(apiLoader.services['mediastore'], '2017-09-01', {
- get: function get() {
- var model = __nccwpck_require__(68901);
- model.paginators = (__nccwpck_require__(5848)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MediaStore;
-
-
-/***/ }),
-
-/***/ 98703:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mediastoredata'] = {};
-AWS.MediaStoreData = Service.defineService('mediastoredata', ['2017-09-01']);
-Object.defineProperty(apiLoader.services['mediastoredata'], '2017-09-01', {
- get: function get() {
- var model = __nccwpck_require__(55081);
- model.paginators = (__nccwpck_require__(97948)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MediaStoreData;
-
-
-/***/ }),
-
-/***/ 99658:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mediatailor'] = {};
-AWS.MediaTailor = Service.defineService('mediatailor', ['2018-04-23']);
-Object.defineProperty(apiLoader.services['mediatailor'], '2018-04-23', {
- get: function get() {
- var model = __nccwpck_require__(77511);
- model.paginators = (__nccwpck_require__(68557)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MediaTailor;
-
-
-/***/ }),
-
-/***/ 79712:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['medicalimaging'] = {};
-AWS.MedicalImaging = Service.defineService('medicalimaging', ['2023-07-19']);
-Object.defineProperty(apiLoader.services['medicalimaging'], '2023-07-19', {
- get: function get() {
- var model = __nccwpck_require__(46663);
- model.paginators = (__nccwpck_require__(63177)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(63171)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MedicalImaging;
-
-
-/***/ }),
-
-/***/ 50782:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['memorydb'] = {};
-AWS.MemoryDB = Service.defineService('memorydb', ['2021-01-01']);
-Object.defineProperty(apiLoader.services['memorydb'], '2021-01-01', {
- get: function get() {
- var model = __nccwpck_require__(51950);
- model.paginators = (__nccwpck_require__(93809)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MemoryDB;
-
-
-/***/ }),
-
-/***/ 41339:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mgn'] = {};
-AWS.Mgn = Service.defineService('mgn', ['2020-02-26']);
-Object.defineProperty(apiLoader.services['mgn'], '2020-02-26', {
- get: function get() {
- var model = __nccwpck_require__(65811);
- model.paginators = (__nccwpck_require__(52443)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Mgn;
-
-
-/***/ }),
-
-/***/ 14688:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['migrationhub'] = {};
-AWS.MigrationHub = Service.defineService('migrationhub', ['2017-05-31']);
-Object.defineProperty(apiLoader.services['migrationhub'], '2017-05-31', {
- get: function get() {
- var model = __nccwpck_require__(99161);
- model.paginators = (__nccwpck_require__(27903)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MigrationHub;
-
-
-/***/ }),
-
-/***/ 62658:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['migrationhubconfig'] = {};
-AWS.MigrationHubConfig = Service.defineService('migrationhubconfig', ['2019-06-30']);
-Object.defineProperty(apiLoader.services['migrationhubconfig'], '2019-06-30', {
- get: function get() {
- var model = __nccwpck_require__(59734);
- model.paginators = (__nccwpck_require__(51497)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MigrationHubConfig;
-
-
-/***/ }),
-
-/***/ 66120:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['migrationhuborchestrator'] = {};
-AWS.MigrationHubOrchestrator = Service.defineService('migrationhuborchestrator', ['2021-08-28']);
-Object.defineProperty(apiLoader.services['migrationhuborchestrator'], '2021-08-28', {
- get: function get() {
- var model = __nccwpck_require__(73093);
- model.paginators = (__nccwpck_require__(24233)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(83173)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MigrationHubOrchestrator;
-
-
-/***/ }),
-
-/***/ 2925:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['migrationhubrefactorspaces'] = {};
-AWS.MigrationHubRefactorSpaces = Service.defineService('migrationhubrefactorspaces', ['2021-10-26']);
-Object.defineProperty(apiLoader.services['migrationhubrefactorspaces'], '2021-10-26', {
- get: function get() {
- var model = __nccwpck_require__(17110);
- model.paginators = (__nccwpck_require__(63789)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MigrationHubRefactorSpaces;
-
-
-/***/ }),
-
-/***/ 96533:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['migrationhubstrategy'] = {};
-AWS.MigrationHubStrategy = Service.defineService('migrationhubstrategy', ['2020-02-19']);
-Object.defineProperty(apiLoader.services['migrationhubstrategy'], '2020-02-19', {
- get: function get() {
- var model = __nccwpck_require__(64663);
- model.paginators = (__nccwpck_require__(30896)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MigrationHubStrategy;
-
-
-/***/ }),
-
-/***/ 39782:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mobile'] = {};
-AWS.Mobile = Service.defineService('mobile', ['2017-07-01']);
-Object.defineProperty(apiLoader.services['mobile'], '2017-07-01', {
- get: function get() {
- var model = __nccwpck_require__(51691);
- model.paginators = (__nccwpck_require__(43522)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Mobile;
-
-
-/***/ }),
-
-/***/ 66690:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mobileanalytics'] = {};
-AWS.MobileAnalytics = Service.defineService('mobileanalytics', ['2014-06-05']);
-Object.defineProperty(apiLoader.services['mobileanalytics'], '2014-06-05', {
- get: function get() {
- var model = __nccwpck_require__(90338);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MobileAnalytics;
-
-
-/***/ }),
-
-/***/ 23093:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mq'] = {};
-AWS.MQ = Service.defineService('mq', ['2017-11-27']);
-Object.defineProperty(apiLoader.services['mq'], '2017-11-27', {
- get: function get() {
- var model = __nccwpck_require__(35102);
- model.paginators = (__nccwpck_require__(46095)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MQ;
-
-
-/***/ }),
-
-/***/ 79954:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mturk'] = {};
-AWS.MTurk = Service.defineService('mturk', ['2017-01-17']);
-Object.defineProperty(apiLoader.services['mturk'], '2017-01-17', {
- get: function get() {
- var model = __nccwpck_require__(73064);
- model.paginators = (__nccwpck_require__(42409)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MTurk;
-
-
-/***/ }),
-
-/***/ 32712:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['mwaa'] = {};
-AWS.MWAA = Service.defineService('mwaa', ['2020-07-01']);
-Object.defineProperty(apiLoader.services['mwaa'], '2020-07-01', {
- get: function get() {
- var model = __nccwpck_require__(56612);
- model.paginators = (__nccwpck_require__(11793)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.MWAA;
-
-
-/***/ }),
-
-/***/ 30047:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['neptune'] = {};
-AWS.Neptune = Service.defineService('neptune', ['2014-10-31']);
-__nccwpck_require__(73090);
-Object.defineProperty(apiLoader.services['neptune'], '2014-10-31', {
- get: function get() {
- var model = __nccwpck_require__(50018);
- model.paginators = (__nccwpck_require__(62952)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(8127)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Neptune;
-
-
-/***/ }),
-
-/***/ 84626:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['networkfirewall'] = {};
-AWS.NetworkFirewall = Service.defineService('networkfirewall', ['2020-11-12']);
-Object.defineProperty(apiLoader.services['networkfirewall'], '2020-11-12', {
- get: function get() {
- var model = __nccwpck_require__(63757);
- model.paginators = (__nccwpck_require__(74798)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.NetworkFirewall;
-
-
-/***/ }),
-
-/***/ 37610:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['networkmanager'] = {};
-AWS.NetworkManager = Service.defineService('networkmanager', ['2019-07-05']);
-Object.defineProperty(apiLoader.services['networkmanager'], '2019-07-05', {
- get: function get() {
- var model = __nccwpck_require__(10151);
- model.paginators = (__nccwpck_require__(68278)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.NetworkManager;
-
-
-/***/ }),
-
-/***/ 89428:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['nimble'] = {};
-AWS.Nimble = Service.defineService('nimble', ['2020-08-01']);
-Object.defineProperty(apiLoader.services['nimble'], '2020-08-01', {
- get: function get() {
- var model = __nccwpck_require__(50605);
- model.paginators = (__nccwpck_require__(65300)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(42486)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Nimble;
-
-
-/***/ }),
-
-/***/ 9319:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['oam'] = {};
-AWS.OAM = Service.defineService('oam', ['2022-06-10']);
-Object.defineProperty(apiLoader.services['oam'], '2022-06-10', {
- get: function get() {
- var model = __nccwpck_require__(13463);
- model.paginators = (__nccwpck_require__(55717)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.OAM;
-
-
-/***/ }),
-
-/***/ 75114:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['omics'] = {};
-AWS.Omics = Service.defineService('omics', ['2022-11-28']);
-Object.defineProperty(apiLoader.services['omics'], '2022-11-28', {
- get: function get() {
- var model = __nccwpck_require__(74258);
- model.paginators = (__nccwpck_require__(78278)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(31165)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Omics;
-
-
-/***/ }),
-
-/***/ 60358:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['opensearch'] = {};
-AWS.OpenSearch = Service.defineService('opensearch', ['2021-01-01']);
-Object.defineProperty(apiLoader.services['opensearch'], '2021-01-01', {
- get: function get() {
- var model = __nccwpck_require__(90583);
- model.paginators = (__nccwpck_require__(32668)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.OpenSearch;
-
-
-/***/ }),
-
-/***/ 86277:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['opensearchserverless'] = {};
-AWS.OpenSearchServerless = Service.defineService('opensearchserverless', ['2021-11-01']);
-Object.defineProperty(apiLoader.services['opensearchserverless'], '2021-11-01', {
- get: function get() {
- var model = __nccwpck_require__(61668);
- model.paginators = (__nccwpck_require__(68785)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.OpenSearchServerless;
-
-
-/***/ }),
-
-/***/ 75691:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['opsworks'] = {};
-AWS.OpsWorks = Service.defineService('opsworks', ['2013-02-18']);
-Object.defineProperty(apiLoader.services['opsworks'], '2013-02-18', {
- get: function get() {
- var model = __nccwpck_require__(22805);
- model.paginators = (__nccwpck_require__(24750)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(74961)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.OpsWorks;
-
-
-/***/ }),
-
-/***/ 80388:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['opsworkscm'] = {};
-AWS.OpsWorksCM = Service.defineService('opsworkscm', ['2016-11-01']);
-Object.defineProperty(apiLoader.services['opsworkscm'], '2016-11-01', {
- get: function get() {
- var model = __nccwpck_require__(56705);
- model.paginators = (__nccwpck_require__(49463)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(65003)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.OpsWorksCM;
-
-
-/***/ }),
-
-/***/ 44670:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['organizations'] = {};
-AWS.Organizations = Service.defineService('organizations', ['2016-11-28']);
-Object.defineProperty(apiLoader.services['organizations'], '2016-11-28', {
- get: function get() {
- var model = __nccwpck_require__(58874);
- model.paginators = (__nccwpck_require__(43261)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Organizations;
-
-
-/***/ }),
-
-/***/ 98021:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['osis'] = {};
-AWS.OSIS = Service.defineService('osis', ['2022-01-01']);
-Object.defineProperty(apiLoader.services['osis'], '2022-01-01', {
- get: function get() {
- var model = __nccwpck_require__(51838);
- model.paginators = (__nccwpck_require__(72472)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.OSIS;
-
-
-/***/ }),
-
-/***/ 27551:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['outposts'] = {};
-AWS.Outposts = Service.defineService('outposts', ['2019-12-03']);
-Object.defineProperty(apiLoader.services['outposts'], '2019-12-03', {
- get: function get() {
- var model = __nccwpck_require__(4807);
- model.paginators = (__nccwpck_require__(3364)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Outposts;
-
-
-/***/ }),
-
-/***/ 20368:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['panorama'] = {};
-AWS.Panorama = Service.defineService('panorama', ['2019-07-24']);
-Object.defineProperty(apiLoader.services['panorama'], '2019-07-24', {
- get: function get() {
- var model = __nccwpck_require__(91489);
- model.paginators = (__nccwpck_require__(77238)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Panorama;
-
-
-/***/ }),
-
-/***/ 11594:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['paymentcryptography'] = {};
-AWS.PaymentCryptography = Service.defineService('paymentcryptography', ['2021-09-14']);
-Object.defineProperty(apiLoader.services['paymentcryptography'], '2021-09-14', {
- get: function get() {
- var model = __nccwpck_require__(86072);
- model.paginators = (__nccwpck_require__(17819)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.PaymentCryptography;
-
-
-/***/ }),
-
-/***/ 96559:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['paymentcryptographydata'] = {};
-AWS.PaymentCryptographyData = Service.defineService('paymentcryptographydata', ['2022-02-03']);
-Object.defineProperty(apiLoader.services['paymentcryptographydata'], '2022-02-03', {
- get: function get() {
- var model = __nccwpck_require__(68578);
- model.paginators = (__nccwpck_require__(89757)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.PaymentCryptographyData;
-
-
-/***/ }),
-
-/***/ 33696:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['personalize'] = {};
-AWS.Personalize = Service.defineService('personalize', ['2018-05-22']);
-Object.defineProperty(apiLoader.services['personalize'], '2018-05-22', {
- get: function get() {
- var model = __nccwpck_require__(70169);
- model.paginators = (__nccwpck_require__(64441)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Personalize;
-
-
-/***/ }),
-
-/***/ 88170:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['personalizeevents'] = {};
-AWS.PersonalizeEvents = Service.defineService('personalizeevents', ['2018-03-22']);
-Object.defineProperty(apiLoader.services['personalizeevents'], '2018-03-22', {
- get: function get() {
- var model = __nccwpck_require__(3606);
- model.paginators = (__nccwpck_require__(94507)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.PersonalizeEvents;
-
-
-/***/ }),
-
-/***/ 66184:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['personalizeruntime'] = {};
-AWS.PersonalizeRuntime = Service.defineService('personalizeruntime', ['2018-05-22']);
-Object.defineProperty(apiLoader.services['personalizeruntime'], '2018-05-22', {
- get: function get() {
- var model = __nccwpck_require__(18824);
- model.paginators = (__nccwpck_require__(8069)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.PersonalizeRuntime;
-
-
-/***/ }),
-
-/***/ 15505:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['pi'] = {};
-AWS.PI = Service.defineService('pi', ['2018-02-27']);
-Object.defineProperty(apiLoader.services['pi'], '2018-02-27', {
- get: function get() {
- var model = __nccwpck_require__(18761);
- model.paginators = (__nccwpck_require__(84882)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.PI;
-
-
-/***/ }),
-
-/***/ 18388:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['pinpoint'] = {};
-AWS.Pinpoint = Service.defineService('pinpoint', ['2016-12-01']);
-Object.defineProperty(apiLoader.services['pinpoint'], '2016-12-01', {
- get: function get() {
- var model = __nccwpck_require__(40605);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Pinpoint;
-
-
-/***/ }),
-
-/***/ 83060:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['pinpointemail'] = {};
-AWS.PinpointEmail = Service.defineService('pinpointemail', ['2018-07-26']);
-Object.defineProperty(apiLoader.services['pinpointemail'], '2018-07-26', {
- get: function get() {
- var model = __nccwpck_require__(55228);
- model.paginators = (__nccwpck_require__(45172)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.PinpointEmail;
-
-
-/***/ }),
-
-/***/ 46605:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['pinpointsmsvoice'] = {};
-AWS.PinpointSMSVoice = Service.defineService('pinpointsmsvoice', ['2018-09-05']);
-Object.defineProperty(apiLoader.services['pinpointsmsvoice'], '2018-09-05', {
- get: function get() {
- var model = __nccwpck_require__(98689);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.PinpointSMSVoice;
-
-
-/***/ }),
-
-/***/ 478:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['pinpointsmsvoicev2'] = {};
-AWS.PinpointSMSVoiceV2 = Service.defineService('pinpointsmsvoicev2', ['2022-03-31']);
-Object.defineProperty(apiLoader.services['pinpointsmsvoicev2'], '2022-03-31', {
- get: function get() {
- var model = __nccwpck_require__(88319);
- model.paginators = (__nccwpck_require__(80650)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(6663)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.PinpointSMSVoiceV2;
-
-
-/***/ }),
-
-/***/ 14220:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['pipes'] = {};
-AWS.Pipes = Service.defineService('pipes', ['2015-10-07']);
-Object.defineProperty(apiLoader.services['pipes'], '2015-10-07', {
- get: function get() {
- var model = __nccwpck_require__(40616);
- model.paginators = (__nccwpck_require__(17710)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Pipes;
-
-
-/***/ }),
-
-/***/ 97332:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['polly'] = {};
-AWS.Polly = Service.defineService('polly', ['2016-06-10']);
-__nccwpck_require__(53199);
-Object.defineProperty(apiLoader.services['polly'], '2016-06-10', {
- get: function get() {
- var model = __nccwpck_require__(55078);
- model.paginators = (__nccwpck_require__(77060)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Polly;
-
-
-/***/ }),
-
-/***/ 92765:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['pricing'] = {};
-AWS.Pricing = Service.defineService('pricing', ['2017-10-15']);
-Object.defineProperty(apiLoader.services['pricing'], '2017-10-15', {
- get: function get() {
- var model = __nccwpck_require__(22484);
- model.paginators = (__nccwpck_require__(60369)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(41996)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Pricing;
-
-
-/***/ }),
-
-/***/ 63088:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['privatenetworks'] = {};
-AWS.PrivateNetworks = Service.defineService('privatenetworks', ['2021-12-03']);
-Object.defineProperty(apiLoader.services['privatenetworks'], '2021-12-03', {
- get: function get() {
- var model = __nccwpck_require__(46306);
- model.paginators = (__nccwpck_require__(42771)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.PrivateNetworks;
-
-
-/***/ }),
-
-/***/ 9275:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['proton'] = {};
-AWS.Proton = Service.defineService('proton', ['2020-07-20']);
-Object.defineProperty(apiLoader.services['proton'], '2020-07-20', {
- get: function get() {
- var model = __nccwpck_require__(78577);
- model.paginators = (__nccwpck_require__(14299)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(99338)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Proton;
-
-
-/***/ }),
-
-/***/ 71266:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['qldb'] = {};
-AWS.QLDB = Service.defineService('qldb', ['2019-01-02']);
-Object.defineProperty(apiLoader.services['qldb'], '2019-01-02', {
- get: function get() {
- var model = __nccwpck_require__(71346);
- model.paginators = (__nccwpck_require__(34265)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.QLDB;
-
-
-/***/ }),
-
-/***/ 55423:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['qldbsession'] = {};
-AWS.QLDBSession = Service.defineService('qldbsession', ['2019-07-11']);
-Object.defineProperty(apiLoader.services['qldbsession'], '2019-07-11', {
- get: function get() {
- var model = __nccwpck_require__(60040);
- model.paginators = (__nccwpck_require__(61051)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.QLDBSession;
-
-
-/***/ }),
-
-/***/ 29898:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['quicksight'] = {};
-AWS.QuickSight = Service.defineService('quicksight', ['2018-04-01']);
-Object.defineProperty(apiLoader.services['quicksight'], '2018-04-01', {
- get: function get() {
- var model = __nccwpck_require__(8419);
- model.paginators = (__nccwpck_require__(43387)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.QuickSight;
-
-
-/***/ }),
-
-/***/ 94394:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ram'] = {};
-AWS.RAM = Service.defineService('ram', ['2018-01-04']);
-Object.defineProperty(apiLoader.services['ram'], '2018-01-04', {
- get: function get() {
- var model = __nccwpck_require__(61375);
- model.paginators = (__nccwpck_require__(85336)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.RAM;
-
-
-/***/ }),
-
-/***/ 70145:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['rbin'] = {};
-AWS.Rbin = Service.defineService('rbin', ['2021-06-15']);
-Object.defineProperty(apiLoader.services['rbin'], '2021-06-15', {
- get: function get() {
- var model = __nccwpck_require__(18897);
- model.paginators = (__nccwpck_require__(57601)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Rbin;
-
-
-/***/ }),
-
-/***/ 71578:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['rds'] = {};
-AWS.RDS = Service.defineService('rds', ['2013-01-10', '2013-02-12', '2013-09-09', '2014-09-01', '2014-09-01*', '2014-10-31']);
-__nccwpck_require__(71928);
-Object.defineProperty(apiLoader.services['rds'], '2013-01-10', {
- get: function get() {
- var model = __nccwpck_require__(59989);
- model.paginators = (__nccwpck_require__(978)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['rds'], '2013-02-12', {
- get: function get() {
- var model = __nccwpck_require__(55061);
- model.paginators = (__nccwpck_require__(39581)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['rds'], '2013-09-09', {
- get: function get() {
- var model = __nccwpck_require__(36331);
- model.paginators = (__nccwpck_require__(14485)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(36851)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['rds'], '2014-09-01', {
- get: function get() {
- var model = __nccwpck_require__(19226);
- model.paginators = (__nccwpck_require__(49863)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-Object.defineProperty(apiLoader.services['rds'], '2014-10-31', {
- get: function get() {
- var model = __nccwpck_require__(91916);
- model.paginators = (__nccwpck_require__(85082)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(20371)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.RDS;
-
-
-/***/ }),
-
-/***/ 30147:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['rdsdataservice'] = {};
-AWS.RDSDataService = Service.defineService('rdsdataservice', ['2018-08-01']);
-__nccwpck_require__(64070);
-Object.defineProperty(apiLoader.services['rdsdataservice'], '2018-08-01', {
- get: function get() {
- var model = __nccwpck_require__(13559);
- model.paginators = (__nccwpck_require__(41160)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.RDSDataService;
-
-
-/***/ }),
-
-/***/ 84853:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['redshift'] = {};
-AWS.Redshift = Service.defineService('redshift', ['2012-12-01']);
-Object.defineProperty(apiLoader.services['redshift'], '2012-12-01', {
- get: function get() {
- var model = __nccwpck_require__(24827);
- model.paginators = (__nccwpck_require__(88012)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(79011)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Redshift;
-
-
-/***/ }),
-
-/***/ 203:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['redshiftdata'] = {};
-AWS.RedshiftData = Service.defineService('redshiftdata', ['2019-12-20']);
-Object.defineProperty(apiLoader.services['redshiftdata'], '2019-12-20', {
- get: function get() {
- var model = __nccwpck_require__(85203);
- model.paginators = (__nccwpck_require__(27797)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.RedshiftData;
-
-
-/***/ }),
-
-/***/ 29987:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['redshiftserverless'] = {};
-AWS.RedshiftServerless = Service.defineService('redshiftserverless', ['2021-04-21']);
-Object.defineProperty(apiLoader.services['redshiftserverless'], '2021-04-21', {
- get: function get() {
- var model = __nccwpck_require__(95705);
- model.paginators = (__nccwpck_require__(892)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.RedshiftServerless;
-
-
-/***/ }),
-
-/***/ 65470:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['rekognition'] = {};
-AWS.Rekognition = Service.defineService('rekognition', ['2016-06-27']);
-Object.defineProperty(apiLoader.services['rekognition'], '2016-06-27', {
- get: function get() {
- var model = __nccwpck_require__(66442);
- model.paginators = (__nccwpck_require__(37753)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(78910)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Rekognition;
-
-
-/***/ }),
-
-/***/ 21173:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['resiliencehub'] = {};
-AWS.Resiliencehub = Service.defineService('resiliencehub', ['2020-04-30']);
-Object.defineProperty(apiLoader.services['resiliencehub'], '2020-04-30', {
- get: function get() {
- var model = __nccwpck_require__(3885);
- model.paginators = (__nccwpck_require__(38750)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Resiliencehub;
-
-
-/***/ }),
-
-/***/ 74071:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['resourceexplorer2'] = {};
-AWS.ResourceExplorer2 = Service.defineService('resourceexplorer2', ['2022-07-28']);
-Object.defineProperty(apiLoader.services['resourceexplorer2'], '2022-07-28', {
- get: function get() {
- var model = __nccwpck_require__(26515);
- model.paginators = (__nccwpck_require__(8580)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ResourceExplorer2;
-
-
-/***/ }),
-
-/***/ 58756:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['resourcegroups'] = {};
-AWS.ResourceGroups = Service.defineService('resourcegroups', ['2017-11-27']);
-Object.defineProperty(apiLoader.services['resourcegroups'], '2017-11-27', {
- get: function get() {
- var model = __nccwpck_require__(73621);
- model.paginators = (__nccwpck_require__(24085)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ResourceGroups;
-
-
-/***/ }),
-
-/***/ 7385:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['resourcegroupstaggingapi'] = {};
-AWS.ResourceGroupsTaggingAPI = Service.defineService('resourcegroupstaggingapi', ['2017-01-26']);
-Object.defineProperty(apiLoader.services['resourcegroupstaggingapi'], '2017-01-26', {
- get: function get() {
- var model = __nccwpck_require__(71720);
- model.paginators = (__nccwpck_require__(36635)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ResourceGroupsTaggingAPI;
-
-
-/***/ }),
-
-/***/ 18068:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['robomaker'] = {};
-AWS.RoboMaker = Service.defineService('robomaker', ['2018-06-29']);
-Object.defineProperty(apiLoader.services['robomaker'], '2018-06-29', {
- get: function get() {
- var model = __nccwpck_require__(6904);
- model.paginators = (__nccwpck_require__(43495)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.RoboMaker;
-
-
-/***/ }),
-
-/***/ 83604:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['rolesanywhere'] = {};
-AWS.RolesAnywhere = Service.defineService('rolesanywhere', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['rolesanywhere'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(80801);
- model.paginators = (__nccwpck_require__(65955)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.RolesAnywhere;
-
-
-/***/ }),
-
-/***/ 44968:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['route53'] = {};
-AWS.Route53 = Service.defineService('route53', ['2013-04-01']);
-__nccwpck_require__(69627);
-Object.defineProperty(apiLoader.services['route53'], '2013-04-01', {
- get: function get() {
- var model = __nccwpck_require__(20959);
- model.paginators = (__nccwpck_require__(46456)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(28347)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Route53;
-
-
-/***/ }),
-
-/***/ 51994:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['route53domains'] = {};
-AWS.Route53Domains = Service.defineService('route53domains', ['2014-05-15']);
-Object.defineProperty(apiLoader.services['route53domains'], '2014-05-15', {
- get: function get() {
- var model = __nccwpck_require__(57598);
- model.paginators = (__nccwpck_require__(52189)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Route53Domains;
-
-
-/***/ }),
-
-/***/ 35738:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['route53recoverycluster'] = {};
-AWS.Route53RecoveryCluster = Service.defineService('route53recoverycluster', ['2019-12-02']);
-Object.defineProperty(apiLoader.services['route53recoverycluster'], '2019-12-02', {
- get: function get() {
- var model = __nccwpck_require__(73989);
- model.paginators = (__nccwpck_require__(69118)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Route53RecoveryCluster;
-
-
-/***/ }),
-
-/***/ 16063:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['route53recoverycontrolconfig'] = {};
-AWS.Route53RecoveryControlConfig = Service.defineService('route53recoverycontrolconfig', ['2020-11-02']);
-Object.defineProperty(apiLoader.services['route53recoverycontrolconfig'], '2020-11-02', {
- get: function get() {
- var model = __nccwpck_require__(38334);
- model.paginators = (__nccwpck_require__(19728)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(57184)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Route53RecoveryControlConfig;
-
-
-/***/ }),
-
-/***/ 79106:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['route53recoveryreadiness'] = {};
-AWS.Route53RecoveryReadiness = Service.defineService('route53recoveryreadiness', ['2019-12-02']);
-Object.defineProperty(apiLoader.services['route53recoveryreadiness'], '2019-12-02', {
- get: function get() {
- var model = __nccwpck_require__(40156);
- model.paginators = (__nccwpck_require__(74839)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Route53RecoveryReadiness;
-
-
-/***/ }),
-
-/***/ 25894:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['route53resolver'] = {};
-AWS.Route53Resolver = Service.defineService('route53resolver', ['2018-04-01']);
-Object.defineProperty(apiLoader.services['route53resolver'], '2018-04-01', {
- get: function get() {
- var model = __nccwpck_require__(89229);
- model.paginators = (__nccwpck_require__(95050)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Route53Resolver;
-
-
-/***/ }),
-
-/***/ 53237:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['rum'] = {};
-AWS.RUM = Service.defineService('rum', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['rum'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(84126);
- model.paginators = (__nccwpck_require__(79432)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.RUM;
-
-
-/***/ }),
-
-/***/ 83256:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['s3'] = {};
-AWS.S3 = Service.defineService('s3', ['2006-03-01']);
-__nccwpck_require__(26543);
-Object.defineProperty(apiLoader.services['s3'], '2006-03-01', {
- get: function get() {
- var model = __nccwpck_require__(1129);
- model.paginators = (__nccwpck_require__(7265)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(74048)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.S3;
-
-
-/***/ }),
-
-/***/ 99817:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['s3control'] = {};
-AWS.S3Control = Service.defineService('s3control', ['2018-08-20']);
-__nccwpck_require__(71207);
-Object.defineProperty(apiLoader.services['s3control'], '2018-08-20', {
- get: function get() {
- var model = __nccwpck_require__(1201);
- model.paginators = (__nccwpck_require__(55527)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.S3Control;
-
-
-/***/ }),
-
-/***/ 90493:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['s3outposts'] = {};
-AWS.S3Outposts = Service.defineService('s3outposts', ['2017-07-25']);
-Object.defineProperty(apiLoader.services['s3outposts'], '2017-07-25', {
- get: function get() {
- var model = __nccwpck_require__(79971);
- model.paginators = (__nccwpck_require__(32505)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.S3Outposts;
-
-
-/***/ }),
-
-/***/ 77657:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sagemaker'] = {};
-AWS.SageMaker = Service.defineService('sagemaker', ['2017-07-24']);
-Object.defineProperty(apiLoader.services['sagemaker'], '2017-07-24', {
- get: function get() {
- var model = __nccwpck_require__(71132);
- model.paginators = (__nccwpck_require__(69254)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(80824)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SageMaker;
-
-
-/***/ }),
-
-/***/ 38966:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sagemakeredge'] = {};
-AWS.SagemakerEdge = Service.defineService('sagemakeredge', ['2020-09-23']);
-Object.defineProperty(apiLoader.services['sagemakeredge'], '2020-09-23', {
- get: function get() {
- var model = __nccwpck_require__(97093);
- model.paginators = (__nccwpck_require__(71636)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SagemakerEdge;
-
-
-/***/ }),
-
-/***/ 67644:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sagemakerfeaturestoreruntime'] = {};
-AWS.SageMakerFeatureStoreRuntime = Service.defineService('sagemakerfeaturestoreruntime', ['2020-07-01']);
-Object.defineProperty(apiLoader.services['sagemakerfeaturestoreruntime'], '2020-07-01', {
- get: function get() {
- var model = __nccwpck_require__(75546);
- model.paginators = (__nccwpck_require__(12151)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SageMakerFeatureStoreRuntime;
-
-
-/***/ }),
-
-/***/ 4707:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sagemakergeospatial'] = {};
-AWS.SageMakerGeospatial = Service.defineService('sagemakergeospatial', ['2020-05-27']);
-Object.defineProperty(apiLoader.services['sagemakergeospatial'], '2020-05-27', {
- get: function get() {
- var model = __nccwpck_require__(26059);
- model.paginators = (__nccwpck_require__(99606)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SageMakerGeospatial;
-
-
-/***/ }),
-
-/***/ 28199:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sagemakermetrics'] = {};
-AWS.SageMakerMetrics = Service.defineService('sagemakermetrics', ['2022-09-30']);
-Object.defineProperty(apiLoader.services['sagemakermetrics'], '2022-09-30', {
- get: function get() {
- var model = __nccwpck_require__(89834);
- model.paginators = (__nccwpck_require__(80107)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SageMakerMetrics;
-
-
-/***/ }),
-
-/***/ 85044:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sagemakerruntime'] = {};
-AWS.SageMakerRuntime = Service.defineService('sagemakerruntime', ['2017-05-13']);
-Object.defineProperty(apiLoader.services['sagemakerruntime'], '2017-05-13', {
- get: function get() {
- var model = __nccwpck_require__(27032);
- model.paginators = (__nccwpck_require__(7570)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SageMakerRuntime;
-
-
-/***/ }),
-
-/***/ 62825:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['savingsplans'] = {};
-AWS.SavingsPlans = Service.defineService('savingsplans', ['2019-06-28']);
-Object.defineProperty(apiLoader.services['savingsplans'], '2019-06-28', {
- get: function get() {
- var model = __nccwpck_require__(46879);
- model.paginators = (__nccwpck_require__(78998)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SavingsPlans;
-
-
-/***/ }),
-
-/***/ 94840:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['scheduler'] = {};
-AWS.Scheduler = Service.defineService('scheduler', ['2021-06-30']);
-Object.defineProperty(apiLoader.services['scheduler'], '2021-06-30', {
- get: function get() {
- var model = __nccwpck_require__(36876);
- model.paginators = (__nccwpck_require__(54594)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Scheduler;
-
-
-/***/ }),
-
-/***/ 55713:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['schemas'] = {};
-AWS.Schemas = Service.defineService('schemas', ['2019-12-02']);
-Object.defineProperty(apiLoader.services['schemas'], '2019-12-02', {
- get: function get() {
- var model = __nccwpck_require__(76626);
- model.paginators = (__nccwpck_require__(34227)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(62213)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Schemas;
-
-
-/***/ }),
-
-/***/ 85131:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['secretsmanager'] = {};
-AWS.SecretsManager = Service.defineService('secretsmanager', ['2017-10-17']);
-Object.defineProperty(apiLoader.services['secretsmanager'], '2017-10-17', {
- get: function get() {
- var model = __nccwpck_require__(89470);
- model.paginators = (__nccwpck_require__(25613)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SecretsManager;
-
-
-/***/ }),
-
-/***/ 21550:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['securityhub'] = {};
-AWS.SecurityHub = Service.defineService('securityhub', ['2018-10-26']);
-Object.defineProperty(apiLoader.services['securityhub'], '2018-10-26', {
- get: function get() {
- var model = __nccwpck_require__(29208);
- model.paginators = (__nccwpck_require__(85595)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SecurityHub;
-
-
-/***/ }),
-
-/***/ 84296:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['securitylake'] = {};
-AWS.SecurityLake = Service.defineService('securitylake', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['securitylake'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(26935);
- model.paginators = (__nccwpck_require__(42170)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SecurityLake;
-
-
-/***/ }),
-
-/***/ 62402:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['serverlessapplicationrepository'] = {};
-AWS.ServerlessApplicationRepository = Service.defineService('serverlessapplicationrepository', ['2017-09-08']);
-Object.defineProperty(apiLoader.services['serverlessapplicationrepository'], '2017-09-08', {
- get: function get() {
- var model = __nccwpck_require__(68422);
- model.paginators = (__nccwpck_require__(34864)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ServerlessApplicationRepository;
-
-
-/***/ }),
-
-/***/ 822:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['servicecatalog'] = {};
-AWS.ServiceCatalog = Service.defineService('servicecatalog', ['2015-12-10']);
-Object.defineProperty(apiLoader.services['servicecatalog'], '2015-12-10', {
- get: function get() {
- var model = __nccwpck_require__(95500);
- model.paginators = (__nccwpck_require__(21687)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ServiceCatalog;
-
-
-/***/ }),
-
-/***/ 79068:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['servicecatalogappregistry'] = {};
-AWS.ServiceCatalogAppRegistry = Service.defineService('servicecatalogappregistry', ['2020-06-24']);
-Object.defineProperty(apiLoader.services['servicecatalogappregistry'], '2020-06-24', {
- get: function get() {
- var model = __nccwpck_require__(25697);
- model.paginators = (__nccwpck_require__(28893)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ServiceCatalogAppRegistry;
-
-
-/***/ }),
-
-/***/ 91569:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['servicediscovery'] = {};
-AWS.ServiceDiscovery = Service.defineService('servicediscovery', ['2017-03-14']);
-Object.defineProperty(apiLoader.services['servicediscovery'], '2017-03-14', {
- get: function get() {
- var model = __nccwpck_require__(22361);
- model.paginators = (__nccwpck_require__(37798)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ServiceDiscovery;
-
-
-/***/ }),
-
-/***/ 57800:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['servicequotas'] = {};
-AWS.ServiceQuotas = Service.defineService('servicequotas', ['2019-06-24']);
-Object.defineProperty(apiLoader.services['servicequotas'], '2019-06-24', {
- get: function get() {
- var model = __nccwpck_require__(68850);
- model.paginators = (__nccwpck_require__(63074)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.ServiceQuotas;
-
-
-/***/ }),
-
-/***/ 46816:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ses'] = {};
-AWS.SES = Service.defineService('ses', ['2010-12-01']);
-Object.defineProperty(apiLoader.services['ses'], '2010-12-01', {
- get: function get() {
- var model = __nccwpck_require__(56693);
- model.paginators = (__nccwpck_require__(9399)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(98229)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SES;
-
-
-/***/ }),
-
-/***/ 20142:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sesv2'] = {};
-AWS.SESV2 = Service.defineService('sesv2', ['2019-09-27']);
-Object.defineProperty(apiLoader.services['sesv2'], '2019-09-27', {
- get: function get() {
- var model = __nccwpck_require__(69754);
- model.paginators = (__nccwpck_require__(72405)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SESV2;
-
-
-/***/ }),
-
-/***/ 20271:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['shield'] = {};
-AWS.Shield = Service.defineService('shield', ['2016-06-02']);
-Object.defineProperty(apiLoader.services['shield'], '2016-06-02', {
- get: function get() {
- var model = __nccwpck_require__(47061);
- model.paginators = (__nccwpck_require__(54893)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Shield;
-
-
-/***/ }),
-
-/***/ 71596:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['signer'] = {};
-AWS.Signer = Service.defineService('signer', ['2017-08-25']);
-Object.defineProperty(apiLoader.services['signer'], '2017-08-25', {
- get: function get() {
- var model = __nccwpck_require__(97116);
- model.paginators = (__nccwpck_require__(81027)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(48215)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Signer;
-
-
-/***/ }),
-
-/***/ 10120:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['simpledb'] = {};
-AWS.SimpleDB = Service.defineService('simpledb', ['2009-04-15']);
-Object.defineProperty(apiLoader.services['simpledb'], '2009-04-15', {
- get: function get() {
- var model = __nccwpck_require__(45164);
- model.paginators = (__nccwpck_require__(55255)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SimpleDB;
-
-
-/***/ }),
-
-/***/ 37090:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['simspaceweaver'] = {};
-AWS.SimSpaceWeaver = Service.defineService('simspaceweaver', ['2022-10-28']);
-Object.defineProperty(apiLoader.services['simspaceweaver'], '2022-10-28', {
- get: function get() {
- var model = __nccwpck_require__(92139);
- model.paginators = (__nccwpck_require__(31849)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SimSpaceWeaver;
-
-
-/***/ }),
-
-/***/ 57719:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sms'] = {};
-AWS.SMS = Service.defineService('sms', ['2016-10-24']);
-Object.defineProperty(apiLoader.services['sms'], '2016-10-24', {
- get: function get() {
- var model = __nccwpck_require__(26534);
- model.paginators = (__nccwpck_require__(98730)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SMS;
-
-
-/***/ }),
-
-/***/ 510:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['snowball'] = {};
-AWS.Snowball = Service.defineService('snowball', ['2016-06-30']);
-Object.defineProperty(apiLoader.services['snowball'], '2016-06-30', {
- get: function get() {
- var model = __nccwpck_require__(96822);
- model.paginators = (__nccwpck_require__(45219)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Snowball;
-
-
-/***/ }),
-
-/***/ 64655:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['snowdevicemanagement'] = {};
-AWS.SnowDeviceManagement = Service.defineService('snowdevicemanagement', ['2021-08-04']);
-Object.defineProperty(apiLoader.services['snowdevicemanagement'], '2021-08-04', {
- get: function get() {
- var model = __nccwpck_require__(97413);
- model.paginators = (__nccwpck_require__(70424)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SnowDeviceManagement;
-
-
-/***/ }),
-
-/***/ 28581:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sns'] = {};
-AWS.SNS = Service.defineService('sns', ['2010-03-31']);
-Object.defineProperty(apiLoader.services['sns'], '2010-03-31', {
- get: function get() {
- var model = __nccwpck_require__(64387);
- model.paginators = (__nccwpck_require__(58054)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SNS;
-
-
-/***/ }),
-
-/***/ 63172:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sqs'] = {};
-AWS.SQS = Service.defineService('sqs', ['2012-11-05']);
-__nccwpck_require__(94571);
-Object.defineProperty(apiLoader.services['sqs'], '2012-11-05', {
- get: function get() {
- var model = __nccwpck_require__(53974);
- model.paginators = (__nccwpck_require__(17249)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SQS;
-
-
-/***/ }),
-
-/***/ 83380:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ssm'] = {};
-AWS.SSM = Service.defineService('ssm', ['2014-11-06']);
-Object.defineProperty(apiLoader.services['ssm'], '2014-11-06', {
- get: function get() {
- var model = __nccwpck_require__(44596);
- model.paginators = (__nccwpck_require__(5135)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(98523)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SSM;
-
-
-/***/ }),
-
-/***/ 12577:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ssmcontacts'] = {};
-AWS.SSMContacts = Service.defineService('ssmcontacts', ['2021-05-03']);
-Object.defineProperty(apiLoader.services['ssmcontacts'], '2021-05-03', {
- get: function get() {
- var model = __nccwpck_require__(74831);
- model.paginators = (__nccwpck_require__(63938)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SSMContacts;
-
-
-/***/ }),
-
-/***/ 20590:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ssmincidents'] = {};
-AWS.SSMIncidents = Service.defineService('ssmincidents', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['ssmincidents'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(18719);
- model.paginators = (__nccwpck_require__(4502)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(97755)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SSMIncidents;
-
-
-/***/ }),
-
-/***/ 44552:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ssmsap'] = {};
-AWS.SsmSap = Service.defineService('ssmsap', ['2018-05-10']);
-Object.defineProperty(apiLoader.services['ssmsap'], '2018-05-10', {
- get: function get() {
- var model = __nccwpck_require__(49218);
- model.paginators = (__nccwpck_require__(94718)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SsmSap;
-
-
-/***/ }),
-
-/***/ 71096:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sso'] = {};
-AWS.SSO = Service.defineService('sso', ['2019-06-10']);
-Object.defineProperty(apiLoader.services['sso'], '2019-06-10', {
- get: function get() {
- var model = __nccwpck_require__(8027);
- model.paginators = (__nccwpck_require__(36610)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SSO;
-
-
-/***/ }),
-
-/***/ 66644:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ssoadmin'] = {};
-AWS.SSOAdmin = Service.defineService('ssoadmin', ['2020-07-20']);
-Object.defineProperty(apiLoader.services['ssoadmin'], '2020-07-20', {
- get: function get() {
- var model = __nccwpck_require__(7239);
- model.paginators = (__nccwpck_require__(49402)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SSOAdmin;
-
-
-/***/ }),
-
-/***/ 49870:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['ssooidc'] = {};
-AWS.SSOOIDC = Service.defineService('ssooidc', ['2019-06-10']);
-Object.defineProperty(apiLoader.services['ssooidc'], '2019-06-10', {
- get: function get() {
- var model = __nccwpck_require__(62343);
- model.paginators = (__nccwpck_require__(50215)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SSOOIDC;
-
-
-/***/ }),
-
-/***/ 8136:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['stepfunctions'] = {};
-AWS.StepFunctions = Service.defineService('stepfunctions', ['2016-11-23']);
-Object.defineProperty(apiLoader.services['stepfunctions'], '2016-11-23', {
- get: function get() {
- var model = __nccwpck_require__(85693);
- model.paginators = (__nccwpck_require__(24818)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.StepFunctions;
-
-
-/***/ }),
-
-/***/ 89190:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['storagegateway'] = {};
-AWS.StorageGateway = Service.defineService('storagegateway', ['2013-06-30']);
-Object.defineProperty(apiLoader.services['storagegateway'], '2013-06-30', {
- get: function get() {
- var model = __nccwpck_require__(11069);
- model.paginators = (__nccwpck_require__(33999)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.StorageGateway;
-
-
-/***/ }),
-
-/***/ 57513:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['sts'] = {};
-AWS.STS = Service.defineService('sts', ['2011-06-15']);
-__nccwpck_require__(91055);
-Object.defineProperty(apiLoader.services['sts'], '2011-06-15', {
- get: function get() {
- var model = __nccwpck_require__(80753);
- model.paginators = (__nccwpck_require__(93639)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.STS;
-
-
-/***/ }),
-
-/***/ 1099:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['support'] = {};
-AWS.Support = Service.defineService('support', ['2013-04-15']);
-Object.defineProperty(apiLoader.services['support'], '2013-04-15', {
- get: function get() {
- var model = __nccwpck_require__(20767);
- model.paginators = (__nccwpck_require__(62491)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Support;
-
-
-/***/ }),
-
-/***/ 51288:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['supportapp'] = {};
-AWS.SupportApp = Service.defineService('supportapp', ['2021-08-20']);
-Object.defineProperty(apiLoader.services['supportapp'], '2021-08-20', {
- get: function get() {
- var model = __nccwpck_require__(94851);
- model.paginators = (__nccwpck_require__(60546)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SupportApp;
-
-
-/***/ }),
-
-/***/ 32327:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['swf'] = {};
-AWS.SWF = Service.defineService('swf', ['2012-01-25']);
-__nccwpck_require__(31987);
-Object.defineProperty(apiLoader.services['swf'], '2012-01-25', {
- get: function get() {
- var model = __nccwpck_require__(11144);
- model.paginators = (__nccwpck_require__(48039)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.SWF;
-
-
-/***/ }),
-
-/***/ 25910:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['synthetics'] = {};
-AWS.Synthetics = Service.defineService('synthetics', ['2017-10-11']);
-Object.defineProperty(apiLoader.services['synthetics'], '2017-10-11', {
- get: function get() {
- var model = __nccwpck_require__(78752);
- model.paginators = (__nccwpck_require__(61615)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Synthetics;
-
-
-/***/ }),
-
-/***/ 58523:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['textract'] = {};
-AWS.Textract = Service.defineService('textract', ['2018-06-27']);
-Object.defineProperty(apiLoader.services['textract'], '2018-06-27', {
- get: function get() {
- var model = __nccwpck_require__(49753);
- model.paginators = (__nccwpck_require__(16270)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Textract;
-
-
-/***/ }),
-
-/***/ 24529:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['timestreamquery'] = {};
-AWS.TimestreamQuery = Service.defineService('timestreamquery', ['2018-11-01']);
-Object.defineProperty(apiLoader.services['timestreamquery'], '2018-11-01', {
- get: function get() {
- var model = __nccwpck_require__(70457);
- model.paginators = (__nccwpck_require__(97217)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.TimestreamQuery;
-
-
-/***/ }),
-
-/***/ 1573:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['timestreamwrite'] = {};
-AWS.TimestreamWrite = Service.defineService('timestreamwrite', ['2018-11-01']);
-Object.defineProperty(apiLoader.services['timestreamwrite'], '2018-11-01', {
- get: function get() {
- var model = __nccwpck_require__(8368);
- model.paginators = (__nccwpck_require__(89653)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.TimestreamWrite;
-
-
-/***/ }),
-
-/***/ 15300:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['tnb'] = {};
-AWS.Tnb = Service.defineService('tnb', ['2008-10-21']);
-Object.defineProperty(apiLoader.services['tnb'], '2008-10-21', {
- get: function get() {
- var model = __nccwpck_require__(1433);
- model.paginators = (__nccwpck_require__(55995)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Tnb;
-
-
-/***/ }),
-
-/***/ 75811:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['transcribeservice'] = {};
-AWS.TranscribeService = Service.defineService('transcribeservice', ['2017-10-26']);
-Object.defineProperty(apiLoader.services['transcribeservice'], '2017-10-26', {
- get: function get() {
- var model = __nccwpck_require__(47294);
- model.paginators = (__nccwpck_require__(25395)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.TranscribeService;
-
-
-/***/ }),
-
-/***/ 51585:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['transfer'] = {};
-AWS.Transfer = Service.defineService('transfer', ['2018-11-05']);
-Object.defineProperty(apiLoader.services['transfer'], '2018-11-05', {
- get: function get() {
- var model = __nccwpck_require__(93419);
- model.paginators = (__nccwpck_require__(65803)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(45405)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Transfer;
-
-
-/***/ }),
-
-/***/ 72544:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['translate'] = {};
-AWS.Translate = Service.defineService('translate', ['2017-07-01']);
-Object.defineProperty(apiLoader.services['translate'], '2017-07-01', {
- get: function get() {
- var model = __nccwpck_require__(61084);
- model.paginators = (__nccwpck_require__(40304)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Translate;
-
-
-/***/ }),
-
-/***/ 35604:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['verifiedpermissions'] = {};
-AWS.VerifiedPermissions = Service.defineService('verifiedpermissions', ['2021-12-01']);
-Object.defineProperty(apiLoader.services['verifiedpermissions'], '2021-12-01', {
- get: function get() {
- var model = __nccwpck_require__(31407);
- model.paginators = (__nccwpck_require__(85997)/* .pagination */ .o);
- model.waiters = (__nccwpck_require__(14021)/* .waiters */ .V);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.VerifiedPermissions;
-
-
-/***/ }),
-
-/***/ 28747:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['voiceid'] = {};
-AWS.VoiceID = Service.defineService('voiceid', ['2021-09-27']);
-Object.defineProperty(apiLoader.services['voiceid'], '2021-09-27', {
- get: function get() {
- var model = __nccwpck_require__(9375);
- model.paginators = (__nccwpck_require__(59512)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.VoiceID;
-
-
-/***/ }),
-
-/***/ 78952:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['vpclattice'] = {};
-AWS.VPCLattice = Service.defineService('vpclattice', ['2022-11-30']);
-Object.defineProperty(apiLoader.services['vpclattice'], '2022-11-30', {
- get: function get() {
- var model = __nccwpck_require__(49656);
- model.paginators = (__nccwpck_require__(98717)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.VPCLattice;
-
-
-/***/ }),
-
-/***/ 72742:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['waf'] = {};
-AWS.WAF = Service.defineService('waf', ['2015-08-24']);
-Object.defineProperty(apiLoader.services['waf'], '2015-08-24', {
- get: function get() {
- var model = __nccwpck_require__(37925);
- model.paginators = (__nccwpck_require__(65794)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.WAF;
-
-
-/***/ }),
-
-/***/ 23153:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['wafregional'] = {};
-AWS.WAFRegional = Service.defineService('wafregional', ['2016-11-28']);
-Object.defineProperty(apiLoader.services['wafregional'], '2016-11-28', {
- get: function get() {
- var model = __nccwpck_require__(20014);
- model.paginators = (__nccwpck_require__(66829)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.WAFRegional;
-
-
-/***/ }),
-
-/***/ 50353:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['wafv2'] = {};
-AWS.WAFV2 = Service.defineService('wafv2', ['2019-07-29']);
-Object.defineProperty(apiLoader.services['wafv2'], '2019-07-29', {
- get: function get() {
- var model = __nccwpck_require__(51872);
- model.paginators = (__nccwpck_require__(33900)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.WAFV2;
-
-
-/***/ }),
-
-/***/ 86263:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['wellarchitected'] = {};
-AWS.WellArchitected = Service.defineService('wellarchitected', ['2020-03-31']);
-Object.defineProperty(apiLoader.services['wellarchitected'], '2020-03-31', {
- get: function get() {
- var model = __nccwpck_require__(19249);
- model.paginators = (__nccwpck_require__(54693)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.WellArchitected;
-
-
-/***/ }),
-
-/***/ 85266:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['wisdom'] = {};
-AWS.Wisdom = Service.defineService('wisdom', ['2020-10-19']);
-Object.defineProperty(apiLoader.services['wisdom'], '2020-10-19', {
- get: function get() {
- var model = __nccwpck_require__(94385);
- model.paginators = (__nccwpck_require__(54852)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.Wisdom;
-
-
-/***/ }),
-
-/***/ 38835:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['workdocs'] = {};
-AWS.WorkDocs = Service.defineService('workdocs', ['2016-05-01']);
-Object.defineProperty(apiLoader.services['workdocs'], '2016-05-01', {
- get: function get() {
- var model = __nccwpck_require__(41052);
- model.paginators = (__nccwpck_require__(94768)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.WorkDocs;
-
-
-/***/ }),
-
-/***/ 48579:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['worklink'] = {};
-AWS.WorkLink = Service.defineService('worklink', ['2018-09-25']);
-Object.defineProperty(apiLoader.services['worklink'], '2018-09-25', {
- get: function get() {
- var model = __nccwpck_require__(37178);
- model.paginators = (__nccwpck_require__(74073)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.WorkLink;
-
-
-/***/ }),
-
-/***/ 38374:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['workmail'] = {};
-AWS.WorkMail = Service.defineService('workmail', ['2017-10-01']);
-Object.defineProperty(apiLoader.services['workmail'], '2017-10-01', {
- get: function get() {
- var model = __nccwpck_require__(93150);
- model.paginators = (__nccwpck_require__(5158)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.WorkMail;
-
-
-/***/ }),
-
-/***/ 67025:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['workmailmessageflow'] = {};
-AWS.WorkMailMessageFlow = Service.defineService('workmailmessageflow', ['2019-05-01']);
-Object.defineProperty(apiLoader.services['workmailmessageflow'], '2019-05-01', {
- get: function get() {
- var model = __nccwpck_require__(57733);
- model.paginators = (__nccwpck_require__(85646)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.WorkMailMessageFlow;
-
-
-/***/ }),
-
-/***/ 25513:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['workspaces'] = {};
-AWS.WorkSpaces = Service.defineService('workspaces', ['2015-04-08']);
-Object.defineProperty(apiLoader.services['workspaces'], '2015-04-08', {
- get: function get() {
- var model = __nccwpck_require__(97805);
- model.paginators = (__nccwpck_require__(27769)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.WorkSpaces;
-
-
-/***/ }),
-
-/***/ 94124:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['workspacesweb'] = {};
-AWS.WorkSpacesWeb = Service.defineService('workspacesweb', ['2020-07-08']);
-Object.defineProperty(apiLoader.services['workspacesweb'], '2020-07-08', {
- get: function get() {
- var model = __nccwpck_require__(47128);
- model.paginators = (__nccwpck_require__(43497)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.WorkSpacesWeb;
-
-
-/***/ }),
-
-/***/ 41548:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-var AWS = __nccwpck_require__(28437);
-var Service = AWS.Service;
-var apiLoader = AWS.apiLoader;
-
-apiLoader.services['xray'] = {};
-AWS.XRay = Service.defineService('xray', ['2016-04-12']);
-Object.defineProperty(apiLoader.services['xray'], '2016-04-12', {
- get: function get() {
- var model = __nccwpck_require__(97355);
- model.paginators = (__nccwpck_require__(97949)/* .pagination */ .o);
- return model;
- },
- enumerable: true,
- configurable: true
-});
-
-module.exports = AWS.XRay;
-
-
-/***/ }),
-
-/***/ 52793:
-/***/ ((module) => {
-
-function apiLoader(svc, version) {
- if (!apiLoader.services.hasOwnProperty(svc)) {
- throw new Error('InvalidService: Failed to load api for ' + svc);
- }
- return apiLoader.services[svc][version];
-}
-
-/**
- * @api private
- *
- * This member of AWS.apiLoader is private, but changing it will necessitate a
- * change to ../scripts/services-table-generator.ts
- */
-apiLoader.services = {};
-
-/**
- * @api private
- */
-module.exports = apiLoader;
-
-
-/***/ }),
-
-/***/ 71786:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-__nccwpck_require__(73639);
-
-var AWS = __nccwpck_require__(28437);
-
-// Load all service classes
-__nccwpck_require__(26296);
-
-/**
- * @api private
- */
-module.exports = AWS;
-
-
-/***/ }),
-
-/***/ 93260:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437),
- url = AWS.util.url,
- crypto = AWS.util.crypto.lib,
- base64Encode = AWS.util.base64.encode,
- inherit = AWS.util.inherit;
-
-var queryEncode = function (string) {
- var replacements = {
- '+': '-',
- '=': '_',
- '/': '~'
- };
- return string.replace(/[\+=\/]/g, function (match) {
- return replacements[match];
- });
-};
-
-var signPolicy = function (policy, privateKey) {
- var sign = crypto.createSign('RSA-SHA1');
- sign.write(policy);
- return queryEncode(sign.sign(privateKey, 'base64'));
-};
-
-var signWithCannedPolicy = function (url, expires, keyPairId, privateKey) {
- var policy = JSON.stringify({
- Statement: [
- {
- Resource: url,
- Condition: { DateLessThan: { 'AWS:EpochTime': expires } }
- }
- ]
- });
-
- return {
- Expires: expires,
- 'Key-Pair-Id': keyPairId,
- Signature: signPolicy(policy.toString(), privateKey)
- };
-};
-
-var signWithCustomPolicy = function (policy, keyPairId, privateKey) {
- policy = policy.replace(/\s/mg, '');
-
- return {
- Policy: queryEncode(base64Encode(policy)),
- 'Key-Pair-Id': keyPairId,
- Signature: signPolicy(policy, privateKey)
- };
-};
-
-var determineScheme = function (url) {
- var parts = url.split('://');
- if (parts.length < 2) {
- throw new Error('Invalid URL.');
- }
-
- return parts[0].replace('*', '');
-};
-
-var getRtmpUrl = function (rtmpUrl) {
- var parsed = url.parse(rtmpUrl);
- return parsed.path.replace(/^\//, '') + (parsed.hash || '');
-};
-
-var getResource = function (url) {
- switch (determineScheme(url)) {
- case 'http':
- case 'https':
- return url;
- case 'rtmp':
- return getRtmpUrl(url);
- default:
- throw new Error('Invalid URI scheme. Scheme must be one of'
- + ' http, https, or rtmp');
- }
-};
-
-var handleError = function (err, callback) {
- if (!callback || typeof callback !== 'function') {
- throw err;
- }
-
- callback(err);
-};
-
-var handleSuccess = function (result, callback) {
- if (!callback || typeof callback !== 'function') {
- return result;
- }
-
- callback(null, result);
-};
-
-AWS.CloudFront.Signer = inherit({
- /**
- * A signer object can be used to generate signed URLs and cookies for granting
- * access to content on restricted CloudFront distributions.
- *
- * @see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html
- *
- * @param keyPairId [String] (Required) The ID of the CloudFront key pair
- * being used.
- * @param privateKey [String] (Required) A private key in RSA format.
- */
- constructor: function Signer(keyPairId, privateKey) {
- if (keyPairId === void 0 || privateKey === void 0) {
- throw new Error('A key pair ID and private key are required');
- }
-
- this.keyPairId = keyPairId;
- this.privateKey = privateKey;
- },
-
- /**
- * Create a signed Amazon CloudFront Cookie.
- *
- * @param options [Object] The options to create a signed cookie.
- * @option options url [String] The URL to which the signature will grant
- * access. Required unless you pass in a full
- * policy.
- * @option options expires [Number] A Unix UTC timestamp indicating when the
- * signature should expire. Required unless you
- * pass in a full policy.
- * @option options policy [String] A CloudFront JSON policy. Required unless
- * you pass in a url and an expiry time.
- *
- * @param cb [Function] if a callback is provided, this function will
- * pass the hash as the second parameter (after the error parameter) to
- * the callback function.
- *
- * @return [Object] if called synchronously (with no callback), returns the
- * signed cookie parameters.
- * @return [null] nothing is returned if a callback is provided.
- */
- getSignedCookie: function (options, cb) {
- var signatureHash = 'policy' in options
- ? signWithCustomPolicy(options.policy, this.keyPairId, this.privateKey)
- : signWithCannedPolicy(options.url, options.expires, this.keyPairId, this.privateKey);
-
- var cookieHash = {};
- for (var key in signatureHash) {
- if (Object.prototype.hasOwnProperty.call(signatureHash, key)) {
- cookieHash['CloudFront-' + key] = signatureHash[key];
- }
- }
-
- return handleSuccess(cookieHash, cb);
- },
-
- /**
- * Create a signed Amazon CloudFront URL.
- *
- * Keep in mind that URLs meant for use in media/flash players may have
- * different requirements for URL formats (e.g. some require that the
- * extension be removed, some require the file name to be prefixed
- * - mp4:, some require you to add "/cfx/st" into your URL).
- *
- * @param options [Object] The options to create a signed URL.
- * @option options url [String] The URL to which the signature will grant
- * access. Any query params included with
- * the URL should be encoded. Required.
- * @option options expires [Number] A Unix UTC timestamp indicating when the
- * signature should expire. Required unless you
- * pass in a full policy.
- * @option options policy [String] A CloudFront JSON policy. Required unless
- * you pass in a url and an expiry time.
- *
- * @param cb [Function] if a callback is provided, this function will
- * pass the URL as the second parameter (after the error parameter) to
- * the callback function.
- *
- * @return [String] if called synchronously (with no callback), returns the
- * signed URL.
- * @return [null] nothing is returned if a callback is provided.
- */
- getSignedUrl: function (options, cb) {
- try {
- var resource = getResource(options.url);
- } catch (err) {
- return handleError(err, cb);
- }
-
- var parsedUrl = url.parse(options.url, true),
- signatureHash = Object.prototype.hasOwnProperty.call(options, 'policy')
- ? signWithCustomPolicy(options.policy, this.keyPairId, this.privateKey)
- : signWithCannedPolicy(resource, options.expires, this.keyPairId, this.privateKey);
-
- parsedUrl.search = null;
- for (var key in signatureHash) {
- if (Object.prototype.hasOwnProperty.call(signatureHash, key)) {
- parsedUrl.query[key] = signatureHash[key];
- }
- }
-
- try {
- var signedUrl = determineScheme(options.url) === 'rtmp'
- ? getRtmpUrl(url.format(parsedUrl))
- : url.format(parsedUrl);
- } catch (err) {
- return handleError(err, cb);
- }
-
- return handleSuccess(signedUrl, cb);
- }
-});
-
-/**
- * @api private
- */
-module.exports = AWS.CloudFront.Signer;
-
-
-/***/ }),
-
-/***/ 38110:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-__nccwpck_require__(53819);
-__nccwpck_require__(36965);
-var PromisesDependency;
-
-/**
- * The main configuration class used by all service objects to set
- * the region, credentials, and other options for requests.
- *
- * By default, credentials and region settings are left unconfigured.
- * This should be configured by the application before using any
- * AWS service APIs.
- *
- * In order to set global configuration options, properties should
- * be assigned to the global {AWS.config} object.
- *
- * @see AWS.config
- *
- * @!group General Configuration Options
- *
- * @!attribute credentials
- * @return [AWS.Credentials] the AWS credentials to sign requests with.
- *
- * @!attribute region
- * @example Set the global region setting to us-west-2
- * AWS.config.update({region: 'us-west-2'});
- * @return [AWS.Credentials] The region to send service requests to.
- * @see http://docs.amazonwebservices.com/general/latest/gr/rande.html
- * A list of available endpoints for each AWS service
- *
- * @!attribute maxRetries
- * @return [Integer] the maximum amount of retries to perform for a
- * service request. By default this value is calculated by the specific
- * service object that the request is being made to.
- *
- * @!attribute maxRedirects
- * @return [Integer] the maximum amount of redirects to follow for a
- * service request. Defaults to 10.
- *
- * @!attribute paramValidation
- * @return [Boolean|map] whether input parameters should be validated against
- * the operation description before sending the request. Defaults to true.
- * Pass a map to enable any of the following specific validation features:
- *
- * * **min** [Boolean] — Validates that a value meets the min
- * constraint. This is enabled by default when paramValidation is set
- * to `true`.
- * * **max** [Boolean] — Validates that a value meets the max
- * constraint.
- * * **pattern** [Boolean] — Validates that a string value matches a
- * regular expression.
- * * **enum** [Boolean] — Validates that a string value matches one
- * of the allowable enum values.
- *
- * @!attribute computeChecksums
- * @return [Boolean] whether to compute checksums for payload bodies when
- * the service accepts it (currently supported in S3 and SQS only).
- *
- * @!attribute convertResponseTypes
- * @return [Boolean] whether types are converted when parsing response data.
- * Currently only supported for JSON based services. Turning this off may
- * improve performance on large response payloads. Defaults to `true`.
- *
- * @!attribute correctClockSkew
- * @return [Boolean] whether to apply a clock skew correction and retry
- * requests that fail because of an skewed client clock. Defaults to
- * `false`.
- *
- * @!attribute sslEnabled
- * @return [Boolean] whether SSL is enabled for requests
- *
- * @!attribute s3ForcePathStyle
- * @return [Boolean] whether to force path style URLs for S3 objects
- *
- * @!attribute s3BucketEndpoint
- * @note Setting this configuration option requires an `endpoint` to be
- * provided explicitly to the service constructor.
- * @return [Boolean] whether the provided endpoint addresses an individual
- * bucket (false if it addresses the root API endpoint).
- *
- * @!attribute s3DisableBodySigning
- * @return [Boolean] whether to disable S3 body signing when using signature version `v4`.
- * Body signing can only be disabled when using https. Defaults to `true`.
- *
- * @!attribute s3UsEast1RegionalEndpoint
- * @return ['legacy'|'regional'] when region is set to 'us-east-1', whether to send s3
- * request to global endpoints or 'us-east-1' regional endpoints. This config is only
- * applicable to S3 client;
- * Defaults to 'legacy'
- * @!attribute s3UseArnRegion
- * @return [Boolean] whether to override the request region with the region inferred
- * from requested resource's ARN. Only available for S3 buckets
- * Defaults to `true`
- *
- * @!attribute useAccelerateEndpoint
- * @note This configuration option is only compatible with S3 while accessing
- * dns-compatible buckets.
- * @return [Boolean] Whether to use the Accelerate endpoint with the S3 service.
- * Defaults to `false`.
- *
- * @!attribute retryDelayOptions
- * @example Set the base retry delay for all services to 300 ms
- * AWS.config.update({retryDelayOptions: {base: 300}});
- * // Delays with maxRetries = 3: 300, 600, 1200
- * @example Set a custom backoff function to provide delay values on retries
- * AWS.config.update({retryDelayOptions: {customBackoff: function(retryCount, err) {
- * // returns delay in ms
- * }}});
- * @return [map] A set of options to configure the retry delay on retryable errors.
- * Currently supported options are:
- *
- * * **base** [Integer] — The base number of milliseconds to use in the
- * exponential backoff for operation retries. Defaults to 100 ms for all services except
- * DynamoDB, where it defaults to 50ms.
- *
- * * **customBackoff ** [function] — A custom function that accepts a
- * retry count and error and returns the amount of time to delay in
- * milliseconds. If the result is a non-zero negative value, no further
- * retry attempts will be made. The `base` option will be ignored if this
- * option is supplied. The function is only called for retryable errors.
- *
- * @!attribute httpOptions
- * @return [map] A set of options to pass to the low-level HTTP request.
- * Currently supported options are:
- *
- * * **proxy** [String] — the URL to proxy requests through
- * * **agent** [http.Agent, https.Agent] — the Agent object to perform
- * HTTP requests with. Used for connection pooling. Note that for
- * SSL connections, a special Agent object is used in order to enable
- * peer certificate verification. This feature is only supported in the
- * Node.js environment.
- * * **connectTimeout** [Integer] — Sets the socket to timeout after
- * failing to establish a connection with the server after
- * `connectTimeout` milliseconds. This timeout has no effect once a socket
- * connection has been established.
- * * **timeout** [Integer] — The number of milliseconds a request can
- * take before automatically being terminated.
- * Defaults to two minutes (120000).
- * * **xhrAsync** [Boolean] — Whether the SDK will send asynchronous
- * HTTP requests. Used in the browser environment only. Set to false to
- * send requests synchronously. Defaults to true (async on).
- * * **xhrWithCredentials** [Boolean] — Sets the "withCredentials"
- * property of an XMLHttpRequest object. Used in the browser environment
- * only. Defaults to false.
- * @!attribute logger
- * @return [#write,#log] an object that responds to .write() (like a stream)
- * or .log() (like the console object) in order to log information about
- * requests
- *
- * @!attribute systemClockOffset
- * @return [Number] an offset value in milliseconds to apply to all signing
- * times. Use this to compensate for clock skew when your system may be
- * out of sync with the service time. Note that this configuration option
- * can only be applied to the global `AWS.config` object and cannot be
- * overridden in service-specific configuration. Defaults to 0 milliseconds.
- *
- * @!attribute signatureVersion
- * @return [String] the signature version to sign requests with (overriding
- * the API configuration). Possible values are: 'v2', 'v3', 'v4'.
- *
- * @!attribute signatureCache
- * @return [Boolean] whether the signature to sign requests with (overriding
- * the API configuration) is cached. Only applies to the signature version 'v4'.
- * Defaults to `true`.
- *
- * @!attribute endpointDiscoveryEnabled
- * @return [Boolean|undefined] whether to call operations with endpoints
- * given by service dynamically. Setting this config to `true` will enable
- * endpoint discovery for all applicable operations. Setting it to `false`
- * will explicitly disable endpoint discovery even though operations that
- * require endpoint discovery will presumably fail. Leaving it to
- * `undefined` means SDK only do endpoint discovery when it's required.
- * Defaults to `undefined`
- *
- * @!attribute endpointCacheSize
- * @return [Number] the size of the global cache storing endpoints from endpoint
- * discovery operations. Once endpoint cache is created, updating this setting
- * cannot change existing cache size.
- * Defaults to 1000
- *
- * @!attribute hostPrefixEnabled
- * @return [Boolean] whether to marshal request parameters to the prefix of
- * hostname. Defaults to `true`.
- *
- * @!attribute stsRegionalEndpoints
- * @return ['legacy'|'regional'] whether to send sts request to global endpoints or
- * regional endpoints.
- * Defaults to 'legacy'.
- *
- * @!attribute useFipsEndpoint
- * @return [Boolean] Enables FIPS compatible endpoints. Defaults to `false`.
- *
- * @!attribute useDualstackEndpoint
- * @return [Boolean] Enables IPv6 dualstack endpoint. Defaults to `false`.
- */
-AWS.Config = AWS.util.inherit({
- /**
- * @!endgroup
- */
-
- /**
- * Creates a new configuration object. This is the object that passes
- * option data along to service requests, including credentials, security,
- * region information, and some service specific settings.
- *
- * @example Creating a new configuration object with credentials and region
- * var config = new AWS.Config({
- * accessKeyId: 'AKID', secretAccessKey: 'SECRET', region: 'us-west-2'
- * });
- * @option options accessKeyId [String] your AWS access key ID.
- * @option options secretAccessKey [String] your AWS secret access key.
- * @option options sessionToken [AWS.Credentials] the optional AWS
- * session token to sign requests with.
- * @option options credentials [AWS.Credentials] the AWS credentials
- * to sign requests with. You can either specify this object, or
- * specify the accessKeyId and secretAccessKey options directly.
- * @option options credentialProvider [AWS.CredentialProviderChain] the
- * provider chain used to resolve credentials if no static `credentials`
- * property is set.
- * @option options region [String] the region to send service requests to.
- * See {region} for more information.
- * @option options maxRetries [Integer] the maximum amount of retries to
- * attempt with a request. See {maxRetries} for more information.
- * @option options maxRedirects [Integer] the maximum amount of redirects to
- * follow with a request. See {maxRedirects} for more information.
- * @option options sslEnabled [Boolean] whether to enable SSL for
- * requests.
- * @option options paramValidation [Boolean|map] whether input parameters
- * should be validated against the operation description before sending
- * the request. Defaults to true. Pass a map to enable any of the
- * following specific validation features:
- *
- * * **min** [Boolean] — Validates that a value meets the min
- * constraint. This is enabled by default when paramValidation is set
- * to `true`.
- * * **max** [Boolean] — Validates that a value meets the max
- * constraint.
- * * **pattern** [Boolean] — Validates that a string value matches a
- * regular expression.
- * * **enum** [Boolean] — Validates that a string value matches one
- * of the allowable enum values.
- * @option options computeChecksums [Boolean] whether to compute checksums
- * for payload bodies when the service accepts it (currently supported
- * in S3 only)
- * @option options convertResponseTypes [Boolean] whether types are converted
- * when parsing response data. Currently only supported for JSON based
- * services. Turning this off may improve performance on large response
- * payloads. Defaults to `true`.
- * @option options correctClockSkew [Boolean] whether to apply a clock skew
- * correction and retry requests that fail because of an skewed client
- * clock. Defaults to `false`.
- * @option options s3ForcePathStyle [Boolean] whether to force path
- * style URLs for S3 objects.
- * @option options s3BucketEndpoint [Boolean] whether the provided endpoint
- * addresses an individual bucket (false if it addresses the root API
- * endpoint). Note that setting this configuration option requires an
- * `endpoint` to be provided explicitly to the service constructor.
- * @option options s3DisableBodySigning [Boolean] whether S3 body signing
- * should be disabled when using signature version `v4`. Body signing
- * can only be disabled when using https. Defaults to `true`.
- * @option options s3UsEast1RegionalEndpoint ['legacy'|'regional'] when region
- * is set to 'us-east-1', whether to send s3 request to global endpoints or
- * 'us-east-1' regional endpoints. This config is only applicable to S3 client.
- * Defaults to `legacy`
- * @option options s3UseArnRegion [Boolean] whether to override the request region
- * with the region inferred from requested resource's ARN. Only available for S3 buckets
- * Defaults to `true`
- *
- * @option options retryDelayOptions [map] A set of options to configure
- * the retry delay on retryable errors. Currently supported options are:
- *
- * * **base** [Integer] — The base number of milliseconds to use in the
- * exponential backoff for operation retries. Defaults to 100 ms for all
- * services except DynamoDB, where it defaults to 50ms.
- * * **customBackoff ** [function] — A custom function that accepts a
- * retry count and error and returns the amount of time to delay in
- * milliseconds. If the result is a non-zero negative value, no further
- * retry attempts will be made. The `base` option will be ignored if this
- * option is supplied. The function is only called for retryable errors.
- * @option options httpOptions [map] A set of options to pass to the low-level
- * HTTP request. Currently supported options are:
- *
- * * **proxy** [String] — the URL to proxy requests through
- * * **agent** [http.Agent, https.Agent] — the Agent object to perform
- * HTTP requests with. Used for connection pooling. Defaults to the global
- * agent (`http.globalAgent`) for non-SSL connections. Note that for
- * SSL connections, a special Agent object is used in order to enable
- * peer certificate verification. This feature is only available in the
- * Node.js environment.
- * * **connectTimeout** [Integer] — Sets the socket to timeout after
- * failing to establish a connection with the server after
- * `connectTimeout` milliseconds. This timeout has no effect once a socket
- * connection has been established.
- * * **timeout** [Integer] — Sets the socket to timeout after timeout
- * milliseconds of inactivity on the socket. Defaults to two minutes
- * (120000).
- * * **xhrAsync** [Boolean] — Whether the SDK will send asynchronous
- * HTTP requests. Used in the browser environment only. Set to false to
- * send requests synchronously. Defaults to true (async on).
- * * **xhrWithCredentials** [Boolean] — Sets the "withCredentials"
- * property of an XMLHttpRequest object. Used in the browser environment
- * only. Defaults to false.
- * @option options apiVersion [String, Date] a String in YYYY-MM-DD format
- * (or a date) that represents the latest possible API version that can be
- * used in all services (unless overridden by `apiVersions`). Specify
- * 'latest' to use the latest possible version.
- * @option options apiVersions [map] a map of service
- * identifiers (the lowercase service class name) with the API version to
- * use when instantiating a service. Specify 'latest' for each individual
- * that can use the latest available version.
- * @option options logger [#write,#log] an object that responds to .write()
- * (like a stream) or .log() (like the console object) in order to log
- * information about requests
- * @option options systemClockOffset [Number] an offset value in milliseconds
- * to apply to all signing times. Use this to compensate for clock skew
- * when your system may be out of sync with the service time. Note that
- * this configuration option can only be applied to the global `AWS.config`
- * object and cannot be overridden in service-specific configuration.
- * Defaults to 0 milliseconds.
- * @option options signatureVersion [String] the signature version to sign
- * requests with (overriding the API configuration). Possible values are:
- * 'v2', 'v3', 'v4'.
- * @option options signatureCache [Boolean] whether the signature to sign
- * requests with (overriding the API configuration) is cached. Only applies
- * to the signature version 'v4'. Defaults to `true`.
- * @option options dynamoDbCrc32 [Boolean] whether to validate the CRC32
- * checksum of HTTP response bodies returned by DynamoDB. Default: `true`.
- * @option options useAccelerateEndpoint [Boolean] Whether to use the
- * S3 Transfer Acceleration endpoint with the S3 service. Default: `false`.
- * @option options clientSideMonitoring [Boolean] whether to collect and
- * publish this client's performance metrics of all its API requests.
- * @option options endpointDiscoveryEnabled [Boolean|undefined] whether to
- * call operations with endpoints given by service dynamically. Setting this
- * config to `true` will enable endpoint discovery for all applicable operations.
- * Setting it to `false` will explicitly disable endpoint discovery even though
- * operations that require endpoint discovery will presumably fail. Leaving it
- * to `undefined` means SDK will only do endpoint discovery when it's required.
- * Defaults to `undefined`
- * @option options endpointCacheSize [Number] the size of the global cache storing
- * endpoints from endpoint discovery operations. Once endpoint cache is created,
- * updating this setting cannot change existing cache size.
- * Defaults to 1000
- * @option options hostPrefixEnabled [Boolean] whether to marshal request
- * parameters to the prefix of hostname.
- * Defaults to `true`.
- * @option options stsRegionalEndpoints ['legacy'|'regional'] whether to send sts request
- * to global endpoints or regional endpoints.
- * Defaults to 'legacy'.
- * @option options useFipsEndpoint [Boolean] Enables FIPS compatible endpoints.
- * Defaults to `false`.
- * @option options useDualstackEndpoint [Boolean] Enables IPv6 dualstack endpoint.
- * Defaults to `false`.
- */
- constructor: function Config(options) {
- if (options === undefined) options = {};
- options = this.extractCredentials(options);
-
- AWS.util.each.call(this, this.keys, function (key, value) {
- this.set(key, options[key], value);
- });
- },
-
- /**
- * @!group Managing Credentials
- */
-
- /**
- * Loads credentials from the configuration object. This is used internally
- * by the SDK to ensure that refreshable {Credentials} objects are properly
- * refreshed and loaded when sending a request. If you want to ensure that
- * your credentials are loaded prior to a request, you can use this method
- * directly to provide accurate credential data stored in the object.
- *
- * @note If you configure the SDK with static or environment credentials,
- * the credential data should already be present in {credentials} attribute.
- * This method is primarily necessary to load credentials from asynchronous
- * sources, or sources that can refresh credentials periodically.
- * @example Getting your access key
- * AWS.config.getCredentials(function(err) {
- * if (err) console.log(err.stack); // credentials not loaded
- * else console.log("Access Key:", AWS.config.credentials.accessKeyId);
- * })
- * @callback callback function(err)
- * Called when the {credentials} have been properly set on the configuration
- * object.
- *
- * @param err [Error] if this is set, credentials were not successfully
- * loaded and this error provides information why.
- * @see credentials
- * @see Credentials
- */
- getCredentials: function getCredentials(callback) {
- var self = this;
-
- function finish(err) {
- callback(err, err ? null : self.credentials);
- }
-
- function credError(msg, err) {
- return new AWS.util.error(err || new Error(), {
- code: 'CredentialsError',
- message: msg,
- name: 'CredentialsError'
- });
- }
-
- function getAsyncCredentials() {
- self.credentials.get(function(err) {
- if (err) {
- var msg = 'Could not load credentials from ' +
- self.credentials.constructor.name;
- err = credError(msg, err);
- }
- finish(err);
- });
- }
-
- function getStaticCredentials() {
- var err = null;
- if (!self.credentials.accessKeyId || !self.credentials.secretAccessKey) {
- err = credError('Missing credentials');
- }
- finish(err);
- }
-
- if (self.credentials) {
- if (typeof self.credentials.get === 'function') {
- getAsyncCredentials();
- } else { // static credentials
- getStaticCredentials();
- }
- } else if (self.credentialProvider) {
- self.credentialProvider.resolve(function(err, creds) {
- if (err) {
- err = credError('Could not load credentials from any providers', err);
- }
- self.credentials = creds;
- finish(err);
- });
- } else {
- finish(credError('No credentials to load'));
- }
- },
-
- /**
- * Loads token from the configuration object. This is used internally
- * by the SDK to ensure that refreshable {Token} objects are properly
- * refreshed and loaded when sending a request. If you want to ensure that
- * your token is loaded prior to a request, you can use this method
- * directly to provide accurate token data stored in the object.
- *
- * @note If you configure the SDK with static token, the token data should
- * already be present in {token} attribute. This method is primarily necessary
- * to load token from asynchronous sources, or sources that can refresh
- * token periodically.
- * @example Getting your access token
- * AWS.config.getToken(function(err) {
- * if (err) console.log(err.stack); // token not loaded
- * else console.log("Token:", AWS.config.token.token);
- * })
- * @callback callback function(err)
- * Called when the {token} have been properly set on the configuration object.
- *
- * @param err [Error] if this is set, token was not successfully loaded and
- * this error provides information why.
- * @see token
- */
- getToken: function getToken(callback) {
- var self = this;
-
- function finish(err) {
- callback(err, err ? null : self.token);
- }
-
- function tokenError(msg, err) {
- return new AWS.util.error(err || new Error(), {
- code: 'TokenError',
- message: msg,
- name: 'TokenError'
- });
- }
-
- function getAsyncToken() {
- self.token.get(function(err) {
- if (err) {
- var msg = 'Could not load token from ' +
- self.token.constructor.name;
- err = tokenError(msg, err);
- }
- finish(err);
- });
- }
-
- function getStaticToken() {
- var err = null;
- if (!self.token.token) {
- err = tokenError('Missing token');
- }
- finish(err);
- }
-
- if (self.token) {
- if (typeof self.token.get === 'function') {
- getAsyncToken();
- } else { // static token
- getStaticToken();
- }
- } else if (self.tokenProvider) {
- self.tokenProvider.resolve(function(err, token) {
- if (err) {
- err = tokenError('Could not load token from any providers', err);
- }
- self.token = token;
- finish(err);
- });
- } else {
- finish(tokenError('No token to load'));
- }
- },
-
- /**
- * @!group Loading and Setting Configuration Options
- */
-
- /**
- * @overload update(options, allowUnknownKeys = false)
- * Updates the current configuration object with new options.
- *
- * @example Update maxRetries property of a configuration object
- * config.update({maxRetries: 10});
- * @param [Object] options a map of option keys and values.
- * @param [Boolean] allowUnknownKeys whether unknown keys can be set on
- * the configuration object. Defaults to `false`.
- * @see constructor
- */
- update: function update(options, allowUnknownKeys) {
- allowUnknownKeys = allowUnknownKeys || false;
- options = this.extractCredentials(options);
- AWS.util.each.call(this, options, function (key, value) {
- if (allowUnknownKeys || Object.prototype.hasOwnProperty.call(this.keys, key) ||
- AWS.Service.hasService(key)) {
- this.set(key, value);
- }
- });
- },
-
- /**
- * Loads configuration data from a JSON file into this config object.
- * @note Loading configuration will reset all existing configuration
- * on the object.
- * @!macro nobrowser
- * @param path [String] the path relative to your process's current
- * working directory to load configuration from.
- * @return [AWS.Config] the same configuration object
- */
- loadFromPath: function loadFromPath(path) {
- this.clear();
-
- var options = JSON.parse(AWS.util.readFileSync(path));
- var fileSystemCreds = new AWS.FileSystemCredentials(path);
- var chain = new AWS.CredentialProviderChain();
- chain.providers.unshift(fileSystemCreds);
- chain.resolve(function (err, creds) {
- if (err) throw err;
- else options.credentials = creds;
- });
-
- this.constructor(options);
-
- return this;
- },
-
- /**
- * Clears configuration data on this object
- *
- * @api private
- */
- clear: function clear() {
- /*jshint forin:false */
- AWS.util.each.call(this, this.keys, function (key) {
- delete this[key];
- });
-
- // reset credential provider
- this.set('credentials', undefined);
- this.set('credentialProvider', undefined);
- },
-
- /**
- * Sets a property on the configuration object, allowing for a
- * default value
- * @api private
- */
- set: function set(property, value, defaultValue) {
- if (value === undefined) {
- if (defaultValue === undefined) {
- defaultValue = this.keys[property];
- }
- if (typeof defaultValue === 'function') {
- this[property] = defaultValue.call(this);
- } else {
- this[property] = defaultValue;
- }
- } else if (property === 'httpOptions' && this[property]) {
- // deep merge httpOptions
- this[property] = AWS.util.merge(this[property], value);
- } else {
- this[property] = value;
- }
- },
-
- /**
- * All of the keys with their default values.
- *
- * @constant
- * @api private
- */
- keys: {
- credentials: null,
- credentialProvider: null,
- region: null,
- logger: null,
- apiVersions: {},
- apiVersion: null,
- endpoint: undefined,
- httpOptions: {
- timeout: 120000
- },
- maxRetries: undefined,
- maxRedirects: 10,
- paramValidation: true,
- sslEnabled: true,
- s3ForcePathStyle: false,
- s3BucketEndpoint: false,
- s3DisableBodySigning: true,
- s3UsEast1RegionalEndpoint: 'legacy',
- s3UseArnRegion: undefined,
- computeChecksums: true,
- convertResponseTypes: true,
- correctClockSkew: false,
- customUserAgent: null,
- dynamoDbCrc32: true,
- systemClockOffset: 0,
- signatureVersion: null,
- signatureCache: true,
- retryDelayOptions: {},
- useAccelerateEndpoint: false,
- clientSideMonitoring: false,
- endpointDiscoveryEnabled: undefined,
- endpointCacheSize: 1000,
- hostPrefixEnabled: true,
- stsRegionalEndpoints: 'legacy',
- useFipsEndpoint: false,
- useDualstackEndpoint: false,
- token: null
- },
-
- /**
- * Extracts accessKeyId, secretAccessKey and sessionToken
- * from a configuration hash.
- *
- * @api private
- */
- extractCredentials: function extractCredentials(options) {
- if (options.accessKeyId && options.secretAccessKey) {
- options = AWS.util.copy(options);
- options.credentials = new AWS.Credentials(options);
- }
- return options;
- },
-
- /**
- * Sets the promise dependency the SDK will use wherever Promises are returned.
- * Passing `null` will force the SDK to use native Promises if they are available.
- * If native Promises are not available, passing `null` will have no effect.
- * @param [Constructor] dep A reference to a Promise constructor
- */
- setPromisesDependency: function setPromisesDependency(dep) {
- PromisesDependency = dep;
- // if null was passed in, we should try to use native promises
- if (dep === null && typeof Promise === 'function') {
- PromisesDependency = Promise;
- }
- var constructors = [AWS.Request, AWS.Credentials, AWS.CredentialProviderChain];
- if (AWS.S3) {
- constructors.push(AWS.S3);
- if (AWS.S3.ManagedUpload) {
- constructors.push(AWS.S3.ManagedUpload);
- }
- }
- AWS.util.addPromises(constructors, PromisesDependency);
- },
-
- /**
- * Gets the promise dependency set by `AWS.config.setPromisesDependency`.
- */
- getPromisesDependency: function getPromisesDependency() {
- return PromisesDependency;
- }
-});
-
-/**
- * @return [AWS.Config] The global configuration object singleton instance
- * @readonly
- * @see AWS.Config
- */
-AWS.config = new AWS.Config();
-
-
-/***/ }),
-
-/***/ 85566:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-/**
- * @api private
- */
-function validateRegionalEndpointsFlagValue(configValue, errorOptions) {
- if (typeof configValue !== 'string') return undefined;
- else if (['legacy', 'regional'].indexOf(configValue.toLowerCase()) >= 0) {
- return configValue.toLowerCase();
- } else {
- throw AWS.util.error(new Error(), errorOptions);
- }
-}
-
-/**
- * Resolve the configuration value for regional endpoint from difference sources: client
- * config, environmental variable, shared config file. Value can be case-insensitive
- * 'legacy' or 'reginal'.
- * @param originalConfig user-supplied config object to resolve
- * @param options a map of config property names from individual configuration source
- * - env: name of environmental variable that refers to the config
- * - sharedConfig: name of shared configuration file property that refers to the config
- * - clientConfig: name of client configuration property that refers to the config
- *
- * @api private
- */
-function resolveRegionalEndpointsFlag(originalConfig, options) {
- originalConfig = originalConfig || {};
- //validate config value
- var resolved;
- if (originalConfig[options.clientConfig]) {
- resolved = validateRegionalEndpointsFlagValue(originalConfig[options.clientConfig], {
- code: 'InvalidConfiguration',
- message: 'invalid "' + options.clientConfig + '" configuration. Expect "legacy" ' +
- ' or "regional". Got "' + originalConfig[options.clientConfig] + '".'
- });
- if (resolved) return resolved;
- }
- if (!AWS.util.isNode()) return resolved;
- //validate environmental variable
- if (Object.prototype.hasOwnProperty.call(process.env, options.env)) {
- var envFlag = process.env[options.env];
- resolved = validateRegionalEndpointsFlagValue(envFlag, {
- code: 'InvalidEnvironmentalVariable',
- message: 'invalid ' + options.env + ' environmental variable. Expect "legacy" ' +
- ' or "regional". Got "' + process.env[options.env] + '".'
- });
- if (resolved) return resolved;
- }
- //validate shared config file
- var profile = {};
- try {
- var profiles = AWS.util.getProfilesFromSharedConfig(AWS.util.iniLoader);
- profile = profiles[process.env.AWS_PROFILE || AWS.util.defaultProfile];
- } catch (e) {};
- if (profile && Object.prototype.hasOwnProperty.call(profile, options.sharedConfig)) {
- var fileFlag = profile[options.sharedConfig];
- resolved = validateRegionalEndpointsFlagValue(fileFlag, {
- code: 'InvalidConfiguration',
- message: 'invalid ' + options.sharedConfig + ' profile config. Expect "legacy" ' +
- ' or "regional". Got "' + profile[options.sharedConfig] + '".'
- });
- if (resolved) return resolved;
- }
- return resolved;
-}
-
-module.exports = resolveRegionalEndpointsFlag;
-
-
-/***/ }),
-
-/***/ 28437:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-/**
- * The main AWS namespace
- */
-var AWS = { util: __nccwpck_require__(77985) };
-
-/**
- * @api private
- * @!macro [new] nobrowser
- * @note This feature is not supported in the browser environment of the SDK.
- */
-var _hidden = {}; _hidden.toString(); // hack to parse macro
-
-/**
- * @api private
- */
-module.exports = AWS;
-
-AWS.util.update(AWS, {
-
- /**
- * @constant
- */
- VERSION: '2.1437.0',
-
- /**
- * @api private
- */
- Signers: {},
-
- /**
- * @api private
- */
- Protocol: {
- Json: __nccwpck_require__(30083),
- Query: __nccwpck_require__(90761),
- Rest: __nccwpck_require__(98200),
- RestJson: __nccwpck_require__(5883),
- RestXml: __nccwpck_require__(15143)
- },
-
- /**
- * @api private
- */
- XML: {
- Builder: __nccwpck_require__(23546),
- Parser: null // conditionally set based on environment
- },
-
- /**
- * @api private
- */
- JSON: {
- Builder: __nccwpck_require__(47495),
- Parser: __nccwpck_require__(5474)
- },
-
- /**
- * @api private
- */
- Model: {
- Api: __nccwpck_require__(17657),
- Operation: __nccwpck_require__(28083),
- Shape: __nccwpck_require__(71349),
- Paginator: __nccwpck_require__(45938),
- ResourceWaiter: __nccwpck_require__(41368)
- },
-
- /**
- * @api private
- */
- apiLoader: __nccwpck_require__(52793),
-
- /**
- * @api private
- */
- EndpointCache: (__nccwpck_require__(96323)/* .EndpointCache */ .$)
-});
-__nccwpck_require__(55948);
-__nccwpck_require__(68903);
-__nccwpck_require__(38110);
-__nccwpck_require__(1556);
-__nccwpck_require__(54995);
-__nccwpck_require__(78652);
-__nccwpck_require__(58743);
-__nccwpck_require__(39925);
-__nccwpck_require__(9897);
-__nccwpck_require__(99127);
-__nccwpck_require__(93985);
-
-/**
- * @readonly
- * @return [AWS.SequentialExecutor] a collection of global event listeners that
- * are attached to every sent request.
- * @see AWS.Request AWS.Request for a list of events to listen for
- * @example Logging the time taken to send a request
- * AWS.events.on('send', function startSend(resp) {
- * resp.startTime = new Date().getTime();
- * }).on('complete', function calculateTime(resp) {
- * var time = (new Date().getTime() - resp.startTime) / 1000;
- * console.log('Request took ' + time + ' seconds');
- * });
- *
- * new AWS.S3().listBuckets(); // prints 'Request took 0.285 seconds'
- */
-AWS.events = new AWS.SequentialExecutor();
-
-//create endpoint cache lazily
-AWS.util.memoizedProperty(AWS, 'endpointCache', function() {
- return new AWS.EndpointCache(AWS.config.endpointCacheSize);
-}, true);
-
-
-/***/ }),
-
-/***/ 53819:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-
-/**
- * Represents your AWS security credentials, specifically the
- * {accessKeyId}, {secretAccessKey}, and optional {sessionToken}.
- * Creating a `Credentials` object allows you to pass around your
- * security information to configuration and service objects.
- *
- * Note that this class typically does not need to be constructed manually,
- * as the {AWS.Config} and {AWS.Service} classes both accept simple
- * options hashes with the three keys. These structures will be converted
- * into Credentials objects automatically.
- *
- * ## Expiring and Refreshing Credentials
- *
- * Occasionally credentials can expire in the middle of a long-running
- * application. In this case, the SDK will automatically attempt to
- * refresh the credentials from the storage location if the Credentials
- * class implements the {refresh} method.
- *
- * If you are implementing a credential storage location, you
- * will want to create a subclass of the `Credentials` class and
- * override the {refresh} method. This method allows credentials to be
- * retrieved from the backing store, be it a file system, database, or
- * some network storage. The method should reset the credential attributes
- * on the object.
- *
- * @!attribute expired
- * @return [Boolean] whether the credentials have been expired and
- * require a refresh. Used in conjunction with {expireTime}.
- * @!attribute expireTime
- * @return [Date] a time when credentials should be considered expired. Used
- * in conjunction with {expired}.
- * @!attribute accessKeyId
- * @return [String] the AWS access key ID
- * @!attribute secretAccessKey
- * @return [String] the AWS secret access key
- * @!attribute sessionToken
- * @return [String] an optional AWS session token
- */
-AWS.Credentials = AWS.util.inherit({
- /**
- * A credentials object can be created using positional arguments or an options
- * hash.
- *
- * @overload AWS.Credentials(accessKeyId, secretAccessKey, sessionToken=null)
- * Creates a Credentials object with a given set of credential information
- * as positional arguments.
- * @param accessKeyId [String] the AWS access key ID
- * @param secretAccessKey [String] the AWS secret access key
- * @param sessionToken [String] the optional AWS session token
- * @example Create a credentials object with AWS credentials
- * var creds = new AWS.Credentials('akid', 'secret', 'session');
- * @overload AWS.Credentials(options)
- * Creates a Credentials object with a given set of credential information
- * as an options hash.
- * @option options accessKeyId [String] the AWS access key ID
- * @option options secretAccessKey [String] the AWS secret access key
- * @option options sessionToken [String] the optional AWS session token
- * @example Create a credentials object with AWS credentials
- * var creds = new AWS.Credentials({
- * accessKeyId: 'akid', secretAccessKey: 'secret', sessionToken: 'session'
- * });
- */
- constructor: function Credentials() {
- // hide secretAccessKey from being displayed with util.inspect
- AWS.util.hideProperties(this, ['secretAccessKey']);
-
- this.expired = false;
- this.expireTime = null;
- this.refreshCallbacks = [];
- if (arguments.length === 1 && typeof arguments[0] === 'object') {
- var creds = arguments[0].credentials || arguments[0];
- this.accessKeyId = creds.accessKeyId;
- this.secretAccessKey = creds.secretAccessKey;
- this.sessionToken = creds.sessionToken;
- } else {
- this.accessKeyId = arguments[0];
- this.secretAccessKey = arguments[1];
- this.sessionToken = arguments[2];
- }
- },
-
- /**
- * @return [Integer] the number of seconds before {expireTime} during which
- * the credentials will be considered expired.
- */
- expiryWindow: 15,
-
- /**
- * @return [Boolean] whether the credentials object should call {refresh}
- * @note Subclasses should override this method to provide custom refresh
- * logic.
- */
- needsRefresh: function needsRefresh() {
- var currentTime = AWS.util.date.getDate().getTime();
- var adjustedTime = new Date(currentTime + this.expiryWindow * 1000);
-
- if (this.expireTime && adjustedTime > this.expireTime) {
- return true;
- } else {
- return this.expired || !this.accessKeyId || !this.secretAccessKey;
- }
- },
-
- /**
- * Gets the existing credentials, refreshing them if they are not yet loaded
- * or have expired. Users should call this method before using {refresh},
- * as this will not attempt to reload credentials when they are already
- * loaded into the object.
- *
- * @callback callback function(err)
- * When this callback is called with no error, it means either credentials
- * do not need to be refreshed or refreshed credentials information has
- * been loaded into the object (as the `accessKeyId`, `secretAccessKey`,
- * and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- */
- get: function get(callback) {
- var self = this;
- if (this.needsRefresh()) {
- this.refresh(function(err) {
- if (!err) self.expired = false; // reset expired flag
- if (callback) callback(err);
- });
- } else if (callback) {
- callback();
- }
- },
-
- /**
- * @!method getPromise()
- * Returns a 'thenable' promise.
- * Gets the existing credentials, refreshing them if they are not yet loaded
- * or have expired. Users should call this method before using {refresh},
- * as this will not attempt to reload credentials when they are already
- * loaded into the object.
- *
- * Two callbacks can be provided to the `then` method on the returned promise.
- * The first callback will be called if the promise is fulfilled, and the second
- * callback will be called if the promise is rejected.
- * @callback fulfilledCallback function()
- * Called if the promise is fulfilled. When this callback is called, it
- * means either credentials do not need to be refreshed or refreshed
- * credentials information has been loaded into the object (as the
- * `accessKeyId`, `secretAccessKey`, and `sessionToken` properties).
- * @callback rejectedCallback function(err)
- * Called if the promise is rejected.
- * @param err [Error] if an error occurred, this value will be filled
- * @return [Promise] A promise that represents the state of the `get` call.
- * @example Calling the `getPromise` method.
- * var promise = credProvider.getPromise();
- * promise.then(function() { ... }, function(err) { ... });
- */
-
- /**
- * @!method refreshPromise()
- * Returns a 'thenable' promise.
- * Refreshes the credentials. Users should call {get} before attempting
- * to forcibly refresh credentials.
- *
- * Two callbacks can be provided to the `then` method on the returned promise.
- * The first callback will be called if the promise is fulfilled, and the second
- * callback will be called if the promise is rejected.
- * @callback fulfilledCallback function()
- * Called if the promise is fulfilled. When this callback is called, it
- * means refreshed credentials information has been loaded into the object
- * (as the `accessKeyId`, `secretAccessKey`, and `sessionToken` properties).
- * @callback rejectedCallback function(err)
- * Called if the promise is rejected.
- * @param err [Error] if an error occurred, this value will be filled
- * @return [Promise] A promise that represents the state of the `refresh` call.
- * @example Calling the `refreshPromise` method.
- * var promise = credProvider.refreshPromise();
- * promise.then(function() { ... }, function(err) { ... });
- */
-
- /**
- * Refreshes the credentials. Users should call {get} before attempting
- * to forcibly refresh credentials.
- *
- * @callback callback function(err)
- * When this callback is called with no error, it means refreshed
- * credentials information has been loaded into the object (as the
- * `accessKeyId`, `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @note Subclasses should override this class to reset the
- * {accessKeyId}, {secretAccessKey} and optional {sessionToken}
- * on the credentials object and then call the callback with
- * any error information.
- * @see get
- */
- refresh: function refresh(callback) {
- this.expired = false;
- callback();
- },
-
- /**
- * @api private
- * @param callback
- */
- coalesceRefresh: function coalesceRefresh(callback, sync) {
- var self = this;
- if (self.refreshCallbacks.push(callback) === 1) {
- self.load(function onLoad(err) {
- AWS.util.arrayEach(self.refreshCallbacks, function(callback) {
- if (sync) {
- callback(err);
- } else {
- // callback could throw, so defer to ensure all callbacks are notified
- AWS.util.defer(function () {
- callback(err);
- });
- }
- });
- self.refreshCallbacks.length = 0;
- });
- }
- },
-
- /**
- * @api private
- * @param callback
- */
- load: function load(callback) {
- callback();
- }
-});
-
-/**
- * @api private
- */
-AWS.Credentials.addPromisesToClass = function addPromisesToClass(PromiseDependency) {
- this.prototype.getPromise = AWS.util.promisifyMethod('get', PromiseDependency);
- this.prototype.refreshPromise = AWS.util.promisifyMethod('refresh', PromiseDependency);
-};
-
-/**
- * @api private
- */
-AWS.Credentials.deletePromisesFromClass = function deletePromisesFromClass() {
- delete this.prototype.getPromise;
- delete this.prototype.refreshPromise;
-};
-
-AWS.util.addPromises(AWS.Credentials);
-
-
-/***/ }),
-
-/***/ 57083:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var STS = __nccwpck_require__(57513);
-
-/**
- * Represents temporary credentials retrieved from {AWS.STS}. Without any
- * extra parameters, credentials will be fetched from the
- * {AWS.STS.getSessionToken} operation. If an IAM role is provided, the
- * {AWS.STS.assumeRole} operation will be used to fetch credentials for the
- * role instead.
- *
- * AWS.ChainableTemporaryCredentials differs from AWS.TemporaryCredentials in
- * the way masterCredentials and refreshes are handled.
- * AWS.ChainableTemporaryCredentials refreshes expired credentials using the
- * masterCredentials passed by the user to support chaining of STS credentials.
- * However, AWS.TemporaryCredentials recursively collapses the masterCredentials
- * during instantiation, precluding the ability to refresh credentials which
- * require intermediate, temporary credentials.
- *
- * For example, if the application should use RoleA, which must be assumed from
- * RoleB, and the environment provides credentials which can assume RoleB, then
- * AWS.ChainableTemporaryCredentials must be used to support refreshing the
- * temporary credentials for RoleA:
- *
- * ```javascript
- * var roleACreds = new AWS.ChainableTemporaryCredentials({
- * params: {RoleArn: 'RoleA'},
- * masterCredentials: new AWS.ChainableTemporaryCredentials({
- * params: {RoleArn: 'RoleB'},
- * masterCredentials: new AWS.EnvironmentCredentials('AWS')
- * })
- * });
- * ```
- *
- * If AWS.TemporaryCredentials had been used in the previous example,
- * `roleACreds` would fail to refresh because `roleACreds` would
- * use the environment credentials for the AssumeRole request.
- *
- * Another difference is that AWS.ChainableTemporaryCredentials creates the STS
- * service instance during instantiation while AWS.TemporaryCredentials creates
- * the STS service instance during the first refresh. Creating the service
- * instance during instantiation effectively captures the master credentials
- * from the global config, so that subsequent changes to the global config do
- * not affect the master credentials used to refresh the temporary credentials.
- *
- * This allows an instance of AWS.ChainableTemporaryCredentials to be assigned
- * to AWS.config.credentials:
- *
- * ```javascript
- * var envCreds = new AWS.EnvironmentCredentials('AWS');
- * AWS.config.credentials = envCreds;
- * // masterCredentials will be envCreds
- * AWS.config.credentials = new AWS.ChainableTemporaryCredentials({
- * params: {RoleArn: '...'}
- * });
- * ```
- *
- * Similarly, to use the CredentialProviderChain's default providers as the
- * master credentials, simply create a new instance of
- * AWS.ChainableTemporaryCredentials:
- *
- * ```javascript
- * AWS.config.credentials = new ChainableTemporaryCredentials({
- * params: {RoleArn: '...'}
- * });
- * ```
- *
- * @!attribute service
- * @return [AWS.STS] the STS service instance used to
- * get and refresh temporary credentials from AWS STS.
- * @note (see constructor)
- */
-AWS.ChainableTemporaryCredentials = AWS.util.inherit(AWS.Credentials, {
- /**
- * Creates a new temporary credentials object.
- *
- * @param options [map] a set of options
- * @option options params [map] ({}) a map of options that are passed to the
- * {AWS.STS.assumeRole} or {AWS.STS.getSessionToken} operations.
- * If a `RoleArn` parameter is passed in, credentials will be based on the
- * IAM role. If a `SerialNumber` parameter is passed in, {tokenCodeFn} must
- * also be passed in or an error will be thrown.
- * @option options masterCredentials [AWS.Credentials] the master credentials
- * used to get and refresh temporary credentials from AWS STS. By default,
- * AWS.config.credentials or AWS.config.credentialProvider will be used.
- * @option options tokenCodeFn [Function] (null) Function to provide
- * `TokenCode`, if `SerialNumber` is provided for profile in {params}. Function
- * is called with value of `SerialNumber` and `callback`, and should provide
- * the `TokenCode` or an error to the callback in the format
- * `callback(err, token)`.
- * @example Creating a new credentials object for generic temporary credentials
- * AWS.config.credentials = new AWS.ChainableTemporaryCredentials();
- * @example Creating a new credentials object for an IAM role
- * AWS.config.credentials = new AWS.ChainableTemporaryCredentials({
- * params: {
- * RoleArn: 'arn:aws:iam::1234567890:role/TemporaryCredentials'
- * }
- * });
- * @see AWS.STS.assumeRole
- * @see AWS.STS.getSessionToken
- */
- constructor: function ChainableTemporaryCredentials(options) {
- AWS.Credentials.call(this);
- options = options || {};
- this.errorCode = 'ChainableTemporaryCredentialsProviderFailure';
- this.expired = true;
- this.tokenCodeFn = null;
-
- var params = AWS.util.copy(options.params) || {};
- if (params.RoleArn) {
- params.RoleSessionName = params.RoleSessionName || 'temporary-credentials';
- }
- if (params.SerialNumber) {
- if (!options.tokenCodeFn || (typeof options.tokenCodeFn !== 'function')) {
- throw new AWS.util.error(
- new Error('tokenCodeFn must be a function when params.SerialNumber is given'),
- {code: this.errorCode}
- );
- } else {
- this.tokenCodeFn = options.tokenCodeFn;
- }
- }
- var config = AWS.util.merge(
- {
- params: params,
- credentials: options.masterCredentials || AWS.config.credentials
- },
- options.stsConfig || {}
- );
- this.service = new STS(config);
- },
-
- /**
- * Refreshes credentials using {AWS.STS.assumeRole} or
- * {AWS.STS.getSessionToken}, depending on whether an IAM role ARN was passed
- * to the credentials {constructor}.
- *
- * @callback callback function(err)
- * Called when the STS service responds (or fails). When
- * this callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see AWS.Credentials.get
- */
- refresh: function refresh(callback) {
- this.coalesceRefresh(callback || AWS.util.fn.callback);
- },
-
- /**
- * @api private
- * @param callback
- */
- load: function load(callback) {
- var self = this;
- var operation = self.service.config.params.RoleArn ? 'assumeRole' : 'getSessionToken';
- this.getTokenCode(function (err, tokenCode) {
- var params = {};
- if (err) {
- callback(err);
- return;
- }
- if (tokenCode) {
- params.TokenCode = tokenCode;
- }
- self.service[operation](params, function (err, data) {
- if (!err) {
- self.service.credentialsFrom(data, self);
- }
- callback(err);
- });
- });
- },
-
- /**
- * @api private
- */
- getTokenCode: function getTokenCode(callback) {
- var self = this;
- if (this.tokenCodeFn) {
- this.tokenCodeFn(this.service.config.params.SerialNumber, function (err, token) {
- if (err) {
- var message = err;
- if (err instanceof Error) {
- message = err.message;
- }
- callback(
- AWS.util.error(
- new Error('Error fetching MFA token: ' + message),
- { code: self.errorCode}
- )
- );
- return;
- }
- callback(null, token);
- });
- } else {
- callback(null);
- }
- }
-});
-
-
-/***/ }),
-
-/***/ 3498:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var CognitoIdentity = __nccwpck_require__(58291);
-var STS = __nccwpck_require__(57513);
-
-/**
- * Represents credentials retrieved from STS Web Identity Federation using
- * the Amazon Cognito Identity service.
- *
- * By default this provider gets credentials using the
- * {AWS.CognitoIdentity.getCredentialsForIdentity} service operation, which
- * requires either an `IdentityId` or an `IdentityPoolId` (Amazon Cognito
- * Identity Pool ID), which is used to call {AWS.CognitoIdentity.getId} to
- * obtain an `IdentityId`. If the identity or identity pool is not configured in
- * the Amazon Cognito Console to use IAM roles with the appropriate permissions,
- * then additionally a `RoleArn` is required containing the ARN of the IAM trust
- * policy for the Amazon Cognito role that the user will log into. If a `RoleArn`
- * is provided, then this provider gets credentials using the
- * {AWS.STS.assumeRoleWithWebIdentity} service operation, after first getting an
- * Open ID token from {AWS.CognitoIdentity.getOpenIdToken}.
- *
- * In addition, if this credential provider is used to provide authenticated
- * login, the `Logins` map may be set to the tokens provided by the respective
- * identity providers. See {constructor} for an example on creating a credentials
- * object with proper property values.
- *
- * ## Refreshing Credentials from Identity Service
- *
- * In addition to AWS credentials expiring after a given amount of time, the
- * login token from the identity provider will also expire. Once this token
- * expires, it will not be usable to refresh AWS credentials, and another
- * token will be needed. The SDK does not manage refreshing of the token value,
- * but this can be done through a "refresh token" supported by most identity
- * providers. Consult the documentation for the identity provider for refreshing
- * tokens. Once the refreshed token is acquired, you should make sure to update
- * this new token in the credentials object's {params} property. The following
- * code will update the WebIdentityToken, assuming you have retrieved an updated
- * token from the identity provider:
- *
- * ```javascript
- * AWS.config.credentials.params.Logins['graph.facebook.com'] = updatedToken;
- * ```
- *
- * Future calls to `credentials.refresh()` will now use the new token.
- *
- * @!attribute params
- * @return [map] the map of params passed to
- * {AWS.CognitoIdentity.getId},
- * {AWS.CognitoIdentity.getOpenIdToken}, and
- * {AWS.STS.assumeRoleWithWebIdentity}. To update the token, set the
- * `params.WebIdentityToken` property.
- * @!attribute data
- * @return [map] the raw data response from the call to
- * {AWS.CognitoIdentity.getCredentialsForIdentity}, or
- * {AWS.STS.assumeRoleWithWebIdentity}. Use this if you want to get
- * access to other properties from the response.
- * @!attribute identityId
- * @return [String] the Cognito ID returned by the last call to
- * {AWS.CognitoIdentity.getOpenIdToken}. This ID represents the actual
- * final resolved identity ID from Amazon Cognito.
- */
-AWS.CognitoIdentityCredentials = AWS.util.inherit(AWS.Credentials, {
- /**
- * @api private
- */
- localStorageKey: {
- id: 'aws.cognito.identity-id.',
- providers: 'aws.cognito.identity-providers.'
- },
-
- /**
- * Creates a new credentials object.
- * @example Creating a new credentials object
- * AWS.config.credentials = new AWS.CognitoIdentityCredentials({
- *
- * // either IdentityPoolId or IdentityId is required
- * // See the IdentityPoolId param for AWS.CognitoIdentity.getID (linked below)
- * // See the IdentityId param for AWS.CognitoIdentity.getCredentialsForIdentity
- * // or AWS.CognitoIdentity.getOpenIdToken (linked below)
- * IdentityPoolId: 'us-east-1:1699ebc0-7900-4099-b910-2df94f52a030',
- * IdentityId: 'us-east-1:128d0a74-c82f-4553-916d-90053e4a8b0f'
- *
- * // optional, only necessary when the identity pool is not configured
- * // to use IAM roles in the Amazon Cognito Console
- * // See the RoleArn param for AWS.STS.assumeRoleWithWebIdentity (linked below)
- * RoleArn: 'arn:aws:iam::1234567890:role/MYAPP-CognitoIdentity',
- *
- * // optional tokens, used for authenticated login
- * // See the Logins param for AWS.CognitoIdentity.getID (linked below)
- * Logins: {
- * 'graph.facebook.com': 'FBTOKEN',
- * 'www.amazon.com': 'AMAZONTOKEN',
- * 'accounts.google.com': 'GOOGLETOKEN',
- * 'api.twitter.com': 'TWITTERTOKEN',
- * 'www.digits.com': 'DIGITSTOKEN'
- * },
- *
- * // optional name, defaults to web-identity
- * // See the RoleSessionName param for AWS.STS.assumeRoleWithWebIdentity (linked below)
- * RoleSessionName: 'web',
- *
- * // optional, only necessary when application runs in a browser
- * // and multiple users are signed in at once, used for caching
- * LoginId: 'example@gmail.com'
- *
- * }, {
- * // optionally provide configuration to apply to the underlying service clients
- * // if configuration is not provided, then configuration will be pulled from AWS.config
- *
- * // region should match the region your identity pool is located in
- * region: 'us-east-1',
- *
- * // specify timeout options
- * httpOptions: {
- * timeout: 100
- * }
- * });
- * @see AWS.CognitoIdentity.getId
- * @see AWS.CognitoIdentity.getCredentialsForIdentity
- * @see AWS.STS.assumeRoleWithWebIdentity
- * @see AWS.CognitoIdentity.getOpenIdToken
- * @see AWS.Config
- * @note If a region is not provided in the global AWS.config, or
- * specified in the `clientConfig` to the CognitoIdentityCredentials
- * constructor, you may encounter a 'Missing credentials in config' error
- * when calling making a service call.
- */
- constructor: function CognitoIdentityCredentials(params, clientConfig) {
- AWS.Credentials.call(this);
- this.expired = true;
- this.params = params;
- this.data = null;
- this._identityId = null;
- this._clientConfig = AWS.util.copy(clientConfig || {});
- this.loadCachedId();
- var self = this;
- Object.defineProperty(this, 'identityId', {
- get: function() {
- self.loadCachedId();
- return self._identityId || self.params.IdentityId;
- },
- set: function(identityId) {
- self._identityId = identityId;
- }
- });
- },
-
- /**
- * Refreshes credentials using {AWS.CognitoIdentity.getCredentialsForIdentity},
- * or {AWS.STS.assumeRoleWithWebIdentity}.
- *
- * @callback callback function(err)
- * Called when the STS service responds (or fails). When
- * this callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see AWS.Credentials.get
- */
- refresh: function refresh(callback) {
- this.coalesceRefresh(callback || AWS.util.fn.callback);
- },
-
- /**
- * @api private
- * @param callback
- */
- load: function load(callback) {
- var self = this;
- self.createClients();
- self.data = null;
- self._identityId = null;
- self.getId(function(err) {
- if (!err) {
- if (!self.params.RoleArn) {
- self.getCredentialsForIdentity(callback);
- } else {
- self.getCredentialsFromSTS(callback);
- }
- } else {
- self.clearIdOnNotAuthorized(err);
- callback(err);
- }
- });
- },
-
- /**
- * Clears the cached Cognito ID associated with the currently configured
- * identity pool ID. Use this to manually invalidate your cache if
- * the identity pool ID was deleted.
- */
- clearCachedId: function clearCache() {
- this._identityId = null;
- delete this.params.IdentityId;
-
- var poolId = this.params.IdentityPoolId;
- var loginId = this.params.LoginId || '';
- delete this.storage[this.localStorageKey.id + poolId + loginId];
- delete this.storage[this.localStorageKey.providers + poolId + loginId];
- },
-
- /**
- * @api private
- */
- clearIdOnNotAuthorized: function clearIdOnNotAuthorized(err) {
- var self = this;
- if (err.code == 'NotAuthorizedException') {
- self.clearCachedId();
- }
- },
-
- /**
- * Retrieves a Cognito ID, loading from cache if it was already retrieved
- * on this device.
- *
- * @callback callback function(err, identityId)
- * @param err [Error, null] an error object if the call failed or null if
- * it succeeded.
- * @param identityId [String, null] if successful, the callback will return
- * the Cognito ID.
- * @note If not loaded explicitly, the Cognito ID is loaded and stored in
- * localStorage in the browser environment of a device.
- * @api private
- */
- getId: function getId(callback) {
- var self = this;
- if (typeof self.params.IdentityId === 'string') {
- return callback(null, self.params.IdentityId);
- }
-
- self.cognito.getId(function(err, data) {
- if (!err && data.IdentityId) {
- self.params.IdentityId = data.IdentityId;
- callback(null, data.IdentityId);
- } else {
- callback(err);
- }
- });
- },
-
-
- /**
- * @api private
- */
- loadCredentials: function loadCredentials(data, credentials) {
- if (!data || !credentials) return;
- credentials.expired = false;
- credentials.accessKeyId = data.Credentials.AccessKeyId;
- credentials.secretAccessKey = data.Credentials.SecretKey;
- credentials.sessionToken = data.Credentials.SessionToken;
- credentials.expireTime = data.Credentials.Expiration;
- },
-
- /**
- * @api private
- */
- getCredentialsForIdentity: function getCredentialsForIdentity(callback) {
- var self = this;
- self.cognito.getCredentialsForIdentity(function(err, data) {
- if (!err) {
- self.cacheId(data);
- self.data = data;
- self.loadCredentials(self.data, self);
- } else {
- self.clearIdOnNotAuthorized(err);
- }
- callback(err);
- });
- },
-
- /**
- * @api private
- */
- getCredentialsFromSTS: function getCredentialsFromSTS(callback) {
- var self = this;
- self.cognito.getOpenIdToken(function(err, data) {
- if (!err) {
- self.cacheId(data);
- self.params.WebIdentityToken = data.Token;
- self.webIdentityCredentials.refresh(function(webErr) {
- if (!webErr) {
- self.data = self.webIdentityCredentials.data;
- self.sts.credentialsFrom(self.data, self);
- }
- callback(webErr);
- });
- } else {
- self.clearIdOnNotAuthorized(err);
- callback(err);
- }
- });
- },
-
- /**
- * @api private
- */
- loadCachedId: function loadCachedId() {
- var self = this;
-
- // in the browser we source default IdentityId from localStorage
- if (AWS.util.isBrowser() && !self.params.IdentityId) {
- var id = self.getStorage('id');
- if (id && self.params.Logins) {
- var actualProviders = Object.keys(self.params.Logins);
- var cachedProviders =
- (self.getStorage('providers') || '').split(',');
-
- // only load ID if at least one provider used this ID before
- var intersect = cachedProviders.filter(function(n) {
- return actualProviders.indexOf(n) !== -1;
- });
- if (intersect.length !== 0) {
- self.params.IdentityId = id;
- }
- } else if (id) {
- self.params.IdentityId = id;
- }
- }
- },
-
- /**
- * @api private
- */
- createClients: function() {
- var clientConfig = this._clientConfig;
- this.webIdentityCredentials = this.webIdentityCredentials ||
- new AWS.WebIdentityCredentials(this.params, clientConfig);
- if (!this.cognito) {
- var cognitoConfig = AWS.util.merge({}, clientConfig);
- cognitoConfig.params = this.params;
- this.cognito = new CognitoIdentity(cognitoConfig);
- }
- this.sts = this.sts || new STS(clientConfig);
- },
-
- /**
- * @api private
- */
- cacheId: function cacheId(data) {
- this._identityId = data.IdentityId;
- this.params.IdentityId = this._identityId;
-
- // cache this IdentityId in browser localStorage if possible
- if (AWS.util.isBrowser()) {
- this.setStorage('id', data.IdentityId);
-
- if (this.params.Logins) {
- this.setStorage('providers', Object.keys(this.params.Logins).join(','));
- }
- }
- },
-
- /**
- * @api private
- */
- getStorage: function getStorage(key) {
- return this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')];
- },
-
- /**
- * @api private
- */
- setStorage: function setStorage(key, val) {
- try {
- this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')] = val;
- } catch (_) {}
- },
-
- /**
- * @api private
- */
- storage: (function() {
- try {
- var storage = AWS.util.isBrowser() && window.localStorage !== null && typeof window.localStorage === 'object' ?
- window.localStorage : {};
-
- // Test set/remove which would throw an error in Safari's private browsing
- storage['aws.test-storage'] = 'foobar';
- delete storage['aws.test-storage'];
-
- return storage;
- } catch (_) {
- return {};
- }
- })()
-});
-
-
-/***/ }),
-
-/***/ 36965:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-
-/**
- * Creates a credential provider chain that searches for AWS credentials
- * in a list of credential providers specified by the {providers} property.
- *
- * By default, the chain will use the {defaultProviders} to resolve credentials.
- * These providers will look in the environment using the
- * {AWS.EnvironmentCredentials} class with the 'AWS' and 'AMAZON' prefixes.
- *
- * ## Setting Providers
- *
- * Each provider in the {providers} list should be a function that returns
- * a {AWS.Credentials} object, or a hardcoded credentials object. The function
- * form allows for delayed execution of the credential construction.
- *
- * ## Resolving Credentials from a Chain
- *
- * Call {resolve} to return the first valid credential object that can be
- * loaded by the provider chain.
- *
- * For example, to resolve a chain with a custom provider that checks a file
- * on disk after the set of {defaultProviders}:
- *
- * ```javascript
- * var diskProvider = new AWS.FileSystemCredentials('./creds.json');
- * var chain = new AWS.CredentialProviderChain();
- * chain.providers.push(diskProvider);
- * chain.resolve();
- * ```
- *
- * The above code will return the `diskProvider` object if the
- * file contains credentials and the `defaultProviders` do not contain
- * any credential settings.
- *
- * @!attribute providers
- * @return [Array]
- * a list of credentials objects or functions that return credentials
- * objects. If the provider is a function, the function will be
- * executed lazily when the provider needs to be checked for valid
- * credentials. By default, this object will be set to the
- * {defaultProviders}.
- * @see defaultProviders
- */
-AWS.CredentialProviderChain = AWS.util.inherit(AWS.Credentials, {
-
- /**
- * Creates a new CredentialProviderChain with a default set of providers
- * specified by {defaultProviders}.
- */
- constructor: function CredentialProviderChain(providers) {
- if (providers) {
- this.providers = providers;
- } else {
- this.providers = AWS.CredentialProviderChain.defaultProviders.slice(0);
- }
- this.resolveCallbacks = [];
- },
-
- /**
- * @!method resolvePromise()
- * Returns a 'thenable' promise.
- * Resolves the provider chain by searching for the first set of
- * credentials in {providers}.
- *
- * Two callbacks can be provided to the `then` method on the returned promise.
- * The first callback will be called if the promise is fulfilled, and the second
- * callback will be called if the promise is rejected.
- * @callback fulfilledCallback function(credentials)
- * Called if the promise is fulfilled and the provider resolves the chain
- * to a credentials object
- * @param credentials [AWS.Credentials] the credentials object resolved
- * by the provider chain.
- * @callback rejectedCallback function(error)
- * Called if the promise is rejected.
- * @param err [Error] the error object returned if no credentials are found.
- * @return [Promise] A promise that represents the state of the `resolve` method call.
- * @example Calling the `resolvePromise` method.
- * var promise = chain.resolvePromise();
- * promise.then(function(credentials) { ... }, function(err) { ... });
- */
-
- /**
- * Resolves the provider chain by searching for the first set of
- * credentials in {providers}.
- *
- * @callback callback function(err, credentials)
- * Called when the provider resolves the chain to a credentials object
- * or null if no credentials can be found.
- *
- * @param err [Error] the error object returned if no credentials are
- * found.
- * @param credentials [AWS.Credentials] the credentials object resolved
- * by the provider chain.
- * @return [AWS.CredentialProviderChain] the provider, for chaining.
- */
- resolve: function resolve(callback) {
- var self = this;
- if (self.providers.length === 0) {
- callback(new Error('No providers'));
- return self;
- }
-
- if (self.resolveCallbacks.push(callback) === 1) {
- var index = 0;
- var providers = self.providers.slice(0);
-
- function resolveNext(err, creds) {
- if ((!err && creds) || index === providers.length) {
- AWS.util.arrayEach(self.resolveCallbacks, function (callback) {
- callback(err, creds);
- });
- self.resolveCallbacks.length = 0;
- return;
- }
-
- var provider = providers[index++];
- if (typeof provider === 'function') {
- creds = provider.call();
- } else {
- creds = provider;
- }
-
- if (creds.get) {
- creds.get(function (getErr) {
- resolveNext(getErr, getErr ? null : creds);
- });
- } else {
- resolveNext(null, creds);
- }
- }
-
- resolveNext();
- }
-
- return self;
- }
-});
-
-/**
- * The default set of providers used by a vanilla CredentialProviderChain.
- *
- * In the browser:
- *
- * ```javascript
- * AWS.CredentialProviderChain.defaultProviders = []
- * ```
- *
- * In Node.js:
- *
- * ```javascript
- * AWS.CredentialProviderChain.defaultProviders = [
- * function () { return new AWS.EnvironmentCredentials('AWS'); },
- * function () { return new AWS.EnvironmentCredentials('AMAZON'); },
- * function () { return new AWS.SsoCredentials(); },
- * function () { return new AWS.SharedIniFileCredentials(); },
- * function () { return new AWS.ECSCredentials(); },
- * function () { return new AWS.ProcessCredentials(); },
- * function () { return new AWS.TokenFileWebIdentityCredentials(); },
- * function () { return new AWS.EC2MetadataCredentials() }
- * ]
- * ```
- */
-AWS.CredentialProviderChain.defaultProviders = [];
-
-/**
- * @api private
- */
-AWS.CredentialProviderChain.addPromisesToClass = function addPromisesToClass(PromiseDependency) {
- this.prototype.resolvePromise = AWS.util.promisifyMethod('resolve', PromiseDependency);
-};
-
-/**
- * @api private
- */
-AWS.CredentialProviderChain.deletePromisesFromClass = function deletePromisesFromClass() {
- delete this.prototype.resolvePromise;
-};
-
-AWS.util.addPromises(AWS.CredentialProviderChain);
-
-
-/***/ }),
-
-/***/ 73379:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-__nccwpck_require__(25768);
-
-/**
- * Represents credentials received from the metadata service on an EC2 instance.
- *
- * By default, this class will connect to the metadata service using
- * {AWS.MetadataService} and attempt to load any available credentials. If it
- * can connect, and credentials are available, these will be used with zero
- * configuration.
- *
- * This credentials class will by default timeout after 1 second of inactivity
- * and retry 3 times.
- * If your requests to the EC2 metadata service are timing out, you can increase
- * these values by configuring them directly:
- *
- * ```javascript
- * AWS.config.credentials = new AWS.EC2MetadataCredentials({
- * httpOptions: { timeout: 5000 }, // 5 second timeout
- * maxRetries: 10, // retry 10 times
- * retryDelayOptions: { base: 200 }, // see AWS.Config for information
- * logger: console // see AWS.Config for information
- * });
- * ```
- *
- * If your requests are timing out in connecting to the metadata service, such
- * as when testing on a development machine, you can use the connectTimeout
- * option, specified in milliseconds, which also defaults to 1 second.
- *
- * If the requests failed or returns expired credentials, it will
- * extend the expiration of current credential, with a warning message. For more
- * information, please go to:
- * https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html
- *
- * @!attribute originalExpiration
- * @return [Date] The optional original expiration of the current credential.
- * In case of AWS outage, the EC2 metadata will extend expiration of the
- * existing credential.
- *
- * @see AWS.Config.retryDelayOptions
- * @see AWS.Config.logger
- *
- * @!macro nobrowser
- */
-AWS.EC2MetadataCredentials = AWS.util.inherit(AWS.Credentials, {
- constructor: function EC2MetadataCredentials(options) {
- AWS.Credentials.call(this);
-
- options = options ? AWS.util.copy(options) : {};
- options = AWS.util.merge(
- {maxRetries: this.defaultMaxRetries}, options);
- if (!options.httpOptions) options.httpOptions = {};
- options.httpOptions = AWS.util.merge(
- {timeout: this.defaultTimeout,
- connectTimeout: this.defaultConnectTimeout},
- options.httpOptions);
-
- this.metadataService = new AWS.MetadataService(options);
- this.logger = options.logger || AWS.config && AWS.config.logger;
- },
-
- /**
- * @api private
- */
- defaultTimeout: 1000,
-
- /**
- * @api private
- */
- defaultConnectTimeout: 1000,
-
- /**
- * @api private
- */
- defaultMaxRetries: 3,
-
- /**
- * The original expiration of the current credential. In case of AWS
- * outage, the EC2 metadata will extend expiration of the existing
- * credential.
- */
- originalExpiration: undefined,
-
- /**
- * Loads the credentials from the instance metadata service
- *
- * @callback callback function(err)
- * Called when the instance metadata service responds (or fails). When
- * this callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see get
- */
- refresh: function refresh(callback) {
- this.coalesceRefresh(callback || AWS.util.fn.callback);
- },
-
- /**
- * @api private
- * @param callback
- */
- load: function load(callback) {
- var self = this;
- self.metadataService.loadCredentials(function(err, creds) {
- if (err) {
- if (self.hasLoadedCredentials()) {
- self.extendExpirationIfExpired();
- callback();
- } else {
- callback(err);
- }
- } else {
- self.setCredentials(creds);
- self.extendExpirationIfExpired();
- callback();
- }
- });
- },
-
- /**
- * Whether this credential has been loaded.
- * @api private
- */
- hasLoadedCredentials: function hasLoadedCredentials() {
- return this.AccessKeyId && this.secretAccessKey;
- },
-
- /**
- * if expired, extend the expiration by 15 minutes base plus a jitter of 5
- * minutes range.
- * @api private
- */
- extendExpirationIfExpired: function extendExpirationIfExpired() {
- if (this.needsRefresh()) {
- this.originalExpiration = this.originalExpiration || this.expireTime;
- this.expired = false;
- var nextTimeout = 15 * 60 + Math.floor(Math.random() * 5 * 60);
- var currentTime = AWS.util.date.getDate().getTime();
- this.expireTime = new Date(currentTime + nextTimeout * 1000);
- // TODO: add doc link;
- this.logger.warn('Attempting credential expiration extension due to a '
- + 'credential service availability issue. A refresh of these '
- + 'credentials will be attempted again at ' + this.expireTime
- + '\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html');
- }
- },
-
- /**
- * Update the credential with new credential responded from EC2 metadata
- * service.
- * @api private
- */
- setCredentials: function setCredentials(creds) {
- var currentTime = AWS.util.date.getDate().getTime();
- var expireTime = new Date(creds.Expiration);
- this.expired = currentTime >= expireTime ? true : false;
- this.metadata = creds;
- this.accessKeyId = creds.AccessKeyId;
- this.secretAccessKey = creds.SecretAccessKey;
- this.sessionToken = creds.Token;
- this.expireTime = expireTime;
- }
-});
-
-
-/***/ }),
-
-/***/ 10645:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-
-/**
- * Represents credentials received from relative URI specified in the ECS container.
- *
- * This class will request refreshable credentials from the relative URI
- * specified by the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI or the
- * AWS_CONTAINER_CREDENTIALS_FULL_URI environment variable. If valid credentials
- * are returned in the response, these will be used with zero configuration.
- *
- * This credentials class will by default timeout after 1 second of inactivity
- * and retry 3 times.
- * If your requests to the relative URI are timing out, you can increase
- * the value by configuring them directly:
- *
- * ```javascript
- * AWS.config.credentials = new AWS.ECSCredentials({
- * httpOptions: { timeout: 5000 }, // 5 second timeout
- * maxRetries: 10, // retry 10 times
- * retryDelayOptions: { base: 200 } // see AWS.Config for information
- * });
- * ```
- *
- * @see AWS.Config.retryDelayOptions
- *
- * @!macro nobrowser
- */
-AWS.ECSCredentials = AWS.RemoteCredentials;
-
-
-/***/ }),
-
-/***/ 57714:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-
-/**
- * Represents credentials from the environment.
- *
- * By default, this class will look for the matching environment variables
- * prefixed by a given {envPrefix}. The un-prefixed environment variable names
- * for each credential value is listed below:
- *
- * ```javascript
- * accessKeyId: ACCESS_KEY_ID
- * secretAccessKey: SECRET_ACCESS_KEY
- * sessionToken: SESSION_TOKEN
- * ```
- *
- * With the default prefix of 'AWS', the environment variables would be:
- *
- * AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN
- *
- * @!attribute envPrefix
- * @readonly
- * @return [String] the prefix for the environment variable names excluding
- * the separating underscore ('_').
- */
-AWS.EnvironmentCredentials = AWS.util.inherit(AWS.Credentials, {
-
- /**
- * Creates a new EnvironmentCredentials class with a given variable
- * prefix {envPrefix}. For example, to load credentials using the 'AWS'
- * prefix:
- *
- * ```javascript
- * var creds = new AWS.EnvironmentCredentials('AWS');
- * creds.accessKeyId == 'AKID' // from AWS_ACCESS_KEY_ID env var
- * ```
- *
- * @param envPrefix [String] the prefix to use (e.g., 'AWS') for environment
- * variables. Do not include the separating underscore.
- */
- constructor: function EnvironmentCredentials(envPrefix) {
- AWS.Credentials.call(this);
- this.envPrefix = envPrefix;
- this.get(function() {});
- },
-
- /**
- * Loads credentials from the environment using the prefixed
- * environment variables.
- *
- * @callback callback function(err)
- * Called after the (prefixed) ACCESS_KEY_ID, SECRET_ACCESS_KEY, and
- * SESSION_TOKEN environment variables are read. When this callback is
- * called with no error, it means that the credentials information has
- * been loaded into the object (as the `accessKeyId`, `secretAccessKey`,
- * and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see get
- */
- refresh: function refresh(callback) {
- if (!callback) callback = AWS.util.fn.callback;
-
- if (!process || !process.env) {
- callback(AWS.util.error(
- new Error('No process info or environment variables available'),
- { code: 'EnvironmentCredentialsProviderFailure' }
- ));
- return;
- }
-
- var keys = ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY', 'SESSION_TOKEN'];
- var values = [];
-
- for (var i = 0; i < keys.length; i++) {
- var prefix = '';
- if (this.envPrefix) prefix = this.envPrefix + '_';
- values[i] = process.env[prefix + keys[i]];
- if (!values[i] && keys[i] !== 'SESSION_TOKEN') {
- callback(AWS.util.error(
- new Error('Variable ' + prefix + keys[i] + ' not set.'),
- { code: 'EnvironmentCredentialsProviderFailure' }
- ));
- return;
- }
- }
-
- this.expired = false;
- AWS.Credentials.apply(this, values);
- callback();
- }
-
-});
-
-
-/***/ }),
-
-/***/ 27454:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-
-/**
- * Represents credentials from a JSON file on disk.
- * If the credentials expire, the SDK can {refresh} the credentials
- * from the file.
- *
- * The format of the file should be similar to the options passed to
- * {AWS.Config}:
- *
- * ```javascript
- * {accessKeyId: 'akid', secretAccessKey: 'secret', sessionToken: 'optional'}
- * ```
- *
- * @example Loading credentials from disk
- * var creds = new AWS.FileSystemCredentials('./configuration.json');
- * creds.accessKeyId == 'AKID'
- *
- * @!attribute filename
- * @readonly
- * @return [String] the path to the JSON file on disk containing the
- * credentials.
- * @!macro nobrowser
- */
-AWS.FileSystemCredentials = AWS.util.inherit(AWS.Credentials, {
-
- /**
- * @overload AWS.FileSystemCredentials(filename)
- * Creates a new FileSystemCredentials object from a filename
- *
- * @param filename [String] the path on disk to the JSON file to load.
- */
- constructor: function FileSystemCredentials(filename) {
- AWS.Credentials.call(this);
- this.filename = filename;
- this.get(function() {});
- },
-
- /**
- * Loads the credentials from the {filename} on disk.
- *
- * @callback callback function(err)
- * Called after the JSON file on disk is read and parsed. When this callback
- * is called with no error, it means that the credentials information
- * has been loaded into the object (as the `accessKeyId`, `secretAccessKey`,
- * and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see get
- */
- refresh: function refresh(callback) {
- if (!callback) callback = AWS.util.fn.callback;
- try {
- var creds = JSON.parse(AWS.util.readFileSync(this.filename));
- AWS.Credentials.call(this, creds);
- if (!this.accessKeyId || !this.secretAccessKey) {
- throw AWS.util.error(
- new Error('Credentials not set in ' + this.filename),
- { code: 'FileSystemCredentialsProviderFailure' }
- );
- }
- this.expired = false;
- callback();
- } catch (err) {
- callback(err);
- }
- }
-
-});
-
-
-/***/ }),
-
-/***/ 80371:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var proc = __nccwpck_require__(32081);
-var iniLoader = AWS.util.iniLoader;
-
-/**
- * Represents credentials loaded from shared credentials file
- * (defaulting to ~/.aws/credentials or defined by the
- * `AWS_SHARED_CREDENTIALS_FILE` environment variable).
- *
- * ## Using process credentials
- *
- * The credentials file can specify a credential provider that executes
- * a given process and attempts to read its stdout to recieve a JSON payload
- * containing the credentials:
- *
- * [default]
- * credential_process = /usr/bin/credential_proc
- *
- * Automatically handles refreshing credentials if an Expiration time is
- * provided in the credentials payload. Credentials supplied in the same profile
- * will take precedence over the credential_process.
- *
- * Sourcing credentials from an external process can potentially be dangerous,
- * so proceed with caution. Other credential providers should be preferred if
- * at all possible. If using this option, you should make sure that the shared
- * credentials file is as locked down as possible using security best practices
- * for your operating system.
- *
- * ## Using custom profiles
- *
- * The SDK supports loading credentials for separate profiles. This can be done
- * in two ways:
- *
- * 1. Set the `AWS_PROFILE` environment variable in your process prior to
- * loading the SDK.
- * 2. Directly load the AWS.ProcessCredentials provider:
- *
- * ```javascript
- * var creds = new AWS.ProcessCredentials({profile: 'myprofile'});
- * AWS.config.credentials = creds;
- * ```
- *
- * @!macro nobrowser
- */
-AWS.ProcessCredentials = AWS.util.inherit(AWS.Credentials, {
- /**
- * Creates a new ProcessCredentials object.
- *
- * @param options [map] a set of options
- * @option options profile [String] (AWS_PROFILE env var or 'default')
- * the name of the profile to load.
- * @option options filename [String] ('~/.aws/credentials' or defined by
- * AWS_SHARED_CREDENTIALS_FILE process env var)
- * the filename to use when loading credentials.
- * @option options callback [Function] (err) Credentials are eagerly loaded
- * by the constructor. When the callback is called with no error, the
- * credentials have been loaded successfully.
- */
- constructor: function ProcessCredentials(options) {
- AWS.Credentials.call(this);
-
- options = options || {};
-
- this.filename = options.filename;
- this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile;
- this.get(options.callback || AWS.util.fn.noop);
- },
-
- /**
- * @api private
- */
- load: function load(callback) {
- var self = this;
- try {
- var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename);
- var profile = profiles[this.profile] || {};
-
- if (Object.keys(profile).length === 0) {
- throw AWS.util.error(
- new Error('Profile ' + this.profile + ' not found'),
- { code: 'ProcessCredentialsProviderFailure' }
- );
- }
-
- if (profile['credential_process']) {
- this.loadViaCredentialProcess(profile, function(err, data) {
- if (err) {
- callback(err, null);
- } else {
- self.expired = false;
- self.accessKeyId = data.AccessKeyId;
- self.secretAccessKey = data.SecretAccessKey;
- self.sessionToken = data.SessionToken;
- if (data.Expiration) {
- self.expireTime = new Date(data.Expiration);
- }
- callback(null);
- }
- });
- } else {
- throw AWS.util.error(
- new Error('Profile ' + this.profile + ' did not include credential process'),
- { code: 'ProcessCredentialsProviderFailure' }
- );
- }
- } catch (err) {
- callback(err);
- }
- },
-
- /**
- * Executes the credential_process and retrieves
- * credentials from the output
- * @api private
- * @param profile [map] credentials profile
- * @throws ProcessCredentialsProviderFailure
- */
- loadViaCredentialProcess: function loadViaCredentialProcess(profile, callback) {
- proc.exec(profile['credential_process'], { env: process.env }, function(err, stdOut, stdErr) {
- if (err) {
- callback(AWS.util.error(
- new Error('credential_process returned error'),
- { code: 'ProcessCredentialsProviderFailure'}
- ), null);
- } else {
- try {
- var credData = JSON.parse(stdOut);
- if (credData.Expiration) {
- var currentTime = AWS.util.date.getDate();
- var expireTime = new Date(credData.Expiration);
- if (expireTime < currentTime) {
- throw Error('credential_process returned expired credentials');
- }
- }
-
- if (credData.Version !== 1) {
- throw Error('credential_process does not return Version == 1');
- }
- callback(null, credData);
- } catch (err) {
- callback(AWS.util.error(
- new Error(err.message),
- { code: 'ProcessCredentialsProviderFailure'}
- ), null);
- }
- }
- });
- },
-
- /**
- * Loads the credentials from the credential process
- *
- * @callback callback function(err)
- * Called after the credential process has been executed. When this
- * callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see get
- */
- refresh: function refresh(callback) {
- iniLoader.clearCachedFiles();
- this.coalesceRefresh(callback || AWS.util.fn.callback);
- }
-});
-
-
-/***/ }),
-
-/***/ 88764:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437),
- ENV_RELATIVE_URI = 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI',
- ENV_FULL_URI = 'AWS_CONTAINER_CREDENTIALS_FULL_URI',
- ENV_AUTH_TOKEN = 'AWS_CONTAINER_AUTHORIZATION_TOKEN',
- FULL_URI_UNRESTRICTED_PROTOCOLS = ['https:'],
- FULL_URI_ALLOWED_PROTOCOLS = ['http:', 'https:'],
- FULL_URI_ALLOWED_HOSTNAMES = ['localhost', '127.0.0.1'],
- RELATIVE_URI_HOST = '169.254.170.2';
-
-/**
- * Represents credentials received from specified URI.
- *
- * This class will request refreshable credentials from the relative URI
- * specified by the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI or the
- * AWS_CONTAINER_CREDENTIALS_FULL_URI environment variable. If valid credentials
- * are returned in the response, these will be used with zero configuration.
- *
- * This credentials class will by default timeout after 1 second of inactivity
- * and retry 3 times.
- * If your requests to the relative URI are timing out, you can increase
- * the value by configuring them directly:
- *
- * ```javascript
- * AWS.config.credentials = new AWS.RemoteCredentials({
- * httpOptions: { timeout: 5000 }, // 5 second timeout
- * maxRetries: 10, // retry 10 times
- * retryDelayOptions: { base: 200 } // see AWS.Config for information
- * });
- * ```
- *
- * @see AWS.Config.retryDelayOptions
- *
- * @!macro nobrowser
- */
-AWS.RemoteCredentials = AWS.util.inherit(AWS.Credentials, {
- constructor: function RemoteCredentials(options) {
- AWS.Credentials.call(this);
- options = options ? AWS.util.copy(options) : {};
- if (!options.httpOptions) options.httpOptions = {};
- options.httpOptions = AWS.util.merge(
- this.httpOptions, options.httpOptions);
- AWS.util.update(this, options);
- },
-
- /**
- * @api private
- */
- httpOptions: { timeout: 1000 },
-
- /**
- * @api private
- */
- maxRetries: 3,
-
- /**
- * @api private
- */
- isConfiguredForEcsCredentials: function isConfiguredForEcsCredentials() {
- return Boolean(
- process &&
- process.env &&
- (process.env[ENV_RELATIVE_URI] || process.env[ENV_FULL_URI])
- );
- },
-
- /**
- * @api private
- */
- getECSFullUri: function getECSFullUri() {
- if (process && process.env) {
- var relative = process.env[ENV_RELATIVE_URI],
- full = process.env[ENV_FULL_URI];
- if (relative) {
- return 'http://' + RELATIVE_URI_HOST + relative;
- } else if (full) {
- var parsed = AWS.util.urlParse(full);
- if (FULL_URI_ALLOWED_PROTOCOLS.indexOf(parsed.protocol) < 0) {
- throw AWS.util.error(
- new Error('Unsupported protocol: AWS.RemoteCredentials supports '
- + FULL_URI_ALLOWED_PROTOCOLS.join(',') + ' only; '
- + parsed.protocol + ' requested.'),
- { code: 'ECSCredentialsProviderFailure' }
- );
- }
-
- if (FULL_URI_UNRESTRICTED_PROTOCOLS.indexOf(parsed.protocol) < 0 &&
- FULL_URI_ALLOWED_HOSTNAMES.indexOf(parsed.hostname) < 0) {
- throw AWS.util.error(
- new Error('Unsupported hostname: AWS.RemoteCredentials only supports '
- + FULL_URI_ALLOWED_HOSTNAMES.join(',') + ' for ' + parsed.protocol + '; '
- + parsed.protocol + '//' + parsed.hostname + ' requested.'),
- { code: 'ECSCredentialsProviderFailure' }
- );
- }
-
- return full;
- } else {
- throw AWS.util.error(
- new Error('Variable ' + ENV_RELATIVE_URI + ' or ' + ENV_FULL_URI +
- ' must be set to use AWS.RemoteCredentials.'),
- { code: 'ECSCredentialsProviderFailure' }
- );
- }
- } else {
- throw AWS.util.error(
- new Error('No process info available'),
- { code: 'ECSCredentialsProviderFailure' }
- );
- }
- },
-
- /**
- * @api private
- */
- getECSAuthToken: function getECSAuthToken() {
- if (process && process.env && process.env[ENV_FULL_URI]) {
- return process.env[ENV_AUTH_TOKEN];
- }
- },
-
- /**
- * @api private
- */
- credsFormatIsValid: function credsFormatIsValid(credData) {
- return (!!credData.accessKeyId && !!credData.secretAccessKey &&
- !!credData.sessionToken && !!credData.expireTime);
- },
-
- /**
- * @api private
- */
- formatCreds: function formatCreds(credData) {
- if (!!credData.credentials) {
- credData = credData.credentials;
- }
-
- return {
- expired: false,
- accessKeyId: credData.accessKeyId || credData.AccessKeyId,
- secretAccessKey: credData.secretAccessKey || credData.SecretAccessKey,
- sessionToken: credData.sessionToken || credData.Token,
- expireTime: new Date(credData.expiration || credData.Expiration)
- };
- },
-
- /**
- * @api private
- */
- request: function request(url, callback) {
- var httpRequest = new AWS.HttpRequest(url);
- httpRequest.method = 'GET';
- httpRequest.headers.Accept = 'application/json';
- var token = this.getECSAuthToken();
- if (token) {
- httpRequest.headers.Authorization = token;
- }
- AWS.util.handleRequestWithRetries(httpRequest, this, callback);
- },
-
- /**
- * Loads the credentials from the relative URI specified by container
- *
- * @callback callback function(err)
- * Called when the request to the relative URI responds (or fails). When
- * this callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, `sessionToken`, and `expireTime` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see get
- */
- refresh: function refresh(callback) {
- this.coalesceRefresh(callback || AWS.util.fn.callback);
- },
-
- /**
- * @api private
- */
- load: function load(callback) {
- var self = this;
- var fullUri;
-
- try {
- fullUri = this.getECSFullUri();
- } catch (err) {
- callback(err);
- return;
- }
-
- this.request(fullUri, function(err, data) {
- if (!err) {
- try {
- data = JSON.parse(data);
- var creds = self.formatCreds(data);
- if (!self.credsFormatIsValid(creds)) {
- throw AWS.util.error(
- new Error('Response data is not in valid format'),
- { code: 'ECSCredentialsProviderFailure' }
- );
- }
- AWS.util.update(self, creds);
- } catch (dataError) {
- err = dataError;
- }
- }
- callback(err, creds);
- });
- }
-});
-
-
-/***/ }),
-
-/***/ 15037:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var STS = __nccwpck_require__(57513);
-
-/**
- * Represents credentials retrieved from STS SAML support.
- *
- * By default this provider gets credentials using the
- * {AWS.STS.assumeRoleWithSAML} service operation. This operation
- * requires a `RoleArn` containing the ARN of the IAM trust policy for the
- * application for which credentials will be given, as well as a `PrincipalArn`
- * representing the ARN for the SAML identity provider. In addition, the
- * `SAMLAssertion` must be set to the token provided by the identity
- * provider. See {constructor} for an example on creating a credentials
- * object with proper `RoleArn`, `PrincipalArn`, and `SAMLAssertion` values.
- *
- * ## Refreshing Credentials from Identity Service
- *
- * In addition to AWS credentials expiring after a given amount of time, the
- * login token from the identity provider will also expire. Once this token
- * expires, it will not be usable to refresh AWS credentials, and another
- * token will be needed. The SDK does not manage refreshing of the token value,
- * but this can be done through a "refresh token" supported by most identity
- * providers. Consult the documentation for the identity provider for refreshing
- * tokens. Once the refreshed token is acquired, you should make sure to update
- * this new token in the credentials object's {params} property. The following
- * code will update the SAMLAssertion, assuming you have retrieved an updated
- * token from the identity provider:
- *
- * ```javascript
- * AWS.config.credentials.params.SAMLAssertion = updatedToken;
- * ```
- *
- * Future calls to `credentials.refresh()` will now use the new token.
- *
- * @!attribute params
- * @return [map] the map of params passed to
- * {AWS.STS.assumeRoleWithSAML}. To update the token, set the
- * `params.SAMLAssertion` property.
- */
-AWS.SAMLCredentials = AWS.util.inherit(AWS.Credentials, {
- /**
- * Creates a new credentials object.
- * @param (see AWS.STS.assumeRoleWithSAML)
- * @example Creating a new credentials object
- * AWS.config.credentials = new AWS.SAMLCredentials({
- * RoleArn: 'arn:aws:iam::1234567890:role/SAMLRole',
- * PrincipalArn: 'arn:aws:iam::1234567890:role/SAMLPrincipal',
- * SAMLAssertion: 'base64-token', // base64-encoded token from IdP
- * });
- * @see AWS.STS.assumeRoleWithSAML
- */
- constructor: function SAMLCredentials(params) {
- AWS.Credentials.call(this);
- this.expired = true;
- this.params = params;
- },
-
- /**
- * Refreshes credentials using {AWS.STS.assumeRoleWithSAML}
- *
- * @callback callback function(err)
- * Called when the STS service responds (or fails). When
- * this callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see get
- */
- refresh: function refresh(callback) {
- this.coalesceRefresh(callback || AWS.util.fn.callback);
- },
-
- /**
- * @api private
- */
- load: function load(callback) {
- var self = this;
- self.createClients();
- self.service.assumeRoleWithSAML(function (err, data) {
- if (!err) {
- self.service.credentialsFrom(data, self);
- }
- callback(err);
- });
- },
-
- /**
- * @api private
- */
- createClients: function() {
- this.service = this.service || new STS({params: this.params});
- }
-
-});
-
-
-/***/ }),
-
-/***/ 13754:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var STS = __nccwpck_require__(57513);
-var iniLoader = AWS.util.iniLoader;
-
-var ASSUME_ROLE_DEFAULT_REGION = 'us-east-1';
-
-/**
- * Represents credentials loaded from shared credentials file
- * (defaulting to ~/.aws/credentials or defined by the
- * `AWS_SHARED_CREDENTIALS_FILE` environment variable).
- *
- * ## Using the shared credentials file
- *
- * This provider is checked by default in the Node.js environment. To use the
- * credentials file provider, simply add your access and secret keys to the
- * ~/.aws/credentials file in the following format:
- *
- * [default]
- * aws_access_key_id = AKID...
- * aws_secret_access_key = YOUR_SECRET_KEY
- *
- * ## Using custom profiles
- *
- * The SDK supports loading credentials for separate profiles. This can be done
- * in two ways:
- *
- * 1. Set the `AWS_PROFILE` environment variable in your process prior to
- * loading the SDK.
- * 2. Directly load the AWS.SharedIniFileCredentials provider:
- *
- * ```javascript
- * var creds = new AWS.SharedIniFileCredentials({profile: 'myprofile'});
- * AWS.config.credentials = creds;
- * ```
- *
- * @!macro nobrowser
- */
-AWS.SharedIniFileCredentials = AWS.util.inherit(AWS.Credentials, {
- /**
- * Creates a new SharedIniFileCredentials object.
- *
- * @param options [map] a set of options
- * @option options profile [String] (AWS_PROFILE env var or 'default')
- * the name of the profile to load.
- * @option options filename [String] ('~/.aws/credentials' or defined by
- * AWS_SHARED_CREDENTIALS_FILE process env var)
- * the filename to use when loading credentials.
- * @option options disableAssumeRole [Boolean] (false) True to disable
- * support for profiles that assume an IAM role. If true, and an assume
- * role profile is selected, an error is raised.
- * @option options preferStaticCredentials [Boolean] (false) True to
- * prefer static credentials to role_arn if both are present.
- * @option options tokenCodeFn [Function] (null) Function to provide
- * STS Assume Role TokenCode, if mfa_serial is provided for profile in ini
- * file. Function is called with value of mfa_serial and callback, and
- * should provide the TokenCode or an error to the callback in the format
- * callback(err, token)
- * @option options callback [Function] (err) Credentials are eagerly loaded
- * by the constructor. When the callback is called with no error, the
- * credentials have been loaded successfully.
- * @option options httpOptions [map] A set of options to pass to the low-level
- * HTTP request. Currently supported options are:
- * * **proxy** [String] — the URL to proxy requests through
- * * **agent** [http.Agent, https.Agent] — the Agent object to perform
- * HTTP requests with. Used for connection pooling. Defaults to the global
- * agent (`http.globalAgent`) for non-SSL connections. Note that for
- * SSL connections, a special Agent object is used in order to enable
- * peer certificate verification. This feature is only available in the
- * Node.js environment.
- * * **connectTimeout** [Integer] — Sets the socket to timeout after
- * failing to establish a connection with the server after
- * `connectTimeout` milliseconds. This timeout has no effect once a socket
- * connection has been established.
- * * **timeout** [Integer] — The number of milliseconds a request can
- * take before automatically being terminated.
- * Defaults to two minutes (120000).
- */
- constructor: function SharedIniFileCredentials(options) {
- AWS.Credentials.call(this);
-
- options = options || {};
-
- this.filename = options.filename;
- this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile;
- this.disableAssumeRole = Boolean(options.disableAssumeRole);
- this.preferStaticCredentials = Boolean(options.preferStaticCredentials);
- this.tokenCodeFn = options.tokenCodeFn || null;
- this.httpOptions = options.httpOptions || null;
- this.get(options.callback || AWS.util.fn.noop);
- },
-
- /**
- * @api private
- */
- load: function load(callback) {
- var self = this;
- try {
- var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename);
- var profile = profiles[this.profile] || {};
-
- if (Object.keys(profile).length === 0) {
- throw AWS.util.error(
- new Error('Profile ' + this.profile + ' not found'),
- { code: 'SharedIniFileCredentialsProviderFailure' }
- );
- }
-
- /*
- In the CLI, the presence of both a role_arn and static credentials have
- different meanings depending on how many profiles have been visited. For
- the first profile processed, role_arn takes precedence over any static
- credentials, but for all subsequent profiles, static credentials are
- used if present, and only in their absence will the profile's
- source_profile and role_arn keys be used to load another set of
- credentials. This var is intended to yield compatible behaviour in this
- sdk.
- */
- var preferStaticCredentialsToRoleArn = Boolean(
- this.preferStaticCredentials
- && profile['aws_access_key_id']
- && profile['aws_secret_access_key']
- );
-
- if (profile['role_arn'] && !preferStaticCredentialsToRoleArn) {
- this.loadRoleProfile(profiles, profile, function(err, data) {
- if (err) {
- callback(err);
- } else {
- self.expired = false;
- self.accessKeyId = data.Credentials.AccessKeyId;
- self.secretAccessKey = data.Credentials.SecretAccessKey;
- self.sessionToken = data.Credentials.SessionToken;
- self.expireTime = data.Credentials.Expiration;
- callback(null);
- }
- });
- return;
- }
-
- this.accessKeyId = profile['aws_access_key_id'];
- this.secretAccessKey = profile['aws_secret_access_key'];
- this.sessionToken = profile['aws_session_token'];
-
- if (!this.accessKeyId || !this.secretAccessKey) {
- throw AWS.util.error(
- new Error('Credentials not set for profile ' + this.profile),
- { code: 'SharedIniFileCredentialsProviderFailure' }
- );
- }
- this.expired = false;
- callback(null);
- } catch (err) {
- callback(err);
- }
- },
-
- /**
- * Loads the credentials from the shared credentials file
- *
- * @callback callback function(err)
- * Called after the shared INI file on disk is read and parsed. When this
- * callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see get
- */
- refresh: function refresh(callback) {
- iniLoader.clearCachedFiles();
- this.coalesceRefresh(
- callback || AWS.util.fn.callback,
- this.disableAssumeRole
- );
- },
-
- /**
- * @api private
- */
- loadRoleProfile: function loadRoleProfile(creds, roleProfile, callback) {
- if (this.disableAssumeRole) {
- throw AWS.util.error(
- new Error('Role assumption profiles are disabled. ' +
- 'Failed to load profile ' + this.profile +
- ' from ' + creds.filename),
- { code: 'SharedIniFileCredentialsProviderFailure' }
- );
- }
-
- var self = this;
- var roleArn = roleProfile['role_arn'];
- var roleSessionName = roleProfile['role_session_name'];
- var externalId = roleProfile['external_id'];
- var mfaSerial = roleProfile['mfa_serial'];
- var sourceProfileName = roleProfile['source_profile'];
- var durationSeconds = parseInt(roleProfile['duration_seconds'], 10) || undefined;
-
- // From experimentation, the following behavior mimics the AWS CLI:
- //
- // 1. Use region from the profile if present.
- // 2. Otherwise fall back to N. Virginia (global endpoint).
- //
- // It is necessary to do the fallback explicitly, because if
- // 'AWS_STS_REGIONAL_ENDPOINTS=regional', the underlying STS client will
- // otherwise throw an error if region is left 'undefined'.
- //
- // Experimentation shows that the AWS CLI (tested at version 1.18.136)
- // ignores the following potential sources of a region for the purposes of
- // this AssumeRole call:
- //
- // - The [default] profile
- // - The AWS_REGION environment variable
- //
- // Ignoring the [default] profile for the purposes of AssumeRole is arguably
- // a bug in the CLI since it does use the [default] region for service
- // calls... but right now we're matching behavior of the other tool.
- var profileRegion = roleProfile['region'] || ASSUME_ROLE_DEFAULT_REGION;
-
- if (!sourceProfileName) {
- throw AWS.util.error(
- new Error('source_profile is not set using profile ' + this.profile),
- { code: 'SharedIniFileCredentialsProviderFailure' }
- );
- }
-
- var sourceProfileExistanceTest = creds[sourceProfileName];
-
- if (typeof sourceProfileExistanceTest !== 'object') {
- throw AWS.util.error(
- new Error('source_profile ' + sourceProfileName + ' using profile '
- + this.profile + ' does not exist'),
- { code: 'SharedIniFileCredentialsProviderFailure' }
- );
- }
-
- var sourceCredentials = new AWS.SharedIniFileCredentials(
- AWS.util.merge(this.options || {}, {
- profile: sourceProfileName,
- preferStaticCredentials: true
- })
- );
-
- this.roleArn = roleArn;
- var sts = new STS({
- credentials: sourceCredentials,
- region: profileRegion,
- httpOptions: this.httpOptions
- });
-
- var roleParams = {
- DurationSeconds: durationSeconds,
- RoleArn: roleArn,
- RoleSessionName: roleSessionName || 'aws-sdk-js-' + Date.now()
- };
-
- if (externalId) {
- roleParams.ExternalId = externalId;
- }
-
- if (mfaSerial && self.tokenCodeFn) {
- roleParams.SerialNumber = mfaSerial;
- self.tokenCodeFn(mfaSerial, function(err, token) {
- if (err) {
- var message;
- if (err instanceof Error) {
- message = err.message;
- } else {
- message = err;
- }
- callback(
- AWS.util.error(
- new Error('Error fetching MFA token: ' + message),
- { code: 'SharedIniFileCredentialsProviderFailure' }
- ));
- return;
- }
-
- roleParams.TokenCode = token;
- sts.assumeRole(roleParams, callback);
- });
- return;
- }
- sts.assumeRole(roleParams, callback);
- }
-});
-
-
-/***/ }),
-
-/***/ 68335:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var path = __nccwpck_require__(71017);
-var crypto = __nccwpck_require__(6113);
-var iniLoader = AWS.util.iniLoader;
-
-/**
- * Represents credentials from sso.getRoleCredentials API for
- * `sso_*` values defined in shared credentials file.
- *
- * ## Using SSO credentials
- *
- * The credentials file must specify the information below to use sso:
- *
- * [profile sso-profile]
- * sso_account_id = 012345678901
- * sso_region = **-****-*
- * sso_role_name = SampleRole
- * sso_start_url = https://d-******.awsapps.com/start
- *
- * or using the session format:
- *
- * [profile sso-token]
- * sso_session = prod
- * sso_account_id = 012345678901
- * sso_role_name = SampleRole
- *
- * [sso-session prod]
- * sso_region = **-****-*
- * sso_start_url = https://d-******.awsapps.com/start
- *
- * This information will be automatically added to your shared credentials file by running
- * `aws configure sso`.
- *
- * ## Using custom profiles
- *
- * The SDK supports loading credentials for separate profiles. This can be done
- * in two ways:
- *
- * 1. Set the `AWS_PROFILE` environment variable in your process prior to
- * loading the SDK.
- * 2. Directly load the AWS.SsoCredentials provider:
- *
- * ```javascript
- * var creds = new AWS.SsoCredentials({profile: 'myprofile'});
- * AWS.config.credentials = creds;
- * ```
- *
- * @!macro nobrowser
- */
-AWS.SsoCredentials = AWS.util.inherit(AWS.Credentials, {
- /**
- * Creates a new SsoCredentials object.
- *
- * @param options [map] a set of options
- * @option options profile [String] (AWS_PROFILE env var or 'default')
- * the name of the profile to load.
- * @option options filename [String] ('~/.aws/credentials' or defined by
- * AWS_SHARED_CREDENTIALS_FILE process env var)
- * the filename to use when loading credentials.
- * @option options callback [Function] (err) Credentials are eagerly loaded
- * by the constructor. When the callback is called with no error, the
- * credentials have been loaded successfully.
- */
- constructor: function SsoCredentials(options) {
- AWS.Credentials.call(this);
-
- options = options || {};
- this.errorCode = 'SsoCredentialsProviderFailure';
- this.expired = true;
-
- this.filename = options.filename;
- this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile;
- this.service = options.ssoClient;
- this.httpOptions = options.httpOptions || null;
- this.get(options.callback || AWS.util.fn.noop);
- },
-
- /**
- * @api private
- */
- load: function load(callback) {
- var self = this;
-
- try {
- var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename);
- var profile = profiles[this.profile] || {};
-
- if (Object.keys(profile).length === 0) {
- throw AWS.util.error(
- new Error('Profile ' + this.profile + ' not found'),
- { code: self.errorCode }
- );
- }
-
- if (profile.sso_session) {
- if (!profile.sso_account_id || !profile.sso_role_name) {
- throw AWS.util.error(
- new Error('Profile ' + this.profile + ' with session ' + profile.sso_session +
- ' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_session", ' +
- '"sso_role_name". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'),
- { code: self.errorCode }
- );
- }
- } else {
- if (!profile.sso_start_url || !profile.sso_account_id || !profile.sso_region || !profile.sso_role_name) {
- throw AWS.util.error(
- new Error('Profile ' + this.profile + ' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_region", ' +
- '"sso_role_name", "sso_start_url". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'),
- { code: self.errorCode }
- );
- }
- }
-
- this.getToken(this.profile, profile, function (err, token) {
- if (err) {
- return callback(err);
- }
- var request = {
- accessToken: token,
- accountId: profile.sso_account_id,
- roleName: profile.sso_role_name,
- };
-
- if (!self.service || self.service.config.region !== profile.sso_region) {
- self.service = new AWS.SSO({
- region: profile.sso_region,
- httpOptions: self.httpOptions,
- });
- }
-
- self.service.getRoleCredentials(request, function(err, data) {
- if (err || !data || !data.roleCredentials) {
- callback(AWS.util.error(
- err || new Error('Please log in using "aws sso login"'),
- { code: self.errorCode }
- ), null);
- } else if (!data.roleCredentials.accessKeyId || !data.roleCredentials.secretAccessKey || !data.roleCredentials.sessionToken || !data.roleCredentials.expiration) {
- throw AWS.util.error(new Error(
- 'SSO returns an invalid temporary credential.'
- ));
- } else {
- self.expired = false;
- self.accessKeyId = data.roleCredentials.accessKeyId;
- self.secretAccessKey = data.roleCredentials.secretAccessKey;
- self.sessionToken = data.roleCredentials.sessionToken;
- self.expireTime = new Date(data.roleCredentials.expiration);
- callback(null);
- }
- });
- });
- } catch (err) {
- callback(err);
- }
- },
-
- /**
- * @private
- * Uses legacy file system retrieval or if sso-session is set,
- * use the SSOTokenProvider.
- *
- * @param {string} profileName - name of the profile.
- * @param {object} profile - profile data containing sso_session or sso_start_url etc.
- * @param {function} callback - called with (err, (string) token).
- *
- * @returns {void}
- */
- getToken: function getToken(profileName, profile, callback) {
- var self = this;
-
- if (profile.sso_session) {
- var _iniLoader = AWS.util.iniLoader;
- var ssoSessions = _iniLoader.loadSsoSessionsFrom();
- var ssoSession = ssoSessions[profile.sso_session];
- Object.assign(profile, ssoSession);
-
- var ssoTokenProvider = new AWS.SSOTokenProvider({
- profile: profileName,
- });
- ssoTokenProvider.load(function (err) {
- if (err) {
- return callback(err);
- }
- return callback(null, ssoTokenProvider.token);
- });
- return;
- }
-
- try {
- /**
- * The time window (15 mins) that SDK will treat the SSO token expires in before the defined expiration date in token.
- * This is needed because server side may have invalidated the token before the defined expiration date.
- */
- var EXPIRE_WINDOW_MS = 15 * 60 * 1000;
- var hasher = crypto.createHash('sha1');
- var fileName = hasher.update(profile.sso_start_url).digest('hex') + '.json';
- var cachePath = path.join(
- iniLoader.getHomeDir(),
- '.aws',
- 'sso',
- 'cache',
- fileName
- );
- var cacheFile = AWS.util.readFileSync(cachePath);
- var cacheContent = null;
- if (cacheFile) {
- cacheContent = JSON.parse(cacheFile);
- }
- if (!cacheContent) {
- throw AWS.util.error(
- new Error('Cached credentials not found under ' + this.profile + ' profile. Please make sure you log in with aws sso login first'),
- { code: self.errorCode }
- );
- }
-
- if (!cacheContent.startUrl || !cacheContent.region || !cacheContent.accessToken || !cacheContent.expiresAt) {
- throw AWS.util.error(
- new Error('Cached credentials are missing required properties. Try running aws sso login.')
- );
- }
-
- if (new Date(cacheContent.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) {
- throw AWS.util.error(new Error(
- 'The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.'
- ));
- }
-
- return callback(null, cacheContent.accessToken);
- } catch (err) {
- return callback(err, null);
- }
- },
-
- /**
- * Loads the credentials from the AWS SSO process
- *
- * @callback callback function(err)
- * Called after the AWS SSO process has been executed. When this
- * callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see get
- */
- refresh: function refresh(callback) {
- iniLoader.clearCachedFiles();
- this.coalesceRefresh(callback || AWS.util.fn.callback);
- },
-});
-
-
-/***/ }),
-
-/***/ 77360:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var STS = __nccwpck_require__(57513);
-
-/**
- * Represents temporary credentials retrieved from {AWS.STS}. Without any
- * extra parameters, credentials will be fetched from the
- * {AWS.STS.getSessionToken} operation. If an IAM role is provided, the
- * {AWS.STS.assumeRole} operation will be used to fetch credentials for the
- * role instead.
- *
- * @note AWS.TemporaryCredentials is deprecated, but remains available for
- * backwards compatibility. {AWS.ChainableTemporaryCredentials} is the
- * preferred class for temporary credentials.
- *
- * To setup temporary credentials, configure a set of master credentials
- * using the standard credentials providers (environment, EC2 instance metadata,
- * or from the filesystem), then set the global credentials to a new
- * temporary credentials object:
- *
- * ```javascript
- * // Note that environment credentials are loaded by default,
- * // the following line is shown for clarity:
- * AWS.config.credentials = new AWS.EnvironmentCredentials('AWS');
- *
- * // Now set temporary credentials seeded from the master credentials
- * AWS.config.credentials = new AWS.TemporaryCredentials();
- *
- * // subsequent requests will now use temporary credentials from AWS STS.
- * new AWS.S3().listBucket(function(err, data) { ... });
- * ```
- *
- * @!attribute masterCredentials
- * @return [AWS.Credentials] the master (non-temporary) credentials used to
- * get and refresh temporary credentials from AWS STS.
- * @note (see constructor)
- */
-AWS.TemporaryCredentials = AWS.util.inherit(AWS.Credentials, {
- /**
- * Creates a new temporary credentials object.
- *
- * @note In order to create temporary credentials, you first need to have
- * "master" credentials configured in {AWS.Config.credentials}. These
- * master credentials are necessary to retrieve the temporary credentials,
- * as well as refresh the credentials when they expire.
- * @param params [map] a map of options that are passed to the
- * {AWS.STS.assumeRole} or {AWS.STS.getSessionToken} operations.
- * If a `RoleArn` parameter is passed in, credentials will be based on the
- * IAM role.
- * @param masterCredentials [AWS.Credentials] the master (non-temporary) credentials
- * used to get and refresh temporary credentials from AWS STS.
- * @example Creating a new credentials object for generic temporary credentials
- * AWS.config.credentials = new AWS.TemporaryCredentials();
- * @example Creating a new credentials object for an IAM role
- * AWS.config.credentials = new AWS.TemporaryCredentials({
- * RoleArn: 'arn:aws:iam::1234567890:role/TemporaryCredentials',
- * });
- * @see AWS.STS.assumeRole
- * @see AWS.STS.getSessionToken
- */
- constructor: function TemporaryCredentials(params, masterCredentials) {
- AWS.Credentials.call(this);
- this.loadMasterCredentials(masterCredentials);
- this.expired = true;
-
- this.params = params || {};
- if (this.params.RoleArn) {
- this.params.RoleSessionName =
- this.params.RoleSessionName || 'temporary-credentials';
- }
- },
-
- /**
- * Refreshes credentials using {AWS.STS.assumeRole} or
- * {AWS.STS.getSessionToken}, depending on whether an IAM role ARN was passed
- * to the credentials {constructor}.
- *
- * @callback callback function(err)
- * Called when the STS service responds (or fails). When
- * this callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see get
- */
- refresh: function refresh (callback) {
- this.coalesceRefresh(callback || AWS.util.fn.callback);
- },
-
- /**
- * @api private
- */
- load: function load (callback) {
- var self = this;
- self.createClients();
- self.masterCredentials.get(function () {
- self.service.config.credentials = self.masterCredentials;
- var operation = self.params.RoleArn ?
- self.service.assumeRole : self.service.getSessionToken;
- operation.call(self.service, function (err, data) {
- if (!err) {
- self.service.credentialsFrom(data, self);
- }
- callback(err);
- });
- });
- },
-
- /**
- * @api private
- */
- loadMasterCredentials: function loadMasterCredentials (masterCredentials) {
- this.masterCredentials = masterCredentials || AWS.config.credentials;
- while (this.masterCredentials.masterCredentials) {
- this.masterCredentials = this.masterCredentials.masterCredentials;
- }
-
- if (typeof this.masterCredentials.get !== 'function') {
- this.masterCredentials = new AWS.Credentials(this.masterCredentials);
- }
- },
-
- /**
- * @api private
- */
- createClients: function () {
- this.service = this.service || new STS({params: this.params});
- }
-
-});
-
-
-/***/ }),
-
-/***/ 11017:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var fs = __nccwpck_require__(57147);
-var STS = __nccwpck_require__(57513);
-var iniLoader = AWS.util.iniLoader;
-
-/**
- * Represents OIDC credentials from a file on disk
- * If the credentials expire, the SDK can {refresh} the credentials
- * from the file.
- *
- * ## Using the web identity token file
- *
- * This provider is checked by default in the Node.js environment. To use
- * the provider simply add your OIDC token to a file (ASCII encoding) and
- * share the filename in either AWS_WEB_IDENTITY_TOKEN_FILE environment
- * variable or web_identity_token_file shared config variable
- *
- * The file contains encoded OIDC token and the characters are
- * ASCII encoded. OIDC tokens are JSON Web Tokens (JWT).
- * JWT's are 3 base64 encoded strings joined by the '.' character.
- *
- * This class will read filename from AWS_WEB_IDENTITY_TOKEN_FILE
- * environment variable or web_identity_token_file shared config variable,
- * and get the OIDC token from filename.
- * It will also read IAM role to be assumed from AWS_ROLE_ARN
- * environment variable or role_arn shared config variable.
- * This provider gets credetials using the {AWS.STS.assumeRoleWithWebIdentity}
- * service operation
- *
- * @!macro nobrowser
- */
-AWS.TokenFileWebIdentityCredentials = AWS.util.inherit(AWS.Credentials, {
-
- /**
- * @example Creating a new credentials object
- * AWS.config.credentials = new AWS.TokenFileWebIdentityCredentials(
- * // optionally provide configuration to apply to the underlying AWS.STS service client
- * // if configuration is not provided, then configuration will be pulled from AWS.config
- * {
- * // specify timeout options
- * httpOptions: {
- * timeout: 100
- * }
- * });
- * @see AWS.Config
- */
- constructor: function TokenFileWebIdentityCredentials(clientConfig) {
- AWS.Credentials.call(this);
- this.data = null;
- this.clientConfig = AWS.util.copy(clientConfig || {});
- },
-
- /**
- * Returns params from environment variables
- *
- * @api private
- */
- getParamsFromEnv: function getParamsFromEnv() {
- var ENV_TOKEN_FILE = 'AWS_WEB_IDENTITY_TOKEN_FILE',
- ENV_ROLE_ARN = 'AWS_ROLE_ARN';
- if (process.env[ENV_TOKEN_FILE] && process.env[ENV_ROLE_ARN]) {
- return [{
- envTokenFile: process.env[ENV_TOKEN_FILE],
- roleArn: process.env[ENV_ROLE_ARN],
- roleSessionName: process.env['AWS_ROLE_SESSION_NAME']
- }];
- }
- },
-
- /**
- * Returns params from shared config variables
- *
- * @api private
- */
- getParamsFromSharedConfig: function getParamsFromSharedConfig() {
- var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader);
- var profileName = process.env.AWS_PROFILE || AWS.util.defaultProfile;
- var profile = profiles[profileName] || {};
-
- if (Object.keys(profile).length === 0) {
- throw AWS.util.error(
- new Error('Profile ' + profileName + ' not found'),
- { code: 'TokenFileWebIdentityCredentialsProviderFailure' }
- );
- }
-
- var paramsArray = [];
-
- while (!profile['web_identity_token_file'] && profile['source_profile']) {
- paramsArray.unshift({
- roleArn: profile['role_arn'],
- roleSessionName: profile['role_session_name']
- });
- var sourceProfile = profile['source_profile'];
- profile = profiles[sourceProfile];
- }
-
- paramsArray.unshift({
- envTokenFile: profile['web_identity_token_file'],
- roleArn: profile['role_arn'],
- roleSessionName: profile['role_session_name']
- });
-
- return paramsArray;
- },
-
- /**
- * Refreshes credentials using {AWS.STS.assumeRoleWithWebIdentity}
- *
- * @callback callback function(err)
- * Called when the STS service responds (or fails). When
- * this callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see AWS.Credentials.get
- */
- refresh: function refresh(callback) {
- this.coalesceRefresh(callback || AWS.util.fn.callback);
- },
-
- /**
- * @api private
- */
- assumeRoleChaining: function assumeRoleChaining(paramsArray, callback) {
- var self = this;
- if (paramsArray.length === 0) {
- self.service.credentialsFrom(self.data, self);
- callback();
- } else {
- var params = paramsArray.shift();
- self.service.config.credentials = self.service.credentialsFrom(self.data, self);
- self.service.assumeRole(
- {
- RoleArn: params.roleArn,
- RoleSessionName: params.roleSessionName || 'token-file-web-identity'
- },
- function (err, data) {
- self.data = null;
- if (err) {
- callback(err);
- } else {
- self.data = data;
- self.assumeRoleChaining(paramsArray, callback);
- }
- }
- );
- }
- },
-
- /**
- * @api private
- */
- load: function load(callback) {
- var self = this;
- try {
- var paramsArray = self.getParamsFromEnv();
- if (!paramsArray) {
- paramsArray = self.getParamsFromSharedConfig();
- }
- if (paramsArray) {
- var params = paramsArray.shift();
- var oidcToken = fs.readFileSync(params.envTokenFile, {encoding: 'ascii'});
- if (!self.service) {
- self.createClients();
- }
- self.service.assumeRoleWithWebIdentity(
- {
- WebIdentityToken: oidcToken,
- RoleArn: params.roleArn,
- RoleSessionName: params.roleSessionName || 'token-file-web-identity'
- },
- function (err, data) {
- self.data = null;
- if (err) {
- callback(err);
- } else {
- self.data = data;
- self.assumeRoleChaining(paramsArray, callback);
- }
- }
- );
- }
- } catch (err) {
- callback(err);
- }
- },
-
- /**
- * @api private
- */
- createClients: function() {
- if (!this.service) {
- var stsConfig = AWS.util.merge({}, this.clientConfig);
- this.service = new STS(stsConfig);
-
- // Retry in case of IDPCommunicationErrorException or InvalidIdentityToken
- this.service.retryableError = function(error) {
- if (error.code === 'IDPCommunicationErrorException' || error.code === 'InvalidIdentityToken') {
- return true;
- } else {
- return AWS.Service.prototype.retryableError.call(this, error);
- }
- };
- }
- }
-});
-
-
-/***/ }),
-
-/***/ 74998:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var STS = __nccwpck_require__(57513);
-
-/**
- * Represents credentials retrieved from STS Web Identity Federation support.
- *
- * By default this provider gets credentials using the
- * {AWS.STS.assumeRoleWithWebIdentity} service operation. This operation
- * requires a `RoleArn` containing the ARN of the IAM trust policy for the
- * application for which credentials will be given. In addition, the
- * `WebIdentityToken` must be set to the token provided by the identity
- * provider. See {constructor} for an example on creating a credentials
- * object with proper `RoleArn` and `WebIdentityToken` values.
- *
- * ## Refreshing Credentials from Identity Service
- *
- * In addition to AWS credentials expiring after a given amount of time, the
- * login token from the identity provider will also expire. Once this token
- * expires, it will not be usable to refresh AWS credentials, and another
- * token will be needed. The SDK does not manage refreshing of the token value,
- * but this can be done through a "refresh token" supported by most identity
- * providers. Consult the documentation for the identity provider for refreshing
- * tokens. Once the refreshed token is acquired, you should make sure to update
- * this new token in the credentials object's {params} property. The following
- * code will update the WebIdentityToken, assuming you have retrieved an updated
- * token from the identity provider:
- *
- * ```javascript
- * AWS.config.credentials.params.WebIdentityToken = updatedToken;
- * ```
- *
- * Future calls to `credentials.refresh()` will now use the new token.
- *
- * @!attribute params
- * @return [map] the map of params passed to
- * {AWS.STS.assumeRoleWithWebIdentity}. To update the token, set the
- * `params.WebIdentityToken` property.
- * @!attribute data
- * @return [map] the raw data response from the call to
- * {AWS.STS.assumeRoleWithWebIdentity}. Use this if you want to get
- * access to other properties from the response.
- */
-AWS.WebIdentityCredentials = AWS.util.inherit(AWS.Credentials, {
- /**
- * Creates a new credentials object.
- * @param (see AWS.STS.assumeRoleWithWebIdentity)
- * @example Creating a new credentials object
- * AWS.config.credentials = new AWS.WebIdentityCredentials({
- * RoleArn: 'arn:aws:iam::1234567890:role/WebIdentity',
- * WebIdentityToken: 'ABCDEFGHIJKLMNOP', // token from identity service
- * RoleSessionName: 'web' // optional name, defaults to web-identity
- * }, {
- * // optionally provide configuration to apply to the underlying AWS.STS service client
- * // if configuration is not provided, then configuration will be pulled from AWS.config
- *
- * // specify timeout options
- * httpOptions: {
- * timeout: 100
- * }
- * });
- * @see AWS.STS.assumeRoleWithWebIdentity
- * @see AWS.Config
- */
- constructor: function WebIdentityCredentials(params, clientConfig) {
- AWS.Credentials.call(this);
- this.expired = true;
- this.params = params;
- this.params.RoleSessionName = this.params.RoleSessionName || 'web-identity';
- this.data = null;
- this._clientConfig = AWS.util.copy(clientConfig || {});
- },
-
- /**
- * Refreshes credentials using {AWS.STS.assumeRoleWithWebIdentity}
- *
- * @callback callback function(err)
- * Called when the STS service responds (or fails). When
- * this callback is called with no error, it means that the credentials
- * information has been loaded into the object (as the `accessKeyId`,
- * `secretAccessKey`, and `sessionToken` properties).
- * @param err [Error] if an error occurred, this value will be filled
- * @see get
- */
- refresh: function refresh(callback) {
- this.coalesceRefresh(callback || AWS.util.fn.callback);
- },
-
- /**
- * @api private
- */
- load: function load(callback) {
- var self = this;
- self.createClients();
- self.service.assumeRoleWithWebIdentity(function (err, data) {
- self.data = null;
- if (!err) {
- self.data = data;
- self.service.credentialsFrom(data, self);
- }
- callback(err);
- });
- },
-
- /**
- * @api private
- */
- createClients: function() {
- if (!this.service) {
- var stsConfig = AWS.util.merge({}, this._clientConfig);
- stsConfig.params = this.params;
- this.service = new STS(stsConfig);
- }
- }
-
-});
-
-
-/***/ }),
-
-/***/ 45313:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var util = __nccwpck_require__(77985);
-var endpointDiscoveryEnabledEnvs = ['AWS_ENABLE_ENDPOINT_DISCOVERY', 'AWS_ENDPOINT_DISCOVERY_ENABLED'];
-
-/**
- * Generate key (except resources and operation part) to index the endpoints in the cache
- * If input shape has endpointdiscoveryid trait then use
- * accessKey + operation + resources + region + service as cache key
- * If input shape doesn't have endpointdiscoveryid trait then use
- * accessKey + region + service as cache key
- * @return [map] object with keys to index endpoints.
- * @api private
- */
-function getCacheKey(request) {
- var service = request.service;
- var api = service.api || {};
- var operations = api.operations;
- var identifiers = {};
- if (service.config.region) {
- identifiers.region = service.config.region;
- }
- if (api.serviceId) {
- identifiers.serviceId = api.serviceId;
- }
- if (service.config.credentials.accessKeyId) {
- identifiers.accessKeyId = service.config.credentials.accessKeyId;
- }
- return identifiers;
-}
-
-/**
- * Recursive helper for marshallCustomIdentifiers().
- * Looks for required string input members that have 'endpointdiscoveryid' trait.
- * @api private
- */
-function marshallCustomIdentifiersHelper(result, params, shape) {
- if (!shape || params === undefined || params === null) return;
- if (shape.type === 'structure' && shape.required && shape.required.length > 0) {
- util.arrayEach(shape.required, function(name) {
- var memberShape = shape.members[name];
- if (memberShape.endpointDiscoveryId === true) {
- var locationName = memberShape.isLocationName ? memberShape.name : name;
- result[locationName] = String(params[name]);
- } else {
- marshallCustomIdentifiersHelper(result, params[name], memberShape);
- }
- });
- }
-}
-
-/**
- * Get custom identifiers for cache key.
- * Identifies custom identifiers by checking each shape's `endpointDiscoveryId` trait.
- * @param [object] request object
- * @param [object] input shape of the given operation's api
- * @api private
- */
-function marshallCustomIdentifiers(request, shape) {
- var identifiers = {};
- marshallCustomIdentifiersHelper(identifiers, request.params, shape);
- return identifiers;
-}
-
-/**
- * Call endpoint discovery operation when it's optional.
- * When endpoint is available in cache then use the cached endpoints. If endpoints
- * are unavailable then use regional endpoints and call endpoint discovery operation
- * asynchronously. This is turned off by default.
- * @param [object] request object
- * @api private
- */
-function optionalDiscoverEndpoint(request) {
- var service = request.service;
- var api = service.api;
- var operationModel = api.operations ? api.operations[request.operation] : undefined;
- var inputShape = operationModel ? operationModel.input : undefined;
-
- var identifiers = marshallCustomIdentifiers(request, inputShape);
- var cacheKey = getCacheKey(request);
- if (Object.keys(identifiers).length > 0) {
- cacheKey = util.update(cacheKey, identifiers);
- if (operationModel) cacheKey.operation = operationModel.name;
- }
- var endpoints = AWS.endpointCache.get(cacheKey);
- if (endpoints && endpoints.length === 1 && endpoints[0].Address === '') {
- //endpoint operation is being made but response not yet received
- //or endpoint operation just failed in 1 minute
- return;
- } else if (endpoints && endpoints.length > 0) {
- //found endpoint record from cache
- request.httpRequest.updateEndpoint(endpoints[0].Address);
- } else {
- //endpoint record not in cache or outdated. make discovery operation
- var endpointRequest = service.makeRequest(api.endpointOperation, {
- Operation: operationModel.name,
- Identifiers: identifiers,
- });
- addApiVersionHeader(endpointRequest);
- endpointRequest.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS);
- endpointRequest.removeListener('retry', AWS.EventListeners.Core.RETRY_CHECK);
- //put in a placeholder for endpoints already requested, prevent
- //too much in-flight calls
- AWS.endpointCache.put(cacheKey, [{
- Address: '',
- CachePeriodInMinutes: 1
- }]);
- endpointRequest.send(function(err, data) {
- if (data && data.Endpoints) {
- AWS.endpointCache.put(cacheKey, data.Endpoints);
- } else if (err) {
- AWS.endpointCache.put(cacheKey, [{
- Address: '',
- CachePeriodInMinutes: 1 //not to make more endpoint operation in next 1 minute
- }]);
- }
- });
- }
-}
-
-var requestQueue = {};
-
-/**
- * Call endpoint discovery operation when it's required.
- * When endpoint is available in cache then use cached ones. If endpoints are
- * unavailable then SDK should call endpoint operation then use returned new
- * endpoint for the api call. SDK will automatically attempt to do endpoint
- * discovery. This is turned off by default
- * @param [object] request object
- * @api private
- */
-function requiredDiscoverEndpoint(request, done) {
- var service = request.service;
- var api = service.api;
- var operationModel = api.operations ? api.operations[request.operation] : undefined;
- var inputShape = operationModel ? operationModel.input : undefined;
-
- var identifiers = marshallCustomIdentifiers(request, inputShape);
- var cacheKey = getCacheKey(request);
- if (Object.keys(identifiers).length > 0) {
- cacheKey = util.update(cacheKey, identifiers);
- if (operationModel) cacheKey.operation = operationModel.name;
- }
- var cacheKeyStr = AWS.EndpointCache.getKeyString(cacheKey);
- var endpoints = AWS.endpointCache.get(cacheKeyStr); //endpoint cache also accepts string keys
- if (endpoints && endpoints.length === 1 && endpoints[0].Address === '') {
- //endpoint operation is being made but response not yet received
- //push request object to a pending queue
- if (!requestQueue[cacheKeyStr]) requestQueue[cacheKeyStr] = [];
- requestQueue[cacheKeyStr].push({request: request, callback: done});
- return;
- } else if (endpoints && endpoints.length > 0) {
- request.httpRequest.updateEndpoint(endpoints[0].Address);
- done();
- } else {
- var endpointRequest = service.makeRequest(api.endpointOperation, {
- Operation: operationModel.name,
- Identifiers: identifiers,
- });
- endpointRequest.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS);
- addApiVersionHeader(endpointRequest);
-
- //put in a placeholder for endpoints already requested, prevent
- //too much in-flight calls
- AWS.endpointCache.put(cacheKeyStr, [{
- Address: '',
- CachePeriodInMinutes: 60 //long-live cache
- }]);
- endpointRequest.send(function(err, data) {
- if (err) {
- request.response.error = util.error(err, { retryable: false });
- AWS.endpointCache.remove(cacheKey);
-
- //fail all the pending requests in batch
- if (requestQueue[cacheKeyStr]) {
- var pendingRequests = requestQueue[cacheKeyStr];
- util.arrayEach(pendingRequests, function(requestContext) {
- requestContext.request.response.error = util.error(err, { retryable: false });
- requestContext.callback();
- });
- delete requestQueue[cacheKeyStr];
- }
- } else if (data) {
- AWS.endpointCache.put(cacheKeyStr, data.Endpoints);
- request.httpRequest.updateEndpoint(data.Endpoints[0].Address);
-
- //update the endpoint for all the pending requests in batch
- if (requestQueue[cacheKeyStr]) {
- var pendingRequests = requestQueue[cacheKeyStr];
- util.arrayEach(pendingRequests, function(requestContext) {
- requestContext.request.httpRequest.updateEndpoint(data.Endpoints[0].Address);
- requestContext.callback();
- });
- delete requestQueue[cacheKeyStr];
- }
- }
- done();
- });
- }
-}
-
-/**
- * add api version header to endpoint operation
- * @api private
- */
-function addApiVersionHeader(endpointRequest) {
- var api = endpointRequest.service.api;
- var apiVersion = api.apiVersion;
- if (apiVersion && !endpointRequest.httpRequest.headers['x-amz-api-version']) {
- endpointRequest.httpRequest.headers['x-amz-api-version'] = apiVersion;
- }
-}
-
-/**
- * If api call gets invalid endpoint exception, SDK should attempt to remove the invalid
- * endpoint from cache.
- * @api private
- */
-function invalidateCachedEndpoints(response) {
- var error = response.error;
- var httpResponse = response.httpResponse;
- if (error &&
- (error.code === 'InvalidEndpointException' || httpResponse.statusCode === 421)
- ) {
- var request = response.request;
- var operations = request.service.api.operations || {};
- var inputShape = operations[request.operation] ? operations[request.operation].input : undefined;
- var identifiers = marshallCustomIdentifiers(request, inputShape);
- var cacheKey = getCacheKey(request);
- if (Object.keys(identifiers).length > 0) {
- cacheKey = util.update(cacheKey, identifiers);
- if (operations[request.operation]) cacheKey.operation = operations[request.operation].name;
- }
- AWS.endpointCache.remove(cacheKey);
- }
-}
-
-/**
- * If endpoint is explicitly configured, SDK should not do endpoint discovery in anytime.
- * @param [object] client Service client object.
- * @api private
- */
-function hasCustomEndpoint(client) {
- //if set endpoint is set for specific client, enable endpoint discovery will raise an error.
- if (client._originalConfig && client._originalConfig.endpoint && client._originalConfig.endpointDiscoveryEnabled === true) {
- throw util.error(new Error(), {
- code: 'ConfigurationException',
- message: 'Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.'
- });
- };
- var svcConfig = AWS.config[client.serviceIdentifier] || {};
- return Boolean(AWS.config.endpoint || svcConfig.endpoint || (client._originalConfig && client._originalConfig.endpoint));
-}
-
-/**
- * @api private
- */
-function isFalsy(value) {
- return ['false', '0'].indexOf(value) >= 0;
-}
-
-/**
- * If endpoint discovery should perform for this request when no operation requires endpoint
- * discovery for the given service.
- * SDK performs config resolution in order like below:
- * 1. If set in client configuration.
- * 2. If set in env AWS_ENABLE_ENDPOINT_DISCOVERY.
- * 3. If set in shared ini config file with key 'endpoint_discovery_enabled'.
- * @param [object] request request object.
- * @returns [boolean|undefined] if endpoint discovery config is not set in any source, this
- * function returns undefined
- * @api private
- */
-function resolveEndpointDiscoveryConfig(request) {
- var service = request.service || {};
- if (service.config.endpointDiscoveryEnabled !== undefined) {
- return service.config.endpointDiscoveryEnabled;
- }
-
- //shared ini file is only available in Node
- //not to check env in browser
- if (util.isBrowser()) return undefined;
-
- // If any of recognized endpoint discovery config env is set
- for (var i = 0; i < endpointDiscoveryEnabledEnvs.length; i++) {
- var env = endpointDiscoveryEnabledEnvs[i];
- if (Object.prototype.hasOwnProperty.call(process.env, env)) {
- if (process.env[env] === '' || process.env[env] === undefined) {
- throw util.error(new Error(), {
- code: 'ConfigurationException',
- message: 'environmental variable ' + env + ' cannot be set to nothing'
- });
- }
- return !isFalsy(process.env[env]);
- }
- }
-
- var configFile = {};
- try {
- configFile = AWS.util.iniLoader ? AWS.util.iniLoader.loadFrom({
- isConfig: true,
- filename: process.env[AWS.util.sharedConfigFileEnv]
- }) : {};
- } catch (e) {}
- var sharedFileConfig = configFile[
- process.env.AWS_PROFILE || AWS.util.defaultProfile
- ] || {};
- if (Object.prototype.hasOwnProperty.call(sharedFileConfig, 'endpoint_discovery_enabled')) {
- if (sharedFileConfig.endpoint_discovery_enabled === undefined) {
- throw util.error(new Error(), {
- code: 'ConfigurationException',
- message: 'config file entry \'endpoint_discovery_enabled\' cannot be set to nothing'
- });
- }
- return !isFalsy(sharedFileConfig.endpoint_discovery_enabled);
- }
- return undefined;
-}
-
-/**
- * attach endpoint discovery logic to request object
- * @param [object] request
- * @api private
- */
-function discoverEndpoint(request, done) {
- var service = request.service || {};
- if (hasCustomEndpoint(service) || request.isPresigned()) return done();
-
- var operations = service.api.operations || {};
- var operationModel = operations[request.operation];
- var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : 'NULL';
- var isEnabled = resolveEndpointDiscoveryConfig(request);
- var hasRequiredEndpointDiscovery = service.api.hasRequiredEndpointDiscovery;
- if (isEnabled || hasRequiredEndpointDiscovery) {
- // Once a customer enables endpoint discovery, the SDK should start appending
- // the string endpoint-discovery to the user-agent on all requests.
- request.httpRequest.appendToUserAgent('endpoint-discovery');
- }
- switch (isEndpointDiscoveryRequired) {
- case 'OPTIONAL':
- if (isEnabled || hasRequiredEndpointDiscovery) {
- // For a given service; if at least one operation requires endpoint discovery then the SDK must enable endpoint discovery
- // by default for all operations of that service, including operations where endpoint discovery is optional.
- optionalDiscoverEndpoint(request);
- request.addNamedListener('INVALIDATE_CACHED_ENDPOINTS', 'extractError', invalidateCachedEndpoints);
- }
- done();
- break;
- case 'REQUIRED':
- if (isEnabled === false) {
- // For a given operation; if endpoint discovery is required and it has been disabled on the SDK client,
- // then the SDK must return a clear and actionable exception.
- request.response.error = util.error(new Error(), {
- code: 'ConfigurationException',
- message: 'Endpoint Discovery is disabled but ' + service.api.className + '.' + request.operation +
- '() requires it. Please check your configurations.'
- });
- done();
- break;
- }
- request.addNamedListener('INVALIDATE_CACHED_ENDPOINTS', 'extractError', invalidateCachedEndpoints);
- requiredDiscoverEndpoint(request, done);
- break;
- case 'NULL':
- default:
- done();
- break;
- }
-}
-
-module.exports = {
- discoverEndpoint: discoverEndpoint,
- requiredDiscoverEndpoint: requiredDiscoverEndpoint,
- optionalDiscoverEndpoint: optionalDiscoverEndpoint,
- marshallCustomIdentifiers: marshallCustomIdentifiers,
- getCacheKey: getCacheKey,
- invalidateCachedEndpoint: invalidateCachedEndpoints,
-};
-
-
-/***/ }),
-
-/***/ 76663:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var util = AWS.util;
-var typeOf = (__nccwpck_require__(48084).typeOf);
-var DynamoDBSet = __nccwpck_require__(20304);
-var NumberValue = __nccwpck_require__(91593);
-
-AWS.DynamoDB.Converter = {
- /**
- * Convert a JavaScript value to its equivalent DynamoDB AttributeValue type
- *
- * @param data [any] The data to convert to a DynamoDB AttributeValue
- * @param options [map]
- * @option options convertEmptyValues [Boolean] Whether to automatically
- * convert empty strings, blobs,
- * and sets to `null`
- * @option options wrapNumbers [Boolean] Whether to return numbers as a
- * NumberValue object instead of
- * converting them to native JavaScript
- * numbers. This allows for the safe
- * round-trip transport of numbers of
- * arbitrary size.
- * @return [map] An object in the Amazon DynamoDB AttributeValue format
- *
- * @see AWS.DynamoDB.Converter.marshall AWS.DynamoDB.Converter.marshall to
- * convert entire records (rather than individual attributes)
- */
- input: function convertInput(data, options) {
- options = options || {};
- var type = typeOf(data);
- if (type === 'Object') {
- return formatMap(data, options);
- } else if (type === 'Array') {
- return formatList(data, options);
- } else if (type === 'Set') {
- return formatSet(data, options);
- } else if (type === 'String') {
- if (data.length === 0 && options.convertEmptyValues) {
- return convertInput(null);
- }
- return { S: data };
- } else if (type === 'Number' || type === 'NumberValue') {
- return { N: data.toString() };
- } else if (type === 'Binary') {
- if (data.length === 0 && options.convertEmptyValues) {
- return convertInput(null);
- }
- return { B: data };
- } else if (type === 'Boolean') {
- return { BOOL: data };
- } else if (type === 'null') {
- return { NULL: true };
- } else if (type !== 'undefined' && type !== 'Function') {
- // this value has a custom constructor
- return formatMap(data, options);
- }
- },
-
- /**
- * Convert a JavaScript object into a DynamoDB record.
- *
- * @param data [any] The data to convert to a DynamoDB record
- * @param options [map]
- * @option options convertEmptyValues [Boolean] Whether to automatically
- * convert empty strings, blobs,
- * and sets to `null`
- * @option options wrapNumbers [Boolean] Whether to return numbers as a
- * NumberValue object instead of
- * converting them to native JavaScript
- * numbers. This allows for the safe
- * round-trip transport of numbers of
- * arbitrary size.
- *
- * @return [map] An object in the DynamoDB record format.
- *
- * @example Convert a JavaScript object into a DynamoDB record
- * var marshalled = AWS.DynamoDB.Converter.marshall({
- * string: 'foo',
- * list: ['fizz', 'buzz', 'pop'],
- * map: {
- * nestedMap: {
- * key: 'value',
- * }
- * },
- * number: 123,
- * nullValue: null,
- * boolValue: true,
- * stringSet: new DynamoDBSet(['foo', 'bar', 'baz'])
- * });
- */
- marshall: function marshallItem(data, options) {
- return AWS.DynamoDB.Converter.input(data, options).M;
- },
-
- /**
- * Convert a DynamoDB AttributeValue object to its equivalent JavaScript type.
- *
- * @param data [map] An object in the Amazon DynamoDB AttributeValue format
- * @param options [map]
- * @option options convertEmptyValues [Boolean] Whether to automatically
- * convert empty strings, blobs,
- * and sets to `null`
- * @option options wrapNumbers [Boolean] Whether to return numbers as a
- * NumberValue object instead of
- * converting them to native JavaScript
- * numbers. This allows for the safe
- * round-trip transport of numbers of
- * arbitrary size.
- *
- * @return [Object|Array|String|Number|Boolean|null]
- *
- * @see AWS.DynamoDB.Converter.unmarshall AWS.DynamoDB.Converter.unmarshall to
- * convert entire records (rather than individual attributes)
- */
- output: function convertOutput(data, options) {
- options = options || {};
- var list, map, i;
- for (var type in data) {
- var values = data[type];
- if (type === 'M') {
- map = {};
- for (var key in values) {
- map[key] = convertOutput(values[key], options);
- }
- return map;
- } else if (type === 'L') {
- list = [];
- for (i = 0; i < values.length; i++) {
- list.push(convertOutput(values[i], options));
- }
- return list;
- } else if (type === 'SS') {
- list = [];
- for (i = 0; i < values.length; i++) {
- list.push(values[i] + '');
- }
- return new DynamoDBSet(list);
- } else if (type === 'NS') {
- list = [];
- for (i = 0; i < values.length; i++) {
- list.push(convertNumber(values[i], options.wrapNumbers));
- }
- return new DynamoDBSet(list);
- } else if (type === 'BS') {
- list = [];
- for (i = 0; i < values.length; i++) {
- list.push(AWS.util.buffer.toBuffer(values[i]));
- }
- return new DynamoDBSet(list);
- } else if (type === 'S') {
- return values + '';
- } else if (type === 'N') {
- return convertNumber(values, options.wrapNumbers);
- } else if (type === 'B') {
- return util.buffer.toBuffer(values);
- } else if (type === 'BOOL') {
- return (values === 'true' || values === 'TRUE' || values === true);
- } else if (type === 'NULL') {
- return null;
- }
- }
- },
-
- /**
- * Convert a DynamoDB record into a JavaScript object.
- *
- * @param data [any] The DynamoDB record
- * @param options [map]
- * @option options convertEmptyValues [Boolean] Whether to automatically
- * convert empty strings, blobs,
- * and sets to `null`
- * @option options wrapNumbers [Boolean] Whether to return numbers as a
- * NumberValue object instead of
- * converting them to native JavaScript
- * numbers. This allows for the safe
- * round-trip transport of numbers of
- * arbitrary size.
- *
- * @return [map] An object whose properties have been converted from
- * DynamoDB's AttributeValue format into their corresponding native
- * JavaScript types.
- *
- * @example Convert a record received from a DynamoDB stream
- * var unmarshalled = AWS.DynamoDB.Converter.unmarshall({
- * string: {S: 'foo'},
- * list: {L: [{S: 'fizz'}, {S: 'buzz'}, {S: 'pop'}]},
- * map: {
- * M: {
- * nestedMap: {
- * M: {
- * key: {S: 'value'}
- * }
- * }
- * }
- * },
- * number: {N: '123'},
- * nullValue: {NULL: true},
- * boolValue: {BOOL: true}
- * });
- */
- unmarshall: function unmarshall(data, options) {
- return AWS.DynamoDB.Converter.output({M: data}, options);
- }
-};
-
-/**
- * @api private
- * @param data [Array]
- * @param options [map]
- */
-function formatList(data, options) {
- var list = {L: []};
- for (var i = 0; i < data.length; i++) {
- list['L'].push(AWS.DynamoDB.Converter.input(data[i], options));
- }
- return list;
-}
-
-/**
- * @api private
- * @param value [String]
- * @param wrapNumbers [Boolean]
- */
-function convertNumber(value, wrapNumbers) {
- return wrapNumbers ? new NumberValue(value) : Number(value);
-}
-
-/**
- * @api private
- * @param data [map]
- * @param options [map]
- */
-function formatMap(data, options) {
- var map = {M: {}};
- for (var key in data) {
- var formatted = AWS.DynamoDB.Converter.input(data[key], options);
- if (formatted !== void 0) {
- map['M'][key] = formatted;
- }
- }
- return map;
-}
-
-/**
- * @api private
- */
-function formatSet(data, options) {
- options = options || {};
- var values = data.values;
- if (options.convertEmptyValues) {
- values = filterEmptySetValues(data);
- if (values.length === 0) {
- return AWS.DynamoDB.Converter.input(null);
- }
- }
-
- var map = {};
- switch (data.type) {
- case 'String': map['SS'] = values; break;
- case 'Binary': map['BS'] = values; break;
- case 'Number': map['NS'] = values.map(function (value) {
- return value.toString();
- });
- }
- return map;
-}
-
-/**
- * @api private
- */
-function filterEmptySetValues(set) {
- var nonEmptyValues = [];
- var potentiallyEmptyTypes = {
- String: true,
- Binary: true,
- Number: false
- };
- if (potentiallyEmptyTypes[set.type]) {
- for (var i = 0; i < set.values.length; i++) {
- if (set.values[i].length === 0) {
- continue;
- }
- nonEmptyValues.push(set.values[i]);
- }
-
- return nonEmptyValues;
- }
-
- return set.values;
-}
-
-/**
- * @api private
- */
-module.exports = AWS.DynamoDB.Converter;
-
-
-/***/ }),
-
-/***/ 90030:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var Translator = __nccwpck_require__(34222);
-var DynamoDBSet = __nccwpck_require__(20304);
-
-/**
- * The document client simplifies working with items in Amazon DynamoDB
- * by abstracting away the notion of attribute values. This abstraction
- * annotates native JavaScript types supplied as input parameters, as well
- * as converts annotated response data to native JavaScript types.
- *
- * ## Marshalling Input and Unmarshalling Response Data
- *
- * The document client affords developers the use of native JavaScript types
- * instead of `AttributeValue`s to simplify the JavaScript development
- * experience with Amazon DynamoDB. JavaScript objects passed in as parameters
- * are marshalled into `AttributeValue` shapes required by Amazon DynamoDB.
- * Responses from DynamoDB are unmarshalled into plain JavaScript objects
- * by the `DocumentClient`. The `DocumentClient`, does not accept
- * `AttributeValue`s in favor of native JavaScript types.
- *
- * | JavaScript Type | DynamoDB AttributeValue |
- * |:----------------------------------------------------------------------:|-------------------------|
- * | String | S |
- * | Number | N |
- * | Boolean | BOOL |
- * | null | NULL |
- * | Array | L |
- * | Object | M |
- * | Buffer, File, Blob, ArrayBuffer, DataView, and JavaScript typed arrays | B |
- *
- * ## Support for Sets
- *
- * The `DocumentClient` offers a convenient way to create sets from
- * JavaScript Arrays. The type of set is inferred from the first element
- * in the array. DynamoDB supports string, number, and binary sets. To
- * learn more about supported types see the
- * [Amazon DynamoDB Data Model Documentation](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html)
- * For more information see {AWS.DynamoDB.DocumentClient.createSet}
- *
- */
-AWS.DynamoDB.DocumentClient = AWS.util.inherit({
-
- /**
- * Creates a DynamoDB document client with a set of configuration options.
- *
- * @option options params [map] An optional map of parameters to bind to every
- * request sent by this service object.
- * @option options service [AWS.DynamoDB] An optional pre-configured instance
- * of the AWS.DynamoDB service object. This instance's config will be
- * copied to a new instance used by this client. You should not need to
- * retain a reference to the input object, and may destroy it or allow it
- * to be garbage collected.
- * @option options convertEmptyValues [Boolean] set to true if you would like
- * the document client to convert empty values (0-length strings, binary
- * buffers, and sets) to be converted to NULL types when persisting to
- * DynamoDB.
- * @option options wrapNumbers [Boolean] Set to true to return numbers as a
- * NumberValue object instead of converting them to native JavaScript numbers.
- * This allows for the safe round-trip transport of numbers of arbitrary size.
- * @see AWS.DynamoDB.constructor
- *
- */
- constructor: function DocumentClient(options) {
- var self = this;
- self.options = options || {};
- self.configure(self.options);
- },
-
- /**
- * @api private
- */
- configure: function configure(options) {
- var self = this;
- self.service = options.service;
- self.bindServiceObject(options);
- self.attrValue = options.attrValue =
- self.service.api.operations.putItem.input.members.Item.value.shape;
- },
-
- /**
- * @api private
- */
- bindServiceObject: function bindServiceObject(options) {
- var self = this;
- options = options || {};
-
- if (!self.service) {
- self.service = new AWS.DynamoDB(options);
- } else {
- var config = AWS.util.copy(self.service.config);
- self.service = new self.service.constructor.__super__(config);
- self.service.config.params =
- AWS.util.merge(self.service.config.params || {}, options.params);
- }
- },
-
- /**
- * @api private
- */
- makeServiceRequest: function(operation, params, callback) {
- var self = this;
- var request = self.service[operation](params);
- self.setupRequest(request);
- self.setupResponse(request);
- if (typeof callback === 'function') {
- request.send(callback);
- }
- return request;
- },
-
- /**
- * @api private
- */
- serviceClientOperationsMap: {
- batchGet: 'batchGetItem',
- batchWrite: 'batchWriteItem',
- delete: 'deleteItem',
- get: 'getItem',
- put: 'putItem',
- query: 'query',
- scan: 'scan',
- update: 'updateItem',
- transactGet: 'transactGetItems',
- transactWrite: 'transactWriteItems'
- },
-
- /**
- * Returns the attributes of one or more items from one or more tables
- * by delegating to `AWS.DynamoDB.batchGetItem()`.
- *
- * Supply the same parameters as {AWS.DynamoDB.batchGetItem} with
- * `AttributeValue`s substituted by native JavaScript types.
- *
- * @see AWS.DynamoDB.batchGetItem
- * @example Get items from multiple tables
- * var params = {
- * RequestItems: {
- * 'Table-1': {
- * Keys: [
- * {
- * HashKey: 'haskey',
- * NumberRangeKey: 1
- * }
- * ]
- * },
- * 'Table-2': {
- * Keys: [
- * { foo: 'bar' },
- * ]
- * }
- * }
- * };
- *
- * var documentClient = new AWS.DynamoDB.DocumentClient();
- *
- * documentClient.batchGet(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- *
- */
- batchGet: function(params, callback) {
- var operation = this.serviceClientOperationsMap['batchGet'];
- return this.makeServiceRequest(operation, params, callback);
- },
-
- /**
- * Puts or deletes multiple items in one or more tables by delegating
- * to `AWS.DynamoDB.batchWriteItem()`.
- *
- * Supply the same parameters as {AWS.DynamoDB.batchWriteItem} with
- * `AttributeValue`s substituted by native JavaScript types.
- *
- * @see AWS.DynamoDB.batchWriteItem
- * @example Write to and delete from a table
- * var params = {
- * RequestItems: {
- * 'Table-1': [
- * {
- * DeleteRequest: {
- * Key: { HashKey: 'someKey' }
- * }
- * },
- * {
- * PutRequest: {
- * Item: {
- * HashKey: 'anotherKey',
- * NumAttribute: 1,
- * BoolAttribute: true,
- * ListAttribute: [1, 'two', false],
- * MapAttribute: { foo: 'bar' }
- * }
- * }
- * }
- * ]
- * }
- * };
- *
- * var documentClient = new AWS.DynamoDB.DocumentClient();
- *
- * documentClient.batchWrite(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- *
- */
- batchWrite: function(params, callback) {
- var operation = this.serviceClientOperationsMap['batchWrite'];
- return this.makeServiceRequest(operation, params, callback);
- },
-
- /**
- * Deletes a single item in a table by primary key by delegating to
- * `AWS.DynamoDB.deleteItem()`
- *
- * Supply the same parameters as {AWS.DynamoDB.deleteItem} with
- * `AttributeValue`s substituted by native JavaScript types.
- *
- * @see AWS.DynamoDB.deleteItem
- * @example Delete an item from a table
- * var params = {
- * TableName : 'Table',
- * Key: {
- * HashKey: 'hashkey',
- * NumberRangeKey: 1
- * }
- * };
- *
- * var documentClient = new AWS.DynamoDB.DocumentClient();
- *
- * documentClient.delete(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- *
- */
- delete: function(params, callback) {
- var operation = this.serviceClientOperationsMap['delete'];
- return this.makeServiceRequest(operation, params, callback);
- },
-
- /**
- * Returns a set of attributes for the item with the given primary key
- * by delegating to `AWS.DynamoDB.getItem()`.
- *
- * Supply the same parameters as {AWS.DynamoDB.getItem} with
- * `AttributeValue`s substituted by native JavaScript types.
- *
- * @see AWS.DynamoDB.getItem
- * @example Get an item from a table
- * var params = {
- * TableName : 'Table',
- * Key: {
- * HashKey: 'hashkey'
- * }
- * };
- *
- * var documentClient = new AWS.DynamoDB.DocumentClient();
- *
- * documentClient.get(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- *
- */
- get: function(params, callback) {
- var operation = this.serviceClientOperationsMap['get'];
- return this.makeServiceRequest(operation, params, callback);
- },
-
- /**
- * Creates a new item, or replaces an old item with a new item by
- * delegating to `AWS.DynamoDB.putItem()`.
- *
- * Supply the same parameters as {AWS.DynamoDB.putItem} with
- * `AttributeValue`s substituted by native JavaScript types.
- *
- * @see AWS.DynamoDB.putItem
- * @example Create a new item in a table
- * var params = {
- * TableName : 'Table',
- * Item: {
- * HashKey: 'haskey',
- * NumAttribute: 1,
- * BoolAttribute: true,
- * ListAttribute: [1, 'two', false],
- * MapAttribute: { foo: 'bar'},
- * NullAttribute: null
- * }
- * };
- *
- * var documentClient = new AWS.DynamoDB.DocumentClient();
- *
- * documentClient.put(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- *
- */
- put: function(params, callback) {
- var operation = this.serviceClientOperationsMap['put'];
- return this.makeServiceRequest(operation, params, callback);
- },
-
- /**
- * Edits an existing item's attributes, or adds a new item to the table if
- * it does not already exist by delegating to `AWS.DynamoDB.updateItem()`.
- *
- * Supply the same parameters as {AWS.DynamoDB.updateItem} with
- * `AttributeValue`s substituted by native JavaScript types.
- *
- * @see AWS.DynamoDB.updateItem
- * @example Update an item with expressions
- * var params = {
- * TableName: 'Table',
- * Key: { HashKey : 'hashkey' },
- * UpdateExpression: 'set #a = :x + :y',
- * ConditionExpression: '#a < :MAX',
- * ExpressionAttributeNames: {'#a' : 'Sum'},
- * ExpressionAttributeValues: {
- * ':x' : 20,
- * ':y' : 45,
- * ':MAX' : 100,
- * }
- * };
- *
- * var documentClient = new AWS.DynamoDB.DocumentClient();
- *
- * documentClient.update(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- *
- */
- update: function(params, callback) {
- var operation = this.serviceClientOperationsMap['update'];
- return this.makeServiceRequest(operation, params, callback);
- },
-
- /**
- * Returns one or more items and item attributes by accessing every item
- * in a table or a secondary index.
- *
- * Supply the same parameters as {AWS.DynamoDB.scan} with
- * `AttributeValue`s substituted by native JavaScript types.
- *
- * @see AWS.DynamoDB.scan
- * @example Scan the table with a filter expression
- * var params = {
- * TableName : 'Table',
- * FilterExpression : 'Year = :this_year',
- * ExpressionAttributeValues : {':this_year' : 2015}
- * };
- *
- * var documentClient = new AWS.DynamoDB.DocumentClient();
- *
- * documentClient.scan(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- *
- */
- scan: function(params, callback) {
- var operation = this.serviceClientOperationsMap['scan'];
- return this.makeServiceRequest(operation, params, callback);
- },
-
- /**
- * Directly access items from a table by primary key or a secondary index.
- *
- * Supply the same parameters as {AWS.DynamoDB.query} with
- * `AttributeValue`s substituted by native JavaScript types.
- *
- * @see AWS.DynamoDB.query
- * @example Query an index
- * var params = {
- * TableName: 'Table',
- * IndexName: 'Index',
- * KeyConditionExpression: 'HashKey = :hkey and RangeKey > :rkey',
- * ExpressionAttributeValues: {
- * ':hkey': 'key',
- * ':rkey': 2015
- * }
- * };
- *
- * var documentClient = new AWS.DynamoDB.DocumentClient();
- *
- * documentClient.query(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- *
- */
- query: function(params, callback) {
- var operation = this.serviceClientOperationsMap['query'];
- return this.makeServiceRequest(operation, params, callback);
- },
-
- /**
- * Synchronous write operation that groups up to 25 action requests.
- *
- * Supply the same parameters as {AWS.DynamoDB.transactWriteItems} with
- * `AttributeValue`s substituted by native JavaScript types.
- *
- * @see AWS.DynamoDB.transactWriteItems
- * @example Get items from multiple tables
- * var params = {
- * TransactItems: [{
- * Put: {
- * TableName : 'Table0',
- * Item: {
- * HashKey: 'haskey',
- * NumAttribute: 1,
- * BoolAttribute: true,
- * ListAttribute: [1, 'two', false],
- * MapAttribute: { foo: 'bar'},
- * NullAttribute: null
- * }
- * }
- * }, {
- * Update: {
- * TableName: 'Table1',
- * Key: { HashKey : 'hashkey' },
- * UpdateExpression: 'set #a = :x + :y',
- * ConditionExpression: '#a < :MAX',
- * ExpressionAttributeNames: {'#a' : 'Sum'},
- * ExpressionAttributeValues: {
- * ':x' : 20,
- * ':y' : 45,
- * ':MAX' : 100,
- * }
- * }
- * }]
- * };
- *
- * documentClient.transactWrite(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- */
- transactWrite: function(params, callback) {
- var operation = this.serviceClientOperationsMap['transactWrite'];
- return this.makeServiceRequest(operation, params, callback);
- },
-
- /**
- * Atomically retrieves multiple items from one or more tables (but not from indexes)
- * in a single account and region.
- *
- * Supply the same parameters as {AWS.DynamoDB.transactGetItems} with
- * `AttributeValue`s substituted by native JavaScript types.
- *
- * @see AWS.DynamoDB.transactGetItems
- * @example Get items from multiple tables
- * var params = {
- * TransactItems: [{
- * Get: {
- * TableName : 'Table0',
- * Key: {
- * HashKey: 'hashkey0'
- * }
- * }
- * }, {
- * Get: {
- * TableName : 'Table1',
- * Key: {
- * HashKey: 'hashkey1'
- * }
- * }
- * }]
- * };
- *
- * documentClient.transactGet(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- */
- transactGet: function(params, callback) {
- var operation = this.serviceClientOperationsMap['transactGet'];
- return this.makeServiceRequest(operation, params, callback);
- },
-
- /**
- * Creates a set of elements inferring the type of set from
- * the type of the first element. Amazon DynamoDB currently supports
- * the number sets, string sets, and binary sets. For more information
- * about DynamoDB data types see the documentation on the
- * [Amazon DynamoDB Data Model](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModel.DataTypes).
- *
- * @param list [Array] Collection to represent your DynamoDB Set
- * @param options [map]
- * * **validate** [Boolean] set to true if you want to validate the type
- * of each element in the set. Defaults to `false`.
- * @example Creating a number set
- * var documentClient = new AWS.DynamoDB.DocumentClient();
- *
- * var params = {
- * Item: {
- * hashkey: 'hashkey'
- * numbers: documentClient.createSet([1, 2, 3]);
- * }
- * };
- *
- * documentClient.put(params, function(err, data) {
- * if (err) console.log(err);
- * else console.log(data);
- * });
- *
- */
- createSet: function(list, options) {
- options = options || {};
- return new DynamoDBSet(list, options);
- },
-
- /**
- * @api private
- */
- getTranslator: function() {
- return new Translator(this.options);
- },
-
- /**
- * @api private
- */
- setupRequest: function setupRequest(request) {
- var self = this;
- var translator = self.getTranslator();
- var operation = request.operation;
- var inputShape = request.service.api.operations[operation].input;
- request._events.validate.unshift(function(req) {
- req.rawParams = AWS.util.copy(req.params);
- req.params = translator.translateInput(req.rawParams, inputShape);
- });
- },
-
- /**
- * @api private
- */
- setupResponse: function setupResponse(request) {
- var self = this;
- var translator = self.getTranslator();
- var outputShape = self.service.api.operations[request.operation].output;
- request.on('extractData', function(response) {
- response.data = translator.translateOutput(response.data, outputShape);
- });
-
- var response = request.response;
- response.nextPage = function(cb) {
- var resp = this;
- var req = resp.request;
- var config;
- var service = req.service;
- var operation = req.operation;
- try {
- config = service.paginationConfig(operation, true);
- } catch (e) { resp.error = e; }
-
- if (!resp.hasNextPage()) {
- if (cb) cb(resp.error, null);
- else if (resp.error) throw resp.error;
- return null;
- }
-
- var params = AWS.util.copy(req.rawParams);
- if (!resp.nextPageTokens) {
- return cb ? cb(null, null) : null;
- } else {
- var inputTokens = config.inputToken;
- if (typeof inputTokens === 'string') inputTokens = [inputTokens];
- for (var i = 0; i < inputTokens.length; i++) {
- params[inputTokens[i]] = resp.nextPageTokens[i];
- }
- return self[operation](params, cb);
- }
- };
- }
-
-});
-
-/**
- * @api private
- */
-module.exports = AWS.DynamoDB.DocumentClient;
-
-
-/***/ }),
-
-/***/ 91593:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = (__nccwpck_require__(28437).util);
-
-/**
- * An object recognizable as a numeric value that stores the underlying number
- * as a string.
- *
- * Intended to be a deserialization target for the DynamoDB Document Client when
- * the `wrapNumbers` flag is set. This allows for numeric values that lose
- * precision when converted to JavaScript's `number` type.
- */
-var DynamoDBNumberValue = util.inherit({
- constructor: function NumberValue(value) {
- this.wrapperName = 'NumberValue';
- this.value = value.toString();
- },
-
- /**
- * Render the underlying value as a number when converting to JSON.
- */
- toJSON: function () {
- return this.toNumber();
- },
-
- /**
- * Convert the underlying value to a JavaScript number.
- */
- toNumber: function () {
- return Number(this.value);
- },
-
- /**
- * Return a string representing the unaltered value provided to the
- * constructor.
- */
- toString: function () {
- return this.value;
- }
-});
-
-/**
- * @api private
- */
-module.exports = DynamoDBNumberValue;
-
-
-/***/ }),
-
-/***/ 20304:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = (__nccwpck_require__(28437).util);
-var typeOf = (__nccwpck_require__(48084).typeOf);
-
-/**
- * @api private
- */
-var memberTypeToSetType = {
- 'String': 'String',
- 'Number': 'Number',
- 'NumberValue': 'Number',
- 'Binary': 'Binary'
-};
-
-/**
- * @api private
- */
-var DynamoDBSet = util.inherit({
-
- constructor: function Set(list, options) {
- options = options || {};
- this.wrapperName = 'Set';
- this.initialize(list, options.validate);
- },
-
- initialize: function(list, validate) {
- var self = this;
- self.values = [].concat(list);
- self.detectType();
- if (validate) {
- self.validate();
- }
- },
-
- detectType: function() {
- this.type = memberTypeToSetType[typeOf(this.values[0])];
- if (!this.type) {
- throw util.error(new Error(), {
- code: 'InvalidSetType',
- message: 'Sets can contain string, number, or binary values'
- });
- }
- },
-
- validate: function() {
- var self = this;
- var length = self.values.length;
- var values = self.values;
- for (var i = 0; i < length; i++) {
- if (memberTypeToSetType[typeOf(values[i])] !== self.type) {
- throw util.error(new Error(), {
- code: 'InvalidType',
- message: self.type + ' Set contains ' + typeOf(values[i]) + ' value'
- });
- }
- }
- },
-
- /**
- * Render the underlying values only when converting to JSON.
- */
- toJSON: function() {
- var self = this;
- return self.values;
- }
-
-});
-
-/**
- * @api private
- */
-module.exports = DynamoDBSet;
-
-
-/***/ }),
-
-/***/ 34222:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = (__nccwpck_require__(28437).util);
-var convert = __nccwpck_require__(76663);
-
-var Translator = function(options) {
- options = options || {};
- this.attrValue = options.attrValue;
- this.convertEmptyValues = Boolean(options.convertEmptyValues);
- this.wrapNumbers = Boolean(options.wrapNumbers);
-};
-
-Translator.prototype.translateInput = function(value, shape) {
- this.mode = 'input';
- return this.translate(value, shape);
-};
-
-Translator.prototype.translateOutput = function(value, shape) {
- this.mode = 'output';
- return this.translate(value, shape);
-};
-
-Translator.prototype.translate = function(value, shape) {
- var self = this;
- if (!shape || value === undefined) return undefined;
-
- if (shape.shape === self.attrValue) {
- return convert[self.mode](value, {
- convertEmptyValues: self.convertEmptyValues,
- wrapNumbers: self.wrapNumbers,
- });
- }
- switch (shape.type) {
- case 'structure': return self.translateStructure(value, shape);
- case 'map': return self.translateMap(value, shape);
- case 'list': return self.translateList(value, shape);
- default: return self.translateScalar(value, shape);
- }
-};
-
-Translator.prototype.translateStructure = function(structure, shape) {
- var self = this;
- if (structure == null) return undefined;
-
- var struct = {};
- util.each(structure, function(name, value) {
- var memberShape = shape.members[name];
- if (memberShape) {
- var result = self.translate(value, memberShape);
- if (result !== undefined) struct[name] = result;
- }
- });
- return struct;
-};
-
-Translator.prototype.translateList = function(list, shape) {
- var self = this;
- if (list == null) return undefined;
-
- var out = [];
- util.arrayEach(list, function(value) {
- var result = self.translate(value, shape.member);
- if (result === undefined) out.push(null);
- else out.push(result);
- });
- return out;
-};
-
-Translator.prototype.translateMap = function(map, shape) {
- var self = this;
- if (map == null) return undefined;
-
- var out = {};
- util.each(map, function(key, value) {
- var result = self.translate(value, shape.value);
- if (result === undefined) out[key] = null;
- else out[key] = result;
- });
- return out;
-};
-
-Translator.prototype.translateScalar = function(value, shape) {
- return shape.toType(value);
-};
-
-/**
- * @api private
- */
-module.exports = Translator;
-
-
-/***/ }),
-
-/***/ 48084:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = (__nccwpck_require__(28437).util);
-
-function typeOf(data) {
- if (data === null && typeof data === 'object') {
- return 'null';
- } else if (data !== undefined && isBinary(data)) {
- return 'Binary';
- } else if (data !== undefined && data.constructor) {
- return data.wrapperName || util.typeName(data.constructor);
- } else if (data !== undefined && typeof data === 'object') {
- // this object is the result of Object.create(null), hence the absence of a
- // defined constructor
- return 'Object';
- } else {
- return 'undefined';
- }
-}
-
-function isBinary(data) {
- var types = [
- 'Buffer', 'File', 'Blob', 'ArrayBuffer', 'DataView',
- 'Int8Array', 'Uint8Array', 'Uint8ClampedArray',
- 'Int16Array', 'Uint16Array', 'Int32Array', 'Uint32Array',
- 'Float32Array', 'Float64Array'
- ];
- if (util.isNode()) {
- var Stream = util.stream.Stream;
- if (util.Buffer.isBuffer(data) || data instanceof Stream) {
- return true;
- }
- }
-
- for (var i = 0; i < types.length; i++) {
- if (data !== undefined && data.constructor) {
- if (util.isType(data, types[i])) return true;
- if (util.typeName(data.constructor) === types[i]) return true;
- }
- }
-
- return false;
-}
-
-/**
- * @api private
- */
-module.exports = {
- typeOf: typeOf,
- isBinary: isBinary
-};
-
-
-/***/ }),
-
-/***/ 63727:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var eventMessageChunker = (__nccwpck_require__(73630).eventMessageChunker);
-var parseEvent = (__nccwpck_require__(52123).parseEvent);
-
-function createEventStream(body, parser, model) {
- var eventMessages = eventMessageChunker(body);
-
- var events = [];
-
- for (var i = 0; i < eventMessages.length; i++) {
- events.push(parseEvent(parser, eventMessages[i], model));
- }
-
- return events;
-}
-
-/**
- * @api private
- */
-module.exports = {
- createEventStream: createEventStream
-};
-
-
-/***/ }),
-
-/***/ 18518:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = (__nccwpck_require__(28437).util);
-var Transform = (__nccwpck_require__(12781).Transform);
-var allocBuffer = util.buffer.alloc;
-
-/** @type {Transform} */
-function EventMessageChunkerStream(options) {
- Transform.call(this, options);
-
- this.currentMessageTotalLength = 0;
- this.currentMessagePendingLength = 0;
- /** @type {Buffer} */
- this.currentMessage = null;
-
- /** @type {Buffer} */
- this.messageLengthBuffer = null;
-}
-
-EventMessageChunkerStream.prototype = Object.create(Transform.prototype);
-
-/**
- *
- * @param {Buffer} chunk
- * @param {string} encoding
- * @param {*} callback
- */
-EventMessageChunkerStream.prototype._transform = function(chunk, encoding, callback) {
- var chunkLength = chunk.length;
- var currentOffset = 0;
-
- while (currentOffset < chunkLength) {
- // create new message if necessary
- if (!this.currentMessage) {
- // working on a new message, determine total length
- var bytesRemaining = chunkLength - currentOffset;
- // prevent edge case where total length spans 2 chunks
- if (!this.messageLengthBuffer) {
- this.messageLengthBuffer = allocBuffer(4);
- }
- var numBytesForTotal = Math.min(
- 4 - this.currentMessagePendingLength, // remaining bytes to fill the messageLengthBuffer
- bytesRemaining // bytes left in chunk
- );
-
- chunk.copy(
- this.messageLengthBuffer,
- this.currentMessagePendingLength,
- currentOffset,
- currentOffset + numBytesForTotal
- );
-
- this.currentMessagePendingLength += numBytesForTotal;
- currentOffset += numBytesForTotal;
-
- if (this.currentMessagePendingLength < 4) {
- // not enough information to create the current message
- break;
- }
- this.allocateMessage(this.messageLengthBuffer.readUInt32BE(0));
- this.messageLengthBuffer = null;
- }
-
- // write data into current message
- var numBytesToWrite = Math.min(
- this.currentMessageTotalLength - this.currentMessagePendingLength, // number of bytes left to complete message
- chunkLength - currentOffset // number of bytes left in the original chunk
- );
- chunk.copy(
- this.currentMessage, // target buffer
- this.currentMessagePendingLength, // target offset
- currentOffset, // chunk offset
- currentOffset + numBytesToWrite // chunk end to write
- );
- this.currentMessagePendingLength += numBytesToWrite;
- currentOffset += numBytesToWrite;
-
- // check if a message is ready to be pushed
- if (this.currentMessageTotalLength && this.currentMessageTotalLength === this.currentMessagePendingLength) {
- // push out the message
- this.push(this.currentMessage);
- // cleanup
- this.currentMessage = null;
- this.currentMessageTotalLength = 0;
- this.currentMessagePendingLength = 0;
- }
- }
-
- callback();
-};
-
-EventMessageChunkerStream.prototype._flush = function(callback) {
- if (this.currentMessageTotalLength) {
- if (this.currentMessageTotalLength === this.currentMessagePendingLength) {
- callback(null, this.currentMessage);
- } else {
- callback(new Error('Truncated event message received.'));
- }
- } else {
- callback();
- }
-};
-
-/**
- * @param {number} size Size of the message to be allocated.
- * @api private
- */
-EventMessageChunkerStream.prototype.allocateMessage = function(size) {
- if (typeof size !== 'number') {
- throw new Error('Attempted to allocate an event message where size was not a number: ' + size);
- }
- this.currentMessageTotalLength = size;
- this.currentMessagePendingLength = 4;
- this.currentMessage = allocBuffer(size);
- this.currentMessage.writeUInt32BE(size, 0);
-};
-
-/**
- * @api private
- */
-module.exports = {
- EventMessageChunkerStream: EventMessageChunkerStream
-};
-
-
-/***/ }),
-
-/***/ 73630:
-/***/ ((module) => {
-
-/**
- * Takes in a buffer of event messages and splits them into individual messages.
- * @param {Buffer} buffer
- * @api private
- */
-function eventMessageChunker(buffer) {
- /** @type Buffer[] */
- var messages = [];
- var offset = 0;
-
- while (offset < buffer.length) {
- var totalLength = buffer.readInt32BE(offset);
-
- // create new buffer for individual message (shares memory with original)
- var message = buffer.slice(offset, totalLength + offset);
- // increment offset to it starts at the next message
- offset += totalLength;
-
- messages.push(message);
- }
-
- return messages;
-}
-
-/**
- * @api private
- */
-module.exports = {
- eventMessageChunker: eventMessageChunker
-};
-
-
-/***/ }),
-
-/***/ 93773:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var Transform = (__nccwpck_require__(12781).Transform);
-var parseEvent = (__nccwpck_require__(52123).parseEvent);
-
-/** @type {Transform} */
-function EventUnmarshallerStream(options) {
- options = options || {};
- // set output to object mode
- options.readableObjectMode = true;
- Transform.call(this, options);
- this._readableState.objectMode = true;
-
- this.parser = options.parser;
- this.eventStreamModel = options.eventStreamModel;
-}
-
-EventUnmarshallerStream.prototype = Object.create(Transform.prototype);
-
-/**
- *
- * @param {Buffer} chunk
- * @param {string} encoding
- * @param {*} callback
- */
-EventUnmarshallerStream.prototype._transform = function(chunk, encoding, callback) {
- try {
- var event = parseEvent(this.parser, chunk, this.eventStreamModel);
- this.push(event);
- return callback();
- } catch (err) {
- callback(err);
- }
-};
-
-/**
- * @api private
- */
-module.exports = {
- EventUnmarshallerStream: EventUnmarshallerStream
-};
-
-
-/***/ }),
-
-/***/ 48583:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = (__nccwpck_require__(28437).util);
-var toBuffer = util.buffer.toBuffer;
-
-/**
- * A lossless representation of a signed, 64-bit integer. Instances of this
- * class may be used in arithmetic expressions as if they were numeric
- * primitives, but the binary representation will be preserved unchanged as the
- * `bytes` property of the object. The bytes should be encoded as big-endian,
- * two's complement integers.
- * @param {Buffer} bytes
- *
- * @api private
- */
-function Int64(bytes) {
- if (bytes.length !== 8) {
- throw new Error('Int64 buffers must be exactly 8 bytes');
- }
- if (!util.Buffer.isBuffer(bytes)) bytes = toBuffer(bytes);
-
- this.bytes = bytes;
-}
-
-/**
- * @param {number} number
- * @returns {Int64}
- *
- * @api private
- */
-Int64.fromNumber = function(number) {
- if (number > 9223372036854775807 || number < -9223372036854775808) {
- throw new Error(
- number + ' is too large (or, if negative, too small) to represent as an Int64'
- );
- }
-
- var bytes = new Uint8Array(8);
- for (
- var i = 7, remaining = Math.abs(Math.round(number));
- i > -1 && remaining > 0;
- i--, remaining /= 256
- ) {
- bytes[i] = remaining;
- }
-
- if (number < 0) {
- negate(bytes);
- }
-
- return new Int64(bytes);
-};
-
-/**
- * @returns {number}
- *
- * @api private
- */
-Int64.prototype.valueOf = function() {
- var bytes = this.bytes.slice(0);
- var negative = bytes[0] & 128;
- if (negative) {
- negate(bytes);
- }
-
- return parseInt(bytes.toString('hex'), 16) * (negative ? -1 : 1);
-};
-
-Int64.prototype.toString = function() {
- return String(this.valueOf());
-};
-
-/**
- * @param {Buffer} bytes
- *
- * @api private
- */
-function negate(bytes) {
- for (var i = 0; i < 8; i++) {
- bytes[i] ^= 0xFF;
- }
- for (var i = 7; i > -1; i--) {
- bytes[i]++;
- if (bytes[i] !== 0) {
- break;
- }
- }
-}
-
-/**
- * @api private
- */
-module.exports = {
- Int64: Int64
-};
-
-
-/***/ }),
-
-/***/ 52123:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var parseMessage = (__nccwpck_require__(30866).parseMessage);
-
-/**
- *
- * @param {*} parser
- * @param {Buffer} message
- * @param {*} shape
- * @api private
- */
-function parseEvent(parser, message, shape) {
- var parsedMessage = parseMessage(message);
-
- // check if message is an event or error
- var messageType = parsedMessage.headers[':message-type'];
- if (messageType) {
- if (messageType.value === 'error') {
- throw parseError(parsedMessage);
- } else if (messageType.value !== 'event') {
- // not sure how to parse non-events/non-errors, ignore for now
- return;
- }
- }
-
- // determine event type
- var eventType = parsedMessage.headers[':event-type'];
- // check that the event type is modeled
- var eventModel = shape.members[eventType.value];
- if (!eventModel) {
- return;
- }
-
- var result = {};
- // check if an event payload exists
- var eventPayloadMemberName = eventModel.eventPayloadMemberName;
- if (eventPayloadMemberName) {
- var payloadShape = eventModel.members[eventPayloadMemberName];
- // if the shape is binary, return the byte array
- if (payloadShape.type === 'binary') {
- result[eventPayloadMemberName] = parsedMessage.body;
- } else {
- result[eventPayloadMemberName] = parser.parse(parsedMessage.body.toString(), payloadShape);
- }
- }
-
- // read event headers
- var eventHeaderNames = eventModel.eventHeaderMemberNames;
- for (var i = 0; i < eventHeaderNames.length; i++) {
- var name = eventHeaderNames[i];
- if (parsedMessage.headers[name]) {
- // parse the header!
- result[name] = eventModel.members[name].toType(parsedMessage.headers[name].value);
- }
- }
-
- var output = {};
- output[eventType.value] = result;
- return output;
-}
-
-function parseError(message) {
- var errorCode = message.headers[':error-code'];
- var errorMessage = message.headers[':error-message'];
- var error = new Error(errorMessage.value || errorMessage);
- error.code = error.name = errorCode.value || errorCode;
- return error;
-}
-
-/**
- * @api private
- */
-module.exports = {
- parseEvent: parseEvent
-};
-
-
-/***/ }),
-
-/***/ 30866:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var Int64 = (__nccwpck_require__(48583).Int64);
-
-var splitMessage = (__nccwpck_require__(71765).splitMessage);
-
-var BOOLEAN_TAG = 'boolean';
-var BYTE_TAG = 'byte';
-var SHORT_TAG = 'short';
-var INT_TAG = 'integer';
-var LONG_TAG = 'long';
-var BINARY_TAG = 'binary';
-var STRING_TAG = 'string';
-var TIMESTAMP_TAG = 'timestamp';
-var UUID_TAG = 'uuid';
-
-/**
- * @api private
- *
- * @param {Buffer} headers
- */
-function parseHeaders(headers) {
- var out = {};
- var position = 0;
- while (position < headers.length) {
- var nameLength = headers.readUInt8(position++);
- var name = headers.slice(position, position + nameLength).toString();
- position += nameLength;
- switch (headers.readUInt8(position++)) {
- case 0 /* boolTrue */:
- out[name] = {
- type: BOOLEAN_TAG,
- value: true
- };
- break;
- case 1 /* boolFalse */:
- out[name] = {
- type: BOOLEAN_TAG,
- value: false
- };
- break;
- case 2 /* byte */:
- out[name] = {
- type: BYTE_TAG,
- value: headers.readInt8(position++)
- };
- break;
- case 3 /* short */:
- out[name] = {
- type: SHORT_TAG,
- value: headers.readInt16BE(position)
- };
- position += 2;
- break;
- case 4 /* integer */:
- out[name] = {
- type: INT_TAG,
- value: headers.readInt32BE(position)
- };
- position += 4;
- break;
- case 5 /* long */:
- out[name] = {
- type: LONG_TAG,
- value: new Int64(headers.slice(position, position + 8))
- };
- position += 8;
- break;
- case 6 /* byteArray */:
- var binaryLength = headers.readUInt16BE(position);
- position += 2;
- out[name] = {
- type: BINARY_TAG,
- value: headers.slice(position, position + binaryLength)
- };
- position += binaryLength;
- break;
- case 7 /* string */:
- var stringLength = headers.readUInt16BE(position);
- position += 2;
- out[name] = {
- type: STRING_TAG,
- value: headers.slice(
- position,
- position + stringLength
- ).toString()
- };
- position += stringLength;
- break;
- case 8 /* timestamp */:
- out[name] = {
- type: TIMESTAMP_TAG,
- value: new Date(
- new Int64(headers.slice(position, position + 8))
- .valueOf()
- )
- };
- position += 8;
- break;
- case 9 /* uuid */:
- var uuidChars = headers.slice(position, position + 16)
- .toString('hex');
- position += 16;
- out[name] = {
- type: UUID_TAG,
- value: uuidChars.substr(0, 8) + '-' +
- uuidChars.substr(8, 4) + '-' +
- uuidChars.substr(12, 4) + '-' +
- uuidChars.substr(16, 4) + '-' +
- uuidChars.substr(20)
- };
- break;
- default:
- throw new Error('Unrecognized header type tag');
- }
- }
- return out;
-}
-
-function parseMessage(message) {
- var parsed = splitMessage(message);
- return { headers: parseHeaders(parsed.headers), body: parsed.body };
-}
-
-/**
- * @api private
- */
-module.exports = {
- parseMessage: parseMessage
-};
-
-
-/***/ }),
-
-/***/ 71765:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = (__nccwpck_require__(28437).util);
-var toBuffer = util.buffer.toBuffer;
-
-// All prelude components are unsigned, 32-bit integers
-var PRELUDE_MEMBER_LENGTH = 4;
-// The prelude consists of two components
-var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
-// Checksums are always CRC32 hashes.
-var CHECKSUM_LENGTH = 4;
-// Messages must include a full prelude, a prelude checksum, and a message checksum
-var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2;
-
-/**
- * @api private
- *
- * @param {Buffer} message
- */
-function splitMessage(message) {
- if (!util.Buffer.isBuffer(message)) message = toBuffer(message);
-
- if (message.length < MINIMUM_MESSAGE_LENGTH) {
- throw new Error('Provided message too short to accommodate event stream message overhead');
- }
-
- if (message.length !== message.readUInt32BE(0)) {
- throw new Error('Reported message length does not match received message length');
- }
-
- var expectedPreludeChecksum = message.readUInt32BE(PRELUDE_LENGTH);
-
- if (
- expectedPreludeChecksum !== util.crypto.crc32(
- message.slice(0, PRELUDE_LENGTH)
- )
- ) {
- throw new Error(
- 'The prelude checksum specified in the message (' +
- expectedPreludeChecksum +
- ') does not match the calculated CRC32 checksum.'
- );
- }
-
- var expectedMessageChecksum = message.readUInt32BE(message.length - CHECKSUM_LENGTH);
-
- if (
- expectedMessageChecksum !== util.crypto.crc32(
- message.slice(0, message.length - CHECKSUM_LENGTH)
- )
- ) {
- throw new Error(
- 'The message checksum did not match the expected value of ' +
- expectedMessageChecksum
- );
- }
-
- var headersStart = PRELUDE_LENGTH + CHECKSUM_LENGTH;
- var headersEnd = headersStart + message.readUInt32BE(PRELUDE_MEMBER_LENGTH);
-
- return {
- headers: message.slice(headersStart, headersEnd),
- body: message.slice(headersEnd, message.length - CHECKSUM_LENGTH),
- };
-}
-
-/**
- * @api private
- */
-module.exports = {
- splitMessage: splitMessage
-};
-
-
-/***/ }),
-
-/***/ 69643:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-/**
- * What is necessary to create an event stream in node?
- * - http response stream
- * - parser
- * - event stream model
- */
-
-var EventMessageChunkerStream = (__nccwpck_require__(18518).EventMessageChunkerStream);
-var EventUnmarshallerStream = (__nccwpck_require__(93773).EventUnmarshallerStream);
-
-function createEventStream(stream, parser, model) {
- var eventStream = new EventUnmarshallerStream({
- parser: parser,
- eventStreamModel: model
- });
-
- var eventMessageChunker = new EventMessageChunkerStream();
-
- stream.pipe(
- eventMessageChunker
- ).pipe(eventStream);
-
- stream.on('error', function(err) {
- eventMessageChunker.emit('error', err);
- });
-
- eventMessageChunker.on('error', function(err) {
- eventStream.emit('error', err);
- });
-
- return eventStream;
-}
-
-/**
- * @api private
- */
-module.exports = {
- createEventStream: createEventStream
-};
-
-
-/***/ }),
-
-/***/ 54995:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var SequentialExecutor = __nccwpck_require__(55948);
-var DISCOVER_ENDPOINT = (__nccwpck_require__(45313).discoverEndpoint);
-/**
- * The namespace used to register global event listeners for request building
- * and sending.
- */
-AWS.EventListeners = {
- /**
- * @!attribute VALIDATE_CREDENTIALS
- * A request listener that validates whether the request is being
- * sent with credentials.
- * Handles the {AWS.Request~validate 'validate' Request event}
- * @example Sending a request without validating credentials
- * var listener = AWS.EventListeners.Core.VALIDATE_CREDENTIALS;
- * request.removeListener('validate', listener);
- * @readonly
- * @return [Function]
- * @!attribute VALIDATE_REGION
- * A request listener that validates whether the region is set
- * for a request.
- * Handles the {AWS.Request~validate 'validate' Request event}
- * @example Sending a request without validating region configuration
- * var listener = AWS.EventListeners.Core.VALIDATE_REGION;
- * request.removeListener('validate', listener);
- * @readonly
- * @return [Function]
- * @!attribute VALIDATE_PARAMETERS
- * A request listener that validates input parameters in a request.
- * Handles the {AWS.Request~validate 'validate' Request event}
- * @example Sending a request without validating parameters
- * var listener = AWS.EventListeners.Core.VALIDATE_PARAMETERS;
- * request.removeListener('validate', listener);
- * @example Disable parameter validation globally
- * AWS.EventListeners.Core.removeListener('validate',
- * AWS.EventListeners.Core.VALIDATE_REGION);
- * @readonly
- * @return [Function]
- * @!attribute SEND
- * A request listener that initiates the HTTP connection for a
- * request being sent. Handles the {AWS.Request~send 'send' Request event}
- * @example Replacing the HTTP handler
- * var listener = AWS.EventListeners.Core.SEND;
- * request.removeListener('send', listener);
- * request.on('send', function(response) {
- * customHandler.send(response);
- * });
- * @return [Function]
- * @readonly
- * @!attribute HTTP_DATA
- * A request listener that reads data from the HTTP connection in order
- * to build the response data.
- * Handles the {AWS.Request~httpData 'httpData' Request event}.
- * Remove this handler if you are overriding the 'httpData' event and
- * do not want extra data processing and buffering overhead.
- * @example Disabling default data processing
- * var listener = AWS.EventListeners.Core.HTTP_DATA;
- * request.removeListener('httpData', listener);
- * @return [Function]
- * @readonly
- */
- Core: {} /* doc hack */
-};
-
-/**
- * @api private
- */
-function getOperationAuthtype(req) {
- if (!req.service.api.operations) {
- return '';
- }
- var operation = req.service.api.operations[req.operation];
- return operation ? operation.authtype : '';
-}
-
-/**
- * @api private
- */
-function getIdentityType(req) {
- var service = req.service;
-
- if (service.config.signatureVersion) {
- return service.config.signatureVersion;
- }
-
- if (service.api.signatureVersion) {
- return service.api.signatureVersion;
- }
-
- return getOperationAuthtype(req);
-}
-
-AWS.EventListeners = {
- Core: new SequentialExecutor().addNamedListeners(function(add, addAsync) {
- addAsync(
- 'VALIDATE_CREDENTIALS', 'validate',
- function VALIDATE_CREDENTIALS(req, done) {
- if (!req.service.api.signatureVersion && !req.service.config.signatureVersion) return done(); // none
-
- var identityType = getIdentityType(req);
- if (identityType === 'bearer') {
- req.service.config.getToken(function(err) {
- if (err) {
- req.response.error = AWS.util.error(err, {code: 'TokenError'});
- }
- done();
- });
- return;
- }
-
- req.service.config.getCredentials(function(err) {
- if (err) {
- req.response.error = AWS.util.error(err,
- {
- code: 'CredentialsError',
- message: 'Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1'
- }
- );
- }
- done();
- });
- });
-
- add('VALIDATE_REGION', 'validate', function VALIDATE_REGION(req) {
- if (!req.service.isGlobalEndpoint) {
- var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);
- if (!req.service.config.region) {
- req.response.error = AWS.util.error(new Error(),
- {code: 'ConfigError', message: 'Missing region in config'});
- } else if (!dnsHostRegex.test(req.service.config.region)) {
- req.response.error = AWS.util.error(new Error(),
- {code: 'ConfigError', message: 'Invalid region in config'});
- }
- }
- });
-
- add('BUILD_IDEMPOTENCY_TOKENS', 'validate', function BUILD_IDEMPOTENCY_TOKENS(req) {
- if (!req.service.api.operations) {
- return;
- }
- var operation = req.service.api.operations[req.operation];
- if (!operation) {
- return;
- }
- var idempotentMembers = operation.idempotentMembers;
- if (!idempotentMembers.length) {
- return;
- }
- // creates a copy of params so user's param object isn't mutated
- var params = AWS.util.copy(req.params);
- for (var i = 0, iLen = idempotentMembers.length; i < iLen; i++) {
- if (!params[idempotentMembers[i]]) {
- // add the member
- params[idempotentMembers[i]] = AWS.util.uuid.v4();
- }
- }
- req.params = params;
- });
-
- add('VALIDATE_PARAMETERS', 'validate', function VALIDATE_PARAMETERS(req) {
- if (!req.service.api.operations) {
- return;
- }
- var rules = req.service.api.operations[req.operation].input;
- var validation = req.service.config.paramValidation;
- new AWS.ParamValidator(validation).validate(rules, req.params);
- });
-
- add('COMPUTE_CHECKSUM', 'afterBuild', function COMPUTE_CHECKSUM(req) {
- if (!req.service.api.operations) {
- return;
- }
- var operation = req.service.api.operations[req.operation];
- if (!operation) {
- return;
- }
- var body = req.httpRequest.body;
- var isNonStreamingPayload = body && (AWS.util.Buffer.isBuffer(body) || typeof body === 'string');
- var headers = req.httpRequest.headers;
- if (
- operation.httpChecksumRequired &&
- req.service.config.computeChecksums &&
- isNonStreamingPayload &&
- !headers['Content-MD5']
- ) {
- var md5 = AWS.util.crypto.md5(body, 'base64');
- headers['Content-MD5'] = md5;
- }
- });
-
- addAsync('COMPUTE_SHA256', 'afterBuild', function COMPUTE_SHA256(req, done) {
- req.haltHandlersOnError();
- if (!req.service.api.operations) {
- return;
- }
- var operation = req.service.api.operations[req.operation];
- var authtype = operation ? operation.authtype : '';
- if (!req.service.api.signatureVersion && !authtype && !req.service.config.signatureVersion) return done(); // none
- if (req.service.getSignerClass(req) === AWS.Signers.V4) {
- var body = req.httpRequest.body || '';
- if (authtype.indexOf('unsigned-body') >= 0) {
- req.httpRequest.headers['X-Amz-Content-Sha256'] = 'UNSIGNED-PAYLOAD';
- return done();
- }
- AWS.util.computeSha256(body, function(err, sha) {
- if (err) {
- done(err);
- }
- else {
- req.httpRequest.headers['X-Amz-Content-Sha256'] = sha;
- done();
- }
- });
- } else {
- done();
- }
- });
-
- add('SET_CONTENT_LENGTH', 'afterBuild', function SET_CONTENT_LENGTH(req) {
- var authtype = getOperationAuthtype(req);
- var payloadMember = AWS.util.getRequestPayloadShape(req);
- if (req.httpRequest.headers['Content-Length'] === undefined) {
- try {
- var length = AWS.util.string.byteLength(req.httpRequest.body);
- req.httpRequest.headers['Content-Length'] = length;
- } catch (err) {
- if (payloadMember && payloadMember.isStreaming) {
- if (payloadMember.requiresLength) {
- //streaming payload requires length(s3, glacier)
- throw err;
- } else if (authtype.indexOf('unsigned-body') >= 0) {
- //unbounded streaming payload(lex, mediastore)
- req.httpRequest.headers['Transfer-Encoding'] = 'chunked';
- return;
- } else {
- throw err;
- }
- }
- throw err;
- }
- }
- });
-
- add('SET_HTTP_HOST', 'afterBuild', function SET_HTTP_HOST(req) {
- req.httpRequest.headers['Host'] = req.httpRequest.endpoint.host;
- });
-
- add('SET_TRACE_ID', 'afterBuild', function SET_TRACE_ID(req) {
- var traceIdHeaderName = 'X-Amzn-Trace-Id';
- if (AWS.util.isNode() && !Object.hasOwnProperty.call(req.httpRequest.headers, traceIdHeaderName)) {
- var ENV_LAMBDA_FUNCTION_NAME = 'AWS_LAMBDA_FUNCTION_NAME';
- var ENV_TRACE_ID = '_X_AMZN_TRACE_ID';
- var functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
- var traceId = process.env[ENV_TRACE_ID];
- if (
- typeof functionName === 'string' &&
- functionName.length > 0 &&
- typeof traceId === 'string' &&
- traceId.length > 0
- ) {
- req.httpRequest.headers[traceIdHeaderName] = traceId;
- }
- }
- });
-
- add('RESTART', 'restart', function RESTART() {
- var err = this.response.error;
- if (!err || !err.retryable) return;
-
- this.httpRequest = new AWS.HttpRequest(
- this.service.endpoint,
- this.service.region
- );
-
- if (this.response.retryCount < this.service.config.maxRetries) {
- this.response.retryCount++;
- } else {
- this.response.error = null;
- }
- });
-
- var addToHead = true;
- addAsync('DISCOVER_ENDPOINT', 'sign', DISCOVER_ENDPOINT, addToHead);
-
- addAsync('SIGN', 'sign', function SIGN(req, done) {
- var service = req.service;
- var identityType = getIdentityType(req);
- if (!identityType || identityType.length === 0) return done(); // none
-
- if (identityType === 'bearer') {
- service.config.getToken(function (err, token) {
- if (err) {
- req.response.error = err;
- return done();
- }
-
- try {
- var SignerClass = service.getSignerClass(req);
- var signer = new SignerClass(req.httpRequest);
- signer.addAuthorization(token);
- } catch (e) {
- req.response.error = e;
- }
- done();
- });
- } else {
- service.config.getCredentials(function (err, credentials) {
- if (err) {
- req.response.error = err;
- return done();
- }
-
- try {
- var date = service.getSkewCorrectedDate();
- var SignerClass = service.getSignerClass(req);
- var operations = req.service.api.operations || {};
- var operation = operations[req.operation];
- var signer = new SignerClass(req.httpRequest,
- service.getSigningName(req),
- {
- signatureCache: service.config.signatureCache,
- operation: operation,
- signatureVersion: service.api.signatureVersion
- });
- signer.setServiceClientId(service._clientId);
-
- // clear old authorization headers
- delete req.httpRequest.headers['Authorization'];
- delete req.httpRequest.headers['Date'];
- delete req.httpRequest.headers['X-Amz-Date'];
-
- // add new authorization
- signer.addAuthorization(credentials, date);
- req.signedAt = date;
- } catch (e) {
- req.response.error = e;
- }
- done();
- });
-
- }
- });
-
- add('VALIDATE_RESPONSE', 'validateResponse', function VALIDATE_RESPONSE(resp) {
- if (this.service.successfulResponse(resp, this)) {
- resp.data = {};
- resp.error = null;
- } else {
- resp.data = null;
- resp.error = AWS.util.error(new Error(),
- {code: 'UnknownError', message: 'An unknown error occurred.'});
- }
- });
-
- add('ERROR', 'error', function ERROR(err, resp) {
- var awsQueryCompatible = resp.request.service.api.awsQueryCompatible;
- if (awsQueryCompatible) {
- var headers = resp.httpResponse.headers;
- var queryErrorCode = headers ? headers['x-amzn-query-error'] : undefined;
- if (queryErrorCode && queryErrorCode.includes(';')) {
- resp.error.code = queryErrorCode.split(';')[0];
- }
- }
- }, true);
-
- addAsync('SEND', 'send', function SEND(resp, done) {
- resp.httpResponse._abortCallback = done;
- resp.error = null;
- resp.data = null;
-
- function callback(httpResp) {
- resp.httpResponse.stream = httpResp;
- var stream = resp.request.httpRequest.stream;
- var service = resp.request.service;
- var api = service.api;
- var operationName = resp.request.operation;
- var operation = api.operations[operationName] || {};
-
- httpResp.on('headers', function onHeaders(statusCode, headers, statusMessage) {
- resp.request.emit(
- 'httpHeaders',
- [statusCode, headers, resp, statusMessage]
- );
-
- if (!resp.httpResponse.streaming) {
- if (AWS.HttpClient.streamsApiVersion === 2) { // streams2 API check
- // if we detect event streams, we're going to have to
- // return the stream immediately
- if (operation.hasEventOutput && service.successfulResponse(resp)) {
- // skip reading the IncomingStream
- resp.request.emit('httpDone');
- done();
- return;
- }
-
- httpResp.on('readable', function onReadable() {
- var data = httpResp.read();
- if (data !== null) {
- resp.request.emit('httpData', [data, resp]);
- }
- });
- } else { // legacy streams API
- httpResp.on('data', function onData(data) {
- resp.request.emit('httpData', [data, resp]);
- });
- }
- }
- });
-
- httpResp.on('end', function onEnd() {
- if (!stream || !stream.didCallback) {
- if (AWS.HttpClient.streamsApiVersion === 2 && (operation.hasEventOutput && service.successfulResponse(resp))) {
- // don't concatenate response chunks when streaming event stream data when response is successful
- return;
- }
- resp.request.emit('httpDone');
- done();
- }
- });
- }
-
- function progress(httpResp) {
- httpResp.on('sendProgress', function onSendProgress(value) {
- resp.request.emit('httpUploadProgress', [value, resp]);
- });
-
- httpResp.on('receiveProgress', function onReceiveProgress(value) {
- resp.request.emit('httpDownloadProgress', [value, resp]);
- });
- }
-
- function error(err) {
- if (err.code !== 'RequestAbortedError') {
- var errCode = err.code === 'TimeoutError' ? err.code : 'NetworkingError';
- err = AWS.util.error(err, {
- code: errCode,
- region: resp.request.httpRequest.region,
- hostname: resp.request.httpRequest.endpoint.hostname,
- retryable: true
- });
- }
- resp.error = err;
- resp.request.emit('httpError', [resp.error, resp], function() {
- done();
- });
- }
-
- function executeSend() {
- var http = AWS.HttpClient.getInstance();
- var httpOptions = resp.request.service.config.httpOptions || {};
- try {
- var stream = http.handleRequest(resp.request.httpRequest, httpOptions,
- callback, error);
- progress(stream);
- } catch (err) {
- error(err);
- }
- }
- var timeDiff = (resp.request.service.getSkewCorrectedDate() - this.signedAt) / 1000;
- if (timeDiff >= 60 * 10) { // if we signed 10min ago, re-sign
- this.emit('sign', [this], function(err) {
- if (err) done(err);
- else executeSend();
- });
- } else {
- executeSend();
- }
- });
-
- add('HTTP_HEADERS', 'httpHeaders',
- function HTTP_HEADERS(statusCode, headers, resp, statusMessage) {
- resp.httpResponse.statusCode = statusCode;
- resp.httpResponse.statusMessage = statusMessage;
- resp.httpResponse.headers = headers;
- resp.httpResponse.body = AWS.util.buffer.toBuffer('');
- resp.httpResponse.buffers = [];
- resp.httpResponse.numBytes = 0;
- var dateHeader = headers.date || headers.Date;
- var service = resp.request.service;
- if (dateHeader) {
- var serverTime = Date.parse(dateHeader);
- if (service.config.correctClockSkew
- && service.isClockSkewed(serverTime)) {
- service.applyClockOffset(serverTime);
- }
- }
- });
-
- add('HTTP_DATA', 'httpData', function HTTP_DATA(chunk, resp) {
- if (chunk) {
- if (AWS.util.isNode()) {
- resp.httpResponse.numBytes += chunk.length;
-
- var total = resp.httpResponse.headers['content-length'];
- var progress = { loaded: resp.httpResponse.numBytes, total: total };
- resp.request.emit('httpDownloadProgress', [progress, resp]);
- }
-
- resp.httpResponse.buffers.push(AWS.util.buffer.toBuffer(chunk));
- }
- });
-
- add('HTTP_DONE', 'httpDone', function HTTP_DONE(resp) {
- // convert buffers array into single buffer
- if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) {
- var body = AWS.util.buffer.concat(resp.httpResponse.buffers);
- resp.httpResponse.body = body;
- }
- delete resp.httpResponse.numBytes;
- delete resp.httpResponse.buffers;
- });
-
- add('FINALIZE_ERROR', 'retry', function FINALIZE_ERROR(resp) {
- if (resp.httpResponse.statusCode) {
- resp.error.statusCode = resp.httpResponse.statusCode;
- if (resp.error.retryable === undefined) {
- resp.error.retryable = this.service.retryableError(resp.error, this);
- }
- }
- });
-
- add('INVALIDATE_CREDENTIALS', 'retry', function INVALIDATE_CREDENTIALS(resp) {
- if (!resp.error) return;
- switch (resp.error.code) {
- case 'RequestExpired': // EC2 only
- case 'ExpiredTokenException':
- case 'ExpiredToken':
- resp.error.retryable = true;
- resp.request.service.config.credentials.expired = true;
- }
- });
-
- add('EXPIRED_SIGNATURE', 'retry', function EXPIRED_SIGNATURE(resp) {
- var err = resp.error;
- if (!err) return;
- if (typeof err.code === 'string' && typeof err.message === 'string') {
- if (err.code.match(/Signature/) && err.message.match(/expired/)) {
- resp.error.retryable = true;
- }
- }
- });
-
- add('CLOCK_SKEWED', 'retry', function CLOCK_SKEWED(resp) {
- if (!resp.error) return;
- if (this.service.clockSkewError(resp.error)
- && this.service.config.correctClockSkew) {
- resp.error.retryable = true;
- }
- });
-
- add('REDIRECT', 'retry', function REDIRECT(resp) {
- if (resp.error && resp.error.statusCode >= 300 &&
- resp.error.statusCode < 400 && resp.httpResponse.headers['location']) {
- this.httpRequest.endpoint =
- new AWS.Endpoint(resp.httpResponse.headers['location']);
- this.httpRequest.headers['Host'] = this.httpRequest.endpoint.host;
- resp.error.redirect = true;
- resp.error.retryable = true;
- }
- });
-
- add('RETRY_CHECK', 'retry', function RETRY_CHECK(resp) {
- if (resp.error) {
- if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) {
- resp.error.retryDelay = 0;
- } else if (resp.retryCount < resp.maxRetries) {
- resp.error.retryDelay = this.service.retryDelays(resp.retryCount, resp.error) || 0;
- }
- }
- });
-
- addAsync('RESET_RETRY_STATE', 'afterRetry', function RESET_RETRY_STATE(resp, done) {
- var delay, willRetry = false;
-
- if (resp.error) {
- delay = resp.error.retryDelay || 0;
- if (resp.error.retryable && resp.retryCount < resp.maxRetries) {
- resp.retryCount++;
- willRetry = true;
- } else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) {
- resp.redirectCount++;
- willRetry = true;
- }
- }
-
- // delay < 0 is a signal from customBackoff to skip retries
- if (willRetry && delay >= 0) {
- resp.error = null;
- setTimeout(done, delay);
- } else {
- done();
- }
- });
- }),
-
- CorePost: new SequentialExecutor().addNamedListeners(function(add) {
- add('EXTRACT_REQUEST_ID', 'extractData', AWS.util.extractRequestId);
- add('EXTRACT_REQUEST_ID', 'extractError', AWS.util.extractRequestId);
-
- add('ENOTFOUND_ERROR', 'httpError', function ENOTFOUND_ERROR(err) {
- function isDNSError(err) {
- return err.errno === 'ENOTFOUND' ||
- typeof err.errno === 'number' &&
- typeof AWS.util.getSystemErrorName === 'function' &&
- ['EAI_NONAME', 'EAI_NODATA'].indexOf(AWS.util.getSystemErrorName(err.errno) >= 0);
- }
- if (err.code === 'NetworkingError' && isDNSError(err)) {
- var message = 'Inaccessible host: `' + err.hostname + '\' at port `' + err.port +
- '\'. This service may not be available in the `' + err.region +
- '\' region.';
- this.response.error = AWS.util.error(new Error(message), {
- code: 'UnknownEndpoint',
- region: err.region,
- hostname: err.hostname,
- retryable: true,
- originalError: err
- });
- }
- });
- }),
-
- Logger: new SequentialExecutor().addNamedListeners(function(add) {
- add('LOG_REQUEST', 'complete', function LOG_REQUEST(resp) {
- var req = resp.request;
- var logger = req.service.config.logger;
- if (!logger) return;
- function filterSensitiveLog(inputShape, shape) {
- if (!shape) {
- return shape;
- }
- if (inputShape.isSensitive) {
- return '***SensitiveInformation***';
- }
- switch (inputShape.type) {
- case 'structure':
- var struct = {};
- AWS.util.each(shape, function(subShapeName, subShape) {
- if (Object.prototype.hasOwnProperty.call(inputShape.members, subShapeName)) {
- struct[subShapeName] = filterSensitiveLog(inputShape.members[subShapeName], subShape);
- } else {
- struct[subShapeName] = subShape;
- }
- });
- return struct;
- case 'list':
- var list = [];
- AWS.util.arrayEach(shape, function(subShape, index) {
- list.push(filterSensitiveLog(inputShape.member, subShape));
- });
- return list;
- case 'map':
- var map = {};
- AWS.util.each(shape, function(key, value) {
- map[key] = filterSensitiveLog(inputShape.value, value);
- });
- return map;
- default:
- return shape;
- }
- }
-
- function buildMessage() {
- var time = resp.request.service.getSkewCorrectedDate().getTime();
- var delta = (time - req.startTime.getTime()) / 1000;
- var ansi = logger.isTTY ? true : false;
- var status = resp.httpResponse.statusCode;
- var censoredParams = req.params;
- if (
- req.service.api.operations &&
- req.service.api.operations[req.operation] &&
- req.service.api.operations[req.operation].input
- ) {
- var inputShape = req.service.api.operations[req.operation].input;
- censoredParams = filterSensitiveLog(inputShape, req.params);
- }
- var params = (__nccwpck_require__(73837).inspect)(censoredParams, true, null);
- var message = '';
- if (ansi) message += '\x1B[33m';
- message += '[AWS ' + req.service.serviceIdentifier + ' ' + status;
- message += ' ' + delta.toString() + 's ' + resp.retryCount + ' retries]';
- if (ansi) message += '\x1B[0;1m';
- message += ' ' + AWS.util.string.lowerFirst(req.operation);
- message += '(' + params + ')';
- if (ansi) message += '\x1B[0m';
- return message;
- }
-
- var line = buildMessage();
- if (typeof logger.log === 'function') {
- logger.log(line);
- } else if (typeof logger.write === 'function') {
- logger.write(line + '\n');
- }
- });
- }),
-
- Json: new SequentialExecutor().addNamedListeners(function(add) {
- var svc = __nccwpck_require__(30083);
- add('BUILD', 'build', svc.buildRequest);
- add('EXTRACT_DATA', 'extractData', svc.extractData);
- add('EXTRACT_ERROR', 'extractError', svc.extractError);
- }),
-
- Rest: new SequentialExecutor().addNamedListeners(function(add) {
- var svc = __nccwpck_require__(98200);
- add('BUILD', 'build', svc.buildRequest);
- add('EXTRACT_DATA', 'extractData', svc.extractData);
- add('EXTRACT_ERROR', 'extractError', svc.extractError);
- }),
-
- RestJson: new SequentialExecutor().addNamedListeners(function(add) {
- var svc = __nccwpck_require__(5883);
- add('BUILD', 'build', svc.buildRequest);
- add('EXTRACT_DATA', 'extractData', svc.extractData);
- add('EXTRACT_ERROR', 'extractError', svc.extractError);
- add('UNSET_CONTENT_LENGTH', 'afterBuild', svc.unsetContentLength);
- }),
-
- RestXml: new SequentialExecutor().addNamedListeners(function(add) {
- var svc = __nccwpck_require__(15143);
- add('BUILD', 'build', svc.buildRequest);
- add('EXTRACT_DATA', 'extractData', svc.extractData);
- add('EXTRACT_ERROR', 'extractError', svc.extractError);
- }),
-
- Query: new SequentialExecutor().addNamedListeners(function(add) {
- var svc = __nccwpck_require__(90761);
- add('BUILD', 'build', svc.buildRequest);
- add('EXTRACT_DATA', 'extractData', svc.extractData);
- add('EXTRACT_ERROR', 'extractError', svc.extractError);
- })
-};
-
-
-/***/ }),
-
-/***/ 1556:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var inherit = AWS.util.inherit;
-
-/**
- * The endpoint that a service will talk to, for example,
- * `'https://ec2.ap-southeast-1.amazonaws.com'`. If
- * you need to override an endpoint for a service, you can
- * set the endpoint on a service by passing the endpoint
- * object with the `endpoint` option key:
- *
- * ```javascript
- * var ep = new AWS.Endpoint('awsproxy.example.com');
- * var s3 = new AWS.S3({endpoint: ep});
- * s3.service.endpoint.hostname == 'awsproxy.example.com'
- * ```
- *
- * Note that if you do not specify a protocol, the protocol will
- * be selected based on your current {AWS.config} configuration.
- *
- * @!attribute protocol
- * @return [String] the protocol (http or https) of the endpoint
- * URL
- * @!attribute hostname
- * @return [String] the host portion of the endpoint, e.g.,
- * example.com
- * @!attribute host
- * @return [String] the host portion of the endpoint including
- * the port, e.g., example.com:80
- * @!attribute port
- * @return [Integer] the port of the endpoint
- * @!attribute href
- * @return [String] the full URL of the endpoint
- */
-AWS.Endpoint = inherit({
-
- /**
- * @overload Endpoint(endpoint)
- * Constructs a new endpoint given an endpoint URL. If the
- * URL omits a protocol (http or https), the default protocol
- * set in the global {AWS.config} will be used.
- * @param endpoint [String] the URL to construct an endpoint from
- */
- constructor: function Endpoint(endpoint, config) {
- AWS.util.hideProperties(this, ['slashes', 'auth', 'hash', 'search', 'query']);
-
- if (typeof endpoint === 'undefined' || endpoint === null) {
- throw new Error('Invalid endpoint: ' + endpoint);
- } else if (typeof endpoint !== 'string') {
- return AWS.util.copy(endpoint);
- }
-
- if (!endpoint.match(/^http/)) {
- var useSSL = config && config.sslEnabled !== undefined ?
- config.sslEnabled : AWS.config.sslEnabled;
- endpoint = (useSSL ? 'https' : 'http') + '://' + endpoint;
- }
-
- AWS.util.update(this, AWS.util.urlParse(endpoint));
-
- // Ensure the port property is set as an integer
- if (this.port) {
- this.port = parseInt(this.port, 10);
- } else {
- this.port = this.protocol === 'https:' ? 443 : 80;
- }
- }
-
-});
-
-/**
- * The low level HTTP request object, encapsulating all HTTP header
- * and body data sent by a service request.
- *
- * @!attribute method
- * @return [String] the HTTP method of the request
- * @!attribute path
- * @return [String] the path portion of the URI, e.g.,
- * "/list/?start=5&num=10"
- * @!attribute headers
- * @return [map]
- * a map of header keys and their respective values
- * @!attribute body
- * @return [String] the request body payload
- * @!attribute endpoint
- * @return [AWS.Endpoint] the endpoint for the request
- * @!attribute region
- * @api private
- * @return [String] the region, for signing purposes only.
- */
-AWS.HttpRequest = inherit({
-
- /**
- * @api private
- */
- constructor: function HttpRequest(endpoint, region) {
- endpoint = new AWS.Endpoint(endpoint);
- this.method = 'POST';
- this.path = endpoint.path || '/';
- this.headers = {};
- this.body = '';
- this.endpoint = endpoint;
- this.region = region;
- this._userAgent = '';
- this.setUserAgent();
- },
-
- /**
- * @api private
- */
- setUserAgent: function setUserAgent() {
- this._userAgent = this.headers[this.getUserAgentHeaderName()] = AWS.util.userAgent();
- },
-
- getUserAgentHeaderName: function getUserAgentHeaderName() {
- var prefix = AWS.util.isBrowser() ? 'X-Amz-' : '';
- return prefix + 'User-Agent';
- },
-
- /**
- * @api private
- */
- appendToUserAgent: function appendToUserAgent(agentPartial) {
- if (typeof agentPartial === 'string' && agentPartial) {
- this._userAgent += ' ' + agentPartial;
- }
- this.headers[this.getUserAgentHeaderName()] = this._userAgent;
- },
-
- /**
- * @api private
- */
- getUserAgent: function getUserAgent() {
- return this._userAgent;
- },
-
- /**
- * @return [String] the part of the {path} excluding the
- * query string
- */
- pathname: function pathname() {
- return this.path.split('?', 1)[0];
- },
-
- /**
- * @return [String] the query string portion of the {path}
- */
- search: function search() {
- var query = this.path.split('?', 2)[1];
- if (query) {
- query = AWS.util.queryStringParse(query);
- return AWS.util.queryParamsToString(query);
- }
- return '';
- },
-
- /**
- * @api private
- * update httpRequest endpoint with endpoint string
- */
- updateEndpoint: function updateEndpoint(endpointStr) {
- var newEndpoint = new AWS.Endpoint(endpointStr);
- this.endpoint = newEndpoint;
- this.path = newEndpoint.path || '/';
- if (this.headers['Host']) {
- this.headers['Host'] = newEndpoint.host;
- }
- }
-});
-
-/**
- * The low level HTTP response object, encapsulating all HTTP header
- * and body data returned from the request.
- *
- * @!attribute statusCode
- * @return [Integer] the HTTP status code of the response (e.g., 200, 404)
- * @!attribute headers
- * @return [map]
- * a map of response header keys and their respective values
- * @!attribute body
- * @return [String] the response body payload
- * @!attribute [r] streaming
- * @return [Boolean] whether this response is being streamed at a low-level.
- * Defaults to `false` (buffered reads). Do not modify this manually, use
- * {createUnbufferedStream} to convert the stream to unbuffered mode
- * instead.
- */
-AWS.HttpResponse = inherit({
-
- /**
- * @api private
- */
- constructor: function HttpResponse() {
- this.statusCode = undefined;
- this.headers = {};
- this.body = undefined;
- this.streaming = false;
- this.stream = null;
- },
-
- /**
- * Disables buffering on the HTTP response and returns the stream for reading.
- * @return [Stream, XMLHttpRequest, null] the underlying stream object.
- * Use this object to directly read data off of the stream.
- * @note This object is only available after the {AWS.Request~httpHeaders}
- * event has fired. This method must be called prior to
- * {AWS.Request~httpData}.
- * @example Taking control of a stream
- * request.on('httpHeaders', function(statusCode, headers) {
- * if (statusCode < 300) {
- * if (headers.etag === 'xyz') {
- * // pipe the stream, disabling buffering
- * var stream = this.response.httpResponse.createUnbufferedStream();
- * stream.pipe(process.stdout);
- * } else { // abort this request and set a better error message
- * this.abort();
- * this.response.error = new Error('Invalid ETag');
- * }
- * }
- * }).send(console.log);
- */
- createUnbufferedStream: function createUnbufferedStream() {
- this.streaming = true;
- return this.stream;
- }
-});
-
-
-AWS.HttpClient = inherit({});
-
-/**
- * @api private
- */
-AWS.HttpClient.getInstance = function getInstance() {
- if (this.singleton === undefined) {
- this.singleton = new this();
- }
- return this.singleton;
-};
-
-
-/***/ }),
-
-/***/ 2310:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var Stream = AWS.util.stream.Stream;
-var TransformStream = AWS.util.stream.Transform;
-var ReadableStream = AWS.util.stream.Readable;
-__nccwpck_require__(1556);
-var CONNECTION_REUSE_ENV_NAME = 'AWS_NODEJS_CONNECTION_REUSE_ENABLED';
-
-/**
- * @api private
- */
-AWS.NodeHttpClient = AWS.util.inherit({
- handleRequest: function handleRequest(httpRequest, httpOptions, callback, errCallback) {
- var self = this;
- var endpoint = httpRequest.endpoint;
- var pathPrefix = '';
- if (!httpOptions) httpOptions = {};
- if (httpOptions.proxy) {
- pathPrefix = endpoint.protocol + '//' + endpoint.hostname;
- if (endpoint.port !== 80 && endpoint.port !== 443) {
- pathPrefix += ':' + endpoint.port;
- }
- endpoint = new AWS.Endpoint(httpOptions.proxy);
- }
-
- var useSSL = endpoint.protocol === 'https:';
- var http = useSSL ? __nccwpck_require__(95687) : __nccwpck_require__(13685);
- var options = {
- host: endpoint.hostname,
- port: endpoint.port,
- method: httpRequest.method,
- headers: httpRequest.headers,
- path: pathPrefix + httpRequest.path
- };
-
- AWS.util.update(options, httpOptions);
-
- if (!httpOptions.agent) {
- options.agent = this.getAgent(useSSL, {
- keepAlive: process.env[CONNECTION_REUSE_ENV_NAME] === '1' ? true : false
- });
- }
-
- delete options.proxy; // proxy isn't an HTTP option
- delete options.timeout; // timeout isn't an HTTP option
-
- var stream = http.request(options, function (httpResp) {
- if (stream.didCallback) return;
-
- callback(httpResp);
- httpResp.emit(
- 'headers',
- httpResp.statusCode,
- httpResp.headers,
- httpResp.statusMessage
- );
- });
- httpRequest.stream = stream; // attach stream to httpRequest
- stream.didCallback = false;
-
- // connection timeout support
- if (httpOptions.connectTimeout) {
- var connectTimeoutId;
- stream.on('socket', function(socket) {
- if (socket.connecting) {
- connectTimeoutId = setTimeout(function connectTimeout() {
- if (stream.didCallback) return; stream.didCallback = true;
-
- stream.abort();
- errCallback(AWS.util.error(
- new Error('Socket timed out without establishing a connection'),
- {code: 'TimeoutError'}
- ));
- }, httpOptions.connectTimeout);
- socket.on('connect', function() {
- clearTimeout(connectTimeoutId);
- connectTimeoutId = null;
- });
- }
- });
- }
-
- // timeout support
- stream.setTimeout(httpOptions.timeout || 0, function() {
- if (stream.didCallback) return; stream.didCallback = true;
-
- var msg = 'Connection timed out after ' + httpOptions.timeout + 'ms';
- errCallback(AWS.util.error(new Error(msg), {code: 'TimeoutError'}));
- stream.abort();
- });
-
- stream.on('error', function(err) {
- if (connectTimeoutId) {
- clearTimeout(connectTimeoutId);
- connectTimeoutId = null;
- }
- if (stream.didCallback) return; stream.didCallback = true;
- if ('ECONNRESET' === err.code || 'EPIPE' === err.code || 'ETIMEDOUT' === err.code) {
- errCallback(AWS.util.error(err, {code: 'TimeoutError'}));
- } else {
- errCallback(err);
- }
- });
-
- var expect = httpRequest.headers.Expect || httpRequest.headers.expect;
- if (expect === '100-continue') {
- stream.once('continue', function() {
- self.writeBody(stream, httpRequest);
- });
- } else {
- this.writeBody(stream, httpRequest);
- }
-
- return stream;
- },
-
- writeBody: function writeBody(stream, httpRequest) {
- var body = httpRequest.body;
- var totalBytes = parseInt(httpRequest.headers['Content-Length'], 10);
-
- if (body instanceof Stream) {
- // For progress support of streaming content -
- // pipe the data through a transform stream to emit 'sendProgress' events
- var progressStream = this.progressStream(stream, totalBytes);
- if (progressStream) {
- body.pipe(progressStream).pipe(stream);
- } else {
- body.pipe(stream);
- }
- } else if (body) {
- // The provided body is a buffer/string and is already fully available in memory -
- // For performance it's best to send it as a whole by calling stream.end(body),
- // Callers expect a 'sendProgress' event which is best emitted once
- // the http request stream has been fully written and all data flushed.
- // The use of totalBytes is important over body.length for strings where
- // length is char length and not byte length.
- stream.once('finish', function() {
- stream.emit('sendProgress', {
- loaded: totalBytes,
- total: totalBytes
- });
- });
- stream.end(body);
- } else {
- // no request body
- stream.end();
- }
- },
-
- /**
- * Create the https.Agent or http.Agent according to the request schema.
- */
- getAgent: function getAgent(useSSL, agentOptions) {
- var http = useSSL ? __nccwpck_require__(95687) : __nccwpck_require__(13685);
- if (useSSL) {
- if (!AWS.NodeHttpClient.sslAgent) {
- AWS.NodeHttpClient.sslAgent = new http.Agent(AWS.util.merge({
- rejectUnauthorized: process.env.NODE_TLS_REJECT_UNAUTHORIZED === '0' ? false : true
- }, agentOptions || {}));
- AWS.NodeHttpClient.sslAgent.setMaxListeners(0);
-
- // delegate maxSockets to globalAgent, set a default limit of 50 if current value is Infinity.
- // Users can bypass this default by supplying their own Agent as part of SDK configuration.
- Object.defineProperty(AWS.NodeHttpClient.sslAgent, 'maxSockets', {
- enumerable: true,
- get: function() {
- var defaultMaxSockets = 50;
- var globalAgent = http.globalAgent;
- if (globalAgent && globalAgent.maxSockets !== Infinity && typeof globalAgent.maxSockets === 'number') {
- return globalAgent.maxSockets;
- }
- return defaultMaxSockets;
- }
- });
- }
- return AWS.NodeHttpClient.sslAgent;
- } else {
- if (!AWS.NodeHttpClient.agent) {
- AWS.NodeHttpClient.agent = new http.Agent(agentOptions);
- }
- return AWS.NodeHttpClient.agent;
- }
- },
-
- progressStream: function progressStream(stream, totalBytes) {
- if (typeof TransformStream === 'undefined') {
- // for node 0.8 there is no streaming progress
- return;
- }
- var loadedBytes = 0;
- var reporter = new TransformStream();
- reporter._transform = function(chunk, encoding, callback) {
- if (chunk) {
- loadedBytes += chunk.length;
- stream.emit('sendProgress', {
- loaded: loadedBytes,
- total: totalBytes
- });
- }
- callback(null, chunk);
- };
- return reporter;
- },
-
- emitter: null
-});
-
-/**
- * @!ignore
- */
-
-/**
- * @api private
- */
-AWS.HttpClient.prototype = AWS.NodeHttpClient.prototype;
-
-/**
- * @api private
- */
-AWS.HttpClient.streamsApiVersion = ReadableStream ? 2 : 1;
-
-
-/***/ }),
-
-/***/ 47495:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = __nccwpck_require__(77985);
-
-function JsonBuilder() { }
-
-JsonBuilder.prototype.build = function(value, shape) {
- return JSON.stringify(translate(value, shape));
-};
-
-function translate(value, shape) {
- if (!shape || value === undefined || value === null) return undefined;
-
- switch (shape.type) {
- case 'structure': return translateStructure(value, shape);
- case 'map': return translateMap(value, shape);
- case 'list': return translateList(value, shape);
- default: return translateScalar(value, shape);
- }
-}
-
-function translateStructure(structure, shape) {
- if (shape.isDocument) {
- return structure;
- }
- var struct = {};
- util.each(structure, function(name, value) {
- var memberShape = shape.members[name];
- if (memberShape) {
- if (memberShape.location !== 'body') return;
- var locationName = memberShape.isLocationName ? memberShape.name : name;
- var result = translate(value, memberShape);
- if (result !== undefined) struct[locationName] = result;
- }
- });
- return struct;
-}
-
-function translateList(list, shape) {
- var out = [];
- util.arrayEach(list, function(value) {
- var result = translate(value, shape.member);
- if (result !== undefined) out.push(result);
- });
- return out;
-}
-
-function translateMap(map, shape) {
- var out = {};
- util.each(map, function(key, value) {
- var result = translate(value, shape.value);
- if (result !== undefined) out[key] = result;
- });
- return out;
-}
-
-function translateScalar(value, shape) {
- return shape.toWireFormat(value);
-}
-
-/**
- * @api private
- */
-module.exports = JsonBuilder;
-
-
-/***/ }),
-
-/***/ 5474:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = __nccwpck_require__(77985);
-
-function JsonParser() { }
-
-JsonParser.prototype.parse = function(value, shape) {
- return translate(JSON.parse(value), shape);
-};
-
-function translate(value, shape) {
- if (!shape || value === undefined) return undefined;
-
- switch (shape.type) {
- case 'structure': return translateStructure(value, shape);
- case 'map': return translateMap(value, shape);
- case 'list': return translateList(value, shape);
- default: return translateScalar(value, shape);
- }
-}
-
-function translateStructure(structure, shape) {
- if (structure == null) return undefined;
- if (shape.isDocument) return structure;
-
- var struct = {};
- var shapeMembers = shape.members;
- util.each(shapeMembers, function(name, memberShape) {
- var locationName = memberShape.isLocationName ? memberShape.name : name;
- if (Object.prototype.hasOwnProperty.call(structure, locationName)) {
- var value = structure[locationName];
- var result = translate(value, memberShape);
- if (result !== undefined) struct[name] = result;
- }
- });
- return struct;
-}
-
-function translateList(list, shape) {
- if (list == null) return undefined;
-
- var out = [];
- util.arrayEach(list, function(value) {
- var result = translate(value, shape.member);
- if (result === undefined) out.push(null);
- else out.push(result);
- });
- return out;
-}
-
-function translateMap(map, shape) {
- if (map == null) return undefined;
-
- var out = {};
- util.each(map, function(key, value) {
- var result = translate(value, shape.value);
- if (result === undefined) out[key] = null;
- else out[key] = result;
- });
- return out;
-}
-
-function translateScalar(value, shape) {
- return shape.toType(value);
-}
-
-/**
- * @api private
- */
-module.exports = JsonParser;
-
-
-/***/ }),
-
-/***/ 93985:
-/***/ ((module) => {
-
-var warning = [
- 'We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.\n',
- 'Please migrate your code to use AWS SDK for JavaScript (v3).',
- 'For more information, check the migration guide at https://a.co/7PzMCcy'
-].join('\n');
-
-module.exports = {
- suppress: false
-};
-
-/**
- * To suppress this message:
- * @example
- * require('aws-sdk/lib/maintenance_mode_message').suppress = true;
- */
-function emitWarning() {
- if (typeof process === 'undefined')
- return;
-
- // Skip maintenance mode message in Lambda environments
- if (
- typeof process.env === 'object' &&
- typeof process.env.AWS_EXECUTION_ENV !== 'undefined' &&
- process.env.AWS_EXECUTION_ENV.indexOf('AWS_Lambda_') === 0
- ) {
- return;
- }
-
- if (
- typeof process.env === 'object' &&
- typeof process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE !== 'undefined'
- ) {
- return;
- }
-
- if (typeof process.emitWarning === 'function') {
- process.emitWarning(warning, {
- type: 'NOTE'
- });
- }
-}
-
-setTimeout(function () {
- if (!module.exports.suppress) {
- emitWarning();
- }
-}, 0);
-
-
-/***/ }),
-
-/***/ 25768:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-__nccwpck_require__(1556);
-var inherit = AWS.util.inherit;
-var getMetadataServiceEndpoint = __nccwpck_require__(608);
-var URL = (__nccwpck_require__(57310).URL);
-
-/**
- * Represents a metadata service available on EC2 instances. Using the
- * {request} method, you can receieve metadata about any available resource
- * on the metadata service.
- *
- * You can disable the use of the IMDS by setting the AWS_EC2_METADATA_DISABLED
- * environment variable to a truthy value.
- *
- * @!attribute [r] httpOptions
- * @return [map] a map of options to pass to the underlying HTTP request:
- *
- * * **timeout** (Number) — a timeout value in milliseconds to wait
- * before aborting the connection. Set to 0 for no timeout.
- *
- * @!macro nobrowser
- */
-AWS.MetadataService = inherit({
- /**
- * @return [String] the endpoint of the instance metadata service
- */
- endpoint: getMetadataServiceEndpoint(),
-
- /**
- * @!ignore
- */
-
- /**
- * Default HTTP options. By default, the metadata service is set to not
- * timeout on long requests. This means that on non-EC2 machines, this
- * request will never return. If you are calling this operation from an
- * environment that may not always run on EC2, set a `timeout` value so
- * the SDK will abort the request after a given number of milliseconds.
- */
- httpOptions: { timeout: 0 },
-
- /**
- * when enabled, metadata service will not fetch token
- */
- disableFetchToken: false,
-
- /**
- * Creates a new MetadataService object with a given set of options.
- *
- * @option options host [String] the hostname of the instance metadata
- * service
- * @option options httpOptions [map] a map of options to pass to the
- * underlying HTTP request:
- *
- * * **timeout** (Number) — a timeout value in milliseconds to wait
- * before aborting the connection. Set to 0 for no timeout.
- * @option options maxRetries [Integer] the maximum number of retries to
- * perform for timeout errors
- * @option options retryDelayOptions [map] A set of options to configure the
- * retry delay on retryable errors. See AWS.Config for details.
- */
- constructor: function MetadataService(options) {
- if (options && options.host) {
- options.endpoint = 'http://' + options.host;
- delete options.host;
- }
- AWS.util.update(this, options);
- },
-
- /**
- * Sends a request to the instance metadata service for a given resource.
- *
- * @param path [String] the path of the resource to get
- *
- * @param options [map] an optional map used to make request
- *
- * * **method** (String) — HTTP request method
- *
- * * **headers** (map) — a map of response header keys and their respective values
- *
- * @callback callback function(err, data)
- * Called when a response is available from the service.
- * @param err [Error, null] if an error occurred, this value will be set
- * @param data [String, null] if the request was successful, the body of
- * the response
- */
- request: function request(path, options, callback) {
- if (arguments.length === 2) {
- callback = options;
- options = {};
- }
-
- if (process.env[AWS.util.imdsDisabledEnv]) {
- callback(new Error('EC2 Instance Metadata Service access disabled'));
- return;
- }
-
- path = path || '/';
-
- // Verify that host is a valid URL
- if (URL) { new URL(this.endpoint); }
-
- var httpRequest = new AWS.HttpRequest(this.endpoint + path);
- httpRequest.method = options.method || 'GET';
- if (options.headers) {
- httpRequest.headers = options.headers;
- }
- AWS.util.handleRequestWithRetries(httpRequest, this, callback);
- },
-
- /**
- * @api private
- */
- loadCredentialsCallbacks: [],
-
- /**
- * Fetches metadata token used for getting credentials
- *
- * @api private
- * @callback callback function(err, token)
- * Called when token is loaded from the resource
- */
- fetchMetadataToken: function fetchMetadataToken(callback) {
- var self = this;
- var tokenFetchPath = '/latest/api/token';
- self.request(
- tokenFetchPath,
- {
- 'method': 'PUT',
- 'headers': {
- 'x-aws-ec2-metadata-token-ttl-seconds': '21600'
- }
- },
- callback
- );
- },
-
- /**
- * Fetches credentials
- *
- * @api private
- * @callback cb function(err, creds)
- * Called when credentials are loaded from the resource
- */
- fetchCredentials: function fetchCredentials(options, cb) {
- var self = this;
- var basePath = '/latest/meta-data/iam/security-credentials/';
-
- self.request(basePath, options, function (err, roleName) {
- if (err) {
- self.disableFetchToken = !(err.statusCode === 401);
- cb(AWS.util.error(
- err,
- {
- message: 'EC2 Metadata roleName request returned error'
- }
- ));
- return;
- }
- roleName = roleName.split('\n')[0]; // grab first (and only) role
- self.request(basePath + roleName, options, function (credErr, credData) {
- if (credErr) {
- self.disableFetchToken = !(credErr.statusCode === 401);
- cb(AWS.util.error(
- credErr,
- {
- message: 'EC2 Metadata creds request returned error'
- }
- ));
- return;
- }
- try {
- var credentials = JSON.parse(credData);
- cb(null, credentials);
- } catch (parseError) {
- cb(parseError);
- }
- });
- });
- },
-
- /**
- * Loads a set of credentials stored in the instance metadata service
- *
- * @api private
- * @callback callback function(err, credentials)
- * Called when credentials are loaded from the resource
- * @param err [Error] if an error occurred, this value will be set
- * @param credentials [Object] the raw JSON object containing all
- * metadata from the credentials resource
- */
- loadCredentials: function loadCredentials(callback) {
- var self = this;
- self.loadCredentialsCallbacks.push(callback);
- if (self.loadCredentialsCallbacks.length > 1) { return; }
-
- function callbacks(err, creds) {
- var cb;
- while ((cb = self.loadCredentialsCallbacks.shift()) !== undefined) {
- cb(err, creds);
- }
- }
-
- if (self.disableFetchToken) {
- self.fetchCredentials({}, callbacks);
- } else {
- self.fetchMetadataToken(function(tokenError, token) {
- if (tokenError) {
- if (tokenError.code === 'TimeoutError') {
- self.disableFetchToken = true;
- } else if (tokenError.retryable === true) {
- callbacks(AWS.util.error(
- tokenError,
- {
- message: 'EC2 Metadata token request returned error'
- }
- ));
- return;
- } else if (tokenError.statusCode === 400) {
- callbacks(AWS.util.error(
- tokenError,
- {
- message: 'EC2 Metadata token request returned 400'
- }
- ));
- return;
- }
- }
- var options = {};
- if (token) {
- options.headers = {
- 'x-aws-ec2-metadata-token': token
- };
- }
- self.fetchCredentials(options, callbacks);
- });
-
- }
- }
-});
-
-/**
- * @api private
- */
-module.exports = AWS.MetadataService;
-
-
-/***/ }),
-
-/***/ 83205:
-/***/ ((module) => {
-
-var getEndpoint = function() {
- return {
- IPv4: 'http://169.254.169.254',
- IPv6: 'http://[fd00:ec2::254]',
- };
-};
-
-module.exports = getEndpoint;
-
-
-/***/ }),
-
-/***/ 95578:
-/***/ ((module) => {
-
-var ENV_ENDPOINT_NAME = 'AWS_EC2_METADATA_SERVICE_ENDPOINT';
-var CONFIG_ENDPOINT_NAME = 'ec2_metadata_service_endpoint';
-
-var getEndpointConfigOptions = function() {
- return {
- environmentVariableSelector: function(env) { return env[ENV_ENDPOINT_NAME]; },
- configFileSelector: function(profile) { return profile[CONFIG_ENDPOINT_NAME]; },
- default: undefined,
- };
-};
-
-module.exports = getEndpointConfigOptions;
-
-
-/***/ }),
-
-/***/ 37997:
-/***/ ((module) => {
-
-var getEndpointMode = function() {
- return {
- IPv4: 'IPv4',
- IPv6: 'IPv6',
- };
-};
-
-module.exports = getEndpointMode;
-
-
-/***/ }),
-
-/***/ 45509:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var EndpointMode = __nccwpck_require__(37997)();
-
-var ENV_ENDPOINT_MODE_NAME = 'AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE';
-var CONFIG_ENDPOINT_MODE_NAME = 'ec2_metadata_service_endpoint_mode';
-
-var getEndpointModeConfigOptions = function() {
- return {
- environmentVariableSelector: function(env) { return env[ENV_ENDPOINT_MODE_NAME]; },
- configFileSelector: function(profile) { return profile[CONFIG_ENDPOINT_MODE_NAME]; },
- default: EndpointMode.IPv4,
- };
-};
-
-module.exports = getEndpointModeConfigOptions;
-
-
-/***/ }),
-
-/***/ 608:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-
-var Endpoint = __nccwpck_require__(83205)();
-var EndpointMode = __nccwpck_require__(37997)();
-
-var ENDPOINT_CONFIG_OPTIONS = __nccwpck_require__(95578)();
-var ENDPOINT_MODE_CONFIG_OPTIONS = __nccwpck_require__(45509)();
-
-var getMetadataServiceEndpoint = function() {
- var endpoint = AWS.util.loadConfig(ENDPOINT_CONFIG_OPTIONS);
- if (endpoint !== undefined) return endpoint;
-
- var endpointMode = AWS.util.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS);
- switch (endpointMode) {
- case EndpointMode.IPv4:
- return Endpoint.IPv4;
- case EndpointMode.IPv6:
- return Endpoint.IPv6;
- default:
- throw new Error('Unsupported endpoint mode: ' + endpointMode);
- }
-};
-
-module.exports = getMetadataServiceEndpoint;
-
-
-/***/ }),
-
-/***/ 17657:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var Collection = __nccwpck_require__(71965);
-var Operation = __nccwpck_require__(28083);
-var Shape = __nccwpck_require__(71349);
-var Paginator = __nccwpck_require__(45938);
-var ResourceWaiter = __nccwpck_require__(41368);
-var metadata = __nccwpck_require__(17752);
-
-var util = __nccwpck_require__(77985);
-var property = util.property;
-var memoizedProperty = util.memoizedProperty;
-
-function Api(api, options) {
- var self = this;
- api = api || {};
- options = options || {};
- options.api = this;
-
- api.metadata = api.metadata || {};
-
- var serviceIdentifier = options.serviceIdentifier;
- delete options.serviceIdentifier;
-
- property(this, 'isApi', true, false);
- property(this, 'apiVersion', api.metadata.apiVersion);
- property(this, 'endpointPrefix', api.metadata.endpointPrefix);
- property(this, 'signingName', api.metadata.signingName);
- property(this, 'globalEndpoint', api.metadata.globalEndpoint);
- property(this, 'signatureVersion', api.metadata.signatureVersion);
- property(this, 'jsonVersion', api.metadata.jsonVersion);
- property(this, 'targetPrefix', api.metadata.targetPrefix);
- property(this, 'protocol', api.metadata.protocol);
- property(this, 'timestampFormat', api.metadata.timestampFormat);
- property(this, 'xmlNamespaceUri', api.metadata.xmlNamespace);
- property(this, 'abbreviation', api.metadata.serviceAbbreviation);
- property(this, 'fullName', api.metadata.serviceFullName);
- property(this, 'serviceId', api.metadata.serviceId);
- if (serviceIdentifier && metadata[serviceIdentifier]) {
- property(this, 'xmlNoDefaultLists', metadata[serviceIdentifier].xmlNoDefaultLists, false);
- }
-
- memoizedProperty(this, 'className', function() {
- var name = api.metadata.serviceAbbreviation || api.metadata.serviceFullName;
- if (!name) return null;
-
- name = name.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g, '');
- if (name === 'ElasticLoadBalancing') name = 'ELB';
- return name;
- });
-
- function addEndpointOperation(name, operation) {
- if (operation.endpointoperation === true) {
- property(self, 'endpointOperation', util.string.lowerFirst(name));
- }
- if (operation.endpointdiscovery && !self.hasRequiredEndpointDiscovery) {
- property(
- self,
- 'hasRequiredEndpointDiscovery',
- operation.endpointdiscovery.required === true
- );
- }
- }
-
- property(this, 'operations', new Collection(api.operations, options, function(name, operation) {
- return new Operation(name, operation, options);
- }, util.string.lowerFirst, addEndpointOperation));
-
- property(this, 'shapes', new Collection(api.shapes, options, function(name, shape) {
- return Shape.create(shape, options);
- }));
-
- property(this, 'paginators', new Collection(api.paginators, options, function(name, paginator) {
- return new Paginator(name, paginator, options);
- }));
-
- property(this, 'waiters', new Collection(api.waiters, options, function(name, waiter) {
- return new ResourceWaiter(name, waiter, options);
- }, util.string.lowerFirst));
-
- if (options.documentation) {
- property(this, 'documentation', api.documentation);
- property(this, 'documentationUrl', api.documentationUrl);
- }
- property(this, 'awsQueryCompatible', api.metadata.awsQueryCompatible);
-}
-
-/**
- * @api private
- */
-module.exports = Api;
-
-
-/***/ }),
-
-/***/ 71965:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var memoizedProperty = (__nccwpck_require__(77985).memoizedProperty);
-
-function memoize(name, value, factory, nameTr) {
- memoizedProperty(this, nameTr(name), function() {
- return factory(name, value);
- });
-}
-
-function Collection(iterable, options, factory, nameTr, callback) {
- nameTr = nameTr || String;
- var self = this;
-
- for (var id in iterable) {
- if (Object.prototype.hasOwnProperty.call(iterable, id)) {
- memoize.call(self, id, iterable[id], factory, nameTr);
- if (callback) callback(id, iterable[id]);
- }
- }
-}
-
-/**
- * @api private
- */
-module.exports = Collection;
-
-
-/***/ }),
-
-/***/ 28083:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var Shape = __nccwpck_require__(71349);
-
-var util = __nccwpck_require__(77985);
-var property = util.property;
-var memoizedProperty = util.memoizedProperty;
-
-function Operation(name, operation, options) {
- var self = this;
- options = options || {};
-
- property(this, 'name', operation.name || name);
- property(this, 'api', options.api, false);
-
- operation.http = operation.http || {};
- property(this, 'endpoint', operation.endpoint);
- property(this, 'httpMethod', operation.http.method || 'POST');
- property(this, 'httpPath', operation.http.requestUri || '/');
- property(this, 'authtype', operation.authtype || '');
- property(
- this,
- 'endpointDiscoveryRequired',
- operation.endpointdiscovery ?
- (operation.endpointdiscovery.required ? 'REQUIRED' : 'OPTIONAL') :
- 'NULL'
- );
-
- // httpChecksum replaces usage of httpChecksumRequired, but some APIs
- // (s3control) still uses old trait.
- var httpChecksumRequired = operation.httpChecksumRequired
- || (operation.httpChecksum && operation.httpChecksum.requestChecksumRequired);
- property(this, 'httpChecksumRequired', httpChecksumRequired, false);
-
- memoizedProperty(this, 'input', function() {
- if (!operation.input) {
- return new Shape.create({type: 'structure'}, options);
- }
- return Shape.create(operation.input, options);
- });
-
- memoizedProperty(this, 'output', function() {
- if (!operation.output) {
- return new Shape.create({type: 'structure'}, options);
- }
- return Shape.create(operation.output, options);
- });
-
- memoizedProperty(this, 'errors', function() {
- var list = [];
- if (!operation.errors) return null;
-
- for (var i = 0; i < operation.errors.length; i++) {
- list.push(Shape.create(operation.errors[i], options));
- }
-
- return list;
- });
-
- memoizedProperty(this, 'paginator', function() {
- return options.api.paginators[name];
- });
-
- if (options.documentation) {
- property(this, 'documentation', operation.documentation);
- property(this, 'documentationUrl', operation.documentationUrl);
- }
-
- // idempotentMembers only tracks top-level input shapes
- memoizedProperty(this, 'idempotentMembers', function() {
- var idempotentMembers = [];
- var input = self.input;
- var members = input.members;
- if (!input.members) {
- return idempotentMembers;
- }
- for (var name in members) {
- if (!members.hasOwnProperty(name)) {
- continue;
- }
- if (members[name].isIdempotent === true) {
- idempotentMembers.push(name);
- }
- }
- return idempotentMembers;
- });
-
- memoizedProperty(this, 'hasEventOutput', function() {
- var output = self.output;
- return hasEventStream(output);
- });
-}
-
-function hasEventStream(topLevelShape) {
- var members = topLevelShape.members;
- var payload = topLevelShape.payload;
-
- if (!topLevelShape.members) {
- return false;
- }
-
- if (payload) {
- var payloadMember = members[payload];
- return payloadMember.isEventStream;
- }
-
- // check if any member is an event stream
- for (var name in members) {
- if (!members.hasOwnProperty(name)) {
- if (members[name].isEventStream === true) {
- return true;
- }
- }
- }
- return false;
-}
-
-/**
- * @api private
- */
-module.exports = Operation;
-
-
-/***/ }),
-
-/***/ 45938:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var property = (__nccwpck_require__(77985).property);
-
-function Paginator(name, paginator) {
- property(this, 'inputToken', paginator.input_token);
- property(this, 'limitKey', paginator.limit_key);
- property(this, 'moreResults', paginator.more_results);
- property(this, 'outputToken', paginator.output_token);
- property(this, 'resultKey', paginator.result_key);
-}
-
-/**
- * @api private
- */
-module.exports = Paginator;
-
-
-/***/ }),
-
-/***/ 41368:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = __nccwpck_require__(77985);
-var property = util.property;
-
-function ResourceWaiter(name, waiter, options) {
- options = options || {};
- property(this, 'name', name);
- property(this, 'api', options.api, false);
-
- if (waiter.operation) {
- property(this, 'operation', util.string.lowerFirst(waiter.operation));
- }
-
- var self = this;
- var keys = [
- 'type',
- 'description',
- 'delay',
- 'maxAttempts',
- 'acceptors'
- ];
-
- keys.forEach(function(key) {
- var value = waiter[key];
- if (value) {
- property(self, key, value);
- }
- });
-}
-
-/**
- * @api private
- */
-module.exports = ResourceWaiter;
-
-
-/***/ }),
-
-/***/ 71349:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var Collection = __nccwpck_require__(71965);
-
-var util = __nccwpck_require__(77985);
-
-function property(obj, name, value) {
- if (value !== null && value !== undefined) {
- util.property.apply(this, arguments);
- }
-}
-
-function memoizedProperty(obj, name) {
- if (!obj.constructor.prototype[name]) {
- util.memoizedProperty.apply(this, arguments);
- }
-}
-
-function Shape(shape, options, memberName) {
- options = options || {};
-
- property(this, 'shape', shape.shape);
- property(this, 'api', options.api, false);
- property(this, 'type', shape.type);
- property(this, 'enum', shape.enum);
- property(this, 'min', shape.min);
- property(this, 'max', shape.max);
- property(this, 'pattern', shape.pattern);
- property(this, 'location', shape.location || this.location || 'body');
- property(this, 'name', this.name || shape.xmlName || shape.queryName ||
- shape.locationName || memberName);
- property(this, 'isStreaming', shape.streaming || this.isStreaming || false);
- property(this, 'requiresLength', shape.requiresLength, false);
- property(this, 'isComposite', shape.isComposite || false);
- property(this, 'isShape', true, false);
- property(this, 'isQueryName', Boolean(shape.queryName), false);
- property(this, 'isLocationName', Boolean(shape.locationName), false);
- property(this, 'isIdempotent', shape.idempotencyToken === true);
- property(this, 'isJsonValue', shape.jsonvalue === true);
- property(this, 'isSensitive', shape.sensitive === true || shape.prototype && shape.prototype.sensitive === true);
- property(this, 'isEventStream', Boolean(shape.eventstream), false);
- property(this, 'isEvent', Boolean(shape.event), false);
- property(this, 'isEventPayload', Boolean(shape.eventpayload), false);
- property(this, 'isEventHeader', Boolean(shape.eventheader), false);
- property(this, 'isTimestampFormatSet', Boolean(shape.timestampFormat) || shape.prototype && shape.prototype.isTimestampFormatSet === true, false);
- property(this, 'endpointDiscoveryId', Boolean(shape.endpointdiscoveryid), false);
- property(this, 'hostLabel', Boolean(shape.hostLabel), false);
-
- if (options.documentation) {
- property(this, 'documentation', shape.documentation);
- property(this, 'documentationUrl', shape.documentationUrl);
- }
-
- if (shape.xmlAttribute) {
- property(this, 'isXmlAttribute', shape.xmlAttribute || false);
- }
-
- // type conversion and parsing
- property(this, 'defaultValue', null);
- this.toWireFormat = function(value) {
- if (value === null || value === undefined) return '';
- return value;
- };
- this.toType = function(value) { return value; };
-}
-
-/**
- * @api private
- */
-Shape.normalizedTypes = {
- character: 'string',
- double: 'float',
- long: 'integer',
- short: 'integer',
- biginteger: 'integer',
- bigdecimal: 'float',
- blob: 'binary'
-};
-
-/**
- * @api private
- */
-Shape.types = {
- 'structure': StructureShape,
- 'list': ListShape,
- 'map': MapShape,
- 'boolean': BooleanShape,
- 'timestamp': TimestampShape,
- 'float': FloatShape,
- 'integer': IntegerShape,
- 'string': StringShape,
- 'base64': Base64Shape,
- 'binary': BinaryShape
-};
-
-Shape.resolve = function resolve(shape, options) {
- if (shape.shape) {
- var refShape = options.api.shapes[shape.shape];
- if (!refShape) {
- throw new Error('Cannot find shape reference: ' + shape.shape);
- }
-
- return refShape;
- } else {
- return null;
- }
-};
-
-Shape.create = function create(shape, options, memberName) {
- if (shape.isShape) return shape;
-
- var refShape = Shape.resolve(shape, options);
- if (refShape) {
- var filteredKeys = Object.keys(shape);
- if (!options.documentation) {
- filteredKeys = filteredKeys.filter(function(name) {
- return !name.match(/documentation/);
- });
- }
-
- // create an inline shape with extra members
- var InlineShape = function() {
- refShape.constructor.call(this, shape, options, memberName);
- };
- InlineShape.prototype = refShape;
- return new InlineShape();
- } else {
- // set type if not set
- if (!shape.type) {
- if (shape.members) shape.type = 'structure';
- else if (shape.member) shape.type = 'list';
- else if (shape.key) shape.type = 'map';
- else shape.type = 'string';
- }
-
- // normalize types
- var origType = shape.type;
- if (Shape.normalizedTypes[shape.type]) {
- shape.type = Shape.normalizedTypes[shape.type];
- }
-
- if (Shape.types[shape.type]) {
- return new Shape.types[shape.type](shape, options, memberName);
- } else {
- throw new Error('Unrecognized shape type: ' + origType);
- }
- }
-};
-
-function CompositeShape(shape) {
- Shape.apply(this, arguments);
- property(this, 'isComposite', true);
-
- if (shape.flattened) {
- property(this, 'flattened', shape.flattened || false);
- }
-}
-
-function StructureShape(shape, options) {
- var self = this;
- var requiredMap = null, firstInit = !this.isShape;
-
- CompositeShape.apply(this, arguments);
-
- if (firstInit) {
- property(this, 'defaultValue', function() { return {}; });
- property(this, 'members', {});
- property(this, 'memberNames', []);
- property(this, 'required', []);
- property(this, 'isRequired', function() { return false; });
- property(this, 'isDocument', Boolean(shape.document));
- }
-
- if (shape.members) {
- property(this, 'members', new Collection(shape.members, options, function(name, member) {
- return Shape.create(member, options, name);
- }));
- memoizedProperty(this, 'memberNames', function() {
- return shape.xmlOrder || Object.keys(shape.members);
- });
-
- if (shape.event) {
- memoizedProperty(this, 'eventPayloadMemberName', function() {
- var members = self.members;
- var memberNames = self.memberNames;
- // iterate over members to find ones that are event payloads
- for (var i = 0, iLen = memberNames.length; i < iLen; i++) {
- if (members[memberNames[i]].isEventPayload) {
- return memberNames[i];
- }
- }
- });
-
- memoizedProperty(this, 'eventHeaderMemberNames', function() {
- var members = self.members;
- var memberNames = self.memberNames;
- var eventHeaderMemberNames = [];
- // iterate over members to find ones that are event headers
- for (var i = 0, iLen = memberNames.length; i < iLen; i++) {
- if (members[memberNames[i]].isEventHeader) {
- eventHeaderMemberNames.push(memberNames[i]);
- }
- }
- return eventHeaderMemberNames;
- });
- }
- }
-
- if (shape.required) {
- property(this, 'required', shape.required);
- property(this, 'isRequired', function(name) {
- if (!requiredMap) {
- requiredMap = {};
- for (var i = 0; i < shape.required.length; i++) {
- requiredMap[shape.required[i]] = true;
- }
- }
-
- return requiredMap[name];
- }, false, true);
- }
-
- property(this, 'resultWrapper', shape.resultWrapper || null);
-
- if (shape.payload) {
- property(this, 'payload', shape.payload);
- }
-
- if (typeof shape.xmlNamespace === 'string') {
- property(this, 'xmlNamespaceUri', shape.xmlNamespace);
- } else if (typeof shape.xmlNamespace === 'object') {
- property(this, 'xmlNamespacePrefix', shape.xmlNamespace.prefix);
- property(this, 'xmlNamespaceUri', shape.xmlNamespace.uri);
- }
-}
-
-function ListShape(shape, options) {
- var self = this, firstInit = !this.isShape;
- CompositeShape.apply(this, arguments);
-
- if (firstInit) {
- property(this, 'defaultValue', function() { return []; });
- }
-
- if (shape.member) {
- memoizedProperty(this, 'member', function() {
- return Shape.create(shape.member, options);
- });
- }
-
- if (this.flattened) {
- var oldName = this.name;
- memoizedProperty(this, 'name', function() {
- return self.member.name || oldName;
- });
- }
-}
-
-function MapShape(shape, options) {
- var firstInit = !this.isShape;
- CompositeShape.apply(this, arguments);
-
- if (firstInit) {
- property(this, 'defaultValue', function() { return {}; });
- property(this, 'key', Shape.create({type: 'string'}, options));
- property(this, 'value', Shape.create({type: 'string'}, options));
- }
-
- if (shape.key) {
- memoizedProperty(this, 'key', function() {
- return Shape.create(shape.key, options);
- });
- }
- if (shape.value) {
- memoizedProperty(this, 'value', function() {
- return Shape.create(shape.value, options);
- });
- }
-}
-
-function TimestampShape(shape) {
- var self = this;
- Shape.apply(this, arguments);
-
- if (shape.timestampFormat) {
- property(this, 'timestampFormat', shape.timestampFormat);
- } else if (self.isTimestampFormatSet && this.timestampFormat) {
- property(this, 'timestampFormat', this.timestampFormat);
- } else if (this.location === 'header') {
- property(this, 'timestampFormat', 'rfc822');
- } else if (this.location === 'querystring') {
- property(this, 'timestampFormat', 'iso8601');
- } else if (this.api) {
- switch (this.api.protocol) {
- case 'json':
- case 'rest-json':
- property(this, 'timestampFormat', 'unixTimestamp');
- break;
- case 'rest-xml':
- case 'query':
- case 'ec2':
- property(this, 'timestampFormat', 'iso8601');
- break;
- }
- }
-
- this.toType = function(value) {
- if (value === null || value === undefined) return null;
- if (typeof value.toUTCString === 'function') return value;
- return typeof value === 'string' || typeof value === 'number' ?
- util.date.parseTimestamp(value) : null;
- };
-
- this.toWireFormat = function(value) {
- return util.date.format(value, self.timestampFormat);
- };
-}
-
-function StringShape() {
- Shape.apply(this, arguments);
-
- var nullLessProtocols = ['rest-xml', 'query', 'ec2'];
- this.toType = function(value) {
- value = this.api && nullLessProtocols.indexOf(this.api.protocol) > -1 ?
- value || '' : value;
- if (this.isJsonValue) {
- return JSON.parse(value);
- }
-
- return value && typeof value.toString === 'function' ?
- value.toString() : value;
- };
-
- this.toWireFormat = function(value) {
- return this.isJsonValue ? JSON.stringify(value) : value;
- };
-}
-
-function FloatShape() {
- Shape.apply(this, arguments);
-
- this.toType = function(value) {
- if (value === null || value === undefined) return null;
- return parseFloat(value);
- };
- this.toWireFormat = this.toType;
-}
-
-function IntegerShape() {
- Shape.apply(this, arguments);
-
- this.toType = function(value) {
- if (value === null || value === undefined) return null;
- return parseInt(value, 10);
- };
- this.toWireFormat = this.toType;
-}
-
-function BinaryShape() {
- Shape.apply(this, arguments);
- this.toType = function(value) {
- var buf = util.base64.decode(value);
- if (this.isSensitive && util.isNode() && typeof util.Buffer.alloc === 'function') {
- /* Node.js can create a Buffer that is not isolated.
- * i.e. buf.byteLength !== buf.buffer.byteLength
- * This means that the sensitive data is accessible to anyone with access to buf.buffer.
- * If this is the node shared Buffer, then other code within this process _could_ find this secret.
- * Copy sensitive data to an isolated Buffer and zero the sensitive data.
- * While this is safe to do here, copying this code somewhere else may produce unexpected results.
- */
- var secureBuf = util.Buffer.alloc(buf.length, buf);
- buf.fill(0);
- buf = secureBuf;
- }
- return buf;
- };
- this.toWireFormat = util.base64.encode;
-}
-
-function Base64Shape() {
- BinaryShape.apply(this, arguments);
-}
-
-function BooleanShape() {
- Shape.apply(this, arguments);
-
- this.toType = function(value) {
- if (typeof value === 'boolean') return value;
- if (value === null || value === undefined) return null;
- return value === 'true';
- };
-}
-
-/**
- * @api private
- */
-Shape.shapes = {
- StructureShape: StructureShape,
- ListShape: ListShape,
- MapShape: MapShape,
- StringShape: StringShape,
- BooleanShape: BooleanShape,
- Base64Shape: Base64Shape
-};
-
-/**
- * @api private
- */
-module.exports = Shape;
-
-
-/***/ }),
-
-/***/ 73639:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = __nccwpck_require__(77985);
-
-var region_utils = __nccwpck_require__(99517);
-var isFipsRegion = region_utils.isFipsRegion;
-var getRealRegion = region_utils.getRealRegion;
-
-util.isBrowser = function() { return false; };
-util.isNode = function() { return true; };
-
-// node.js specific modules
-util.crypto.lib = __nccwpck_require__(6113);
-util.Buffer = (__nccwpck_require__(14300).Buffer);
-util.domain = __nccwpck_require__(13639);
-util.stream = __nccwpck_require__(12781);
-util.url = __nccwpck_require__(57310);
-util.querystring = __nccwpck_require__(63477);
-util.environment = 'nodejs';
-util.createEventStream = util.stream.Readable ?
- (__nccwpck_require__(69643).createEventStream) : (__nccwpck_require__(63727).createEventStream);
-util.realClock = __nccwpck_require__(81370);
-util.clientSideMonitoring = {
- Publisher: (__nccwpck_require__(66807).Publisher),
- configProvider: __nccwpck_require__(91822),
-};
-util.iniLoader = (__nccwpck_require__(29697)/* .iniLoader */ .b);
-util.getSystemErrorName = (__nccwpck_require__(73837).getSystemErrorName);
-
-util.loadConfig = function(options) {
- var envValue = options.environmentVariableSelector(process.env);
- if (envValue !== undefined) {
- return envValue;
- }
-
- var configFile = {};
- try {
- configFile = util.iniLoader ? util.iniLoader.loadFrom({
- isConfig: true,
- filename: process.env[util.sharedConfigFileEnv]
- }) : {};
- } catch (e) {}
- var sharedFileConfig = configFile[
- process.env.AWS_PROFILE || util.defaultProfile
- ] || {};
- var configValue = options.configFileSelector(sharedFileConfig);
- if (configValue !== undefined) {
- return configValue;
- }
-
- if (typeof options.default === 'function') {
- return options.default();
- }
- return options.default;
-};
-
-var AWS;
-
-/**
- * @api private
- */
-module.exports = AWS = __nccwpck_require__(28437);
-
-__nccwpck_require__(53819);
-__nccwpck_require__(36965);
-__nccwpck_require__(77360);
-__nccwpck_require__(57083);
-__nccwpck_require__(74998);
-__nccwpck_require__(3498);
-__nccwpck_require__(15037);
-__nccwpck_require__(80371);
-
-// Load the xml2js XML parser
-AWS.XML.Parser = __nccwpck_require__(96752);
-
-// Load Node HTTP client
-__nccwpck_require__(2310);
-
-__nccwpck_require__(95417);
-
-// Load custom credential providers
-__nccwpck_require__(11017);
-__nccwpck_require__(73379);
-__nccwpck_require__(88764);
-__nccwpck_require__(10645);
-__nccwpck_require__(57714);
-__nccwpck_require__(27454);
-__nccwpck_require__(13754);
-__nccwpck_require__(80371);
-__nccwpck_require__(68335);
-
-// Setup default providers for credentials chain
-// If this changes, please update documentation for
-// AWS.CredentialProviderChain.defaultProviders in
-// credentials/credential_provider_chain.js
-AWS.CredentialProviderChain.defaultProviders = [
- function () { return new AWS.EnvironmentCredentials('AWS'); },
- function () { return new AWS.EnvironmentCredentials('AMAZON'); },
- function () { return new AWS.SsoCredentials(); },
- function () { return new AWS.SharedIniFileCredentials(); },
- function () { return new AWS.ECSCredentials(); },
- function () { return new AWS.ProcessCredentials(); },
- function () { return new AWS.TokenFileWebIdentityCredentials(); },
- function () { return new AWS.EC2MetadataCredentials(); }
-];
-
-// Load custom token providers
-__nccwpck_require__(82647);
-__nccwpck_require__(50126);
-__nccwpck_require__(90327);
-
-// Setup default providers for token chain
-// If this changes, please update documentation for
-// AWS.TokenProviderChain.defaultProviders in
-// token/token_provider_chain.js
-AWS.TokenProviderChain.defaultProviders = [
- function () { return new AWS.SSOTokenProvider(); },
-];
-
-var getRegion = function() {
- var env = process.env;
- var region = env.AWS_REGION || env.AMAZON_REGION;
- if (env[AWS.util.configOptInEnv]) {
- var toCheck = [
- {filename: env[AWS.util.sharedCredentialsFileEnv]},
- {isConfig: true, filename: env[AWS.util.sharedConfigFileEnv]}
- ];
- var iniLoader = AWS.util.iniLoader;
- while (!region && toCheck.length) {
- var configFile = {};
- var fileInfo = toCheck.shift();
- try {
- configFile = iniLoader.loadFrom(fileInfo);
- } catch (err) {
- if (fileInfo.isConfig) throw err;
- }
- var profile = configFile[env.AWS_PROFILE || AWS.util.defaultProfile];
- region = profile && profile.region;
- }
- }
- return region;
-};
-
-var getBooleanValue = function(value) {
- return value === 'true' ? true: value === 'false' ? false: undefined;
-};
-
-var USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
- environmentVariableSelector: function(env) {
- return getBooleanValue(env['AWS_USE_FIPS_ENDPOINT']);
- },
- configFileSelector: function(profile) {
- return getBooleanValue(profile['use_fips_endpoint']);
- },
- default: false,
-};
-
-var USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
- environmentVariableSelector: function(env) {
- return getBooleanValue(env['AWS_USE_DUALSTACK_ENDPOINT']);
- },
- configFileSelector: function(profile) {
- return getBooleanValue(profile['use_dualstack_endpoint']);
- },
- default: false,
-};
-
-// Update configuration keys
-AWS.util.update(AWS.Config.prototype.keys, {
- credentials: function () {
- var credentials = null;
- new AWS.CredentialProviderChain([
- function () { return new AWS.EnvironmentCredentials('AWS'); },
- function () { return new AWS.EnvironmentCredentials('AMAZON'); },
- function () { return new AWS.SharedIniFileCredentials({ disableAssumeRole: true }); }
- ]).resolve(function(err, creds) {
- if (!err) credentials = creds;
- });
- return credentials;
- },
- credentialProvider: function() {
- return new AWS.CredentialProviderChain();
- },
- logger: function () {
- return process.env.AWSJS_DEBUG ? console : null;
- },
- region: function() {
- var region = getRegion();
- return region ? getRealRegion(region): undefined;
- },
- tokenProvider: function() {
- return new AWS.TokenProviderChain();
- },
- useFipsEndpoint: function() {
- var region = getRegion();
- return isFipsRegion(region)
- ? true
- : util.loadConfig(USE_FIPS_ENDPOINT_CONFIG_OPTIONS);
- },
- useDualstackEndpoint: function() {
- return util.loadConfig(USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS);
- }
-});
-
-// Reset configuration
-AWS.config = new AWS.Config();
-
-
-/***/ }),
-
-/***/ 99127:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-
-/**
- * @api private
- */
-AWS.ParamValidator = AWS.util.inherit({
- /**
- * Create a new validator object.
- *
- * @param validation [Boolean|map] whether input parameters should be
- * validated against the operation description before sending the
- * request. Pass a map to enable any of the following specific
- * validation features:
- *
- * * **min** [Boolean] — Validates that a value meets the min
- * constraint. This is enabled by default when paramValidation is set
- * to `true`.
- * * **max** [Boolean] — Validates that a value meets the max
- * constraint.
- * * **pattern** [Boolean] — Validates that a string value matches a
- * regular expression.
- * * **enum** [Boolean] — Validates that a string value matches one
- * of the allowable enum values.
- */
- constructor: function ParamValidator(validation) {
- if (validation === true || validation === undefined) {
- validation = {'min': true};
- }
- this.validation = validation;
- },
-
- validate: function validate(shape, params, context) {
- this.errors = [];
- this.validateMember(shape, params || {}, context || 'params');
-
- if (this.errors.length > 1) {
- var msg = this.errors.join('\n* ');
- msg = 'There were ' + this.errors.length +
- ' validation errors:\n* ' + msg;
- throw AWS.util.error(new Error(msg),
- {code: 'MultipleValidationErrors', errors: this.errors});
- } else if (this.errors.length === 1) {
- throw this.errors[0];
- } else {
- return true;
- }
- },
-
- fail: function fail(code, message) {
- this.errors.push(AWS.util.error(new Error(message), {code: code}));
- },
-
- validateStructure: function validateStructure(shape, params, context) {
- if (shape.isDocument) return true;
-
- this.validateType(params, context, ['object'], 'structure');
- var paramName;
- for (var i = 0; shape.required && i < shape.required.length; i++) {
- paramName = shape.required[i];
- var value = params[paramName];
- if (value === undefined || value === null) {
- this.fail('MissingRequiredParameter',
- 'Missing required key \'' + paramName + '\' in ' + context);
- }
- }
-
- // validate hash members
- for (paramName in params) {
- if (!Object.prototype.hasOwnProperty.call(params, paramName)) continue;
-
- var paramValue = params[paramName],
- memberShape = shape.members[paramName];
-
- if (memberShape !== undefined) {
- var memberContext = [context, paramName].join('.');
- this.validateMember(memberShape, paramValue, memberContext);
- } else if (paramValue !== undefined && paramValue !== null) {
- this.fail('UnexpectedParameter',
- 'Unexpected key \'' + paramName + '\' found in ' + context);
- }
- }
-
- return true;
- },
-
- validateMember: function validateMember(shape, param, context) {
- switch (shape.type) {
- case 'structure':
- return this.validateStructure(shape, param, context);
- case 'list':
- return this.validateList(shape, param, context);
- case 'map':
- return this.validateMap(shape, param, context);
- default:
- return this.validateScalar(shape, param, context);
- }
- },
-
- validateList: function validateList(shape, params, context) {
- if (this.validateType(params, context, [Array])) {
- this.validateRange(shape, params.length, context, 'list member count');
- // validate array members
- for (var i = 0; i < params.length; i++) {
- this.validateMember(shape.member, params[i], context + '[' + i + ']');
- }
- }
- },
-
- validateMap: function validateMap(shape, params, context) {
- if (this.validateType(params, context, ['object'], 'map')) {
- // Build up a count of map members to validate range traits.
- var mapCount = 0;
- for (var param in params) {
- if (!Object.prototype.hasOwnProperty.call(params, param)) continue;
- // Validate any map key trait constraints
- this.validateMember(shape.key, param,
- context + '[key=\'' + param + '\']');
- this.validateMember(shape.value, params[param],
- context + '[\'' + param + '\']');
- mapCount++;
- }
- this.validateRange(shape, mapCount, context, 'map member count');
- }
- },
-
- validateScalar: function validateScalar(shape, value, context) {
- switch (shape.type) {
- case null:
- case undefined:
- case 'string':
- return this.validateString(shape, value, context);
- case 'base64':
- case 'binary':
- return this.validatePayload(value, context);
- case 'integer':
- case 'float':
- return this.validateNumber(shape, value, context);
- case 'boolean':
- return this.validateType(value, context, ['boolean']);
- case 'timestamp':
- return this.validateType(value, context, [Date,
- /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/, 'number'],
- 'Date object, ISO-8601 string, or a UNIX timestamp');
- default:
- return this.fail('UnkownType', 'Unhandled type ' +
- shape.type + ' for ' + context);
- }
- },
-
- validateString: function validateString(shape, value, context) {
- var validTypes = ['string'];
- if (shape.isJsonValue) {
- validTypes = validTypes.concat(['number', 'object', 'boolean']);
- }
- if (value !== null && this.validateType(value, context, validTypes)) {
- this.validateEnum(shape, value, context);
- this.validateRange(shape, value.length, context, 'string length');
- this.validatePattern(shape, value, context);
- this.validateUri(shape, value, context);
- }
- },
-
- validateUri: function validateUri(shape, value, context) {
- if (shape['location'] === 'uri') {
- if (value.length === 0) {
- this.fail('UriParameterError', 'Expected uri parameter to have length >= 1,'
- + ' but found "' + value +'" for ' + context);
- }
- }
- },
-
- validatePattern: function validatePattern(shape, value, context) {
- if (this.validation['pattern'] && shape['pattern'] !== undefined) {
- if (!(new RegExp(shape['pattern'])).test(value)) {
- this.fail('PatternMatchError', 'Provided value "' + value + '" '
- + 'does not match regex pattern /' + shape['pattern'] + '/ for '
- + context);
- }
- }
- },
-
- validateRange: function validateRange(shape, value, context, descriptor) {
- if (this.validation['min']) {
- if (shape['min'] !== undefined && value < shape['min']) {
- this.fail('MinRangeError', 'Expected ' + descriptor + ' >= '
- + shape['min'] + ', but found ' + value + ' for ' + context);
- }
- }
- if (this.validation['max']) {
- if (shape['max'] !== undefined && value > shape['max']) {
- this.fail('MaxRangeError', 'Expected ' + descriptor + ' <= '
- + shape['max'] + ', but found ' + value + ' for ' + context);
- }
- }
- },
-
- validateEnum: function validateRange(shape, value, context) {
- if (this.validation['enum'] && shape['enum'] !== undefined) {
- // Fail if the string value is not present in the enum list
- if (shape['enum'].indexOf(value) === -1) {
- this.fail('EnumError', 'Found string value of ' + value + ', but '
- + 'expected ' + shape['enum'].join('|') + ' for ' + context);
- }
- }
- },
-
- validateType: function validateType(value, context, acceptedTypes, type) {
- // We will not log an error for null or undefined, but we will return
- // false so that callers know that the expected type was not strictly met.
- if (value === null || value === undefined) return false;
-
- var foundInvalidType = false;
- for (var i = 0; i < acceptedTypes.length; i++) {
- if (typeof acceptedTypes[i] === 'string') {
- if (typeof value === acceptedTypes[i]) return true;
- } else if (acceptedTypes[i] instanceof RegExp) {
- if ((value || '').toString().match(acceptedTypes[i])) return true;
- } else {
- if (value instanceof acceptedTypes[i]) return true;
- if (AWS.util.isType(value, acceptedTypes[i])) return true;
- if (!type && !foundInvalidType) acceptedTypes = acceptedTypes.slice();
- acceptedTypes[i] = AWS.util.typeName(acceptedTypes[i]);
- }
- foundInvalidType = true;
- }
-
- var acceptedType = type;
- if (!acceptedType) {
- acceptedType = acceptedTypes.join(', ').replace(/,([^,]+)$/, ', or$1');
- }
-
- var vowel = acceptedType.match(/^[aeiou]/i) ? 'n' : '';
- this.fail('InvalidParameterType', 'Expected ' + context + ' to be a' +
- vowel + ' ' + acceptedType);
- return false;
- },
-
- validateNumber: function validateNumber(shape, value, context) {
- if (value === null || value === undefined) return;
- if (typeof value === 'string') {
- var castedValue = parseFloat(value);
- if (castedValue.toString() === value) value = castedValue;
- }
- if (this.validateType(value, context, ['number'])) {
- this.validateRange(shape, value, context, 'numeric value');
- }
- },
-
- validatePayload: function validatePayload(value, context) {
- if (value === null || value === undefined) return;
- if (typeof value === 'string') return;
- if (value && typeof value.byteLength === 'number') return; // typed arrays
- if (AWS.util.isNode()) { // special check for buffer/stream in Node.js
- var Stream = AWS.util.stream.Stream;
- if (AWS.util.Buffer.isBuffer(value) || value instanceof Stream) return;
- } else {
- if (typeof Blob !== void 0 && value instanceof Blob) return;
- }
-
- var types = ['Buffer', 'Stream', 'File', 'Blob', 'ArrayBuffer', 'DataView'];
- if (value) {
- for (var i = 0; i < types.length; i++) {
- if (AWS.util.isType(value, types[i])) return;
- if (AWS.util.typeName(value.constructor) === types[i]) return;
- }
- }
-
- this.fail('InvalidParameterType', 'Expected ' + context + ' to be a ' +
- 'string, Buffer, Stream, Blob, or typed array object');
- }
-});
-
-
-/***/ }),
-
-/***/ 44086:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var rest = AWS.Protocol.Rest;
-
-/**
- * A presigner object can be used to generate presigned urls for the Polly service.
- */
-AWS.Polly.Presigner = AWS.util.inherit({
- /**
- * Creates a presigner object with a set of configuration options.
- *
- * @option options params [map] An optional map of parameters to bind to every
- * request sent by this service object.
- * @option options service [AWS.Polly] An optional pre-configured instance
- * of the AWS.Polly service object to use for requests. The object may
- * bound parameters used by the presigner.
- * @see AWS.Polly.constructor
- */
- constructor: function Signer(options) {
- options = options || {};
- this.options = options;
- this.service = options.service;
- this.bindServiceObject(options);
- this._operations = {};
- },
-
- /**
- * @api private
- */
- bindServiceObject: function bindServiceObject(options) {
- options = options || {};
- if (!this.service) {
- this.service = new AWS.Polly(options);
- } else {
- var config = AWS.util.copy(this.service.config);
- this.service = new this.service.constructor.__super__(config);
- this.service.config.params = AWS.util.merge(this.service.config.params || {}, options.params);
- }
- },
-
- /**
- * @api private
- */
- modifyInputMembers: function modifyInputMembers(input) {
- // make copies of the input so we don't overwrite the api
- // need to be careful to copy anything we access/modify
- var modifiedInput = AWS.util.copy(input);
- modifiedInput.members = AWS.util.copy(input.members);
- AWS.util.each(input.members, function(name, member) {
- modifiedInput.members[name] = AWS.util.copy(member);
- // update location and locationName
- if (!member.location || member.location === 'body') {
- modifiedInput.members[name].location = 'querystring';
- modifiedInput.members[name].locationName = name;
- }
- });
- return modifiedInput;
- },
-
- /**
- * @api private
- */
- convertPostToGet: function convertPostToGet(req) {
- // convert method
- req.httpRequest.method = 'GET';
-
- var operation = req.service.api.operations[req.operation];
- // get cached operation input first
- var input = this._operations[req.operation];
- if (!input) {
- // modify the original input
- this._operations[req.operation] = input = this.modifyInputMembers(operation.input);
- }
-
- var uri = rest.generateURI(req.httpRequest.endpoint.path, operation.httpPath, input, req.params);
-
- req.httpRequest.path = uri;
- req.httpRequest.body = '';
-
- // don't need these headers on a GET request
- delete req.httpRequest.headers['Content-Length'];
- delete req.httpRequest.headers['Content-Type'];
- },
-
- /**
- * @overload getSynthesizeSpeechUrl(params = {}, [expires = 3600], [callback])
- * Generate a presigned url for {AWS.Polly.synthesizeSpeech}.
- * @note You must ensure that you have static or previously resolved
- * credentials if you call this method synchronously (with no callback),
- * otherwise it may not properly sign the request. If you cannot guarantee
- * this (you are using an asynchronous credential provider, i.e., EC2
- * IAM roles), you should always call this method with an asynchronous
- * callback.
- * @param params [map] parameters to pass to the operation. See the {AWS.Polly.synthesizeSpeech}
- * operation for the expected operation parameters.
- * @param expires [Integer] (3600) the number of seconds to expire the pre-signed URL operation in.
- * Defaults to 1 hour.
- * @return [string] if called synchronously (with no callback), returns the signed URL.
- * @return [null] nothing is returned if a callback is provided.
- * @callback callback function (err, url)
- * If a callback is supplied, it is called when a signed URL has been generated.
- * @param err [Error] the error object returned from the presigner.
- * @param url [String] the signed URL.
- * @see AWS.Polly.synthesizeSpeech
- */
- getSynthesizeSpeechUrl: function getSynthesizeSpeechUrl(params, expires, callback) {
- var self = this;
- var request = this.service.makeRequest('synthesizeSpeech', params);
- // remove existing build listeners
- request.removeAllListeners('build');
- request.on('build', function(req) {
- self.convertPostToGet(req);
- });
- return request.presign(expires, callback);
- }
-});
-
-
-/***/ }),
-
-/***/ 97969:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = __nccwpck_require__(77985);
-var AWS = __nccwpck_require__(28437);
-
-/**
- * Prepend prefix defined by API model to endpoint that's already
- * constructed. This feature does not apply to operations using
- * endpoint discovery and can be disabled.
- * @api private
- */
-function populateHostPrefix(request) {
- var enabled = request.service.config.hostPrefixEnabled;
- if (!enabled) return request;
- var operationModel = request.service.api.operations[request.operation];
- //don't marshal host prefix when operation has endpoint discovery traits
- if (hasEndpointDiscover(request)) return request;
- if (operationModel.endpoint && operationModel.endpoint.hostPrefix) {
- var hostPrefixNotation = operationModel.endpoint.hostPrefix;
- var hostPrefix = expandHostPrefix(hostPrefixNotation, request.params, operationModel.input);
- prependEndpointPrefix(request.httpRequest.endpoint, hostPrefix);
- validateHostname(request.httpRequest.endpoint.hostname);
- }
- return request;
-}
-
-/**
- * @api private
- */
-function hasEndpointDiscover(request) {
- var api = request.service.api;
- var operationModel = api.operations[request.operation];
- var isEndpointOperation = api.endpointOperation && (api.endpointOperation === util.string.lowerFirst(operationModel.name));
- return (operationModel.endpointDiscoveryRequired !== 'NULL' || isEndpointOperation === true);
-}
-
-/**
- * @api private
- */
-function expandHostPrefix(hostPrefixNotation, params, shape) {
- util.each(shape.members, function(name, member) {
- if (member.hostLabel === true) {
- if (typeof params[name] !== 'string' || params[name] === '') {
- throw util.error(new Error(), {
- message: 'Parameter ' + name + ' should be a non-empty string.',
- code: 'InvalidParameter'
- });
- }
- var regex = new RegExp('\\{' + name + '\\}', 'g');
- hostPrefixNotation = hostPrefixNotation.replace(regex, params[name]);
- }
- });
- return hostPrefixNotation;
-}
-
-/**
- * @api private
- */
-function prependEndpointPrefix(endpoint, prefix) {
- if (endpoint.host) {
- endpoint.host = prefix + endpoint.host;
- }
- if (endpoint.hostname) {
- endpoint.hostname = prefix + endpoint.hostname;
- }
-}
-
-/**
- * @api private
- */
-function validateHostname(hostname) {
- var labels = hostname.split('.');
- //Reference: https://tools.ietf.org/html/rfc1123#section-2
- var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;
- util.arrayEach(labels, function(label) {
- if (!label.length || label.length < 1 || label.length > 63) {
- throw util.error(new Error(), {
- code: 'ValidationError',
- message: 'Hostname label length should be between 1 to 63 characters, inclusive.'
- });
- }
- if (!hostPattern.test(label)) {
- throw AWS.util.error(new Error(),
- {code: 'ValidationError', message: label + ' is not hostname compatible.'});
- }
- });
-}
-
-module.exports = {
- populateHostPrefix: populateHostPrefix
-};
-
-
-/***/ }),
-
-/***/ 30083:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = __nccwpck_require__(77985);
-var JsonBuilder = __nccwpck_require__(47495);
-var JsonParser = __nccwpck_require__(5474);
-var populateHostPrefix = (__nccwpck_require__(97969).populateHostPrefix);
-
-function buildRequest(req) {
- var httpRequest = req.httpRequest;
- var api = req.service.api;
- var target = api.targetPrefix + '.' + api.operations[req.operation].name;
- var version = api.jsonVersion || '1.0';
- var input = api.operations[req.operation].input;
- var builder = new JsonBuilder();
-
- if (version === 1) version = '1.0';
-
- if (api.awsQueryCompatible) {
- if (!httpRequest.params) {
- httpRequest.params = {};
- }
- // because Query protocol does this.
- Object.assign(httpRequest.params, req.params);
- }
-
- httpRequest.body = builder.build(req.params || {}, input);
- httpRequest.headers['Content-Type'] = 'application/x-amz-json-' + version;
- httpRequest.headers['X-Amz-Target'] = target;
-
- populateHostPrefix(req);
-}
-
-function extractError(resp) {
- var error = {};
- var httpResponse = resp.httpResponse;
-
- error.code = httpResponse.headers['x-amzn-errortype'] || 'UnknownError';
- if (typeof error.code === 'string') {
- error.code = error.code.split(':')[0];
- }
-
- if (httpResponse.body.length > 0) {
- try {
- var e = JSON.parse(httpResponse.body.toString());
-
- var code = e.__type || e.code || e.Code;
- if (code) {
- error.code = code.split('#').pop();
- }
- if (error.code === 'RequestEntityTooLarge') {
- error.message = 'Request body must be less than 1 MB';
- } else {
- error.message = (e.message || e.Message || null);
- }
-
- // The minimized models do not have error shapes, so
- // without expanding the model size, it's not possible
- // to validate the response shape (members) or
- // check if any are sensitive to logging.
-
- // Assign the fields as non-enumerable, allowing specific access only.
- for (var key in e || {}) {
- if (key === 'code' || key === 'message') {
- continue;
- }
- error['[' + key + ']'] = 'See error.' + key + ' for details.';
- Object.defineProperty(error, key, {
- value: e[key],
- enumerable: false,
- writable: true
- });
- }
- } catch (e) {
- error.statusCode = httpResponse.statusCode;
- error.message = httpResponse.statusMessage;
- }
- } else {
- error.statusCode = httpResponse.statusCode;
- error.message = httpResponse.statusCode.toString();
- }
-
- resp.error = util.error(new Error(), error);
-}
-
-function extractData(resp) {
- var body = resp.httpResponse.body.toString() || '{}';
- if (resp.request.service.config.convertResponseTypes === false) {
- resp.data = JSON.parse(body);
- } else {
- var operation = resp.request.service.api.operations[resp.request.operation];
- var shape = operation.output || {};
- var parser = new JsonParser();
- resp.data = parser.parse(body, shape);
- }
-}
-
-/**
- * @api private
- */
-module.exports = {
- buildRequest: buildRequest,
- extractError: extractError,
- extractData: extractData
-};
-
-
-/***/ }),
-
-/***/ 90761:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var util = __nccwpck_require__(77985);
-var QueryParamSerializer = __nccwpck_require__(45175);
-var Shape = __nccwpck_require__(71349);
-var populateHostPrefix = (__nccwpck_require__(97969).populateHostPrefix);
-
-function buildRequest(req) {
- var operation = req.service.api.operations[req.operation];
- var httpRequest = req.httpRequest;
- httpRequest.headers['Content-Type'] =
- 'application/x-www-form-urlencoded; charset=utf-8';
- httpRequest.params = {
- Version: req.service.api.apiVersion,
- Action: operation.name
- };
-
- // convert the request parameters into a list of query params,
- // e.g. Deeply.NestedParam.0.Name=value
- var builder = new QueryParamSerializer();
- builder.serialize(req.params, operation.input, function(name, value) {
- httpRequest.params[name] = value;
- });
- httpRequest.body = util.queryParamsToString(httpRequest.params);
-
- populateHostPrefix(req);
-}
-
-function extractError(resp) {
- var data, body = resp.httpResponse.body.toString();
- if (body.match(' {
-
-var util = __nccwpck_require__(77985);
-var populateHostPrefix = (__nccwpck_require__(97969).populateHostPrefix);
-
-function populateMethod(req) {
- req.httpRequest.method = req.service.api.operations[req.operation].httpMethod;
-}
-
-function generateURI(endpointPath, operationPath, input, params) {
- var uri = [endpointPath, operationPath].join('/');
- uri = uri.replace(/\/+/g, '/');
-
- var queryString = {}, queryStringSet = false;
- util.each(input.members, function (name, member) {
- var paramValue = params[name];
- if (paramValue === null || paramValue === undefined) return;
- if (member.location === 'uri') {
- var regex = new RegExp('\\{' + member.name + '(\\+)?\\}');
- uri = uri.replace(regex, function(_, plus) {
- var fn = plus ? util.uriEscapePath : util.uriEscape;
- return fn(String(paramValue));
- });
- } else if (member.location === 'querystring') {
- queryStringSet = true;
-
- if (member.type === 'list') {
- queryString[member.name] = paramValue.map(function(val) {
- return util.uriEscape(member.member.toWireFormat(val).toString());
- });
- } else if (member.type === 'map') {
- util.each(paramValue, function(key, value) {
- if (Array.isArray(value)) {
- queryString[key] = value.map(function(val) {
- return util.uriEscape(String(val));
- });
- } else {
- queryString[key] = util.uriEscape(String(value));
- }
- });
- } else {
- queryString[member.name] = util.uriEscape(member.toWireFormat(paramValue).toString());
- }
- }
- });
-
- if (queryStringSet) {
- uri += (uri.indexOf('?') >= 0 ? '&' : '?');
- var parts = [];
- util.arrayEach(Object.keys(queryString).sort(), function(key) {
- if (!Array.isArray(queryString[key])) {
- queryString[key] = [queryString[key]];
- }
- for (var i = 0; i < queryString[key].length; i++) {
- parts.push(util.uriEscape(String(key)) + '=' + queryString[key][i]);
- }
- });
- uri += parts.join('&');
- }
-
- return uri;
-}
-
-function populateURI(req) {
- var operation = req.service.api.operations[req.operation];
- var input = operation.input;
-
- var uri = generateURI(req.httpRequest.endpoint.path, operation.httpPath, input, req.params);
- req.httpRequest.path = uri;
-}
-
-function populateHeaders(req) {
- var operation = req.service.api.operations[req.operation];
- util.each(operation.input.members, function (name, member) {
- var value = req.params[name];
- if (value === null || value === undefined) return;
-
- if (member.location === 'headers' && member.type === 'map') {
- util.each(value, function(key, memberValue) {
- req.httpRequest.headers[member.name + key] = memberValue;
- });
- } else if (member.location === 'header') {
- value = member.toWireFormat(value).toString();
- if (member.isJsonValue) {
- value = util.base64.encode(value);
- }
- req.httpRequest.headers[member.name] = value;
- }
- });
-}
-
-function buildRequest(req) {
- populateMethod(req);
- populateURI(req);
- populateHeaders(req);
- populateHostPrefix(req);
-}
-
-function extractError() {
-}
-
-function extractData(resp) {
- var req = resp.request;
- var data = {};
- var r = resp.httpResponse;
- var operation = req.service.api.operations[req.operation];
- var output = operation.output;
-
- // normalize headers names to lower-cased keys for matching
- var headers = {};
- util.each(r.headers, function (k, v) {
- headers[k.toLowerCase()] = v;
- });
-
- util.each(output.members, function(name, member) {
- var header = (member.name || name).toLowerCase();
- if (member.location === 'headers' && member.type === 'map') {
- data[name] = {};
- var location = member.isLocationName ? member.name : '';
- var pattern = new RegExp('^' + location + '(.+)', 'i');
- util.each(r.headers, function (k, v) {
- var result = k.match(pattern);
- if (result !== null) {
- data[name][result[1]] = v;
- }
- });
- } else if (member.location === 'header') {
- if (headers[header] !== undefined) {
- var value = member.isJsonValue ?
- util.base64.decode(headers[header]) :
- headers[header];
- data[name] = member.toType(value);
- }
- } else if (member.location === 'statusCode') {
- data[name] = parseInt(r.statusCode, 10);
- }
- });
-
- resp.data = data;
-}
-
-/**
- * @api private
- */
-module.exports = {
- buildRequest: buildRequest,
- extractError: extractError,
- extractData: extractData,
- generateURI: generateURI
-};
-
-
-/***/ }),
-
-/***/ 5883:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = __nccwpck_require__(77985);
-var Rest = __nccwpck_require__(98200);
-var Json = __nccwpck_require__(30083);
-var JsonBuilder = __nccwpck_require__(47495);
-var JsonParser = __nccwpck_require__(5474);
-
-var METHODS_WITHOUT_BODY = ['GET', 'HEAD', 'DELETE'];
-
-function unsetContentLength(req) {
- var payloadMember = util.getRequestPayloadShape(req);
- if (
- payloadMember === undefined &&
- METHODS_WITHOUT_BODY.indexOf(req.httpRequest.method) >= 0
- ) {
- delete req.httpRequest.headers['Content-Length'];
- }
-}
-
-function populateBody(req) {
- var builder = new JsonBuilder();
- var input = req.service.api.operations[req.operation].input;
-
- if (input.payload) {
- var params = {};
- var payloadShape = input.members[input.payload];
- params = req.params[input.payload];
-
- if (payloadShape.type === 'structure') {
- req.httpRequest.body = builder.build(params || {}, payloadShape);
- applyContentTypeHeader(req);
- } else if (params !== undefined) {
- // non-JSON payload
- req.httpRequest.body = params;
- if (payloadShape.type === 'binary' || payloadShape.isStreaming) {
- applyContentTypeHeader(req, true);
- }
- }
- } else {
- req.httpRequest.body = builder.build(req.params, input);
- applyContentTypeHeader(req);
- }
-}
-
-function applyContentTypeHeader(req, isBinary) {
- if (!req.httpRequest.headers['Content-Type']) {
- var type = isBinary ? 'binary/octet-stream' : 'application/json';
- req.httpRequest.headers['Content-Type'] = type;
- }
-}
-
-function buildRequest(req) {
- Rest.buildRequest(req);
-
- // never send body payload on GET/HEAD/DELETE
- if (METHODS_WITHOUT_BODY.indexOf(req.httpRequest.method) < 0) {
- populateBody(req);
- }
-}
-
-function extractError(resp) {
- Json.extractError(resp);
-}
-
-function extractData(resp) {
- Rest.extractData(resp);
-
- var req = resp.request;
- var operation = req.service.api.operations[req.operation];
- var rules = req.service.api.operations[req.operation].output || {};
- var parser;
- var hasEventOutput = operation.hasEventOutput;
-
- if (rules.payload) {
- var payloadMember = rules.members[rules.payload];
- var body = resp.httpResponse.body;
- if (payloadMember.isEventStream) {
- parser = new JsonParser();
- resp.data[payload] = util.createEventStream(
- AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : body,
- parser,
- payloadMember
- );
- } else if (payloadMember.type === 'structure' || payloadMember.type === 'list') {
- var parser = new JsonParser();
- resp.data[rules.payload] = parser.parse(body, payloadMember);
- } else if (payloadMember.type === 'binary' || payloadMember.isStreaming) {
- resp.data[rules.payload] = body;
- } else {
- resp.data[rules.payload] = payloadMember.toType(body);
- }
- } else {
- var data = resp.data;
- Json.extractData(resp);
- resp.data = util.merge(data, resp.data);
- }
-}
-
-/**
- * @api private
- */
-module.exports = {
- buildRequest: buildRequest,
- extractError: extractError,
- extractData: extractData,
- unsetContentLength: unsetContentLength
-};
-
-
-/***/ }),
-
-/***/ 15143:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var util = __nccwpck_require__(77985);
-var Rest = __nccwpck_require__(98200);
-
-function populateBody(req) {
- var input = req.service.api.operations[req.operation].input;
- var builder = new AWS.XML.Builder();
- var params = req.params;
-
- var payload = input.payload;
- if (payload) {
- var payloadMember = input.members[payload];
- params = params[payload];
- if (params === undefined) return;
-
- if (payloadMember.type === 'structure') {
- var rootElement = payloadMember.name;
- req.httpRequest.body = builder.toXML(params, payloadMember, rootElement, true);
- } else { // non-xml payload
- req.httpRequest.body = params;
- }
- } else {
- req.httpRequest.body = builder.toXML(params, input, input.name ||
- input.shape || util.string.upperFirst(req.operation) + 'Request');
- }
-}
-
-function buildRequest(req) {
- Rest.buildRequest(req);
-
- // never send body payload on GET/HEAD
- if (['GET', 'HEAD'].indexOf(req.httpRequest.method) < 0) {
- populateBody(req);
- }
-}
-
-function extractError(resp) {
- Rest.extractError(resp);
-
- var data;
- try {
- data = new AWS.XML.Parser().parse(resp.httpResponse.body.toString());
- } catch (e) {
- data = {
- Code: resp.httpResponse.statusCode,
- Message: resp.httpResponse.statusMessage
- };
- }
-
- if (data.Errors) data = data.Errors;
- if (data.Error) data = data.Error;
- if (data.Code) {
- resp.error = util.error(new Error(), {
- code: data.Code,
- message: data.Message
- });
- } else {
- resp.error = util.error(new Error(), {
- code: resp.httpResponse.statusCode,
- message: null
- });
- }
-}
-
-function extractData(resp) {
- Rest.extractData(resp);
-
- var parser;
- var req = resp.request;
- var body = resp.httpResponse.body;
- var operation = req.service.api.operations[req.operation];
- var output = operation.output;
-
- var hasEventOutput = operation.hasEventOutput;
-
- var payload = output.payload;
- if (payload) {
- var payloadMember = output.members[payload];
- if (payloadMember.isEventStream) {
- parser = new AWS.XML.Parser();
- resp.data[payload] = util.createEventStream(
- AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : resp.httpResponse.body,
- parser,
- payloadMember
- );
- } else if (payloadMember.type === 'structure') {
- parser = new AWS.XML.Parser();
- resp.data[payload] = parser.parse(body.toString(), payloadMember);
- } else if (payloadMember.type === 'binary' || payloadMember.isStreaming) {
- resp.data[payload] = body;
- } else {
- resp.data[payload] = payloadMember.toType(body);
- }
- } else if (body.length > 0) {
- parser = new AWS.XML.Parser();
- var data = parser.parse(body.toString(), output);
- util.update(resp.data, data);
- }
-}
-
-/**
- * @api private
- */
-module.exports = {
- buildRequest: buildRequest,
- extractError: extractError,
- extractData: extractData
-};
-
-
-/***/ }),
-
-/***/ 91822:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-
-/**
- * Resolve client-side monitoring configuration from either environmental variables
- * or shared config file. Configurations from environmental variables have higher priority
- * than those from shared config file. The resolver will try to read the shared config file
- * no matter whether the AWS_SDK_LOAD_CONFIG variable is set.
- * @api private
- */
-function resolveMonitoringConfig() {
- var config = {
- port: undefined,
- clientId: undefined,
- enabled: undefined,
- host: undefined
- };
- if (fromEnvironment(config) || fromConfigFile(config)) return toJSType(config);
- return toJSType(config);
-}
-
-/**
- * Resolve configurations from environmental variables.
- * @param {object} client side monitoring config object needs to be resolved
- * @returns {boolean} whether resolving configurations is done
- * @api private
- */
-function fromEnvironment(config) {
- config.port = config.port || process.env.AWS_CSM_PORT;
- config.enabled = config.enabled || process.env.AWS_CSM_ENABLED;
- config.clientId = config.clientId || process.env.AWS_CSM_CLIENT_ID;
- config.host = config.host || process.env.AWS_CSM_HOST;
- return config.port && config.enabled && config.clientId && config.host ||
- ['false', '0'].indexOf(config.enabled) >= 0; //no need to read shared config file if explicitely disabled
-}
-
-/**
- * Resolve cofigurations from shared config file with specified role name
- * @param {object} client side monitoring config object needs to be resolved
- * @returns {boolean} whether resolving configurations is done
- * @api private
- */
-function fromConfigFile(config) {
- var sharedFileConfig;
- try {
- var configFile = AWS.util.iniLoader.loadFrom({
- isConfig: true,
- filename: process.env[AWS.util.sharedConfigFileEnv]
- });
- var sharedFileConfig = configFile[
- process.env.AWS_PROFILE || AWS.util.defaultProfile
- ];
- } catch (err) {
- return false;
- }
- if (!sharedFileConfig) return config;
- config.port = config.port || sharedFileConfig.csm_port;
- config.enabled = config.enabled || sharedFileConfig.csm_enabled;
- config.clientId = config.clientId || sharedFileConfig.csm_client_id;
- config.host = config.host || sharedFileConfig.csm_host;
- return config.port && config.enabled && config.clientId && config.host;
-}
-
-/**
- * Transfer the resolved configuration value to proper types: port as number, enabled
- * as boolean and clientId as string. The 'enabled' flag is valued to false when set
- * to 'false' or '0'.
- * @param {object} resolved client side monitoring config
- * @api private
- */
-function toJSType(config) {
- //config.XXX is either undefined or string
- var falsyNotations = ['false', '0', undefined];
- if (!config.enabled || falsyNotations.indexOf(config.enabled.toLowerCase()) >= 0) {
- config.enabled = false;
- } else {
- config.enabled = true;
- }
- config.port = config.port ? parseInt(config.port, 10) : undefined;
- return config;
-}
-
-module.exports = resolveMonitoringConfig;
-
-
-/***/ }),
-
-/***/ 66807:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = (__nccwpck_require__(28437).util);
-var dgram = __nccwpck_require__(71891);
-var stringToBuffer = util.buffer.toBuffer;
-
-var MAX_MESSAGE_SIZE = 1024 * 8; // 8 KB
-
-/**
- * Publishes metrics via udp.
- * @param {object} options Paramters for Publisher constructor
- * @param {number} [options.port = 31000] Port number
- * @param {string} [options.clientId = ''] Client Identifier
- * @param {boolean} [options.enabled = false] enable sending metrics datagram
- * @api private
- */
-function Publisher(options) {
- // handle configuration
- options = options || {};
- this.enabled = options.enabled || false;
- this.port = options.port || 31000;
- this.clientId = options.clientId || '';
- this.address = options.host || '127.0.0.1';
- if (this.clientId.length > 255) {
- // ClientId has a max length of 255
- this.clientId = this.clientId.substr(0, 255);
- }
- this.messagesInFlight = 0;
-}
-
-Publisher.prototype.fieldsToTrim = {
- UserAgent: 256,
- SdkException: 128,
- SdkExceptionMessage: 512,
- AwsException: 128,
- AwsExceptionMessage: 512,
- FinalSdkException: 128,
- FinalSdkExceptionMessage: 512,
- FinalAwsException: 128,
- FinalAwsExceptionMessage: 512
-
-};
-
-/**
- * Trims fields that have a specified max length.
- * @param {object} event ApiCall or ApiCallAttempt event.
- * @returns {object}
- * @api private
- */
-Publisher.prototype.trimFields = function(event) {
- var trimmableFields = Object.keys(this.fieldsToTrim);
- for (var i = 0, iLen = trimmableFields.length; i < iLen; i++) {
- var field = trimmableFields[i];
- if (event.hasOwnProperty(field)) {
- var maxLength = this.fieldsToTrim[field];
- var value = event[field];
- if (value && value.length > maxLength) {
- event[field] = value.substr(0, maxLength);
- }
- }
- }
- return event;
-};
-
-/**
- * Handles ApiCall and ApiCallAttempt events.
- * @param {Object} event apiCall or apiCallAttempt event.
- * @api private
- */
-Publisher.prototype.eventHandler = function(event) {
- // set the clientId
- event.ClientId = this.clientId;
-
- this.trimFields(event);
-
- var message = stringToBuffer(JSON.stringify(event));
- if (!this.enabled || message.length > MAX_MESSAGE_SIZE) {
- // drop the message if publisher not enabled or it is too large
- return;
- }
-
- this.publishDatagram(message);
-};
-
-/**
- * Publishes message to an agent.
- * @param {Buffer} message JSON message to send to agent.
- * @api private
- */
-Publisher.prototype.publishDatagram = function(message) {
- var self = this;
- var client = this.getClient();
-
- this.messagesInFlight++;
- this.client.send(message, 0, message.length, this.port, this.address, function(err, bytes) {
- if (--self.messagesInFlight <= 0) {
- // destroy existing client so the event loop isn't kept open
- self.destroyClient();
- }
- });
-};
-
-/**
- * Returns an existing udp socket, or creates one if it doesn't already exist.
- * @api private
- */
-Publisher.prototype.getClient = function() {
- if (!this.client) {
- this.client = dgram.createSocket('udp4');
- }
- return this.client;
-};
-
-/**
- * Destroys the udp socket.
- * @api private
- */
-Publisher.prototype.destroyClient = function() {
- if (this.client) {
- this.client.close();
- this.client = void 0;
- }
-};
-
-module.exports = {
- Publisher: Publisher
-};
-
-
-/***/ }),
-
-/***/ 45175:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = __nccwpck_require__(77985);
-
-function QueryParamSerializer() {
-}
-
-QueryParamSerializer.prototype.serialize = function(params, shape, fn) {
- serializeStructure('', params, shape, fn);
-};
-
-function ucfirst(shape) {
- if (shape.isQueryName || shape.api.protocol !== 'ec2') {
- return shape.name;
- } else {
- return shape.name[0].toUpperCase() + shape.name.substr(1);
- }
-}
-
-function serializeStructure(prefix, struct, rules, fn) {
- util.each(rules.members, function(name, member) {
- var value = struct[name];
- if (value === null || value === undefined) return;
-
- var memberName = ucfirst(member);
- memberName = prefix ? prefix + '.' + memberName : memberName;
- serializeMember(memberName, value, member, fn);
- });
-}
-
-function serializeMap(name, map, rules, fn) {
- var i = 1;
- util.each(map, function (key, value) {
- var prefix = rules.flattened ? '.' : '.entry.';
- var position = prefix + (i++) + '.';
- var keyName = position + (rules.key.name || 'key');
- var valueName = position + (rules.value.name || 'value');
- serializeMember(name + keyName, key, rules.key, fn);
- serializeMember(name + valueName, value, rules.value, fn);
- });
-}
-
-function serializeList(name, list, rules, fn) {
- var memberRules = rules.member || {};
-
- if (list.length === 0) {
- fn.call(this, name, null);
- return;
- }
-
- util.arrayEach(list, function (v, n) {
- var suffix = '.' + (n + 1);
- if (rules.api.protocol === 'ec2') {
- // Do nothing for EC2
- suffix = suffix + ''; // make linter happy
- } else if (rules.flattened) {
- if (memberRules.name) {
- var parts = name.split('.');
- parts.pop();
- parts.push(ucfirst(memberRules));
- name = parts.join('.');
- }
- } else {
- suffix = '.' + (memberRules.name ? memberRules.name : 'member') + suffix;
- }
- serializeMember(name + suffix, v, memberRules, fn);
- });
-}
-
-function serializeMember(name, value, rules, fn) {
- if (value === null || value === undefined) return;
- if (rules.type === 'structure') {
- serializeStructure(name, value, rules, fn);
- } else if (rules.type === 'list') {
- serializeList(name, value, rules, fn);
- } else if (rules.type === 'map') {
- serializeMap(name, value, rules, fn);
- } else {
- fn(name, rules.toWireFormat(value).toString());
- }
-}
-
-/**
- * @api private
- */
-module.exports = QueryParamSerializer;
-
-
-/***/ }),
-
-/***/ 16612:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-
-/**
- * @api private
- */
-var service = null;
-
-/**
- * @api private
- */
-var api = {
- signatureVersion: 'v4',
- signingName: 'rds-db',
- operations: {}
-};
-
-/**
- * @api private
- */
-var requiredAuthTokenOptions = {
- region: 'string',
- hostname: 'string',
- port: 'number',
- username: 'string'
-};
-
-/**
- * A signer object can be used to generate an auth token to a database.
- */
-AWS.RDS.Signer = AWS.util.inherit({
- /**
- * Creates a signer object can be used to generate an auth token.
- *
- * @option options credentials [AWS.Credentials] the AWS credentials
- * to sign requests with. Uses the default credential provider chain
- * if not specified.
- * @option options hostname [String] the hostname of the database to connect to.
- * @option options port [Number] the port number the database is listening on.
- * @option options region [String] the region the database is located in.
- * @option options username [String] the username to login as.
- * @example Passing in options to constructor
- * var signer = new AWS.RDS.Signer({
- * credentials: new AWS.SharedIniFileCredentials({profile: 'default'}),
- * region: 'us-east-1',
- * hostname: 'db.us-east-1.rds.amazonaws.com',
- * port: 8000,
- * username: 'name'
- * });
- */
- constructor: function Signer(options) {
- this.options = options || {};
- },
-
- /**
- * @api private
- * Strips the protocol from a url.
- */
- convertUrlToAuthToken: function convertUrlToAuthToken(url) {
- // we are always using https as the protocol
- var protocol = 'https://';
- if (url.indexOf(protocol) === 0) {
- return url.substring(protocol.length);
- }
- },
-
- /**
- * @overload getAuthToken(options = {}, [callback])
- * Generate an auth token to a database.
- * @note You must ensure that you have static or previously resolved
- * credentials if you call this method synchronously (with no callback),
- * otherwise it may not properly sign the request. If you cannot guarantee
- * this (you are using an asynchronous credential provider, i.e., EC2
- * IAM roles), you should always call this method with an asynchronous
- * callback.
- *
- * @param options [map] The fields to use when generating an auth token.
- * Any options specified here will be merged on top of any options passed
- * to AWS.RDS.Signer:
- *
- * * **credentials** (AWS.Credentials) — the AWS credentials
- * to sign requests with. Uses the default credential provider chain
- * if not specified.
- * * **hostname** (String) — the hostname of the database to connect to.
- * * **port** (Number) — the port number the database is listening on.
- * * **region** (String) — the region the database is located in.
- * * **username** (String) — the username to login as.
- * @return [String] if called synchronously (with no callback), returns the
- * auth token.
- * @return [null] nothing is returned if a callback is provided.
- * @callback callback function (err, token)
- * If a callback is supplied, it is called when an auth token has been generated.
- * @param err [Error] the error object returned from the signer.
- * @param token [String] the auth token.
- *
- * @example Generating an auth token synchronously
- * var signer = new AWS.RDS.Signer({
- * // configure options
- * region: 'us-east-1',
- * username: 'default',
- * hostname: 'db.us-east-1.amazonaws.com',
- * port: 8000
- * });
- * var token = signer.getAuthToken({
- * // these options are merged with those defined when creating the signer, overriding in the case of a duplicate option
- * // credentials are not specified here or when creating the signer, so default credential provider will be used
- * username: 'test' // overriding username
- * });
- * @example Generating an auth token asynchronously
- * var signer = new AWS.RDS.Signer({
- * // configure options
- * region: 'us-east-1',
- * username: 'default',
- * hostname: 'db.us-east-1.amazonaws.com',
- * port: 8000
- * });
- * signer.getAuthToken({
- * // these options are merged with those defined when creating the signer, overriding in the case of a duplicate option
- * // credentials are not specified here or when creating the signer, so default credential provider will be used
- * username: 'test' // overriding username
- * }, function(err, token) {
- * if (err) {
- * // handle error
- * } else {
- * // use token
- * }
- * });
- *
- */
- getAuthToken: function getAuthToken(options, callback) {
- if (typeof options === 'function' && callback === undefined) {
- callback = options;
- options = {};
- }
- var self = this;
- var hasCallback = typeof callback === 'function';
- // merge options with existing options
- options = AWS.util.merge(this.options, options);
- // validate options
- var optionsValidation = this.validateAuthTokenOptions(options);
- if (optionsValidation !== true) {
- if (hasCallback) {
- return callback(optionsValidation, null);
- }
- throw optionsValidation;
- }
-
- // 15 minutes
- var expires = 900;
- // create service to generate a request from
- var serviceOptions = {
- region: options.region,
- endpoint: new AWS.Endpoint(options.hostname + ':' + options.port),
- paramValidation: false,
- signatureVersion: 'v4'
- };
- if (options.credentials) {
- serviceOptions.credentials = options.credentials;
- }
- service = new AWS.Service(serviceOptions);
- // ensure the SDK is using sigv4 signing (config is not enough)
- service.api = api;
-
- var request = service.makeRequest();
- // add listeners to request to properly build auth token
- this.modifyRequestForAuthToken(request, options);
-
- if (hasCallback) {
- request.presign(expires, function(err, url) {
- if (url) {
- url = self.convertUrlToAuthToken(url);
- }
- callback(err, url);
- });
- } else {
- var url = request.presign(expires);
- return this.convertUrlToAuthToken(url);
- }
- },
-
- /**
- * @api private
- * Modifies a request to allow the presigner to generate an auth token.
- */
- modifyRequestForAuthToken: function modifyRequestForAuthToken(request, options) {
- request.on('build', request.buildAsGet);
- var httpRequest = request.httpRequest;
- httpRequest.body = AWS.util.queryParamsToString({
- Action: 'connect',
- DBUser: options.username
- });
- },
-
- /**
- * @api private
- * Validates that the options passed in contain all the keys with values of the correct type that
- * are needed to generate an auth token.
- */
- validateAuthTokenOptions: function validateAuthTokenOptions(options) {
- // iterate over all keys in options
- var message = '';
- options = options || {};
- for (var key in requiredAuthTokenOptions) {
- if (!Object.prototype.hasOwnProperty.call(requiredAuthTokenOptions, key)) {
- continue;
- }
- if (typeof options[key] !== requiredAuthTokenOptions[key]) {
- message += 'option \'' + key + '\' should have been type \'' + requiredAuthTokenOptions[key] + '\', was \'' + typeof options[key] + '\'.\n';
- }
- }
- if (message.length) {
- return AWS.util.error(new Error(), {
- code: 'InvalidParameter',
- message: message
- });
- }
- return true;
- }
-});
-
-
-/***/ }),
-
-/***/ 81370:
-/***/ ((module) => {
-
-module.exports = {
- //provide realtime clock for performance measurement
- now: function now() {
- var second = process.hrtime();
- return second[0] * 1000 + (second[1] / 1000000);
- }
-};
-
-
-/***/ }),
-
-/***/ 99517:
-/***/ ((module) => {
-
-function isFipsRegion(region) {
- return typeof region === 'string' && (region.startsWith('fips-') || region.endsWith('-fips'));
-}
-
-function isGlobalRegion(region) {
- return typeof region === 'string' && ['aws-global', 'aws-us-gov-global'].includes(region);
-}
-
-function getRealRegion(region) {
- return ['fips-aws-global', 'aws-fips', 'aws-global'].includes(region)
- ? 'us-east-1'
- : ['fips-aws-us-gov-global', 'aws-us-gov-global'].includes(region)
- ? 'us-gov-west-1'
- : region.replace(/fips-(dkr-|prod-)?|-fips/, '');
-}
-
-module.exports = {
- isFipsRegion: isFipsRegion,
- isGlobalRegion: isGlobalRegion,
- getRealRegion: getRealRegion
-};
-
-
-/***/ }),
-
-/***/ 18262:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var util = __nccwpck_require__(77985);
-var regionConfig = __nccwpck_require__(80738);
-
-function generateRegionPrefix(region) {
- if (!region) return null;
- var parts = region.split('-');
- if (parts.length < 3) return null;
- return parts.slice(0, parts.length - 2).join('-') + '-*';
-}
-
-function derivedKeys(service) {
- var region = service.config.region;
- var regionPrefix = generateRegionPrefix(region);
- var endpointPrefix = service.api.endpointPrefix;
-
- return [
- [region, endpointPrefix],
- [regionPrefix, endpointPrefix],
- [region, '*'],
- [regionPrefix, '*'],
- ['*', endpointPrefix],
- [region, 'internal-*'],
- ['*', '*']
- ].map(function(item) {
- return item[0] && item[1] ? item.join('/') : null;
- });
-}
-
-function applyConfig(service, config) {
- util.each(config, function(key, value) {
- if (key === 'globalEndpoint') return;
- if (service.config[key] === undefined || service.config[key] === null) {
- service.config[key] = value;
- }
- });
-}
-
-function configureEndpoint(service) {
- var keys = derivedKeys(service);
- var useFipsEndpoint = service.config.useFipsEndpoint;
- var useDualstackEndpoint = service.config.useDualstackEndpoint;
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- if (!key) continue;
-
- var rules = useFipsEndpoint
- ? useDualstackEndpoint
- ? regionConfig.dualstackFipsRules
- : regionConfig.fipsRules
- : useDualstackEndpoint
- ? regionConfig.dualstackRules
- : regionConfig.rules;
-
- if (Object.prototype.hasOwnProperty.call(rules, key)) {
- var config = rules[key];
- if (typeof config === 'string') {
- config = regionConfig.patterns[config];
- }
-
- // set global endpoint
- service.isGlobalEndpoint = !!config.globalEndpoint;
- if (config.signingRegion) {
- service.signingRegion = config.signingRegion;
- }
-
- // signature version
- if (!config.signatureVersion) {
- // Note: config is a global object and should not be mutated here.
- // However, we are retaining this line for backwards compatibility.
- // The non-v4 signatureVersion will be set in a copied object below.
- config.signatureVersion = 'v4';
- }
-
- var useBearer = (service.api && service.api.signatureVersion) === 'bearer';
-
- // merge config
- applyConfig(service, Object.assign(
- {},
- config,
- { signatureVersion: useBearer ? 'bearer' : config.signatureVersion }
- ));
- return;
- }
- }
-}
-
-function getEndpointSuffix(region) {
- var regionRegexes = {
- '^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$': 'amazonaws.com',
- '^cn\\-\\w+\\-\\d+$': 'amazonaws.com.cn',
- '^us\\-gov\\-\\w+\\-\\d+$': 'amazonaws.com',
- '^us\\-iso\\-\\w+\\-\\d+$': 'c2s.ic.gov',
- '^us\\-isob\\-\\w+\\-\\d+$': 'sc2s.sgov.gov'
- };
- var defaultSuffix = 'amazonaws.com';
- var regexes = Object.keys(regionRegexes);
- for (var i = 0; i < regexes.length; i++) {
- var regionPattern = RegExp(regexes[i]);
- var dnsSuffix = regionRegexes[regexes[i]];
- if (regionPattern.test(region)) return dnsSuffix;
- }
- return defaultSuffix;
-}
-
-/**
- * @api private
- */
-module.exports = {
- configureEndpoint: configureEndpoint,
- getEndpointSuffix: getEndpointSuffix,
-};
-
-
-/***/ }),
-
-/***/ 78652:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var AcceptorStateMachine = __nccwpck_require__(68118);
-var inherit = AWS.util.inherit;
-var domain = AWS.util.domain;
-var jmespath = __nccwpck_require__(87783);
-
-/**
- * @api private
- */
-var hardErrorStates = {success: 1, error: 1, complete: 1};
-
-function isTerminalState(machine) {
- return Object.prototype.hasOwnProperty.call(hardErrorStates, machine._asm.currentState);
-}
-
-var fsm = new AcceptorStateMachine();
-fsm.setupStates = function() {
- var transition = function(_, done) {
- var self = this;
- self._haltHandlersOnError = false;
-
- self.emit(self._asm.currentState, function(err) {
- if (err) {
- if (isTerminalState(self)) {
- if (domain && self.domain instanceof domain.Domain) {
- err.domainEmitter = self;
- err.domain = self.domain;
- err.domainThrown = false;
- self.domain.emit('error', err);
- } else {
- throw err;
- }
- } else {
- self.response.error = err;
- done(err);
- }
- } else {
- done(self.response.error);
- }
- });
-
- };
-
- this.addState('validate', 'build', 'error', transition);
- this.addState('build', 'afterBuild', 'restart', transition);
- this.addState('afterBuild', 'sign', 'restart', transition);
- this.addState('sign', 'send', 'retry', transition);
- this.addState('retry', 'afterRetry', 'afterRetry', transition);
- this.addState('afterRetry', 'sign', 'error', transition);
- this.addState('send', 'validateResponse', 'retry', transition);
- this.addState('validateResponse', 'extractData', 'extractError', transition);
- this.addState('extractError', 'extractData', 'retry', transition);
- this.addState('extractData', 'success', 'retry', transition);
- this.addState('restart', 'build', 'error', transition);
- this.addState('success', 'complete', 'complete', transition);
- this.addState('error', 'complete', 'complete', transition);
- this.addState('complete', null, null, transition);
-};
-fsm.setupStates();
-
-/**
- * ## Asynchronous Requests
- *
- * All requests made through the SDK are asynchronous and use a
- * callback interface. Each service method that kicks off a request
- * returns an `AWS.Request` object that you can use to register
- * callbacks.
- *
- * For example, the following service method returns the request
- * object as "request", which can be used to register callbacks:
- *
- * ```javascript
- * // request is an AWS.Request object
- * var request = ec2.describeInstances();
- *
- * // register callbacks on request to retrieve response data
- * request.on('success', function(response) {
- * console.log(response.data);
- * });
- * ```
- *
- * When a request is ready to be sent, the {send} method should
- * be called:
- *
- * ```javascript
- * request.send();
- * ```
- *
- * Since registered callbacks may or may not be idempotent, requests should only
- * be sent once. To perform the same operation multiple times, you will need to
- * create multiple request objects, each with its own registered callbacks.
- *
- * ## Removing Default Listeners for Events
- *
- * Request objects are built with default listeners for the various events,
- * depending on the service type. In some cases, you may want to remove
- * some built-in listeners to customize behaviour. Doing this requires
- * access to the built-in listener functions, which are exposed through
- * the {AWS.EventListeners.Core} namespace. For instance, you may
- * want to customize the HTTP handler used when sending a request. In this
- * case, you can remove the built-in listener associated with the 'send'
- * event, the {AWS.EventListeners.Core.SEND} listener and add your own.
- *
- * ## Multiple Callbacks and Chaining
- *
- * You can register multiple callbacks on any request object. The
- * callbacks can be registered for different events, or all for the
- * same event. In addition, you can chain callback registration, for
- * example:
- *
- * ```javascript
- * request.
- * on('success', function(response) {
- * console.log("Success!");
- * }).
- * on('error', function(error, response) {
- * console.log("Error!");
- * }).
- * on('complete', function(response) {
- * console.log("Always!");
- * }).
- * send();
- * ```
- *
- * The above example will print either "Success! Always!", or "Error! Always!",
- * depending on whether the request succeeded or not.
- *
- * @!attribute httpRequest
- * @readonly
- * @!group HTTP Properties
- * @return [AWS.HttpRequest] the raw HTTP request object
- * containing request headers and body information
- * sent by the service.
- *
- * @!attribute startTime
- * @readonly
- * @!group Operation Properties
- * @return [Date] the time that the request started
- *
- * @!group Request Building Events
- *
- * @!event validate(request)
- * Triggered when a request is being validated. Listeners
- * should throw an error if the request should not be sent.
- * @param request [Request] the request object being sent
- * @see AWS.EventListeners.Core.VALIDATE_CREDENTIALS
- * @see AWS.EventListeners.Core.VALIDATE_REGION
- * @example Ensuring that a certain parameter is set before sending a request
- * var req = s3.putObject(params);
- * req.on('validate', function() {
- * if (!req.params.Body.match(/^Hello\s/)) {
- * throw new Error('Body must start with "Hello "');
- * }
- * });
- * req.send(function(err, data) { ... });
- *
- * @!event build(request)
- * Triggered when the request payload is being built. Listeners
- * should fill the necessary information to send the request
- * over HTTP.
- * @param (see AWS.Request~validate)
- * @example Add a custom HTTP header to a request
- * var req = s3.putObject(params);
- * req.on('build', function() {
- * req.httpRequest.headers['Custom-Header'] = 'value';
- * });
- * req.send(function(err, data) { ... });
- *
- * @!event sign(request)
- * Triggered when the request is being signed. Listeners should
- * add the correct authentication headers and/or adjust the body,
- * depending on the authentication mechanism being used.
- * @param (see AWS.Request~validate)
- *
- * @!group Request Sending Events
- *
- * @!event send(response)
- * Triggered when the request is ready to be sent. Listeners
- * should call the underlying transport layer to initiate
- * the sending of the request.
- * @param response [Response] the response object
- * @context [Request] the request object that was sent
- * @see AWS.EventListeners.Core.SEND
- *
- * @!event retry(response)
- * Triggered when a request failed and might need to be retried or redirected.
- * If the response is retryable, the listener should set the
- * `response.error.retryable` property to `true`, and optionally set
- * `response.error.retryDelay` to the millisecond delay for the next attempt.
- * In the case of a redirect, `response.error.redirect` should be set to
- * `true` with `retryDelay` set to an optional delay on the next request.
- *
- * If a listener decides that a request should not be retried,
- * it should set both `retryable` and `redirect` to false.
- *
- * Note that a retryable error will be retried at most
- * {AWS.Config.maxRetries} times (based on the service object's config).
- * Similarly, a request that is redirected will only redirect at most
- * {AWS.Config.maxRedirects} times.
- *
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- * @example Adding a custom retry for a 404 response
- * request.on('retry', function(response) {
- * // this resource is not yet available, wait 10 seconds to get it again
- * if (response.httpResponse.statusCode === 404 && response.error) {
- * response.error.retryable = true; // retry this error
- * response.error.retryDelay = 10000; // wait 10 seconds
- * }
- * });
- *
- * @!group Data Parsing Events
- *
- * @!event extractError(response)
- * Triggered on all non-2xx requests so that listeners can extract
- * error details from the response body. Listeners to this event
- * should set the `response.error` property.
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- *
- * @!event extractData(response)
- * Triggered in successful requests to allow listeners to
- * de-serialize the response body into `response.data`.
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- *
- * @!group Completion Events
- *
- * @!event success(response)
- * Triggered when the request completed successfully.
- * `response.data` will contain the response data and
- * `response.error` will be null.
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- *
- * @!event error(error, response)
- * Triggered when an error occurs at any point during the
- * request. `response.error` will contain details about the error
- * that occurred. `response.data` will be null.
- * @param error [Error] the error object containing details about
- * the error that occurred.
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- *
- * @!event complete(response)
- * Triggered whenever a request cycle completes. `response.error`
- * should be checked, since the request may have failed.
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- *
- * @!group HTTP Events
- *
- * @!event httpHeaders(statusCode, headers, response, statusMessage)
- * Triggered when headers are sent by the remote server
- * @param statusCode [Integer] the HTTP response code
- * @param headers [map] the response headers
- * @param (see AWS.Request~send)
- * @param statusMessage [String] A status message corresponding to the HTTP
- * response code
- * @context (see AWS.Request~send)
- *
- * @!event httpData(chunk, response)
- * Triggered when data is sent by the remote server
- * @param chunk [Buffer] the buffer data containing the next data chunk
- * from the server
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- * @see AWS.EventListeners.Core.HTTP_DATA
- *
- * @!event httpUploadProgress(progress, response)
- * Triggered when the HTTP request has uploaded more data
- * @param progress [map] An object containing the `loaded` and `total` bytes
- * of the request.
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- * @note This event will not be emitted in Node.js 0.8.x.
- *
- * @!event httpDownloadProgress(progress, response)
- * Triggered when the HTTP request has downloaded more data
- * @param progress [map] An object containing the `loaded` and `total` bytes
- * of the request.
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- * @note This event will not be emitted in Node.js 0.8.x.
- *
- * @!event httpError(error, response)
- * Triggered when the HTTP request failed
- * @param error [Error] the error object that was thrown
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- *
- * @!event httpDone(response)
- * Triggered when the server is finished sending data
- * @param (see AWS.Request~send)
- * @context (see AWS.Request~send)
- *
- * @see AWS.Response
- */
-AWS.Request = inherit({
-
- /**
- * Creates a request for an operation on a given service with
- * a set of input parameters.
- *
- * @param service [AWS.Service] the service to perform the operation on
- * @param operation [String] the operation to perform on the service
- * @param params [Object] parameters to send to the operation.
- * See the operation's documentation for the format of the
- * parameters.
- */
- constructor: function Request(service, operation, params) {
- var endpoint = service.endpoint;
- var region = service.config.region;
- var customUserAgent = service.config.customUserAgent;
-
- if (service.signingRegion) {
- region = service.signingRegion;
- } else if (service.isGlobalEndpoint) {
- region = 'us-east-1';
- }
-
- this.domain = domain && domain.active;
- this.service = service;
- this.operation = operation;
- this.params = params || {};
- this.httpRequest = new AWS.HttpRequest(endpoint, region);
- this.httpRequest.appendToUserAgent(customUserAgent);
- this.startTime = service.getSkewCorrectedDate();
-
- this.response = new AWS.Response(this);
- this._asm = new AcceptorStateMachine(fsm.states, 'validate');
- this._haltHandlersOnError = false;
-
- AWS.SequentialExecutor.call(this);
- this.emit = this.emitEvent;
- },
-
- /**
- * @!group Sending a Request
- */
-
- /**
- * @overload send(callback = null)
- * Sends the request object.
- *
- * @callback callback function(err, data)
- * If a callback is supplied, it is called when a response is returned
- * from the service.
- * @context [AWS.Request] the request object being sent.
- * @param err [Error] the error object returned from the request.
- * Set to `null` if the request is successful.
- * @param data [Object] the de-serialized data returned from
- * the request. Set to `null` if a request error occurs.
- * @example Sending a request with a callback
- * request = s3.putObject({Bucket: 'bucket', Key: 'key'});
- * request.send(function(err, data) { console.log(err, data); });
- * @example Sending a request with no callback (using event handlers)
- * request = s3.putObject({Bucket: 'bucket', Key: 'key'});
- * request.on('complete', function(response) { ... }); // register a callback
- * request.send();
- */
- send: function send(callback) {
- if (callback) {
- // append to user agent
- this.httpRequest.appendToUserAgent('callback');
- this.on('complete', function (resp) {
- callback.call(resp, resp.error, resp.data);
- });
- }
- this.runTo();
-
- return this.response;
- },
-
- /**
- * @!method promise()
- * Sends the request and returns a 'thenable' promise.
- *
- * Two callbacks can be provided to the `then` method on the returned promise.
- * The first callback will be called if the promise is fulfilled, and the second
- * callback will be called if the promise is rejected.
- * @callback fulfilledCallback function(data)
- * Called if the promise is fulfilled.
- * @param data [Object] the de-serialized data returned from the request.
- * @callback rejectedCallback function(error)
- * Called if the promise is rejected.
- * @param error [Error] the error object returned from the request.
- * @return [Promise] A promise that represents the state of the request.
- * @example Sending a request using promises.
- * var request = s3.putObject({Bucket: 'bucket', Key: 'key'});
- * var result = request.promise();
- * result.then(function(data) { ... }, function(error) { ... });
- */
-
- /**
- * @api private
- */
- build: function build(callback) {
- return this.runTo('send', callback);
- },
-
- /**
- * @api private
- */
- runTo: function runTo(state, done) {
- this._asm.runTo(state, done, this);
- return this;
- },
-
- /**
- * Aborts a request, emitting the error and complete events.
- *
- * @!macro nobrowser
- * @example Aborting a request after sending
- * var params = {
- * Bucket: 'bucket', Key: 'key',
- * Body: Buffer.alloc(1024 * 1024 * 5) // 5MB payload
- * };
- * var request = s3.putObject(params);
- * request.send(function (err, data) {
- * if (err) console.log("Error:", err.code, err.message);
- * else console.log(data);
- * });
- *
- * // abort request in 1 second
- * setTimeout(request.abort.bind(request), 1000);
- *
- * // prints "Error: RequestAbortedError Request aborted by user"
- * @return [AWS.Request] the same request object, for chaining.
- * @since v1.4.0
- */
- abort: function abort() {
- this.removeAllListeners('validateResponse');
- this.removeAllListeners('extractError');
- this.on('validateResponse', function addAbortedError(resp) {
- resp.error = AWS.util.error(new Error('Request aborted by user'), {
- code: 'RequestAbortedError', retryable: false
- });
- });
-
- if (this.httpRequest.stream && !this.httpRequest.stream.didCallback) { // abort HTTP stream
- this.httpRequest.stream.abort();
- if (this.httpRequest._abortCallback) {
- this.httpRequest._abortCallback();
- } else {
- this.removeAllListeners('send'); // haven't sent yet, so let's not
- }
- }
-
- return this;
- },
-
- /**
- * Iterates over each page of results given a pageable request, calling
- * the provided callback with each page of data. After all pages have been
- * retrieved, the callback is called with `null` data.
- *
- * @note This operation can generate multiple requests to a service.
- * @example Iterating over multiple pages of objects in an S3 bucket
- * var pages = 1;
- * s3.listObjects().eachPage(function(err, data) {
- * if (err) return;
- * console.log("Page", pages++);
- * console.log(data);
- * });
- * @example Iterating over multiple pages with an asynchronous callback
- * s3.listObjects(params).eachPage(function(err, data, done) {
- * doSomethingAsyncAndOrExpensive(function() {
- * // The next page of results isn't fetched until done is called
- * done();
- * });
- * });
- * @callback callback function(err, data, [doneCallback])
- * Called with each page of resulting data from the request. If the
- * optional `doneCallback` is provided in the function, it must be called
- * when the callback is complete.
- *
- * @param err [Error] an error object, if an error occurred.
- * @param data [Object] a single page of response data. If there is no
- * more data, this object will be `null`.
- * @param doneCallback [Function] an optional done callback. If this
- * argument is defined in the function declaration, it should be called
- * when the next page is ready to be retrieved. This is useful for
- * controlling serial pagination across asynchronous operations.
- * @return [Boolean] if the callback returns `false`, pagination will
- * stop.
- *
- * @see AWS.Request.eachItem
- * @see AWS.Response.nextPage
- * @since v1.4.0
- */
- eachPage: function eachPage(callback) {
- // Make all callbacks async-ish
- callback = AWS.util.fn.makeAsync(callback, 3);
-
- function wrappedCallback(response) {
- callback.call(response, response.error, response.data, function (result) {
- if (result === false) return;
-
- if (response.hasNextPage()) {
- response.nextPage().on('complete', wrappedCallback).send();
- } else {
- callback.call(response, null, null, AWS.util.fn.noop);
- }
- });
- }
-
- this.on('complete', wrappedCallback).send();
- },
-
- /**
- * Enumerates over individual items of a request, paging the responses if
- * necessary.
- *
- * @api experimental
- * @since v1.4.0
- */
- eachItem: function eachItem(callback) {
- var self = this;
- function wrappedCallback(err, data) {
- if (err) return callback(err, null);
- if (data === null) return callback(null, null);
-
- var config = self.service.paginationConfig(self.operation);
- var resultKey = config.resultKey;
- if (Array.isArray(resultKey)) resultKey = resultKey[0];
- var items = jmespath.search(data, resultKey);
- var continueIteration = true;
- AWS.util.arrayEach(items, function(item) {
- continueIteration = callback(null, item);
- if (continueIteration === false) {
- return AWS.util.abort;
- }
- });
- return continueIteration;
- }
-
- this.eachPage(wrappedCallback);
- },
-
- /**
- * @return [Boolean] whether the operation can return multiple pages of
- * response data.
- * @see AWS.Response.eachPage
- * @since v1.4.0
- */
- isPageable: function isPageable() {
- return this.service.paginationConfig(this.operation) ? true : false;
- },
-
- /**
- * Sends the request and converts the request object into a readable stream
- * that can be read from or piped into a writable stream.
- *
- * @note The data read from a readable stream contains only
- * the raw HTTP body contents.
- * @example Manually reading from a stream
- * request.createReadStream().on('data', function(data) {
- * console.log("Got data:", data.toString());
- * });
- * @example Piping a request body into a file
- * var out = fs.createWriteStream('/path/to/outfile.jpg');
- * s3.service.getObject(params).createReadStream().pipe(out);
- * @return [Stream] the readable stream object that can be piped
- * or read from (by registering 'data' event listeners).
- * @!macro nobrowser
- */
- createReadStream: function createReadStream() {
- var streams = AWS.util.stream;
- var req = this;
- var stream = null;
-
- if (AWS.HttpClient.streamsApiVersion === 2) {
- stream = new streams.PassThrough();
- process.nextTick(function() { req.send(); });
- } else {
- stream = new streams.Stream();
- stream.readable = true;
-
- stream.sent = false;
- stream.on('newListener', function(event) {
- if (!stream.sent && event === 'data') {
- stream.sent = true;
- process.nextTick(function() { req.send(); });
- }
- });
- }
-
- this.on('error', function(err) {
- stream.emit('error', err);
- });
-
- this.on('httpHeaders', function streamHeaders(statusCode, headers, resp) {
- if (statusCode < 300) {
- req.removeListener('httpData', AWS.EventListeners.Core.HTTP_DATA);
- req.removeListener('httpError', AWS.EventListeners.Core.HTTP_ERROR);
- req.on('httpError', function streamHttpError(error) {
- resp.error = error;
- resp.error.retryable = false;
- });
-
- var shouldCheckContentLength = false;
- var expectedLen;
- if (req.httpRequest.method !== 'HEAD') {
- expectedLen = parseInt(headers['content-length'], 10);
- }
- if (expectedLen !== undefined && !isNaN(expectedLen) && expectedLen >= 0) {
- shouldCheckContentLength = true;
- var receivedLen = 0;
- }
-
- var checkContentLengthAndEmit = function checkContentLengthAndEmit() {
- if (shouldCheckContentLength && receivedLen !== expectedLen) {
- stream.emit('error', AWS.util.error(
- new Error('Stream content length mismatch. Received ' +
- receivedLen + ' of ' + expectedLen + ' bytes.'),
- { code: 'StreamContentLengthMismatch' }
- ));
- } else if (AWS.HttpClient.streamsApiVersion === 2) {
- stream.end();
- } else {
- stream.emit('end');
- }
- };
-
- var httpStream = resp.httpResponse.createUnbufferedStream();
-
- if (AWS.HttpClient.streamsApiVersion === 2) {
- if (shouldCheckContentLength) {
- var lengthAccumulator = new streams.PassThrough();
- lengthAccumulator._write = function(chunk) {
- if (chunk && chunk.length) {
- receivedLen += chunk.length;
- }
- return streams.PassThrough.prototype._write.apply(this, arguments);
- };
-
- lengthAccumulator.on('end', checkContentLengthAndEmit);
- stream.on('error', function(err) {
- shouldCheckContentLength = false;
- httpStream.unpipe(lengthAccumulator);
- lengthAccumulator.emit('end');
- lengthAccumulator.end();
- });
- httpStream.pipe(lengthAccumulator).pipe(stream, { end: false });
- } else {
- httpStream.pipe(stream);
- }
- } else {
-
- if (shouldCheckContentLength) {
- httpStream.on('data', function(arg) {
- if (arg && arg.length) {
- receivedLen += arg.length;
- }
- });
- }
-
- httpStream.on('data', function(arg) {
- stream.emit('data', arg);
- });
- httpStream.on('end', checkContentLengthAndEmit);
- }
-
- httpStream.on('error', function(err) {
- shouldCheckContentLength = false;
- stream.emit('error', err);
- });
- }
- });
-
- return stream;
- },
-
- /**
- * @param [Array,Response] args This should be the response object,
- * or an array of args to send to the event.
- * @api private
- */
- emitEvent: function emit(eventName, args, done) {
- if (typeof args === 'function') { done = args; args = null; }
- if (!done) done = function() { };
- if (!args) args = this.eventParameters(eventName, this.response);
-
- var origEmit = AWS.SequentialExecutor.prototype.emit;
- origEmit.call(this, eventName, args, function (err) {
- if (err) this.response.error = err;
- done.call(this, err);
- });
- },
-
- /**
- * @api private
- */
- eventParameters: function eventParameters(eventName) {
- switch (eventName) {
- case 'restart':
- case 'validate':
- case 'sign':
- case 'build':
- case 'afterValidate':
- case 'afterBuild':
- return [this];
- case 'error':
- return [this.response.error, this.response];
- default:
- return [this.response];
- }
- },
-
- /**
- * @api private
- */
- presign: function presign(expires, callback) {
- if (!callback && typeof expires === 'function') {
- callback = expires;
- expires = null;
- }
- return new AWS.Signers.Presign().sign(this.toGet(), expires, callback);
- },
-
- /**
- * @api private
- */
- isPresigned: function isPresigned() {
- return Object.prototype.hasOwnProperty.call(this.httpRequest.headers, 'presigned-expires');
- },
-
- /**
- * @api private
- */
- toUnauthenticated: function toUnauthenticated() {
- this._unAuthenticated = true;
- this.removeListener('validate', AWS.EventListeners.Core.VALIDATE_CREDENTIALS);
- this.removeListener('sign', AWS.EventListeners.Core.SIGN);
- return this;
- },
-
- /**
- * @api private
- */
- toGet: function toGet() {
- if (this.service.api.protocol === 'query' ||
- this.service.api.protocol === 'ec2') {
- this.removeListener('build', this.buildAsGet);
- this.addListener('build', this.buildAsGet);
- }
- return this;
- },
-
- /**
- * @api private
- */
- buildAsGet: function buildAsGet(request) {
- request.httpRequest.method = 'GET';
- request.httpRequest.path = request.service.endpoint.path +
- '?' + request.httpRequest.body;
- request.httpRequest.body = '';
-
- // don't need these headers on a GET request
- delete request.httpRequest.headers['Content-Length'];
- delete request.httpRequest.headers['Content-Type'];
- },
-
- /**
- * @api private
- */
- haltHandlersOnError: function haltHandlersOnError() {
- this._haltHandlersOnError = true;
- }
-});
-
-/**
- * @api private
- */
-AWS.Request.addPromisesToClass = function addPromisesToClass(PromiseDependency) {
- this.prototype.promise = function promise() {
- var self = this;
- // append to user agent
- this.httpRequest.appendToUserAgent('promise');
- return new PromiseDependency(function(resolve, reject) {
- self.on('complete', function(resp) {
- if (resp.error) {
- reject(resp.error);
- } else {
- // define $response property so that it is not enumerable
- // this prevents circular reference errors when stringifying the JSON object
- resolve(Object.defineProperty(
- resp.data || {},
- '$response',
- {value: resp}
- ));
- }
- });
- self.runTo();
- });
- };
-};
-
-/**
- * @api private
- */
-AWS.Request.deletePromisesFromClass = function deletePromisesFromClass() {
- delete this.prototype.promise;
-};
-
-AWS.util.addPromises(AWS.Request);
-
-AWS.util.mixin(AWS.Request, AWS.SequentialExecutor);
-
-
-/***/ }),
-
-/***/ 39925:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-/**
- * Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"). You
- * may not use this file except in compliance with the License. A copy of
- * the License is located at
- *
- * http://aws.amazon.com/apache2.0/
- *
- * or in the "license" file accompanying this file. This file is
- * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
- * ANY KIND, either express or implied. See the License for the specific
- * language governing permissions and limitations under the License.
- */
-
-var AWS = __nccwpck_require__(28437);
-var inherit = AWS.util.inherit;
-var jmespath = __nccwpck_require__(87783);
-
-/**
- * @api private
- */
-function CHECK_ACCEPTORS(resp) {
- var waiter = resp.request._waiter;
- var acceptors = waiter.config.acceptors;
- var acceptorMatched = false;
- var state = 'retry';
-
- acceptors.forEach(function(acceptor) {
- if (!acceptorMatched) {
- var matcher = waiter.matchers[acceptor.matcher];
- if (matcher && matcher(resp, acceptor.expected, acceptor.argument)) {
- acceptorMatched = true;
- state = acceptor.state;
- }
- }
- });
-
- if (!acceptorMatched && resp.error) state = 'failure';
-
- if (state === 'success') {
- waiter.setSuccess(resp);
- } else {
- waiter.setError(resp, state === 'retry');
- }
-}
-
-/**
- * @api private
- */
-AWS.ResourceWaiter = inherit({
- /**
- * Waits for a given state on a service object
- * @param service [Service] the service object to wait on
- * @param state [String] the state (defined in waiter configuration) to wait
- * for.
- * @example Create a waiter for running EC2 instances
- * var ec2 = new AWS.EC2;
- * var waiter = new AWS.ResourceWaiter(ec2, 'instanceRunning');
- */
- constructor: function constructor(service, state) {
- this.service = service;
- this.state = state;
- this.loadWaiterConfig(this.state);
- },
-
- service: null,
-
- state: null,
-
- config: null,
-
- matchers: {
- path: function(resp, expected, argument) {
- try {
- var result = jmespath.search(resp.data, argument);
- } catch (err) {
- return false;
- }
-
- return jmespath.strictDeepEqual(result,expected);
- },
-
- pathAll: function(resp, expected, argument) {
- try {
- var results = jmespath.search(resp.data, argument);
- } catch (err) {
- return false;
- }
-
- if (!Array.isArray(results)) results = [results];
- var numResults = results.length;
- if (!numResults) return false;
- for (var ind = 0 ; ind < numResults; ind++) {
- if (!jmespath.strictDeepEqual(results[ind], expected)) {
- return false;
- }
- }
- return true;
- },
-
- pathAny: function(resp, expected, argument) {
- try {
- var results = jmespath.search(resp.data, argument);
- } catch (err) {
- return false;
- }
-
- if (!Array.isArray(results)) results = [results];
- var numResults = results.length;
- for (var ind = 0 ; ind < numResults; ind++) {
- if (jmespath.strictDeepEqual(results[ind], expected)) {
- return true;
- }
- }
- return false;
- },
-
- status: function(resp, expected) {
- var statusCode = resp.httpResponse.statusCode;
- return (typeof statusCode === 'number') && (statusCode === expected);
- },
-
- error: function(resp, expected) {
- if (typeof expected === 'string' && resp.error) {
- return expected === resp.error.code;
- }
- // if expected is not string, can be boolean indicating presence of error
- return expected === !!resp.error;
- }
- },
-
- listeners: new AWS.SequentialExecutor().addNamedListeners(function(add) {
- add('RETRY_CHECK', 'retry', function(resp) {
- var waiter = resp.request._waiter;
- if (resp.error && resp.error.code === 'ResourceNotReady') {
- resp.error.retryDelay = (waiter.config.delay || 0) * 1000;
- }
- });
-
- add('CHECK_OUTPUT', 'extractData', CHECK_ACCEPTORS);
-
- add('CHECK_ERROR', 'extractError', CHECK_ACCEPTORS);
- }),
-
- /**
- * @return [AWS.Request]
- */
- wait: function wait(params, callback) {
- if (typeof params === 'function') {
- callback = params; params = undefined;
- }
-
- if (params && params.$waiter) {
- params = AWS.util.copy(params);
- if (typeof params.$waiter.delay === 'number') {
- this.config.delay = params.$waiter.delay;
- }
- if (typeof params.$waiter.maxAttempts === 'number') {
- this.config.maxAttempts = params.$waiter.maxAttempts;
- }
- delete params.$waiter;
- }
-
- var request = this.service.makeRequest(this.config.operation, params);
- request._waiter = this;
- request.response.maxRetries = this.config.maxAttempts;
- request.addListeners(this.listeners);
-
- if (callback) request.send(callback);
- return request;
- },
-
- setSuccess: function setSuccess(resp) {
- resp.error = null;
- resp.data = resp.data || {};
- resp.request.removeAllListeners('extractData');
- },
-
- setError: function setError(resp, retryable) {
- resp.data = null;
- resp.error = AWS.util.error(resp.error || new Error(), {
- code: 'ResourceNotReady',
- message: 'Resource is not in the state ' + this.state,
- retryable: retryable
- });
- },
-
- /**
- * Loads waiter configuration from API configuration
- *
- * @api private
- */
- loadWaiterConfig: function loadWaiterConfig(state) {
- if (!this.service.api.waiters[state]) {
- throw new AWS.util.error(new Error(), {
- code: 'StateNotFoundError',
- message: 'State ' + state + ' not found.'
- });
- }
-
- this.config = AWS.util.copy(this.service.api.waiters[state]);
- }
-});
-
-
-/***/ }),
-
-/***/ 58743:
-/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var inherit = AWS.util.inherit;
-var jmespath = __nccwpck_require__(87783);
-
-/**
- * This class encapsulates the response information
- * from a service request operation sent through {AWS.Request}.
- * The response object has two main properties for getting information
- * back from a request:
- *
- * ## The `data` property
- *
- * The `response.data` property contains the serialized object data
- * retrieved from the service request. For instance, for an
- * Amazon DynamoDB `listTables` method call, the response data might
- * look like:
- *
- * ```
- * > resp.data
- * { TableNames:
- * [ 'table1', 'table2', ... ] }
- * ```
- *
- * The `data` property can be null if an error occurs (see below).
- *
- * ## The `error` property
- *
- * In the event of a service error (or transfer error), the
- * `response.error` property will be filled with the given
- * error data in the form:
- *
- * ```
- * { code: 'SHORT_UNIQUE_ERROR_CODE',
- * message: 'Some human readable error message' }
- * ```
- *
- * In the case of an error, the `data` property will be `null`.
- * Note that if you handle events that can be in a failure state,
- * you should always check whether `response.error` is set
- * before attempting to access the `response.data` property.
- *
- * @!attribute data
- * @readonly
- * @!group Data Properties
- * @note Inside of a {AWS.Request~httpData} event, this
- * property contains a single raw packet instead of the
- * full de-serialized service response.
- * @return [Object] the de-serialized response data
- * from the service.
- *
- * @!attribute error
- * An structure containing information about a service
- * or networking error.
- * @readonly
- * @!group Data Properties
- * @note This attribute is only filled if a service or
- * networking error occurs.
- * @return [Error]
- * * code [String] a unique short code representing the
- * error that was emitted.
- * * message [String] a longer human readable error message
- * * retryable [Boolean] whether the error message is
- * retryable.
- * * statusCode [Numeric] in the case of a request that reached the service,
- * this value contains the response status code.
- * * time [Date] the date time object when the error occurred.
- * * hostname [String] set when a networking error occurs to easily
- * identify the endpoint of the request.
- * * region [String] set when a networking error occurs to easily
- * identify the region of the request.
- *
- * @!attribute requestId
- * @readonly
- * @!group Data Properties
- * @return [String] the unique request ID associated with the response.
- * Log this value when debugging requests for AWS support.
- *
- * @!attribute retryCount
- * @readonly
- * @!group Operation Properties
- * @return [Integer] the number of retries that were
- * attempted before the request was completed.
- *
- * @!attribute redirectCount
- * @readonly
- * @!group Operation Properties
- * @return [Integer] the number of redirects that were
- * followed before the request was completed.
- *
- * @!attribute httpResponse
- * @readonly
- * @!group HTTP Properties
- * @return [AWS.HttpResponse] the raw HTTP response object
- * containing the response headers and body information
- * from the server.
- *
- * @see AWS.Request
- */
-AWS.Response = inherit({
-
- /**
- * @api private
- */
- constructor: function Response(request) {
- this.request = request;
- this.data = null;
- this.error = null;
- this.retryCount = 0;
- this.redirectCount = 0;
- this.httpResponse = new AWS.HttpResponse();
- if (request) {
- this.maxRetries = request.service.numRetries();
- this.maxRedirects = request.service.config.maxRedirects;
- }
- },
-
- /**
- * Creates a new request for the next page of response data, calling the
- * callback with the page data if a callback is provided.
- *
- * @callback callback function(err, data)
- * Called when a page of data is returned from the next request.
- *
- * @param err [Error] an error object, if an error occurred in the request
- * @param data [Object] the next page of data, or null, if there are no
- * more pages left.
- * @return [AWS.Request] the request object for the next page of data
- * @return [null] if no callback is provided and there are no pages left
- * to retrieve.
- * @since v1.4.0
- */
- nextPage: function nextPage(callback) {
- var config;
- var service = this.request.service;
- var operation = this.request.operation;
- try {
- config = service.paginationConfig(operation, true);
- } catch (e) { this.error = e; }
-
- if (!this.hasNextPage()) {
- if (callback) callback(this.error, null);
- else if (this.error) throw this.error;
- return null;
- }
-
- var params = AWS.util.copy(this.request.params);
- if (!this.nextPageTokens) {
- return callback ? callback(null, null) : null;
- } else {
- var inputTokens = config.inputToken;
- if (typeof inputTokens === 'string') inputTokens = [inputTokens];
- for (var i = 0; i < inputTokens.length; i++) {
- params[inputTokens[i]] = this.nextPageTokens[i];
- }
- return service.makeRequest(this.request.operation, params, callback);
- }
- },
-
- /**
- * @return [Boolean] whether more pages of data can be returned by further
- * requests
- * @since v1.4.0
- */
- hasNextPage: function hasNextPage() {
- this.cacheNextPageTokens();
- if (this.nextPageTokens) return true;
- if (this.nextPageTokens === undefined) return undefined;
- else return false;
- },
-
- /**
- * @api private
- */
- cacheNextPageTokens: function cacheNextPageTokens() {
- if (Object.prototype.hasOwnProperty.call(this, 'nextPageTokens')) return this.nextPageTokens;
- this.nextPageTokens = undefined;
-
- var config = this.request.service.paginationConfig(this.request.operation);
- if (!config) return this.nextPageTokens;
-
- this.nextPageTokens = null;
- if (config.moreResults) {
- if (!jmespath.search(this.data, config.moreResults)) {
- return this.nextPageTokens;
- }
- }
-
- var exprs = config.outputToken;
- if (typeof exprs === 'string') exprs = [exprs];
- AWS.util.arrayEach.call(this, exprs, function (expr) {
- var output = jmespath.search(this.data, expr);
- if (output) {
- this.nextPageTokens = this.nextPageTokens || [];
- this.nextPageTokens.push(output);
- }
- });
-
- return this.nextPageTokens;
- }
-
-});
-
-
-/***/ }),
-
-/***/ 81600:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var AWS = __nccwpck_require__(28437);
-var byteLength = AWS.util.string.byteLength;
-var Buffer = AWS.util.Buffer;
-
-/**
- * The managed uploader allows for easy and efficient uploading of buffers,
- * blobs, or streams, using a configurable amount of concurrency to perform
- * multipart uploads where possible. This abstraction also enables uploading
- * streams of unknown size due to the use of multipart uploads.
- *
- * To construct a managed upload object, see the {constructor} function.
- *
- * ## Tracking upload progress
- *
- * The managed upload object can also track progress by attaching an
- * 'httpUploadProgress' listener to the upload manager. This event is similar
- * to {AWS.Request~httpUploadProgress} but groups all concurrent upload progress
- * into a single event. See {AWS.S3.ManagedUpload~httpUploadProgress} for more
- * information.
- *
- * ## Handling Multipart Cleanup
- *
- * By default, this class will automatically clean up any multipart uploads
- * when an individual part upload fails. This behavior can be disabled in order
- * to manually handle failures by setting the `leavePartsOnError` configuration
- * option to `true` when initializing the upload object.
- *
- * @!event httpUploadProgress(progress)
- * Triggered when the uploader has uploaded more data.
- * @note The `total` property may not be set if the stream being uploaded has
- * not yet finished chunking. In this case the `total` will be undefined
- * until the total stream size is known.
- * @note This event will not be emitted in Node.js 0.8.x.
- * @param progress [map] An object containing the `loaded` and `total` bytes
- * of the request and the `key` of the S3 object. Note that `total` may be undefined until the payload
- * size is known.
- * @context (see AWS.Request~send)
- */
-AWS.S3.ManagedUpload = AWS.util.inherit({
- /**
- * Creates a managed upload object with a set of configuration options.
- *
- * @note A "Body" parameter is required to be set prior to calling {send}.
- * @note In Node.js, sending "Body" as {https://nodejs.org/dist/latest/docs/api/stream.html#stream_object_mode object-mode stream}
- * may result in upload hangs. Using buffer stream is preferable.
- * @option options params [map] a map of parameters to pass to the upload
- * requests. The "Body" parameter is required to be specified either on
- * the service or in the params option.
- * @note ContentMD5 should not be provided when using the managed upload object.
- * Instead, setting "computeChecksums" to true will enable automatic ContentMD5 generation
- * by the managed upload object.
- * @option options queueSize [Number] (4) the size of the concurrent queue
- * manager to upload parts in parallel. Set to 1 for synchronous uploading
- * of parts. Note that the uploader will buffer at most queueSize * partSize
- * bytes into memory at any given time.
- * @option options partSize [Number] (5mb) the size in bytes for each
- * individual part to be uploaded. Adjust the part size to ensure the number
- * of parts does not exceed {maxTotalParts}. See {minPartSize} for the
- * minimum allowed part size.
- * @option options leavePartsOnError [Boolean] (false) whether to abort the
- * multipart upload if an error occurs. Set to true if you want to handle
- * failures manually.
- * @option options service [AWS.S3] an optional S3 service object to use for
- * requests. This object might have bound parameters used by the uploader.
- * @option options tags [Array