From 237584872188b3da372b4b8f85cb1b53d12c2d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Gonz=C3=A1lez?= Date: Tue, 17 Oct 2023 20:16:59 +0200 Subject: [PATCH] chore: add release please action --- .github/workflows/release-please.yml | 19 + README.md | 1 - dist/index.js | 38328 +++++++++---------------- package.json | 2 +- 4 files changed, 14193 insertions(+), 24157 deletions(-) create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..0e1aca3 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,19 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + with: + release-type: node + package-name: package.json diff --git a/README.md b/README.md index 6c40e4d..7a1d75c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ - # GitHub Action: BinPar Deploy ECS Service Action for GitHub Actions diff --git a/dist/index.js b/dist/index.js index 8b397ea..5cc46b1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2446,7 +2446,7 @@ const CreateInternetGatewayCommand_1 = __nccwpck_require__(67338); const CreateIpamCommand_1 = __nccwpck_require__(55700); const CreateIpamPoolCommand_1 = __nccwpck_require__(88195); const CreateIpamResourceDiscoveryCommand_1 = __nccwpck_require__(58475); -const CreateIpamScopeCommand_1 = __nccwpck_require__(79825); +const CreateIpamScopeCommand_1 = __nccwpck_require__(91568); const CreateKeyPairCommand_1 = __nccwpck_require__(70361); const CreateLaunchTemplateCommand_1 = __nccwpck_require__(49609); const CreateLaunchTemplateVersionCommand_1 = __nccwpck_require__(34248); @@ -3585,7 +3585,7 @@ exports.EC2 = EC2; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.EC2Client = exports.__Client = void 0; -const middleware_host_header_1 = __nccwpck_require__(53527); +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_signing_1 = __nccwpck_require__(14935); @@ -8178,7 +8178,7 @@ exports.CreateIpamResourceDiscoveryCommand = CreateIpamResourceDiscoveryCommand; /***/ }), -/***/ 79825: +/***/ 91568: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -39092,7 +39092,7 @@ tslib_1.__exportStar(__nccwpck_require__(67338), exports); tslib_1.__exportStar(__nccwpck_require__(55700), exports); tslib_1.__exportStar(__nccwpck_require__(88195), exports); tslib_1.__exportStar(__nccwpck_require__(58475), exports); -tslib_1.__exportStar(__nccwpck_require__(79825), exports); +tslib_1.__exportStar(__nccwpck_require__(91568), exports); tslib_1.__exportStar(__nccwpck_require__(70361), exports); tslib_1.__exportStar(__nccwpck_require__(49609), exports); tslib_1.__exportStar(__nccwpck_require__(34248), exports); @@ -113743,8 +113743,8 @@ 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__(95650)); -const client_sts_1 = __nccwpck_require__(32899); -const credential_provider_node_1 = __nccwpck_require__(99388); +const client_sts_1 = __nccwpck_require__(52209); +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); @@ -116240,43 +116240,148 @@ exports.waitUntilVpnConnectionDeleted = waitUntilVpnConnectionDeleted; /***/ }), -/***/ 51354: +/***/ 79074: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSO = void 0; +exports.ECS = void 0; const smithy_client_1 = __nccwpck_require__(63570); -const GetRoleCredentialsCommand_1 = __nccwpck_require__(43149); -const ListAccountRolesCommand_1 = __nccwpck_require__(45846); -const ListAccountsCommand_1 = __nccwpck_require__(43017); -const LogoutCommand_1 = __nccwpck_require__(57295); -const SSOClient_1 = __nccwpck_require__(31283); +const CreateCapacityProviderCommand_1 = __nccwpck_require__(24286); +const CreateClusterCommand_1 = __nccwpck_require__(39837); +const CreateServiceCommand_1 = __nccwpck_require__(60897); +const CreateTaskSetCommand_1 = __nccwpck_require__(31781); +const DeleteAccountSettingCommand_1 = __nccwpck_require__(71334); +const DeleteAttributesCommand_1 = __nccwpck_require__(88362); +const DeleteCapacityProviderCommand_1 = __nccwpck_require__(7608); +const DeleteClusterCommand_1 = __nccwpck_require__(36303); +const DeleteServiceCommand_1 = __nccwpck_require__(70362); +const DeleteTaskDefinitionsCommand_1 = __nccwpck_require__(94786); +const DeleteTaskSetCommand_1 = __nccwpck_require__(97462); +const DeregisterContainerInstanceCommand_1 = __nccwpck_require__(83594); +const DeregisterTaskDefinitionCommand_1 = __nccwpck_require__(87388); +const DescribeCapacityProvidersCommand_1 = __nccwpck_require__(42171); +const DescribeClustersCommand_1 = __nccwpck_require__(74863); +const DescribeContainerInstancesCommand_1 = __nccwpck_require__(28965); +const DescribeServicesCommand_1 = __nccwpck_require__(1000); +const DescribeTaskDefinitionCommand_1 = __nccwpck_require__(30751); +const DescribeTasksCommand_1 = __nccwpck_require__(59793); +const DescribeTaskSetsCommand_1 = __nccwpck_require__(40105); +const DiscoverPollEndpointCommand_1 = __nccwpck_require__(21923); +const ExecuteCommandCommand_1 = __nccwpck_require__(79414); +const GetTaskProtectionCommand_1 = __nccwpck_require__(98165); +const ListAccountSettingsCommand_1 = __nccwpck_require__(89726); +const ListAttributesCommand_1 = __nccwpck_require__(51415); +const ListClustersCommand_1 = __nccwpck_require__(92960); +const ListContainerInstancesCommand_1 = __nccwpck_require__(85133); +const ListServicesByNamespaceCommand_1 = __nccwpck_require__(2796); +const ListServicesCommand_1 = __nccwpck_require__(51752); +const ListTagsForResourceCommand_1 = __nccwpck_require__(69786); +const ListTaskDefinitionFamiliesCommand_1 = __nccwpck_require__(62735); +const ListTaskDefinitionsCommand_1 = __nccwpck_require__(27068); +const ListTasksCommand_1 = __nccwpck_require__(67517); +const PutAccountSettingCommand_1 = __nccwpck_require__(25364); +const PutAccountSettingDefaultCommand_1 = __nccwpck_require__(84597); +const PutAttributesCommand_1 = __nccwpck_require__(57327); +const PutClusterCapacityProvidersCommand_1 = __nccwpck_require__(60177); +const RegisterContainerInstanceCommand_1 = __nccwpck_require__(10590); +const RegisterTaskDefinitionCommand_1 = __nccwpck_require__(96309); +const RunTaskCommand_1 = __nccwpck_require__(55037); +const StartTaskCommand_1 = __nccwpck_require__(93535); +const StopTaskCommand_1 = __nccwpck_require__(98004); +const SubmitAttachmentStateChangesCommand_1 = __nccwpck_require__(10047); +const SubmitContainerStateChangeCommand_1 = __nccwpck_require__(60946); +const SubmitTaskStateChangeCommand_1 = __nccwpck_require__(92999); +const TagResourceCommand_1 = __nccwpck_require__(38275); +const UntagResourceCommand_1 = __nccwpck_require__(46926); +const UpdateCapacityProviderCommand_1 = __nccwpck_require__(11810); +const UpdateClusterCommand_1 = __nccwpck_require__(2219); +const UpdateClusterSettingsCommand_1 = __nccwpck_require__(76288); +const UpdateContainerAgentCommand_1 = __nccwpck_require__(32759); +const UpdateContainerInstancesStateCommand_1 = __nccwpck_require__(11453); +const UpdateServiceCommand_1 = __nccwpck_require__(17075); +const UpdateServicePrimaryTaskSetCommand_1 = __nccwpck_require__(94016); +const UpdateTaskProtectionCommand_1 = __nccwpck_require__(86555); +const UpdateTaskSetCommand_1 = __nccwpck_require__(45753); +const ECSClient_1 = __nccwpck_require__(55714); const commands = { - GetRoleCredentialsCommand: GetRoleCredentialsCommand_1.GetRoleCredentialsCommand, - ListAccountRolesCommand: ListAccountRolesCommand_1.ListAccountRolesCommand, - ListAccountsCommand: ListAccountsCommand_1.ListAccountsCommand, - LogoutCommand: LogoutCommand_1.LogoutCommand, + CreateCapacityProviderCommand: CreateCapacityProviderCommand_1.CreateCapacityProviderCommand, + CreateClusterCommand: CreateClusterCommand_1.CreateClusterCommand, + CreateServiceCommand: CreateServiceCommand_1.CreateServiceCommand, + CreateTaskSetCommand: CreateTaskSetCommand_1.CreateTaskSetCommand, + DeleteAccountSettingCommand: DeleteAccountSettingCommand_1.DeleteAccountSettingCommand, + DeleteAttributesCommand: DeleteAttributesCommand_1.DeleteAttributesCommand, + DeleteCapacityProviderCommand: DeleteCapacityProviderCommand_1.DeleteCapacityProviderCommand, + DeleteClusterCommand: DeleteClusterCommand_1.DeleteClusterCommand, + DeleteServiceCommand: DeleteServiceCommand_1.DeleteServiceCommand, + DeleteTaskDefinitionsCommand: DeleteTaskDefinitionsCommand_1.DeleteTaskDefinitionsCommand, + DeleteTaskSetCommand: DeleteTaskSetCommand_1.DeleteTaskSetCommand, + DeregisterContainerInstanceCommand: DeregisterContainerInstanceCommand_1.DeregisterContainerInstanceCommand, + DeregisterTaskDefinitionCommand: DeregisterTaskDefinitionCommand_1.DeregisterTaskDefinitionCommand, + DescribeCapacityProvidersCommand: DescribeCapacityProvidersCommand_1.DescribeCapacityProvidersCommand, + DescribeClustersCommand: DescribeClustersCommand_1.DescribeClustersCommand, + DescribeContainerInstancesCommand: DescribeContainerInstancesCommand_1.DescribeContainerInstancesCommand, + DescribeServicesCommand: DescribeServicesCommand_1.DescribeServicesCommand, + DescribeTaskDefinitionCommand: DescribeTaskDefinitionCommand_1.DescribeTaskDefinitionCommand, + DescribeTasksCommand: DescribeTasksCommand_1.DescribeTasksCommand, + DescribeTaskSetsCommand: DescribeTaskSetsCommand_1.DescribeTaskSetsCommand, + DiscoverPollEndpointCommand: DiscoverPollEndpointCommand_1.DiscoverPollEndpointCommand, + ExecuteCommandCommand: ExecuteCommandCommand_1.ExecuteCommandCommand, + GetTaskProtectionCommand: GetTaskProtectionCommand_1.GetTaskProtectionCommand, + ListAccountSettingsCommand: ListAccountSettingsCommand_1.ListAccountSettingsCommand, + ListAttributesCommand: ListAttributesCommand_1.ListAttributesCommand, + ListClustersCommand: ListClustersCommand_1.ListClustersCommand, + ListContainerInstancesCommand: ListContainerInstancesCommand_1.ListContainerInstancesCommand, + ListServicesCommand: ListServicesCommand_1.ListServicesCommand, + ListServicesByNamespaceCommand: ListServicesByNamespaceCommand_1.ListServicesByNamespaceCommand, + ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand, + ListTaskDefinitionFamiliesCommand: ListTaskDefinitionFamiliesCommand_1.ListTaskDefinitionFamiliesCommand, + ListTaskDefinitionsCommand: ListTaskDefinitionsCommand_1.ListTaskDefinitionsCommand, + ListTasksCommand: ListTasksCommand_1.ListTasksCommand, + PutAccountSettingCommand: PutAccountSettingCommand_1.PutAccountSettingCommand, + PutAccountSettingDefaultCommand: PutAccountSettingDefaultCommand_1.PutAccountSettingDefaultCommand, + PutAttributesCommand: PutAttributesCommand_1.PutAttributesCommand, + PutClusterCapacityProvidersCommand: PutClusterCapacityProvidersCommand_1.PutClusterCapacityProvidersCommand, + RegisterContainerInstanceCommand: RegisterContainerInstanceCommand_1.RegisterContainerInstanceCommand, + RegisterTaskDefinitionCommand: RegisterTaskDefinitionCommand_1.RegisterTaskDefinitionCommand, + RunTaskCommand: RunTaskCommand_1.RunTaskCommand, + StartTaskCommand: StartTaskCommand_1.StartTaskCommand, + StopTaskCommand: StopTaskCommand_1.StopTaskCommand, + SubmitAttachmentStateChangesCommand: SubmitAttachmentStateChangesCommand_1.SubmitAttachmentStateChangesCommand, + SubmitContainerStateChangeCommand: SubmitContainerStateChangeCommand_1.SubmitContainerStateChangeCommand, + SubmitTaskStateChangeCommand: SubmitTaskStateChangeCommand_1.SubmitTaskStateChangeCommand, + TagResourceCommand: TagResourceCommand_1.TagResourceCommand, + UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand, + UpdateCapacityProviderCommand: UpdateCapacityProviderCommand_1.UpdateCapacityProviderCommand, + UpdateClusterCommand: UpdateClusterCommand_1.UpdateClusterCommand, + UpdateClusterSettingsCommand: UpdateClusterSettingsCommand_1.UpdateClusterSettingsCommand, + UpdateContainerAgentCommand: UpdateContainerAgentCommand_1.UpdateContainerAgentCommand, + UpdateContainerInstancesStateCommand: UpdateContainerInstancesStateCommand_1.UpdateContainerInstancesStateCommand, + UpdateServiceCommand: UpdateServiceCommand_1.UpdateServiceCommand, + UpdateServicePrimaryTaskSetCommand: UpdateServicePrimaryTaskSetCommand_1.UpdateServicePrimaryTaskSetCommand, + UpdateTaskProtectionCommand: UpdateTaskProtectionCommand_1.UpdateTaskProtectionCommand, + UpdateTaskSetCommand: UpdateTaskSetCommand_1.UpdateTaskSetCommand, }; -class SSO extends SSOClient_1.SSOClient { +class ECS extends ECSClient_1.ECSClient { } -exports.SSO = SSO; -(0, smithy_client_1.createAggregatedClient)(commands, SSO); +exports.ECS = ECS; +(0, smithy_client_1.createAggregatedClient)(commands, ECS); /***/ }), -/***/ 31283: +/***/ 55714: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSOClient = exports.__Client = void 0; -const middleware_host_header_1 = __nccwpck_require__(53527); +exports.ECSClient = 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_signing_1 = __nccwpck_require__(14935); const middleware_user_agent_1 = __nccwpck_require__(64688); const config_resolver_1 = __nccwpck_require__(53098); const middleware_content_length_1 = __nccwpck_require__(82800); @@ -116284,10 +116389,10 @@ 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 EndpointParameters_1 = __nccwpck_require__(63796); -const runtimeConfig_1 = __nccwpck_require__(34029); -const runtimeExtensions_1 = __nccwpck_require__(909); -class SSOClient extends smithy_client_1.Client { +const EndpointParameters_1 = __nccwpck_require__(19970); +const runtimeConfig_1 = __nccwpck_require__(47246); +const runtimeExtensions_1 = __nccwpck_require__(14168); +class ECSClient extends smithy_client_1.Client { constructor(...[configuration]) { const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); @@ -116295,41 +116400,42 @@ class SSOClient extends smithy_client_1.Client { const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - const _config_7 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_6, configuration?.extensions || []); - super(_config_7); - this.config = _config_7; + const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5); + const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6); + const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []); + super(_config_8); + this.config = _config_8; 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, middleware_signing_1.getAwsAuthPlugin)(this.config)); this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); } destroy() { super.destroy(); } } -exports.SSOClient = SSOClient; +exports.ECSClient = ECSClient; /***/ }), -/***/ 43149: +/***/ 24286: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetRoleCredentialsCommand = exports.$Command = void 0; +exports.CreateCapacityProviderCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(25682); -const Aws_restJson1_1 = __nccwpck_require__(93112); -class GetRoleCredentialsCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class CreateCapacityProviderCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, @@ -116344,52 +116450,51 @@ class GetRoleCredentialsCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetRoleCredentialsCommand.getEndpointParameterInstructions())); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateCapacityProviderCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "GetRoleCredentialsCommand"; + const clientName = "ECSClient"; + const commandName = "CreateCapacityProviderCommand"; const handlerExecutionContext = { logger, clientName, commandName, - inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "GetRoleCredentials", + service: "AmazonEC2ContainerServiceV20141113", + operation: "CreateCapacityProvider", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_restJson1_1.se_GetRoleCredentialsCommand)(input, context); + return (0, Aws_json1_1_1.se_CreateCapacityProviderCommand)(input, context); } deserialize(output, context) { - return (0, Aws_restJson1_1.de_GetRoleCredentialsCommand)(output, context); + return (0, Aws_json1_1_1.de_CreateCapacityProviderCommand)(output, context); } } -exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; +exports.CreateCapacityProviderCommand = CreateCapacityProviderCommand; /***/ }), -/***/ 45846: +/***/ 39837: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAccountRolesCommand = exports.$Command = void 0; +exports.CreateClusterCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(25682); -const Aws_restJson1_1 = __nccwpck_require__(93112); -class ListAccountRolesCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class CreateClusterCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, @@ -116404,52 +116509,51 @@ class ListAccountRolesCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccountRolesCommand.getEndpointParameterInstructions())); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateClusterCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountRolesCommand"; + const clientName = "ECSClient"; + const commandName = "CreateClusterCommand"; const handlerExecutionContext = { logger, clientName, commandName, - inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, + inputFilterSensitiveLog: (_) => _, outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "ListAccountRoles", + service: "AmazonEC2ContainerServiceV20141113", + operation: "CreateCluster", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_restJson1_1.se_ListAccountRolesCommand)(input, context); + return (0, Aws_json1_1_1.se_CreateClusterCommand)(input, context); } deserialize(output, context) { - return (0, Aws_restJson1_1.de_ListAccountRolesCommand)(output, context); + return (0, Aws_json1_1_1.de_CreateClusterCommand)(output, context); } } -exports.ListAccountRolesCommand = ListAccountRolesCommand; +exports.CreateClusterCommand = CreateClusterCommand; /***/ }), -/***/ 43017: +/***/ 60897: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAccountsCommand = exports.$Command = void 0; +exports.CreateServiceCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(25682); -const Aws_restJson1_1 = __nccwpck_require__(93112); -class ListAccountsCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class CreateServiceCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, @@ -116464,52 +116568,51 @@ class ListAccountsCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccountsCommand.getEndpointParameterInstructions())); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateServiceCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountsCommand"; + const clientName = "ECSClient"; + const commandName = "CreateServiceCommand"; const handlerExecutionContext = { logger, clientName, commandName, - inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, + inputFilterSensitiveLog: (_) => _, outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "ListAccounts", + service: "AmazonEC2ContainerServiceV20141113", + operation: "CreateService", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_restJson1_1.se_ListAccountsCommand)(input, context); + return (0, Aws_json1_1_1.se_CreateServiceCommand)(input, context); } deserialize(output, context) { - return (0, Aws_restJson1_1.de_ListAccountsCommand)(output, context); + return (0, Aws_json1_1_1.de_CreateServiceCommand)(output, context); } } -exports.ListAccountsCommand = ListAccountsCommand; +exports.CreateServiceCommand = CreateServiceCommand; /***/ }), -/***/ 57295: +/***/ 31781: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LogoutCommand = exports.$Command = void 0; +exports.CreateTaskSetCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(25682); -const Aws_restJson1_1 = __nccwpck_require__(93112); -class LogoutCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class CreateTaskSetCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, @@ -116524,944 +116627,1116 @@ class LogoutCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, LogoutCommand.getEndpointParameterInstructions())); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateTaskSetCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "LogoutCommand"; + const clientName = "ECSClient"; + const commandName = "CreateTaskSetCommand"; const handlerExecutionContext = { logger, clientName, commandName, - inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, + inputFilterSensitiveLog: (_) => _, outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "Logout", + service: "AmazonEC2ContainerServiceV20141113", + operation: "CreateTaskSet", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_restJson1_1.se_LogoutCommand)(input, context); + return (0, Aws_json1_1_1.se_CreateTaskSetCommand)(input, context); } deserialize(output, context) { - return (0, Aws_restJson1_1.de_LogoutCommand)(output, context); + return (0, Aws_json1_1_1.de_CreateTaskSetCommand)(output, context); } } -exports.LogoutCommand = LogoutCommand; +exports.CreateTaskSetCommand = CreateTaskSetCommand; /***/ }), -/***/ 96083: +/***/ 71334: /***/ ((__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__(43149), exports); -tslib_1.__exportStar(__nccwpck_require__(45846), exports); -tslib_1.__exportStar(__nccwpck_require__(43017), exports); -tslib_1.__exportStar(__nccwpck_require__(57295), exports); +exports.DeleteAccountSettingCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DeleteAccountSettingCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAccountSettingCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DeleteAccountSettingCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DeleteAccountSetting", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DeleteAccountSettingCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DeleteAccountSettingCommand)(output, context); + } +} +exports.DeleteAccountSettingCommand = DeleteAccountSettingCommand; /***/ }), -/***/ 63796: -/***/ ((__unused_webpack_module, exports) => { +/***/ 88362: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveClientEndpointParameters = void 0; -const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "awsssoportal", - }; -}; -exports.resolveClientEndpointParameters = resolveClientEndpointParameters; +exports.DeleteAttributesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DeleteAttributesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAttributesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DeleteAttributesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DeleteAttributes", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DeleteAttributesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DeleteAttributesCommand)(output, context); + } +} +exports.DeleteAttributesCommand = DeleteAttributesCommand; /***/ }), -/***/ 70297: +/***/ 7608: /***/ ((__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 ruleset_1 = __nccwpck_require__(33702); -const defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); -}; -exports.defaultEndpointResolver = defaultEndpointResolver; +exports.DeleteCapacityProviderCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DeleteCapacityProviderCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteCapacityProviderCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DeleteCapacityProviderCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DeleteCapacityProvider", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DeleteCapacityProviderCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DeleteCapacityProviderCommand)(output, context); + } +} +exports.DeleteCapacityProviderCommand = DeleteCapacityProviderCommand; /***/ }), -/***/ 33702: -/***/ ((__unused_webpack_module, exports) => { +/***/ 36303: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ruleSet = void 0; -const s = "required", t = "fn", u = "argv", v = "ref"; -const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }]; -const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }; -exports.ruleSet = _data; +exports.DeleteClusterCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DeleteClusterCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteClusterCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DeleteClusterCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DeleteCluster", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DeleteClusterCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DeleteClusterCommand)(output, context); + } +} +exports.DeleteClusterCommand = DeleteClusterCommand; /***/ }), -/***/ 37085: +/***/ 70362: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSOServiceException = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(31283), exports); -tslib_1.__exportStar(__nccwpck_require__(51354), exports); -tslib_1.__exportStar(__nccwpck_require__(96083), exports); -tslib_1.__exportStar(__nccwpck_require__(91568), exports); -tslib_1.__exportStar(__nccwpck_require__(31062), exports); -var SSOServiceException_1 = __nccwpck_require__(80778); -Object.defineProperty(exports, "SSOServiceException", ({ enumerable: true, get: function () { return SSOServiceException_1.SSOServiceException; } })); +exports.DeleteServiceCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DeleteServiceCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteServiceCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DeleteServiceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DeleteService", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DeleteServiceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DeleteServiceCommand)(output, context); + } +} +exports.DeleteServiceCommand = DeleteServiceCommand; /***/ }), -/***/ 80778: +/***/ 94786: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSOServiceException = exports.__ServiceException = void 0; +exports.DeleteTaskDefinitionsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } })); -class SSOServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, SSOServiceException.prototype); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DeleteTaskDefinitionsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteTaskDefinitionsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DeleteTaskDefinitionsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DeleteTaskDefinitions", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DeleteTaskDefinitionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DeleteTaskDefinitionsCommand)(output, context); } } -exports.SSOServiceException = SSOServiceException; +exports.DeleteTaskDefinitionsCommand = DeleteTaskDefinitionsCommand; /***/ }), -/***/ 31062: +/***/ 97462: /***/ ((__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__(25682), exports); +exports.DeleteTaskSetCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DeleteTaskSetCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteTaskSetCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DeleteTaskSetCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DeleteTaskSet", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DeleteTaskSetCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DeleteTaskSetCommand)(output, context); + } +} +exports.DeleteTaskSetCommand = DeleteTaskSetCommand; /***/ }), -/***/ 25682: +/***/ 83594: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0; +exports.DeregisterContainerInstanceCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); -const SSOServiceException_1 = __nccwpck_require__(80778); -class InvalidRequestException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidRequestException.prototype); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DeregisterContainerInstanceCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } -} -exports.InvalidRequestException = InvalidRequestException; -class ResourceNotFoundException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "ResourceNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ResourceNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + constructor(input) { + super(); + this.input = input; } -} -exports.ResourceNotFoundException = ResourceNotFoundException; -class TooManyRequestsException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "TooManyRequestsException", - $fault: "client", - ...opts, - }); - this.name = "TooManyRequestsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyRequestsException.prototype); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterContainerInstanceCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DeregisterContainerInstanceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DeregisterContainerInstance", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } -} -exports.TooManyRequestsException = TooManyRequestsException; -class UnauthorizedException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "UnauthorizedException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnauthorizedException.prototype); + serialize(input, context) { + return (0, Aws_json1_1_1.se_DeregisterContainerInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DeregisterContainerInstanceCommand)(output, context); } } -exports.UnauthorizedException = UnauthorizedException; -const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; -const RoleCredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }), - ...(obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; -const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.roleCredentials && { roleCredentials: (0, exports.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) }), -}); -exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; -const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; -const ListAccountsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; -const LogoutRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; +exports.DeregisterContainerInstanceCommand = DeregisterContainerInstanceCommand; /***/ }), -/***/ 87192: -/***/ ((__unused_webpack_module, exports) => { +/***/ 87388: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeregisterTaskDefinitionCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DeregisterTaskDefinitionCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterTaskDefinitionCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DeregisterTaskDefinitionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DeregisterTaskDefinition", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DeregisterTaskDefinitionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DeregisterTaskDefinitionCommand)(output, context); + } +} +exports.DeregisterTaskDefinitionCommand = DeregisterTaskDefinitionCommand; /***/ }), -/***/ 84501: +/***/ 42171: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAccountRoles = void 0; -const ListAccountRolesCommand_1 = __nccwpck_require__(45846); -const SSOClient_1 = __nccwpck_require__(31283); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); -}; -async function* paginateListAccountRoles(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); +exports.DescribeCapacityProvidersCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DescribeCapacityProvidersCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeCapacityProvidersCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DescribeCapacityProvidersCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DescribeCapacityProviders", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DescribeCapacityProvidersCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DescribeCapacityProvidersCommand)(output, context); } - return undefined; } -exports.paginateListAccountRoles = paginateListAccountRoles; +exports.DescribeCapacityProvidersCommand = DescribeCapacityProvidersCommand; /***/ }), -/***/ 75888: +/***/ 74863: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAccounts = void 0; -const ListAccountsCommand_1 = __nccwpck_require__(43017); -const SSOClient_1 = __nccwpck_require__(31283); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); -}; -async function* paginateListAccounts(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); +exports.DescribeClustersCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DescribeClustersCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeClustersCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DescribeClustersCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DescribeClusters", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DescribeClustersCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DescribeClustersCommand)(output, context); } - return undefined; } -exports.paginateListAccounts = paginateListAccounts; +exports.DescribeClustersCommand = DescribeClustersCommand; /***/ }), -/***/ 91568: +/***/ 28965: /***/ ((__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__(87192), exports); -tslib_1.__exportStar(__nccwpck_require__(84501), exports); -tslib_1.__exportStar(__nccwpck_require__(75888), exports); +exports.DescribeContainerInstancesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DescribeContainerInstancesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeContainerInstancesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DescribeContainerInstancesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DescribeContainerInstances", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DescribeContainerInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DescribeContainerInstancesCommand)(output, context); + } +} +exports.DescribeContainerInstancesCommand = DescribeContainerInstancesCommand; /***/ }), -/***/ 93112: +/***/ 1000: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.de_LogoutCommand = exports.de_ListAccountsCommand = exports.de_ListAccountRolesCommand = exports.de_GetRoleCredentialsCommand = exports.se_LogoutCommand = exports.se_ListAccountsCommand = exports.se_ListAccountRolesCommand = exports.se_GetRoleCredentialsCommand = void 0; -const protocol_http_1 = __nccwpck_require__(64418); +exports.DescribeServicesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); -const models_0_1 = __nccwpck_require__(25682); -const SSOServiceException_1 = __nccwpck_require__(80778); -const se_GetRoleCredentialsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/federation/credentials"; - const query = (0, smithy_client_1.map)({ - role_name: [, (0, smithy_client_1.expectNonNull)(input.roleName, `roleName`)], - account_id: [, (0, smithy_client_1.expectNonNull)(input.accountId, `accountId`)], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.se_GetRoleCredentialsCommand = se_GetRoleCredentialsCommand; -const se_ListAccountRolesCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/roles"; - const query = (0, smithy_client_1.map)({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - account_id: [, (0, smithy_client_1.expectNonNull)(input.accountId, `accountId`)], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.se_ListAccountRolesCommand = se_ListAccountRolesCommand; -const se_ListAccountsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/accounts"; - const query = (0, smithy_client_1.map)({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.se_ListAccountsCommand = se_ListAccountsCommand; -const se_LogoutCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logout"; - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -exports.se_LogoutCommand = se_LogoutCommand; -const de_GetRoleCredentialsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_GetRoleCredentialsCommandError(output, context); - } - const contents = (0, smithy_client_1.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_1.take)(data, { - roleCredentials: smithy_client_1._json, - }); - Object.assign(contents, doc); - return contents; -}; -exports.de_GetRoleCredentialsCommand = de_GetRoleCredentialsCommand; -const de_GetRoleCredentialsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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, - }); - } -}; -const de_ListAccountRolesCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListAccountRolesCommandError(output, context); - } - const contents = (0, smithy_client_1.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_1.take)(data, { - nextToken: smithy_client_1.expectString, - roleList: smithy_client_1._json, - }); - Object.assign(contents, doc); - return contents; -}; -exports.de_ListAccountRolesCommand = de_ListAccountRolesCommand; -const de_ListAccountRolesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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, - }); - } -}; -const de_ListAccountsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListAccountsCommandError(output, context); - } - const contents = (0, smithy_client_1.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_1.take)(data, { - accountList: smithy_client_1._json, - nextToken: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - return contents; -}; -exports.de_ListAccountsCommand = de_ListAccountsCommand; -const de_ListAccountsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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, - }); - } -}; -const de_LogoutCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_LogoutCommandError(output, context); - } - const contents = (0, smithy_client_1.map)({ - $metadata: deserializeMetadata(output), - }); - await (0, smithy_client_1.collectBody)(output.body, context); - return contents; -}; -exports.de_LogoutCommand = de_LogoutCommand; -const de_LogoutCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(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, - }); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DescribeServicesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } -}; -const throwDefaultError = (0, smithy_client_1.withBaseException)(SSOServiceException_1.SSOServiceException); -const de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.TooManyRequestsException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const de_UnauthorizedExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.UnauthorizedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const deserializeMetadata = (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"], -}); -const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -const isSerializableHeaderValue = (value) => value !== undefined && - value !== null && - value !== "" && - (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && - (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); + constructor(input) { + super(); + this.input = input; } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; -}; -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (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; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeServicesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DescribeServicesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DescribeServices", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); + serialize(input, context) { + return (0, Aws_json1_1_1.se_DescribeServicesCommand)(input, context); } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DescribeServicesCommand)(output, context); } -}; +} +exports.DescribeServicesCommand = DescribeServicesCommand; /***/ }), -/***/ 34029: +/***/ 30751: /***/ ((__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__(61677)); -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__(2641); +exports.DescribeTaskDefinitionCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); 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); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_node_1.defaultUserAgent)({ 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), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(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, - }), - 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), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DescribeTaskDefinitionCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTaskDefinitionCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DescribeTaskDefinitionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DescribeTaskDefinition", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DescribeTaskDefinitionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DescribeTaskDefinitionCommand)(output, context); + } +} +exports.DescribeTaskDefinitionCommand = DescribeTaskDefinitionCommand; /***/ }), -/***/ 2641: +/***/ 40105: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; +exports.DescribeTaskSetsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); 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 endpointResolver_1 = __nccwpck_require__(70297); -const getRuntimeConfig = (config) => ({ - 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 ?? [], - 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; +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DescribeTaskSetsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTaskSetsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DescribeTaskSetsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DescribeTaskSets", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DescribeTaskSetsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DescribeTaskSetsCommand)(output, context); + } +} +exports.DescribeTaskSetsCommand = DescribeTaskSetsCommand; /***/ }), -/***/ 909: +/***/ 59793: /***/ ((__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); +exports.DescribeTasksCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); -const asPartial = (t) => t; -const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - }; -}; -exports.resolveRuntimeExtensions = resolveRuntimeExtensions; +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DescribeTasksCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTasksCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DescribeTasksCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DescribeTasks", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DescribeTasksCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DescribeTasksCommand)(output, context); + } +} +exports.DescribeTasksCommand = DescribeTasksCommand; /***/ }), -/***/ 9716: +/***/ 21923: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STS = void 0; +exports.DiscoverPollEndpointCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); -const AssumeRoleCommand_1 = __nccwpck_require__(56986); -const AssumeRoleWithSAMLCommand_1 = __nccwpck_require__(49763); -const AssumeRoleWithWebIdentityCommand_1 = __nccwpck_require__(92719); -const DecodeAuthorizationMessageCommand_1 = __nccwpck_require__(31422); -const GetAccessKeyInfoCommand_1 = __nccwpck_require__(68780); -const GetCallerIdentityCommand_1 = __nccwpck_require__(13331); -const GetFederationTokenCommand_1 = __nccwpck_require__(12405); -const GetSessionTokenCommand_1 = __nccwpck_require__(83148); -const STSClient_1 = __nccwpck_require__(1867); -const commands = { - AssumeRoleCommand: AssumeRoleCommand_1.AssumeRoleCommand, - AssumeRoleWithSAMLCommand: AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand, - AssumeRoleWithWebIdentityCommand: AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand, - DecodeAuthorizationMessageCommand: DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand, - GetAccessKeyInfoCommand: GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand, - GetCallerIdentityCommand: GetCallerIdentityCommand_1.GetCallerIdentityCommand, - GetFederationTokenCommand: GetFederationTokenCommand_1.GetFederationTokenCommand, - GetSessionTokenCommand: GetSessionTokenCommand_1.GetSessionTokenCommand, -}; -class STS extends STSClient_1.STSClient { +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class DiscoverPollEndpointCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DiscoverPollEndpointCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "DiscoverPollEndpointCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "DiscoverPollEndpoint", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_DiscoverPollEndpointCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_DiscoverPollEndpointCommand)(output, context); + } } -exports.STS = STS; -(0, smithy_client_1.createAggregatedClient)(commands, STS); +exports.DiscoverPollEndpointCommand = DiscoverPollEndpointCommand; /***/ }), -/***/ 1867: +/***/ 79414: /***/ ((__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__(53527); -const middleware_logger_1 = __nccwpck_require__(20014); -const middleware_recursion_detection_1 = __nccwpck_require__(85525); -const middleware_sdk_sts_1 = __nccwpck_require__(55959); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const config_resolver_1 = __nccwpck_require__(53098); -const middleware_content_length_1 = __nccwpck_require__(82800); +exports.ExecuteCommandCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_retry_1 = __nccwpck_require__(96039); +const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "__Client", ({ enumerable: true, get: function () { return smithy_client_1.Client; } })); -const EndpointParameters_1 = __nccwpck_require__(53403); -const runtimeConfig_1 = __nccwpck_require__(11097); -const runtimeExtensions_1 = __nccwpck_require__(34370); -class STSClient extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); - const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_5, { stsClientCtor: STSClient }); - const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6); - const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []); - super(_config_8); - this.config = _config_8; - 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, middleware_user_agent_1.getUserAgentPlugin)(this.config)); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const models_0_1 = __nccwpck_require__(89402); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ExecuteCommandCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - destroy() { - super.destroy(); + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ExecuteCommandCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "ExecuteCommandCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: models_0_1.ExecuteCommandResponseFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "ExecuteCommand", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_ExecuteCommandCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_ExecuteCommandCommand)(output, context); } } -exports.STSClient = STSClient; +exports.ExecuteCommandCommand = ExecuteCommandCommand; /***/ }), -/***/ 56986: +/***/ 98165: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); +exports.GetTaskProtectionCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(33316); -const Aws_query_1 = __nccwpck_require__(43637); -class AssumeRoleCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class GetTaskProtectionCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, @@ -117474,56 +117749,53 @@ class AssumeRoleCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetTaskProtectionCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleCommand"; + const clientName = "ECSClient"; + const commandName = "GetTaskProtectionCommand"; const handlerExecutionContext = { logger, clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog, + outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRole", + service: "AmazonEC2ContainerServiceV20141113", + operation: "GetTaskProtection", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleCommand)(input, context); + return (0, Aws_json1_1_1.se_GetTaskProtectionCommand)(input, context); } deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleCommand)(output, context); + return (0, Aws_json1_1_1.de_GetTaskProtectionCommand)(output, context); } } -exports.AssumeRoleCommand = AssumeRoleCommand; +exports.GetTaskProtectionCommand = GetTaskProtectionCommand; /***/ }), -/***/ 49763: +/***/ 89726: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleWithSAMLCommand = exports.$Command = void 0; +exports.ListAccountSettingsCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(33316); -const Aws_query_1 = __nccwpck_require__(43637); -class AssumeRoleWithSAMLCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ListAccountSettingsCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, @@ -117536,55 +117808,53 @@ class AssumeRoleWithSAMLCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleWithSAMLCommand.getEndpointParameterInstructions())); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccountSettingsCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithSAMLCommand"; + const clientName = "ECSClient"; + const commandName = "ListAccountSettingsCommand"; const handlerExecutionContext = { logger, clientName, commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRoleWithSAML", + service: "AmazonEC2ContainerServiceV20141113", + operation: "ListAccountSettings", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleWithSAMLCommand)(input, context); + return (0, Aws_json1_1_1.se_ListAccountSettingsCommand)(input, context); } deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleWithSAMLCommand)(output, context); + return (0, Aws_json1_1_1.de_ListAccountSettingsCommand)(output, context); } } -exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; +exports.ListAccountSettingsCommand = ListAccountSettingsCommand; /***/ }), -/***/ 92719: +/***/ 51415: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleWithWebIdentityCommand = exports.$Command = void 0; +exports.ListAttributesCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(33316); -const Aws_query_1 = __nccwpck_require__(43637); -class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ListAttributesCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, @@ -117597,55 +117867,53 @@ class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions())); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAttributesCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithWebIdentityCommand"; + const clientName = "ECSClient"; + const commandName = "ListAttributesCommand"; const handlerExecutionContext = { logger, clientName, commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRoleWithWebIdentity", + service: "AmazonEC2ContainerServiceV20141113", + operation: "ListAttributes", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleWithWebIdentityCommand)(input, context); + return (0, Aws_json1_1_1.se_ListAttributesCommand)(input, context); } deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleWithWebIdentityCommand)(output, context); + return (0, Aws_json1_1_1.de_ListAttributesCommand)(output, context); } } -exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; +exports.ListAttributesCommand = ListAttributesCommand; /***/ }), -/***/ 31422: +/***/ 92960: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DecodeAuthorizationMessageCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); +exports.ListClustersCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(43637); -class DecodeAuthorizationMessageCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ListClustersCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, @@ -117658,12 +117926,11 @@ class DecodeAuthorizationMessageCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DecodeAuthorizationMessageCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListClustersCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "DecodeAuthorizationMessageCommand"; + const clientName = "ECSClient"; + const commandName = "ListClustersCommand"; const handlerExecutionContext = { logger, clientName, @@ -117671,43 +117938,41 @@ class DecodeAuthorizationMessageCommand extends smithy_client_1.Command { inputFilterSensitiveLog: (_) => _, outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "DecodeAuthorizationMessage", + service: "AmazonEC2ContainerServiceV20141113", + operation: "ListClusters", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_query_1.se_DecodeAuthorizationMessageCommand)(input, context); + return (0, Aws_json1_1_1.se_ListClustersCommand)(input, context); } deserialize(output, context) { - return (0, Aws_query_1.de_DecodeAuthorizationMessageCommand)(output, context); + return (0, Aws_json1_1_1.de_ListClustersCommand)(output, context); } } -exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; +exports.ListClustersCommand = ListClustersCommand; /***/ }), -/***/ 68780: +/***/ 85133: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetAccessKeyInfoCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); +exports.ListContainerInstancesCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(43637); -class GetAccessKeyInfoCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ListContainerInstancesCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, @@ -117720,12 +117985,11 @@ class GetAccessKeyInfoCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccessKeyInfoCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListContainerInstancesCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetAccessKeyInfoCommand"; + const clientName = "ECSClient"; + const commandName = "ListContainerInstancesCommand"; const handlerExecutionContext = { logger, clientName, @@ -117733,43 +117997,41 @@ class GetAccessKeyInfoCommand extends smithy_client_1.Command { inputFilterSensitiveLog: (_) => _, outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetAccessKeyInfo", + service: "AmazonEC2ContainerServiceV20141113", + operation: "ListContainerInstances", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_query_1.se_GetAccessKeyInfoCommand)(input, context); + return (0, Aws_json1_1_1.se_ListContainerInstancesCommand)(input, context); } deserialize(output, context) { - return (0, Aws_query_1.de_GetAccessKeyInfoCommand)(output, context); + return (0, Aws_json1_1_1.de_ListContainerInstancesCommand)(output, context); } } -exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; +exports.ListContainerInstancesCommand = ListContainerInstancesCommand; /***/ }), -/***/ 13331: +/***/ 2796: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetCallerIdentityCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); +exports.ListServicesByNamespaceCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(43637); -class GetCallerIdentityCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ListServicesByNamespaceCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, @@ -117782,12 +118044,11 @@ class GetCallerIdentityCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCallerIdentityCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListServicesByNamespaceCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetCallerIdentityCommand"; + const clientName = "ECSClient"; + const commandName = "ListServicesByNamespaceCommand"; const handlerExecutionContext = { logger, clientName, @@ -117795,44 +118056,41 @@ class GetCallerIdentityCommand extends smithy_client_1.Command { inputFilterSensitiveLog: (_) => _, outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetCallerIdentity", + service: "AmazonEC2ContainerServiceV20141113", + operation: "ListServicesByNamespace", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_query_1.se_GetCallerIdentityCommand)(input, context); + return (0, Aws_json1_1_1.se_ListServicesByNamespaceCommand)(input, context); } deserialize(output, context) { - return (0, Aws_query_1.de_GetCallerIdentityCommand)(output, context); + return (0, Aws_json1_1_1.de_ListServicesByNamespaceCommand)(output, context); } } -exports.GetCallerIdentityCommand = GetCallerIdentityCommand; +exports.ListServicesByNamespaceCommand = ListServicesByNamespaceCommand; /***/ }), -/***/ 12405: +/***/ 51752: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetFederationTokenCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); +exports.ListServicesCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(33316); -const Aws_query_1 = __nccwpck_require__(43637); -class GetFederationTokenCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ListServicesCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, @@ -117845,57 +118103,53 @@ class GetFederationTokenCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetFederationTokenCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListServicesCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetFederationTokenCommand"; + const clientName = "ECSClient"; + const commandName = "ListServicesCommand"; const handlerExecutionContext = { logger, clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog, + outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetFederationToken", + service: "AmazonEC2ContainerServiceV20141113", + operation: "ListServices", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_query_1.se_GetFederationTokenCommand)(input, context); + return (0, Aws_json1_1_1.se_ListServicesCommand)(input, context); } deserialize(output, context) { - return (0, Aws_query_1.de_GetFederationTokenCommand)(output, context); + return (0, Aws_json1_1_1.de_ListServicesCommand)(output, context); } } -exports.GetFederationTokenCommand = GetFederationTokenCommand; +exports.ListServicesCommand = ListServicesCommand; /***/ }), -/***/ 83148: +/***/ 69786: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetSessionTokenCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); +exports.ListTagsForResourceCommand = exports.$Command = void 0; const middleware_endpoint_1 = __nccwpck_require__(82918); const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(33316); -const Aws_query_1 = __nccwpck_require__(43637); -class GetSessionTokenCommand extends smithy_client_1.Command { +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ListTagsForResourceCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, @@ -117908,23599 +118162,13621 @@ class GetSessionTokenCommand extends smithy_client_1.Command { } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSessionTokenCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetSessionTokenCommand"; + const clientName = "ECSClient"; + const commandName = "ListTagsForResourceCommand"; const handlerExecutionContext = { logger, clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog, + outputFilterSensitiveLog: (_) => _, [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetSessionToken", + service: "AmazonEC2ContainerServiceV20141113", + operation: "ListTagsForResource", }, }; const { requestHandler } = configuration; return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_query_1.se_GetSessionTokenCommand)(input, context); + return (0, Aws_json1_1_1.se_ListTagsForResourceCommand)(input, context); } deserialize(output, context) { - return (0, Aws_query_1.de_GetSessionTokenCommand)(output, context); + return (0, Aws_json1_1_1.de_ListTagsForResourceCommand)(output, context); } } -exports.GetSessionTokenCommand = GetSessionTokenCommand; +exports.ListTagsForResourceCommand = ListTagsForResourceCommand; /***/ }), -/***/ 21432: +/***/ 62735: /***/ ((__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__(56986), exports); -tslib_1.__exportStar(__nccwpck_require__(49763), exports); -tslib_1.__exportStar(__nccwpck_require__(92719), exports); -tslib_1.__exportStar(__nccwpck_require__(31422), exports); -tslib_1.__exportStar(__nccwpck_require__(68780), exports); -tslib_1.__exportStar(__nccwpck_require__(13331), exports); -tslib_1.__exportStar(__nccwpck_require__(12405), exports); -tslib_1.__exportStar(__nccwpck_require__(83148), exports); +exports.ListTaskDefinitionFamiliesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ListTaskDefinitionFamiliesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTaskDefinitionFamiliesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "ListTaskDefinitionFamiliesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "ListTaskDefinitionFamilies", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_ListTaskDefinitionFamiliesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_ListTaskDefinitionFamiliesCommand)(output, context); + } +} +exports.ListTaskDefinitionFamiliesCommand = ListTaskDefinitionFamiliesCommand; /***/ }), -/***/ 75043: +/***/ 27068: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; -const defaultStsRoleAssumers_1 = __nccwpck_require__(29702); -const STSClient_1 = __nccwpck_require__(1867); -const getCustomizableStsClientCtor = (baseCtor, customizations) => { - if (!customizations) - return baseCtor; - else - return class CustomizableSTSClient extends baseCtor { - constructor(config) { - super(config); - for (const customization of customizations) { - this.middlewareStack.use(customization); - } - } - }; -}; -const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); -exports.getDefaultRoleAssumer = getDefaultRoleAssumer; -const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); -exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; -const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input), - ...input, -}); -exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; +exports.ListTaskDefinitionsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ListTaskDefinitionsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTaskDefinitionsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "ListTaskDefinitionsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "ListTaskDefinitions", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_ListTaskDefinitionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_ListTaskDefinitionsCommand)(output, context); + } +} +exports.ListTaskDefinitionsCommand = ListTaskDefinitionsCommand; /***/ }), -/***/ 29702: +/***/ 67517: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; -const AssumeRoleCommand_1 = __nccwpck_require__(56986); -const AssumeRoleWithWebIdentityCommand_1 = __nccwpck_require__(92719); -const ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; -const decorateDefaultRegion = (region) => { - if (typeof region !== "function") { - return region === undefined ? ASSUME_ROLE_DEFAULT_REGION : region; - } - return async () => { - try { - return await region(); - } - catch (e) { - return ASSUME_ROLE_DEFAULT_REGION; - } - }; -}; -const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { - let stsClient; - let closureSourceCreds; - return async (sourceCreds, params) => { - closureSourceCreds = sourceCreds; - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - credentialDefaultProvider: () => async () => closureSourceCreds, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); - } +exports.ListTasksCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class ListTasksCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, }; - }; -}; -exports.getDefaultRoleAssumer = getDefaultRoleAssumer; -const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { - let stsClient; - return async (params) => { - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTasksCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "ListTasksCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "ListTasks", + }, }; - }; -}; -exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; -const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), - ...input, -}); -exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_ListTasksCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_ListTasksCommand)(output, context); + } +} +exports.ListTasksCommand = ListTasksCommand; /***/ }), -/***/ 53403: -/***/ ((__unused_webpack_module, exports) => { +/***/ 25364: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveClientEndpointParameters = void 0; -const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - useGlobalEndpoint: options.useGlobalEndpoint ?? false, - defaultSigningName: "sts", - }; -}; -exports.resolveClientEndpointParameters = resolveClientEndpointParameters; +exports.PutAccountSettingCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class PutAccountSettingCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutAccountSettingCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "PutAccountSettingCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "PutAccountSetting", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_PutAccountSettingCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_PutAccountSettingCommand)(output, context); + } +} +exports.PutAccountSettingCommand = PutAccountSettingCommand; /***/ }), -/***/ 130: +/***/ 84597: /***/ ((__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 ruleset_1 = __nccwpck_require__(43932); -const defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); -}; -exports.defaultEndpointResolver = defaultEndpointResolver; +exports.PutAccountSettingDefaultCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class PutAccountSettingDefaultCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutAccountSettingDefaultCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "PutAccountSettingDefaultCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "PutAccountSettingDefault", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_PutAccountSettingDefaultCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_PutAccountSettingDefaultCommand)(output, context); + } +} +exports.PutAccountSettingDefaultCommand = PutAccountSettingDefaultCommand; /***/ }), -/***/ 43932: -/***/ ((__unused_webpack_module, exports) => { +/***/ 57327: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "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 = "tree", e = "stringEquals", f = "sigv4", g = "sts", h = "us-east-1", i = "endpoint", j = "https://sts.{Region}.{PartitionResult#dnsSuffix}", 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": f, "signingName": g, "signingRegion": h }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: e, [I]: [q, "aws-global"] }], [i]: u, [G]: i }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: c, [I]: [true, { [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] }], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: i }, w, { conditions: [{ [H]: e, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, h] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-east-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-2"] }], endpoint: u, [G]: i }, { endpoint: { url: j, properties: { authSchemes: [{ name: f, signingName: g, signingRegion: "{Region}" }] }, headers: v }, [G]: i }] }, { conditions: C, [G]: d, 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]: i }] }, { conditions: [p], [G]: d, rules: [{ conditions: [r], [G]: d, rules: [{ conditions: [x, y], [G]: d, rules: [{ conditions: [z, B], [G]: d, rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }] }, { conditions: D, [G]: d, rules: [{ conditions: [z], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: ["aws-us-gov", { [H]: l, [I]: [A, "name"] }] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: i }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }] }, { conditions: E, [G]: d, rules: [{ conditions: [B], [G]: d, rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }] }, w, { endpoint: { url: j, properties: v, headers: v }, [G]: i }] }] }, { error: "Invalid Configuration: Missing Region", [G]: k }] }; -exports.ruleSet = _data; +exports.PutAttributesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class PutAttributesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutAttributesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "PutAttributesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "PutAttributes", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_PutAttributesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_PutAttributesCommand)(output, context); + } +} +exports.PutAttributesCommand = PutAttributesCommand; /***/ }), -/***/ 32899: +/***/ 60177: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STSServiceException = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(1867), exports); -tslib_1.__exportStar(__nccwpck_require__(9716), exports); -tslib_1.__exportStar(__nccwpck_require__(21432), exports); -tslib_1.__exportStar(__nccwpck_require__(72083), exports); -tslib_1.__exportStar(__nccwpck_require__(75043), exports); -var STSServiceException_1 = __nccwpck_require__(35045); -Object.defineProperty(exports, "STSServiceException", ({ enumerable: true, get: function () { return STSServiceException_1.STSServiceException; } })); +exports.PutClusterCapacityProvidersCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class PutClusterCapacityProvidersCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutClusterCapacityProvidersCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "PutClusterCapacityProvidersCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "PutClusterCapacityProviders", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_PutClusterCapacityProvidersCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_PutClusterCapacityProvidersCommand)(output, context); + } +} +exports.PutClusterCapacityProvidersCommand = PutClusterCapacityProvidersCommand; /***/ }), -/***/ 35045: +/***/ 10590: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STSServiceException = exports.__ServiceException = void 0; +exports.RegisterContainerInstanceCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } })); -class STSServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, STSServiceException.prototype); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class RegisterContainerInstanceCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterContainerInstanceCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "RegisterContainerInstanceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "RegisterContainerInstance", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_RegisterContainerInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_RegisterContainerInstanceCommand)(output, context); } } -exports.STSServiceException = STSServiceException; +exports.RegisterContainerInstanceCommand = RegisterContainerInstanceCommand; /***/ }), -/***/ 72083: +/***/ 96309: /***/ ((__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__(33316), exports); +exports.RegisterTaskDefinitionCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class RegisterTaskDefinitionCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterTaskDefinitionCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "RegisterTaskDefinitionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "RegisterTaskDefinition", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_RegisterTaskDefinitionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_RegisterTaskDefinitionCommand)(output, context); + } +} +exports.RegisterTaskDefinitionCommand = RegisterTaskDefinitionCommand; /***/ }), -/***/ 33316: +/***/ 55037: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetSessionTokenResponseFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports.AssumeRoleResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.InvalidAuthorizationMessageException = exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0; +exports.RunTaskCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); -const STSServiceException_1 = __nccwpck_require__(35045); -class ExpiredTokenException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ExpiredTokenException.prototype); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class RunTaskCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } -} -exports.ExpiredTokenException = ExpiredTokenException; -class MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "MalformedPolicyDocumentException", - $fault: "client", - ...opts, - }); - this.name = "MalformedPolicyDocumentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); + constructor(input) { + super(); + this.input = input; } -} -exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; -class PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "PackedPolicyTooLargeException", - $fault: "client", - ...opts, - }); - this.name = "PackedPolicyTooLargeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RunTaskCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "RunTaskCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "RunTask", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } -} -exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; -class RegionDisabledException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "RegionDisabledException", - $fault: "client", - ...opts, - }); - this.name = "RegionDisabledException"; - this.$fault = "client"; - Object.setPrototypeOf(this, RegionDisabledException.prototype); + serialize(input, context) { + return (0, Aws_json1_1_1.se_RunTaskCommand)(input, context); } -} -exports.RegionDisabledException = RegionDisabledException; -class IDPRejectedClaimException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "IDPRejectedClaimException", - $fault: "client", - ...opts, - }); - this.name = "IDPRejectedClaimException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); + deserialize(output, context) { + return (0, Aws_json1_1_1.de_RunTaskCommand)(output, context); } } -exports.IDPRejectedClaimException = IDPRejectedClaimException; -class InvalidIdentityTokenException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "InvalidIdentityTokenException", - $fault: "client", - ...opts, - }); - this.name = "InvalidIdentityTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); +exports.RunTaskCommand = RunTaskCommand; + + +/***/ }), + +/***/ 93535: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StartTaskCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class StartTaskCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } -} -exports.InvalidIdentityTokenException = InvalidIdentityTokenException; -class IDPCommunicationErrorException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "IDPCommunicationErrorException", - $fault: "client", - ...opts, - }); - this.name = "IDPCommunicationErrorException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartTaskCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "StartTaskCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "StartTask", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_StartTaskCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_StartTaskCommand)(output, context); } } -exports.IDPCommunicationErrorException = IDPCommunicationErrorException; -class InvalidAuthorizationMessageException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "InvalidAuthorizationMessageException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAuthorizationMessageException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); +exports.StartTaskCommand = StartTaskCommand; + + +/***/ }), + +/***/ 98004: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StopTaskCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class StopTaskCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopTaskCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "StopTaskCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "StopTask", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_StopTaskCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_StopTaskCommand)(output, context); } } -exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; -const CredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.SecretAccessKey && { SecretAccessKey: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; -const AssumeRoleResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; -const AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.SAMLAssertion && { SAMLAssertion: smithy_client_1.SENSITIVE_STRING }), -}); -exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; -const AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; -const AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.WebIdentityToken && { WebIdentityToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; -const AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; -const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; -const GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; +exports.StopTaskCommand = StopTaskCommand; /***/ }), -/***/ 43637: +/***/ 10047: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.de_GetSessionTokenCommand = exports.de_GetFederationTokenCommand = exports.de_GetCallerIdentityCommand = exports.de_GetAccessKeyInfoCommand = exports.de_DecodeAuthorizationMessageCommand = exports.de_AssumeRoleWithWebIdentityCommand = exports.de_AssumeRoleWithSAMLCommand = exports.de_AssumeRoleCommand = exports.se_GetSessionTokenCommand = exports.se_GetFederationTokenCommand = exports.se_GetCallerIdentityCommand = exports.se_GetAccessKeyInfoCommand = exports.se_DecodeAuthorizationMessageCommand = exports.se_AssumeRoleWithWebIdentityCommand = exports.se_AssumeRoleWithSAMLCommand = exports.se_AssumeRoleCommand = void 0; -const protocol_http_1 = __nccwpck_require__(64418); +exports.SubmitAttachmentStateChangesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); -const fast_xml_parser_1 = __nccwpck_require__(12603); -const models_0_1 = __nccwpck_require__(33316); -const STSServiceException_1 = __nccwpck_require__(35045); -const se_AssumeRoleCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleRequest(input, context), - Action: "AssumeRole", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_AssumeRoleCommand = se_AssumeRoleCommand; -const se_AssumeRoleWithSAMLCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleWithSAMLRequest(input, context), - Action: "AssumeRoleWithSAML", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_AssumeRoleWithSAMLCommand = se_AssumeRoleWithSAMLCommand; -const se_AssumeRoleWithWebIdentityCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleWithWebIdentityRequest(input, context), - Action: "AssumeRoleWithWebIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_AssumeRoleWithWebIdentityCommand = se_AssumeRoleWithWebIdentityCommand; -const se_DecodeAuthorizationMessageCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DecodeAuthorizationMessageRequest(input, context), - Action: "DecodeAuthorizationMessage", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DecodeAuthorizationMessageCommand = se_DecodeAuthorizationMessageCommand; -const se_GetAccessKeyInfoCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetAccessKeyInfoRequest(input, context), - Action: "GetAccessKeyInfo", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetAccessKeyInfoCommand = se_GetAccessKeyInfoCommand; -const se_GetCallerIdentityCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetCallerIdentityRequest(input, context), - Action: "GetCallerIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetCallerIdentityCommand = se_GetCallerIdentityCommand; -const se_GetFederationTokenCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetFederationTokenRequest(input, context), - Action: "GetFederationToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetFederationTokenCommand = se_GetFederationTokenCommand; -const se_GetSessionTokenCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetSessionTokenRequest(input, context), - Action: "GetSessionToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetSessionTokenCommand = se_GetSessionTokenCommand; -const de_AssumeRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleCommandError(output, context); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class SubmitAttachmentStateChangesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleResponse(data.AssumeRoleResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_AssumeRoleCommand = de_AssumeRoleCommand; -const de_AssumeRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); + constructor(input) { + super(); + this.input = input; } -}; -const de_AssumeRoleWithSAMLCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleWithSAMLCommandError(output, context); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SubmitAttachmentStateChangesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "SubmitAttachmentStateChangesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "SubmitAttachmentStateChanges", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_AssumeRoleWithSAMLCommand = de_AssumeRoleWithSAMLCommand; -const de_AssumeRoleWithSAMLCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(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 "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); - 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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); + serialize(input, context) { + return (0, Aws_json1_1_1.se_SubmitAttachmentStateChangesCommand)(input, context); } -}; -const de_AssumeRoleWithWebIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleWithWebIdentityCommandError(output, context); + deserialize(output, context) { + return (0, Aws_json1_1_1.de_SubmitAttachmentStateChangesCommand)(output, context); } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_AssumeRoleWithWebIdentityCommand = de_AssumeRoleWithWebIdentityCommand; -const de_AssumeRoleWithWebIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(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 "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); - 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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -const de_DecodeAuthorizationMessageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DecodeAuthorizationMessageCommandError(output, context); +} +exports.SubmitAttachmentStateChangesCommand = SubmitAttachmentStateChangesCommand; + + +/***/ }), + +/***/ 60946: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SubmitContainerStateChangeCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class SubmitContainerStateChangeCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DecodeAuthorizationMessageCommand = de_DecodeAuthorizationMessageCommand; -const de_DecodeAuthorizationMessageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidAuthorizationMessageException": - case "com.amazonaws.sts#InvalidAuthorizationMessageException": - throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); + constructor(input) { + super(); + this.input = input; } -}; -const de_GetAccessKeyInfoCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetAccessKeyInfoCommandError(output, context); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SubmitContainerStateChangeCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "SubmitContainerStateChangeCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "SubmitContainerStateChange", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetAccessKeyInfoCommand = de_GetAccessKeyInfoCommand; -const de_GetAccessKeyInfoCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); -}; -const de_GetCallerIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetCallerIdentityCommandError(output, context); + serialize(input, context) { + return (0, Aws_json1_1_1.se_SubmitContainerStateChangeCommand)(input, context); } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetCallerIdentityCommand = de_GetCallerIdentityCommand; -const de_GetCallerIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); -}; -const de_GetFederationTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetFederationTokenCommandError(output, context); + deserialize(output, context) { + return (0, Aws_json1_1_1.de_SubmitContainerStateChangeCommand)(output, context); } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetFederationTokenCommand = de_GetFederationTokenCommand; -const de_GetFederationTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - 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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); +} +exports.SubmitContainerStateChangeCommand = SubmitContainerStateChangeCommand; + + +/***/ }), + +/***/ 92999: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SubmitTaskStateChangeCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class SubmitTaskStateChangeCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } -}; -const de_GetSessionTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetSessionTokenCommandError(output, context); + constructor(input) { + super(); + this.input = input; } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetSessionTokenCommand = de_GetSessionTokenCommand; -const de_GetSessionTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SubmitTaskStateChangeCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "SubmitTaskStateChangeCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "SubmitTaskStateChange", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } -}; -const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_ExpiredTokenException(body.Error, context); - const exception = new models_0_1.ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_IDPCommunicationErrorException(body.Error, context); - const exception = new models_0_1.IDPCommunicationErrorException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_IDPRejectedClaimException(body.Error, context); - const exception = new models_0_1.IDPRejectedClaimException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidAuthorizationMessageExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_InvalidAuthorizationMessageException(body.Error, context); - const exception = new models_0_1.InvalidAuthorizationMessageException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_InvalidIdentityTokenException(body.Error, context); - const exception = new models_0_1.InvalidIdentityTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_MalformedPolicyDocumentException(body.Error, context); - const exception = new models_0_1.MalformedPolicyDocumentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_PackedPolicyTooLargeException(body.Error, context); - const exception = new models_0_1.PackedPolicyTooLargeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_RegionDisabledExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_RegionDisabledException(body.Error, context); - const exception = new models_0_1.RegionDisabledException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const se_AssumeRoleRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + serialize(input, context) { + return (0, Aws_json1_1_1.se_SubmitTaskStateChangeCommand)(input, context); } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; + deserialize(output, context) { + return (0, Aws_json1_1_1.de_SubmitTaskStateChangeCommand)(output, context); } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); +} +exports.SubmitTaskStateChangeCommand = SubmitTaskStateChangeCommand; + + +/***/ }), + +/***/ 38275: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TagResourceCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class TagResourceCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + constructor(input) { + super(); + this.input = input; } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TagResourceCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "TagResourceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "TagResource", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); + serialize(input, context) { + return (0, Aws_json1_1_1.se_TagResourceCommand)(input, context); } - if (input.TransitiveTagKeys != null) { - const memberEntries = se_tagKeyListType(input.TransitiveTagKeys, context); - if (input.TransitiveTagKeys?.length === 0) { - entries.TransitiveTagKeys = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `TransitiveTagKeys.${key}`; - entries[loc] = value; - }); + deserialize(output, context) { + return (0, Aws_json1_1_1.de_TagResourceCommand)(output, context); } - if (input.ExternalId != null) { - entries["ExternalId"] = input.ExternalId; +} +exports.TagResourceCommand = TagResourceCommand; + + +/***/ }), + +/***/ 46926: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UntagResourceCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class UntagResourceCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + constructor(input) { + super(); + this.input = input; } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "UntagResourceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "UntagResource", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.SourceIdentity != null) { - entries["SourceIdentity"] = input.SourceIdentity; + serialize(input, context) { + return (0, Aws_json1_1_1.se_UntagResourceCommand)(input, context); } - if (input.ProvidedContexts != null) { - const memberEntries = se_ProvidedContextsListType(input.ProvidedContexts, context); - if (input.ProvidedContexts?.length === 0) { - entries.ProvidedContexts = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `ProvidedContexts.${key}`; - entries[loc] = value; - }); + deserialize(output, context) { + return (0, Aws_json1_1_1.de_UntagResourceCommand)(output, context); } - return entries; -}; -const se_AssumeRoleWithSAMLRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; +} +exports.UntagResourceCommand = UntagResourceCommand; + + +/***/ }), + +/***/ 11810: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateCapacityProviderCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class UpdateCapacityProviderCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (input.PrincipalArn != null) { - entries["PrincipalArn"] = input.PrincipalArn; + constructor(input) { + super(); + this.input = input; } - if (input.SAMLAssertion != null) { - entries["SAMLAssertion"] = input.SAMLAssertion; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateCapacityProviderCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "UpdateCapacityProviderCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "UpdateCapacityProvider", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); + serialize(input, context) { + return (0, Aws_json1_1_1.se_UpdateCapacityProviderCommand)(input, context); } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + deserialize(output, context) { + return (0, Aws_json1_1_1.de_UpdateCapacityProviderCommand)(output, context); } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; +} +exports.UpdateCapacityProviderCommand = UpdateCapacityProviderCommand; + + +/***/ }), + +/***/ 2219: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateClusterCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class UpdateClusterCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const se_AssumeRoleWithWebIdentityRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + constructor(input) { + super(); + this.input = input; } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateClusterCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "UpdateClusterCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "UpdateCluster", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.WebIdentityToken != null) { - entries["WebIdentityToken"] = input.WebIdentityToken; + serialize(input, context) { + return (0, Aws_json1_1_1.se_UpdateClusterCommand)(input, context); } - if (input.ProviderId != null) { - entries["ProviderId"] = input.ProviderId; + deserialize(output, context) { + return (0, Aws_json1_1_1.de_UpdateClusterCommand)(output, context); } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); +} +exports.UpdateClusterCommand = UpdateClusterCommand; + + +/***/ }), + +/***/ 76288: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateClusterSettingsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class UpdateClusterSettingsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + constructor(input) { + super(); + this.input = input; } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateClusterSettingsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "UpdateClusterSettingsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "UpdateClusterSettings", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return entries; -}; -const se_DecodeAuthorizationMessageRequest = (input, context) => { - const entries = {}; - if (input.EncodedMessage != null) { - entries["EncodedMessage"] = input.EncodedMessage; + serialize(input, context) { + return (0, Aws_json1_1_1.se_UpdateClusterSettingsCommand)(input, context); } - return entries; -}; -const se_GetAccessKeyInfoRequest = (input, context) => { - const entries = {}; - if (input.AccessKeyId != null) { - entries["AccessKeyId"] = input.AccessKeyId; + deserialize(output, context) { + return (0, Aws_json1_1_1.de_UpdateClusterSettingsCommand)(output, context); } - return entries; -}; -const se_GetCallerIdentityRequest = (input, context) => { - const entries = {}; - return entries; -}; -const se_GetFederationTokenRequest = (input, context) => { - const entries = {}; - if (input.Name != null) { - entries["Name"] = input.Name; +} +exports.UpdateClusterSettingsCommand = UpdateClusterSettingsCommand; + + +/***/ }), + +/***/ 32759: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateContainerAgentCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class UpdateContainerAgentCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + constructor(input) { + super(); + this.input = input; } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateContainerAgentCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "UpdateContainerAgentCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "UpdateContainerAgent", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + serialize(input, context) { + return (0, Aws_json1_1_1.se_UpdateContainerAgentCommand)(input, context); } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); + deserialize(output, context) { + return (0, Aws_json1_1_1.de_UpdateContainerAgentCommand)(output, context); } - return entries; -}; -const se_GetSessionTokenRequest = (input, context) => { - const entries = {}; - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; +} +exports.UpdateContainerAgentCommand = UpdateContainerAgentCommand; + + +/***/ }), + +/***/ 11453: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateContainerInstancesStateCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class UpdateContainerInstancesStateCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + constructor(input) { + super(); + this.input = input; } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateContainerInstancesStateCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "UpdateContainerInstancesStateCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "UpdateContainerInstancesState", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return entries; -}; -const se_policyDescriptorListType = (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++; + serialize(input, context) { + return (0, Aws_json1_1_1.se_UpdateContainerInstancesStateCommand)(input, context); } - return entries; -}; -const se_PolicyDescriptorType = (input, context) => { - const entries = {}; - if (input.arn != null) { - entries["arn"] = input.arn; + deserialize(output, context) { + return (0, Aws_json1_1_1.de_UpdateContainerInstancesStateCommand)(output, context); } - return entries; -}; -const se_ProvidedContext = (input, context) => { - const entries = {}; - if (input.ProviderArn != null) { - entries["ProviderArn"] = input.ProviderArn; +} +exports.UpdateContainerInstancesStateCommand = UpdateContainerInstancesStateCommand; + + +/***/ }), + +/***/ 17075: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateServiceCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class UpdateServiceCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (input.ContextAssertion != null) { - entries["ContextAssertion"] = input.ContextAssertion; + constructor(input) { + super(); + this.input = input; } - return entries; -}; -const se_ProvidedContextsListType = (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++; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateServiceCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "UpdateServiceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "UpdateService", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return entries; -}; -const se_Tag = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + serialize(input, context) { + return (0, Aws_json1_1_1.se_UpdateServiceCommand)(input, context); } - if (input.Value != null) { - entries["Value"] = input.Value; + deserialize(output, context) { + return (0, Aws_json1_1_1.de_UpdateServiceCommand)(output, context); } - return entries; -}; -const se_tagKeyListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; - } - return entries; -}; -const se_tagListType = (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; -}; -const de_AssumedRoleUser = (output, context) => { - const contents = {}; - if (output["AssumedRoleId"] !== undefined) { - contents.AssumedRoleId = (0, smithy_client_1.expectString)(output["AssumedRoleId"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); - } - return contents; -}; -const de_AssumeRoleResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); - } - return contents; -}; -const de_AssumeRoleWithSAMLResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - if (output["Subject"] !== undefined) { - contents.Subject = (0, smithy_client_1.expectString)(output["Subject"]); - } - if (output["SubjectType"] !== undefined) { - contents.SubjectType = (0, smithy_client_1.expectString)(output["SubjectType"]); - } - if (output["Issuer"] !== undefined) { - contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]); - } - if (output["Audience"] !== undefined) { - contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); - } - if (output["NameQualifier"] !== undefined) { - contents.NameQualifier = (0, smithy_client_1.expectString)(output["NameQualifier"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); - } - return contents; -}; -const de_AssumeRoleWithWebIdentityResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["SubjectFromWebIdentityToken"] !== undefined) { - contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output["SubjectFromWebIdentityToken"]); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - if (output["Provider"] !== undefined) { - contents.Provider = (0, smithy_client_1.expectString)(output["Provider"]); - } - if (output["Audience"] !== undefined) { - contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); - } - return contents; -}; -const de_Credentials = (output, context) => { - const contents = {}; - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]); - } - if (output["SecretAccessKey"] !== undefined) { - contents.SecretAccessKey = (0, smithy_client_1.expectString)(output["SecretAccessKey"]); - } - if (output["SessionToken"] !== undefined) { - contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]); - } - if (output["Expiration"] !== undefined) { - contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Expiration"])); - } - return contents; -}; -const de_DecodeAuthorizationMessageResponse = (output, context) => { - const contents = {}; - if (output["DecodedMessage"] !== undefined) { - contents.DecodedMessage = (0, smithy_client_1.expectString)(output["DecodedMessage"]); - } - return contents; -}; -const de_ExpiredTokenException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_FederatedUser = (output, context) => { - const contents = {}; - if (output["FederatedUserId"] !== undefined) { - contents.FederatedUserId = (0, smithy_client_1.expectString)(output["FederatedUserId"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); - } - return contents; -}; -const de_GetAccessKeyInfoResponse = (output, context) => { - const contents = {}; - if (output["Account"] !== undefined) { - contents.Account = (0, smithy_client_1.expectString)(output["Account"]); - } - return contents; -}; -const de_GetCallerIdentityResponse = (output, context) => { - const contents = {}; - if (output["UserId"] !== undefined) { - contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]); - } - if (output["Account"] !== undefined) { - contents.Account = (0, smithy_client_1.expectString)(output["Account"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); - } - return contents; -}; -const de_GetFederationTokenResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["FederatedUser"] !== undefined) { - contents.FederatedUser = de_FederatedUser(output["FederatedUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - return contents; -}; -const de_GetSessionTokenResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - return contents; -}; -const de_IDPCommunicationErrorException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_IDPRejectedClaimException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_InvalidAuthorizationMessageException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_InvalidIdentityTokenException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_MalformedPolicyDocumentException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_PackedPolicyTooLargeException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_RegionDisabledException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const deserializeMetadata = (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"], -}); -const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -const throwDefaultError = (0, smithy_client_1.withBaseException)(STSServiceException_1.STSServiceException); -const buildHttpRpcRequest = 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 !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); -}; -const SHARED_HEADERS = { - "content-type": "application/x-www-form-urlencoded", -}; -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - const parser = new fast_xml_parser_1.XMLParser({ - attributeNamePrefix: "", - htmlEntities: true, - ignoreAttributes: false, - ignoreDeclaration: true, - parseTagValue: false, - trimValues: false, - tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined), - }); - parser.addEntity("#xD", "\r"); - parser.addEntity("#10", "\n"); - const parsedObj = parser.parse(encoded); - 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, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); - } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - if (value.Error) { - value.Error.message = value.Error.message ?? value.Error.Message; - } - return value; -}; -const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries) - .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)) - .join("&"); -const loadQueryErrorCode = (output, data) => { - if (data.Error?.Code !== undefined) { - return data.Error.Code; - } - if (output.statusCode == 404) { - return "NotFound"; - } -}; +} +exports.UpdateServiceCommand = UpdateServiceCommand; /***/ }), -/***/ 11097: +/***/ 94016: /***/ ((__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__(8065)); -const defaultStsRoleAssumers_1 = __nccwpck_require__(29702); -const credential_provider_node_1 = __nccwpck_require__(99388); -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__(80874); +exports.UpdateServicePrimaryTaskSetCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); 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); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_node_1.defaultUserAgent)({ 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), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(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, - }), - 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), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class UpdateServicePrimaryTaskSetCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateServicePrimaryTaskSetCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "UpdateServicePrimaryTaskSetCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "UpdateServicePrimaryTaskSet", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_UpdateServicePrimaryTaskSetCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_UpdateServicePrimaryTaskSetCommand)(output, context); + } +} +exports.UpdateServicePrimaryTaskSetCommand = UpdateServicePrimaryTaskSetCommand; /***/ }), -/***/ 80874: +/***/ 86555: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; +exports.UpdateTaskProtectionCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); 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 endpointResolver_1 = __nccwpck_require__(130); -const getRuntimeConfig = (config) => ({ - 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 ?? [], - 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; +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class UpdateTaskProtectionCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateTaskProtectionCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "UpdateTaskProtectionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "UpdateTaskProtection", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.se_UpdateTaskProtectionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.de_UpdateTaskProtectionCommand)(output, context); + } +} +exports.UpdateTaskProtectionCommand = UpdateTaskProtectionCommand; /***/ }), -/***/ 34370: +/***/ 45753: /***/ ((__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); +exports.UpdateTaskSetCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); const smithy_client_1 = __nccwpck_require__(63570); -const asPartial = (t) => t; -const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - }; -}; -exports.resolveRuntimeExtensions = resolveRuntimeExtensions; - - -/***/ }), - -/***/ 52538: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromIni = void 0; -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const resolveProfileData_1 = __nccwpck_require__(31344); -const fromIni = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); -}; -exports.fromIni = fromIni; - - -/***/ }), - -/***/ 42878: -/***/ ((__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__(52538), exports); - - -/***/ }), - -/***/ 98384: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveAssumeRoleCredentials = exports.isAssumeRoleProfile = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const resolveCredentialSource_1 = __nccwpck_require__(19154); -const resolveProfileData_1 = __nccwpck_require__(31344); -const isAssumeRoleProfile = (arg) => 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) || isAssumeRoleWithProviderProfile(arg)); -exports.isAssumeRoleProfile = isAssumeRoleProfile; -const isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; -const isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; -const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (!options.roleAssumer) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_json1_1_1 = __nccwpck_require__(56556); +class UpdateTaskSetCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - const { source_profile } = data; - if (source_profile && source_profile in visitedProfiles) { - throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` + - ` ${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: ` + - Object.keys(visitedProfiles).join(", "), false); + constructor(input) { + super(); + this.input = input; } - const sourceCredsProvider = source_profile - ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { - ...visitedProfiles, - [source_profile]: true, - }) - : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); - const params = { - RoleArn: data.role_arn, - RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, - ExternalId: data.external_id, - DurationSeconds: parseInt(data.duration_seconds || "3600", 10), - }; - const { mfa_serial } = data; - if (mfa_serial) { - if (!options.mfaCodeProvider) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, false); - } - params.SerialNumber = mfa_serial; - params.TokenCode = await options.mfaCodeProvider(mfa_serial); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateTaskSetCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ECSClient"; + const commandName = "UpdateTaskSetCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AmazonEC2ContainerServiceV20141113", + operation: "UpdateTaskSet", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - const sourceCreds = await sourceCredsProvider; - return options.roleAssumer(sourceCreds, params); -}; -exports.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; - - -/***/ }), - -/***/ 19154: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveCredentialSource = void 0; -const credential_provider_env_1 = __nccwpck_require__(15972); -const credential_provider_imds_1 = __nccwpck_require__(7477); -const property_provider_1 = __nccwpck_require__(79721); -const resolveCredentialSource = (credentialSource, profileName) => { - const sourceProvidersMap = { - EcsContainer: credential_provider_imds_1.fromContainerMetadata, - Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, - Environment: credential_provider_env_1.fromEnv, - }; - if (credentialSource in sourceProvidersMap) { - return sourceProvidersMap[credentialSource](); + serialize(input, context) { + return (0, Aws_json1_1_1.se_UpdateTaskSetCommand)(input, context); } - else { - throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` + - `expected EcsContainer or Ec2InstanceMetadata or Environment.`); + deserialize(output, context) { + return (0, Aws_json1_1_1.de_UpdateTaskSetCommand)(output, context); } -}; -exports.resolveCredentialSource = resolveCredentialSource; +} +exports.UpdateTaskSetCommand = UpdateTaskSetCommand; /***/ }), -/***/ 61946: +/***/ 65233: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveProcessCredentials = exports.isProcessProfile = void 0; -const credential_provider_process_1 = __nccwpck_require__(89969); -const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string"; -exports.isProcessProfile = isProcessProfile; -const resolveProcessCredentials = async (options, profile) => (0, credential_provider_process_1.fromProcess)({ - ...options, - profile, -})(); -exports.resolveProcessCredentials = resolveProcessCredentials; +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(24286), exports); +tslib_1.__exportStar(__nccwpck_require__(39837), exports); +tslib_1.__exportStar(__nccwpck_require__(60897), exports); +tslib_1.__exportStar(__nccwpck_require__(31781), exports); +tslib_1.__exportStar(__nccwpck_require__(71334), exports); +tslib_1.__exportStar(__nccwpck_require__(88362), exports); +tslib_1.__exportStar(__nccwpck_require__(7608), exports); +tslib_1.__exportStar(__nccwpck_require__(36303), exports); +tslib_1.__exportStar(__nccwpck_require__(70362), exports); +tslib_1.__exportStar(__nccwpck_require__(94786), exports); +tslib_1.__exportStar(__nccwpck_require__(97462), exports); +tslib_1.__exportStar(__nccwpck_require__(83594), exports); +tslib_1.__exportStar(__nccwpck_require__(87388), exports); +tslib_1.__exportStar(__nccwpck_require__(42171), exports); +tslib_1.__exportStar(__nccwpck_require__(74863), exports); +tslib_1.__exportStar(__nccwpck_require__(28965), exports); +tslib_1.__exportStar(__nccwpck_require__(1000), exports); +tslib_1.__exportStar(__nccwpck_require__(30751), exports); +tslib_1.__exportStar(__nccwpck_require__(40105), exports); +tslib_1.__exportStar(__nccwpck_require__(59793), exports); +tslib_1.__exportStar(__nccwpck_require__(21923), exports); +tslib_1.__exportStar(__nccwpck_require__(79414), exports); +tslib_1.__exportStar(__nccwpck_require__(98165), exports); +tslib_1.__exportStar(__nccwpck_require__(89726), exports); +tslib_1.__exportStar(__nccwpck_require__(51415), exports); +tslib_1.__exportStar(__nccwpck_require__(92960), exports); +tslib_1.__exportStar(__nccwpck_require__(85133), exports); +tslib_1.__exportStar(__nccwpck_require__(2796), exports); +tslib_1.__exportStar(__nccwpck_require__(51752), exports); +tslib_1.__exportStar(__nccwpck_require__(69786), exports); +tslib_1.__exportStar(__nccwpck_require__(62735), exports); +tslib_1.__exportStar(__nccwpck_require__(27068), exports); +tslib_1.__exportStar(__nccwpck_require__(67517), exports); +tslib_1.__exportStar(__nccwpck_require__(25364), exports); +tslib_1.__exportStar(__nccwpck_require__(84597), exports); +tslib_1.__exportStar(__nccwpck_require__(57327), exports); +tslib_1.__exportStar(__nccwpck_require__(60177), exports); +tslib_1.__exportStar(__nccwpck_require__(10590), exports); +tslib_1.__exportStar(__nccwpck_require__(96309), exports); +tslib_1.__exportStar(__nccwpck_require__(55037), exports); +tslib_1.__exportStar(__nccwpck_require__(93535), exports); +tslib_1.__exportStar(__nccwpck_require__(98004), exports); +tslib_1.__exportStar(__nccwpck_require__(10047), exports); +tslib_1.__exportStar(__nccwpck_require__(60946), exports); +tslib_1.__exportStar(__nccwpck_require__(92999), exports); +tslib_1.__exportStar(__nccwpck_require__(38275), exports); +tslib_1.__exportStar(__nccwpck_require__(46926), exports); +tslib_1.__exportStar(__nccwpck_require__(11810), exports); +tslib_1.__exportStar(__nccwpck_require__(2219), exports); +tslib_1.__exportStar(__nccwpck_require__(76288), exports); +tslib_1.__exportStar(__nccwpck_require__(32759), exports); +tslib_1.__exportStar(__nccwpck_require__(11453), exports); +tslib_1.__exportStar(__nccwpck_require__(17075), exports); +tslib_1.__exportStar(__nccwpck_require__(94016), exports); +tslib_1.__exportStar(__nccwpck_require__(86555), exports); +tslib_1.__exportStar(__nccwpck_require__(45753), exports); /***/ }), -/***/ 31344: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ 19970: +/***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveProfileData = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const resolveAssumeRoleCredentials_1 = __nccwpck_require__(98384); -const resolveProcessCredentials_1 = __nccwpck_require__(61946); -const resolveSsoCredentials_1 = __nccwpck_require__(41337); -const resolveStaticCredentials_1 = __nccwpck_require__(49312); -const resolveWebIdentityCredentials_1 = __nccwpck_require__(88842); -const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); - } - if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { - return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); - } - if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); - } - if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { - return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); - } - if ((0, resolveProcessCredentials_1.isProcessProfile)(data)) { - return (0, resolveProcessCredentials_1.resolveProcessCredentials)(options, profileName); - } - if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { - return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); - } - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`); +exports.resolveClientEndpointParameters = void 0; +const resolveClientEndpointParameters = (options) => { + return { + ...options, + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "ecs", + }; }; -exports.resolveProfileData = resolveProfileData; +exports.resolveClientEndpointParameters = resolveClientEndpointParameters; /***/ }), -/***/ 41337: +/***/ 55021: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveSsoCredentials = exports.isSsoProfile = void 0; -const credential_provider_sso_1 = __nccwpck_require__(4643); -var credential_provider_sso_2 = __nccwpck_require__(4643); -Object.defineProperty(exports, "isSsoProfile", ({ enumerable: true, get: function () { return credential_provider_sso_2.isSsoProfile; } })); -const resolveSsoCredentials = (data) => { - const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); - return (0, credential_provider_sso_1.fromSSO)({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoSession: sso_session, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - })(); +exports.defaultEndpointResolver = void 0; +const util_endpoints_1 = __nccwpck_require__(13350); +const ruleset_1 = __nccwpck_require__(83635); +const defaultEndpointResolver = (endpointParams, context = {}) => { + return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { + endpointParams: endpointParams, + logger: context.logger, + }); }; -exports.resolveSsoCredentials = resolveSsoCredentials; +exports.defaultEndpointResolver = defaultEndpointResolver; /***/ }), -/***/ 49312: +/***/ 83635: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0; -const isStaticCredsProfile = (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; -exports.isStaticCredsProfile = isStaticCredsProfile; -const resolveStaticCredentials = (profile) => Promise.resolve({ - accessKeyId: profile.aws_access_key_id, - secretAccessKey: profile.aws_secret_access_key, - sessionToken: profile.aws_session_token, -}); -exports.resolveStaticCredentials = resolveStaticCredentials; +exports.ruleSet = void 0; +const q = "required", r = "fn", s = "argv", t = "ref"; +const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }]; +const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://ecs.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }; +exports.ruleSet = _data; /***/ }), -/***/ 88842: +/***/ 18209: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0; -const credential_provider_web_identity_1 = __nccwpck_require__(15646); -const isWebIdentityProfile = (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; -exports.isWebIdentityProfile = isWebIdentityProfile; -const resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ - webIdentityTokenFile: profile.web_identity_token_file, - roleArn: profile.role_arn, - roleSessionName: profile.role_session_name, - roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, -})(); -exports.resolveWebIdentityCredentials = resolveWebIdentityCredentials; +exports.ECSServiceException = void 0; +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(55714), exports); +tslib_1.__exportStar(__nccwpck_require__(79074), exports); +tslib_1.__exportStar(__nccwpck_require__(65233), exports); +tslib_1.__exportStar(__nccwpck_require__(84488), exports); +tslib_1.__exportStar(__nccwpck_require__(64379), exports); +tslib_1.__exportStar(__nccwpck_require__(22040), exports); +var ECSServiceException_1 = __nccwpck_require__(47688); +Object.defineProperty(exports, "ECSServiceException", ({ enumerable: true, get: function () { return ECSServiceException_1.ECSServiceException; } })); /***/ }), -/***/ 86661: +/***/ 47688: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultProvider = void 0; -const credential_provider_env_1 = __nccwpck_require__(15972); -const credential_provider_ini_1 = __nccwpck_require__(42878); -const credential_provider_process_1 = __nccwpck_require__(89969); -const credential_provider_sso_1 = __nccwpck_require__(4643); -const credential_provider_web_identity_1 = __nccwpck_require__(15646); -const property_provider_1 = __nccwpck_require__(79721); -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const remoteProvider_1 = __nccwpck_require__(71136); -const defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...(init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()]), (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { - throw new property_provider_1.CredentialsProviderError("Could not load credentials from any providers", false); -}), (credentials) => credentials.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000, (credentials) => credentials.expiration !== undefined); -exports.defaultProvider = defaultProvider; +exports.ECSServiceException = exports.__ServiceException = void 0; +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } })); +class ECSServiceException extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, ECSServiceException.prototype); + } +} +exports.ECSServiceException = ECSServiceException; /***/ }), -/***/ 99388: +/***/ 22040: /***/ ((__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__(86661), exports); +tslib_1.__exportStar(__nccwpck_require__(89402), exports); /***/ }), -/***/ 71136: +/***/ 89402: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.remoteProvider = exports.ENV_IMDS_DISABLED = void 0; -const credential_provider_imds_1 = __nccwpck_require__(7477); -const property_provider_1 = __nccwpck_require__(79721); -exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -const remoteProvider = (init) => { - if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { - return (0, credential_provider_imds_1.fromContainerMetadata)(init); +exports.TaskDefinitionPlacementConstraintType = exports.PidMode = exports.NetworkMode = exports.IpcMode = exports.UlimitName = exports.ResourceType = exports.TransportProtocol = exports.ApplicationProtocol = exports.DeviceCgroupPermission = exports.FirelensConfigurationType = exports.EnvironmentFileType = exports.ContainerCondition = exports.Compatibility = exports.ClusterContainsTasksException = exports.ClusterContainsServicesException = exports.ClusterContainsContainerInstancesException = exports.TargetNotFoundException = exports.TargetType = exports.SettingName = exports.ServiceNotFoundException = exports.ServiceNotActiveException = exports.UnsupportedFeatureException = exports.PlatformUnknownException = exports.PlatformTaskDefinitionIncompatibilityException = exports.StabilityStatus = exports.ScaleUnit = exports.DeploymentRolloutState = exports.LogDriver = exports.SchedulingStrategy = exports.PropagateTags = exports.PlacementStrategyType = exports.PlacementConstraintType = exports.AssignPublicIp = exports.LaunchType = exports.DeploymentControllerType = exports.ClusterNotFoundException = exports.NamespaceNotFoundException = exports.ClusterSettingName = exports.ExecuteCommandLogging = exports.UpdateInProgressException = exports.ServerException = exports.LimitExceededException = exports.InvalidParameterException = exports.CapacityProviderUpdateStatus = exports.CapacityProviderStatus = exports.ManagedTerminationProtection = exports.ManagedScalingStatus = exports.ClientException = exports.AgentUpdateStatus = exports.AccessDeniedException = void 0; +exports.ExecuteCommandResponseFilterSensitiveLog = exports.SessionFilterSensitiveLog = exports.NoUpdateAvailableException = exports.MissingVersionException = exports.BlockedException = exports.PlatformDeviceType = exports.ResourceInUseException = exports.AttributeLimitExceededException = exports.DesiredStatus = exports.SortOrder = exports.TaskDefinitionFamilyStatus = exports.ContainerInstanceStatus = exports.ResourceNotFoundException = exports.TargetNotConnectedException = exports.TaskSetField = exports.TaskStopCode = exports.ManagedAgentName = exports.HealthStatus = exports.Connectivity = exports.TaskField = exports.TaskDefinitionField = exports.ServiceField = exports.ContainerInstanceField = exports.ClusterField = exports.CapacityProviderField = exports.InstanceHealthCheckType = exports.InstanceHealthCheckState = exports.TaskSetNotFoundException = exports.EFSTransitEncryption = exports.EFSAuthorizationConfigIAM = exports.Scope = exports.TaskDefinitionStatus = exports.OSFamily = exports.CPUArchitecture = exports.ProxyConfigurationType = void 0; +const smithy_client_1 = __nccwpck_require__(63570); +const ECSServiceException_1 = __nccwpck_require__(47688); +class AccessDeniedException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "AccessDeniedException", + $fault: "client", + ...opts, + }); + this.name = "AccessDeniedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AccessDeniedException.prototype); } - if (process.env[exports.ENV_IMDS_DISABLED]) { - return async () => { - throw new property_provider_1.CredentialsProviderError("EC2 Instance Metadata Service access disabled"); - }; +} +exports.AccessDeniedException = AccessDeniedException; +exports.AgentUpdateStatus = { + FAILED: "FAILED", + PENDING: "PENDING", + STAGED: "STAGED", + STAGING: "STAGING", + UPDATED: "UPDATED", + UPDATING: "UPDATING", +}; +class ClientException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "ClientException", + $fault: "client", + ...opts, + }); + this.name = "ClientException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ClientException.prototype); } - return (0, credential_provider_imds_1.fromInstanceMetadata)(init); +} +exports.ClientException = ClientException; +exports.ManagedScalingStatus = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", }; -exports.remoteProvider = remoteProvider; - - -/***/ }), - -/***/ 26685: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromSSO = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const isSsoProfile_1 = __nccwpck_require__(84364); -const resolveSSOCredentials_1 = __nccwpck_require__(25372); -const validateSsoProfile_1 = __nccwpck_require__(99936); -const fromSSO = (init = {}) => async () => { - const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, ssoSession } = init; - const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); - if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - const profile = profiles[profileName]; - if (!profile) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} was not found.`); - } - if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`); - } - if (profile === null || profile === void 0 ? void 0 : profile.sso_session) { - const ssoSessions = await (0, shared_ini_file_loader_1.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 property_provider_1.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, false); - } - if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) { - throw new property_provider_1.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, false); - } - 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 } = (0, validateSsoProfile_1.validateSsoProfile)(profile); - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ - ssoStartUrl: sso_start_url, - ssoSession: sso_session, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - ssoClient: ssoClient, - profile: profileName, +exports.ManagedTerminationProtection = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +}; +exports.CapacityProviderStatus = { + ACTIVE: "ACTIVE", + INACTIVE: "INACTIVE", +}; +exports.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", +}; +class InvalidParameterException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "InvalidParameterException", + $fault: "client", + ...opts, }); + this.name = "InvalidParameterException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidParameterException.prototype); } - else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { - throw new property_provider_1.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + - '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"'); +} +exports.InvalidParameterException = InvalidParameterException; +class LimitExceededException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "LimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "LimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, LimitExceededException.prototype); } - else { - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ - ssoStartUrl, - ssoSession, - ssoAccountId, - ssoRegion, - ssoRoleName, - ssoClient, - profile: profileName, +} +exports.LimitExceededException = LimitExceededException; +class ServerException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "ServerException", + $fault: "server", + ...opts, + }); + this.name = "ServerException"; + this.$fault = "server"; + Object.setPrototypeOf(this, ServerException.prototype); + } +} +exports.ServerException = ServerException; +class UpdateInProgressException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "UpdateInProgressException", + $fault: "client", + ...opts, }); + this.name = "UpdateInProgressException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UpdateInProgressException.prototype); } +} +exports.UpdateInProgressException = UpdateInProgressException; +exports.ExecuteCommandLogging = { + DEFAULT: "DEFAULT", + NONE: "NONE", + OVERRIDE: "OVERRIDE", }; -exports.fromSSO = fromSSO; - - -/***/ }), - -/***/ 4643: -/***/ ((__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__(26685), exports); -tslib_1.__exportStar(__nccwpck_require__(84364), exports); -tslib_1.__exportStar(__nccwpck_require__(63329), exports); -tslib_1.__exportStar(__nccwpck_require__(99936), exports); - - -/***/ }), - -/***/ 84364: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isSsoProfile = void 0; -const isSsoProfile = (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"); -exports.isSsoProfile = isSsoProfile; - - -/***/ }), - -/***/ 25372: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveSSOCredentials = void 0; -const client_sso_1 = __nccwpck_require__(37085); -const token_providers_1 = __nccwpck_require__(7398); -const property_provider_1 = __nccwpck_require__(79721); -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const SHOULD_FAIL_CREDENTIAL_CHAIN = false; -const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => { - let token; - const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`; - if (ssoSession) { - try { - const _token = await (0, token_providers_1.fromSso)({ profile })(); - token = { - accessToken: _token.token, - expiresAt: new Date(_token.expiration).toISOString(), - }; - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - } - else { - try { - token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - } - if (new Date(token.expiresAt).getTime() - Date.now() <= 0) { - throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { accessToken } = token; - const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); - let ssoResp; - try { - ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ - accountId: ssoAccountId, - roleName: ssoRoleName, - accessToken, - })); - } - catch (e) { - throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; - if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { - throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN); - } - return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; +exports.ClusterSettingName = { + CONTAINER_INSIGHTS: "containerInsights", }; -exports.resolveSSOCredentials = resolveSSOCredentials; - - -/***/ }), - -/***/ 63329: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 99936: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateSsoProfile = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const validateSsoProfile = (profile) => { - 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 property_provider_1.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(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false); +class NamespaceNotFoundException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "NamespaceNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "NamespaceNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, NamespaceNotFoundException.prototype); } - return profile; -}; -exports.validateSsoProfile = validateSsoProfile; - - -/***/ }), - -/***/ 53527: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; -const protocol_http_1 = __nccwpck_require__(64418); -function resolveHostHeaderConfig(input) { - return input; } -exports.resolveHostHeaderConfig = resolveHostHeaderConfig; -const hostHeaderMiddleware = (options) => (next) => async (args) => { - if (!protocol_http_1.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; +exports.NamespaceNotFoundException = NamespaceNotFoundException; +class ClusterNotFoundException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "ClusterNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "ClusterNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ClusterNotFoundException.prototype); } - return next(args); +} +exports.ClusterNotFoundException = ClusterNotFoundException; +exports.DeploymentControllerType = { + CODE_DEPLOY: "CODE_DEPLOY", + ECS: "ECS", + EXTERNAL: "EXTERNAL", }; -exports.hostHeaderMiddleware = hostHeaderMiddleware; -exports.hostHeaderMiddlewareOptions = { - name: "hostHeaderMiddleware", - step: "build", - priority: "low", - tags: ["HOST"], - override: true, +exports.LaunchType = { + EC2: "EC2", + EXTERNAL: "EXTERNAL", + FARGATE: "FARGATE", }; -const getHostHeaderPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.hostHeaderMiddleware)(options), exports.hostHeaderMiddlewareOptions); - }, -}); -exports.getHostHeaderPlugin = getHostHeaderPlugin; - - -/***/ }), - -/***/ 33000: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.SSOOIDCClient = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.CreateTokenCommand = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0; -const middleware_host_header_1 = __nccwpck_require__(53527); -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 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); -var resolveClientEndpointParameters = (options) => { - var _a, _b; - return { - ...options, - useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false, - useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false, - defaultSigningName: "awsssooidc" - }; +exports.AssignPublicIp = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", }; -var package_default = { version: "3.387.0" }; -const util_user_agent_node_1 = __nccwpck_require__(98095); -const config_resolver_2 = __nccwpck_require__(53098); -const hash_node_1 = __nccwpck_require__(3081); -const middleware_retry_2 = __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 smithy_client_2 = __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 util_endpoints_1 = __nccwpck_require__(13350); -var p = "required"; -var q = "fn"; -var r = "argv"; -var s = "ref"; -var a = "PartitionResult"; -var b = "tree"; -var c = "error"; -var d = "endpoint"; -var e = { [p]: false, "type": "String" }; -var f = { [p]: true, "default": false, "type": "Boolean" }; -var g = { [s]: "Endpoint" }; -var h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }; -var i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }; -var j = {}; -var k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }; -var l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }; -var m = [g]; -var n = [h]; -var o = [i]; -var _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }; -var ruleSet = _data; -var defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleSet, { - endpointParams, - logger: context.logger - }); +exports.PlacementConstraintType = { + DISTINCT_INSTANCE: "distinctInstance", + MEMBER_OF: "memberOf", }; -var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j; - return ({ - apiVersion: "2019-06-10", - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_1.toBase64, - disableHostPrefix: (_c = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _c !== void 0 ? _c : false, - endpointProvider: (_d = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _d !== void 0 ? _d : defaultEndpointResolver, - logger: (_e = config === null || config === void 0 ? void 0 : config.logger) !== null && _e !== void 0 ? _e : new smithy_client_2.NoOpLogger(), - serviceId: (_f = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _f !== void 0 ? _f : "SSO OIDC", - urlParser: (_g = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _g !== void 0 ? _g : url_parser_1.parseUrl, - utf8Decoder: (_h = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _h !== void 0 ? _h : util_utf8_1.fromUtf8, - utf8Encoder: (_j = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _j !== void 0 ? _j : util_utf8_1.toUtf8 - }); +exports.PlacementStrategyType = { + BINPACK: "binpack", + RANDOM: "random", + SPREAD: "spread", }; -const smithy_client_3 = __nccwpck_require__(63570); -const util_defaults_mode_node_1 = __nccwpck_require__(72429); -const smithy_client_4 = __nccwpck_require__(63570); -var getRuntimeConfig2 = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; - (0, smithy_client_4.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_3.loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: (_a = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _a !== void 0 ? _a : util_body_length_node_1.calculateBodyLength, - defaultUserAgentProvider: (_b = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _b !== void 0 ? _b : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), - maxAttempts: (_c = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _c !== void 0 ? _c : (0, node_config_provider_1.loadConfig)(middleware_retry_2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_d = config === null || config === void 0 ? void 0 : config.region) !== null && _d !== void 0 ? _d : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_REGION_CONFIG_OPTIONS, config_resolver_2.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_e = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _e !== void 0 ? _e : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_f = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_2.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE - }), - sha256: (_g = config === null || config === void 0 ? void 0 : config.sha256) !== null && _g !== void 0 ? _g : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_h = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _h !== void 0 ? _h : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_j = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_k = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS) - }; +exports.PropagateTags = { + NONE: "NONE", + SERVICE: "SERVICE", + TASK_DEFINITION: "TASK_DEFINITION", }; -var SSOOIDCClient = class extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = getRuntimeConfig2(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - super(_config_6); - this.config = _config_6; - 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, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } +exports.SchedulingStrategy = { + DAEMON: "DAEMON", + REPLICA: "REPLICA", }; -exports.SSOOIDCClient = SSOOIDCClient; -const smithy_client_5 = __nccwpck_require__(63570); -const middleware_endpoint_2 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_6 = __nccwpck_require__(63570); -const protocol_http_1 = __nccwpck_require__(64418); -const smithy_client_7 = __nccwpck_require__(63570); -const smithy_client_8 = __nccwpck_require__(63570); -var SSOOIDCServiceException = class _SSOOIDCServiceException extends smithy_client_8.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); - } +exports.LogDriver = { + AWSFIRELENS: "awsfirelens", + AWSLOGS: "awslogs", + FLUENTD: "fluentd", + GELF: "gelf", + JOURNALD: "journald", + JSON_FILE: "json-file", + SPLUNK: "splunk", + SYSLOG: "syslog", }; -var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { +exports.DeploymentRolloutState = { + COMPLETED: "COMPLETED", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", +}; +exports.ScaleUnit = { + PERCENT: "PERCENT", +}; +exports.StabilityStatus = { + STABILIZING: "STABILIZING", + STEADY_STATE: "STEADY_STATE", +}; +class PlatformTaskDefinitionIncompatibilityException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "AccessDeniedException", + name: "PlatformTaskDefinitionIncompatibilityException", $fault: "client", - ...opts + ...opts, }); - this.name = "AccessDeniedException"; + this.name = "PlatformTaskDefinitionIncompatibilityException"; this.$fault = "client"; - Object.setPrototypeOf(this, _AccessDeniedException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, PlatformTaskDefinitionIncompatibilityException.prototype); } -}; -exports.AccessDeniedException = AccessDeniedException; -var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { +} +exports.PlatformTaskDefinitionIncompatibilityException = PlatformTaskDefinitionIncompatibilityException; +class PlatformUnknownException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "AuthorizationPendingException", + name: "PlatformUnknownException", $fault: "client", - ...opts + ...opts, }); - this.name = "AuthorizationPendingException"; + this.name = "PlatformUnknownException"; this.$fault = "client"; - Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, PlatformUnknownException.prototype); } -}; -exports.AuthorizationPendingException = AuthorizationPendingException; -var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { +} +exports.PlatformUnknownException = PlatformUnknownException; +class UnsupportedFeatureException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "ExpiredTokenException", + name: "UnsupportedFeatureException", $fault: "client", - ...opts + ...opts, }); - this.name = "ExpiredTokenException"; + this.name = "UnsupportedFeatureException"; this.$fault = "client"; - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, UnsupportedFeatureException.prototype); } -}; -exports.ExpiredTokenException = ExpiredTokenException; -var InternalServerException = class _InternalServerException extends SSOOIDCServiceException { +} +exports.UnsupportedFeatureException = UnsupportedFeatureException; +class ServiceNotActiveException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "InternalServerException", - $fault: "server", - ...opts + name: "ServiceNotActiveException", + $fault: "client", + ...opts, }); - this.name = "InternalServerException"; - this.$fault = "server"; - Object.setPrototypeOf(this, _InternalServerException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + this.name = "ServiceNotActiveException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ServiceNotActiveException.prototype); } -}; -exports.InternalServerException = InternalServerException; -var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { +} +exports.ServiceNotActiveException = ServiceNotActiveException; +class ServiceNotFoundException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "InvalidClientException", + name: "ServiceNotFoundException", $fault: "client", - ...opts + ...opts, }); - this.name = "InvalidClientException"; + this.name = "ServiceNotFoundException"; this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, ServiceNotFoundException.prototype); } +} +exports.ServiceNotFoundException = ServiceNotFoundException; +exports.SettingName = { + AWSVPC_TRUNKING: "awsvpcTrunking", + CONTAINER_INSIGHTS: "containerInsights", + CONTAINER_INSTANCE_LONG_ARN_FORMAT: "containerInstanceLongArnFormat", + FARGATE_FIPS_MODE: "fargateFIPSMode", + FARGATE_TASK_RETIREMENT_WAIT_PERIOD: "fargateTaskRetirementWaitPeriod", + SERVICE_LONG_ARN_FORMAT: "serviceLongArnFormat", + TAG_RESOURCE_AUTHORIZATION: "tagResourceAuthorization", + TASK_LONG_ARN_FORMAT: "taskLongArnFormat", }; -exports.InvalidClientException = InvalidClientException; -var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { +exports.TargetType = { + CONTAINER_INSTANCE: "container-instance", +}; +class TargetNotFoundException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "InvalidGrantException", + name: "TargetNotFoundException", $fault: "client", - ...opts + ...opts, }); - this.name = "InvalidGrantException"; + this.name = "TargetNotFoundException"; this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidGrantException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, TargetNotFoundException.prototype); } -}; -var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { +} +exports.TargetNotFoundException = TargetNotFoundException; +class ClusterContainsContainerInstancesException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "InvalidRequestException", + name: "ClusterContainsContainerInstancesException", $fault: "client", - ...opts + ...opts, }); - this.name = "InvalidRequestException"; + this.name = "ClusterContainsContainerInstancesException"; this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidRequestException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, ClusterContainsContainerInstancesException.prototype); } -}; -exports.InvalidRequestException = InvalidRequestException; -var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { +} +exports.ClusterContainsContainerInstancesException = ClusterContainsContainerInstancesException; +class ClusterContainsServicesException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "InvalidScopeException", + name: "ClusterContainsServicesException", $fault: "client", - ...opts + ...opts, }); - this.name = "InvalidScopeException"; + this.name = "ClusterContainsServicesException"; this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidScopeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, ClusterContainsServicesException.prototype); } -}; -exports.InvalidScopeException = InvalidScopeException; -var SlowDownException = class _SlowDownException extends SSOOIDCServiceException { +} +exports.ClusterContainsServicesException = ClusterContainsServicesException; +class ClusterContainsTasksException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "SlowDownException", + name: "ClusterContainsTasksException", $fault: "client", - ...opts + ...opts, }); - this.name = "SlowDownException"; + this.name = "ClusterContainsTasksException"; this.$fault = "client"; - Object.setPrototypeOf(this, _SlowDownException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, ClusterContainsTasksException.prototype); } +} +exports.ClusterContainsTasksException = ClusterContainsTasksException; +exports.Compatibility = { + EC2: "EC2", + EXTERNAL: "EXTERNAL", + FARGATE: "FARGATE", }; -exports.SlowDownException = SlowDownException; -var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { +exports.ContainerCondition = { + COMPLETE: "COMPLETE", + HEALTHY: "HEALTHY", + START: "START", + SUCCESS: "SUCCESS", +}; +exports.EnvironmentFileType = { + S3: "s3", +}; +exports.FirelensConfigurationType = { + FLUENTBIT: "fluentbit", + FLUENTD: "fluentd", +}; +exports.DeviceCgroupPermission = { + MKNOD: "mknod", + READ: "read", + WRITE: "write", +}; +exports.ApplicationProtocol = { + GRPC: "grpc", + HTTP: "http", + HTTP2: "http2", +}; +exports.TransportProtocol = { + TCP: "tcp", + UDP: "udp", +}; +exports.ResourceType = { + GPU: "GPU", + INFERENCE_ACCELERATOR: "InferenceAccelerator", +}; +exports.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", +}; +exports.IpcMode = { + HOST: "host", + NONE: "none", + TASK: "task", +}; +exports.NetworkMode = { + AWSVPC: "awsvpc", + BRIDGE: "bridge", + HOST: "host", + NONE: "none", +}; +exports.PidMode = { + HOST: "host", + TASK: "task", +}; +exports.TaskDefinitionPlacementConstraintType = { + MEMBER_OF: "memberOf", +}; +exports.ProxyConfigurationType = { + APPMESH: "APPMESH", +}; +exports.CPUArchitecture = { + ARM64: "ARM64", + X86_64: "X86_64", +}; +exports.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", +}; +exports.TaskDefinitionStatus = { + ACTIVE: "ACTIVE", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + INACTIVE: "INACTIVE", +}; +exports.Scope = { + SHARED: "shared", + TASK: "task", +}; +exports.EFSAuthorizationConfigIAM = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +}; +exports.EFSTransitEncryption = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +}; +class TaskSetNotFoundException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "UnauthorizedClientException", + name: "TaskSetNotFoundException", $fault: "client", - ...opts + ...opts, }); - this.name = "UnauthorizedClientException"; + this.name = "TaskSetNotFoundException"; this.$fault = "client"; - Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, TaskSetNotFoundException.prototype); } +} +exports.TaskSetNotFoundException = TaskSetNotFoundException; +exports.InstanceHealthCheckState = { + IMPAIRED: "IMPAIRED", + INITIALIZING: "INITIALIZING", + INSUFFICIENT_DATA: "INSUFFICIENT_DATA", + OK: "OK", }; -exports.UnauthorizedClientException = UnauthorizedClientException; -var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { +exports.InstanceHealthCheckType = { + CONTAINER_RUNTIME: "CONTAINER_RUNTIME", +}; +exports.CapacityProviderField = { + TAGS: "TAGS", +}; +exports.ClusterField = { + ATTACHMENTS: "ATTACHMENTS", + CONFIGURATIONS: "CONFIGURATIONS", + SETTINGS: "SETTINGS", + STATISTICS: "STATISTICS", + TAGS: "TAGS", +}; +exports.ContainerInstanceField = { + CONTAINER_INSTANCE_HEALTH: "CONTAINER_INSTANCE_HEALTH", + TAGS: "TAGS", +}; +exports.ServiceField = { + TAGS: "TAGS", +}; +exports.TaskDefinitionField = { + TAGS: "TAGS", +}; +exports.TaskField = { + TAGS: "TAGS", +}; +exports.Connectivity = { + CONNECTED: "CONNECTED", + DISCONNECTED: "DISCONNECTED", +}; +exports.HealthStatus = { + HEALTHY: "HEALTHY", + UNHEALTHY: "UNHEALTHY", + UNKNOWN: "UNKNOWN", +}; +exports.ManagedAgentName = { + ExecuteCommandAgent: "ExecuteCommandAgent", +}; +exports.TaskStopCode = { + ESSENTIAL_CONTAINER_EXITED: "EssentialContainerExited", + SERVICE_SCHEDULER_INITIATED: "ServiceSchedulerInitiated", + SPOT_INTERRUPTION: "SpotInterruption", + TASK_FAILED_TO_START: "TaskFailedToStart", + TERMINATION_NOTICE: "TerminationNotice", + USER_INITIATED: "UserInitiated", +}; +exports.TaskSetField = { + TAGS: "TAGS", +}; +class TargetNotConnectedException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "UnsupportedGrantTypeException", + name: "TargetNotConnectedException", $fault: "client", - ...opts + ...opts, }); - this.name = "UnsupportedGrantTypeException"; + this.name = "TargetNotConnectedException"; this.$fault = "client"; - Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, TargetNotConnectedException.prototype); } -}; -exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException; -var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException { +} +exports.TargetNotConnectedException = TargetNotConnectedException; +class ResourceNotFoundException extends ECSServiceException_1.ECSServiceException { constructor(opts) { super({ - name: "InvalidClientMetadataException", + name: "ResourceNotFoundException", $fault: "client", - ...opts + ...opts, }); - this.name = "InvalidClientMetadataException"; + this.name = "ResourceNotFoundException"; this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); } +} +exports.ResourceNotFoundException = ResourceNotFoundException; +exports.ContainerInstanceStatus = { + ACTIVE: "ACTIVE", + DEREGISTERING: "DEREGISTERING", + DRAINING: "DRAINING", + REGISTERING: "REGISTERING", + REGISTRATION_FAILED: "REGISTRATION_FAILED", }; -var se_CreateTokenCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json" - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/token`; - let body; - body = JSON.stringify((0, smithy_client_7.take)(input, { - clientId: [], - clientSecret: [], - code: [], - deviceCode: [], - grantType: [], - redirectUri: [], - refreshToken: [], - scope: (_) => (0, smithy_client_7._json)(_) - })); - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body - }); +exports.TaskDefinitionFamilyStatus = { + ACTIVE: "ACTIVE", + ALL: "ALL", + INACTIVE: "INACTIVE", }; -var se_RegisterClientCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json" - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/client/register`; - let body; - body = JSON.stringify((0, smithy_client_7.take)(input, { - clientName: [], - clientType: [], - scopes: (_) => (0, smithy_client_7._json)(_) - })); - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body - }); +exports.SortOrder = { + ASC: "ASC", + DESC: "DESC", }; -var se_StartDeviceAuthorizationCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json" - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/device_authorization`; - let body; - body = JSON.stringify((0, smithy_client_7.take)(input, { - clientId: [], - clientSecret: [], - startUrl: [] - })); - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body - }); +exports.DesiredStatus = { + PENDING: "PENDING", + RUNNING: "RUNNING", + STOPPED: "STOPPED", }; -var de_CreateTokenCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CreateTokenCommandError(output, context); +class AttributeLimitExceededException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "AttributeLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "AttributeLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AttributeLimitExceededException.prototype); } - const contents = (0, smithy_client_7.map)({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_7.expectNonNull)((0, smithy_client_7.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_7.take)(data, { - accessToken: smithy_client_7.expectString, - expiresIn: smithy_client_7.expectInt32, - idToken: smithy_client_7.expectString, - refreshToken: smithy_client_7.expectString, - tokenType: smithy_client_7.expectString - }); - Object.assign(contents, doc); - return contents; -}; -var de_CreateTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = 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 - }); +} +exports.AttributeLimitExceededException = AttributeLimitExceededException; +class ResourceInUseException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "ResourceInUseException", + $fault: "client", + ...opts, + }); + this.name = "ResourceInUseException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceInUseException.prototype); } +} +exports.ResourceInUseException = ResourceInUseException; +exports.PlatformDeviceType = { + GPU: "GPU", }; -var de_RegisterClientCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_RegisterClientCommandError(output, context); +class BlockedException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "BlockedException", + $fault: "client", + ...opts, + }); + this.name = "BlockedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, BlockedException.prototype); } - const contents = (0, smithy_client_7.map)({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_7.expectNonNull)((0, smithy_client_7.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_7.take)(data, { - authorizationEndpoint: smithy_client_7.expectString, - clientId: smithy_client_7.expectString, - clientIdIssuedAt: smithy_client_7.expectLong, - clientSecret: smithy_client_7.expectString, - clientSecretExpiresAt: smithy_client_7.expectLong, - tokenEndpoint: smithy_client_7.expectString - }); - Object.assign(contents, doc); - return contents; -}; -var de_RegisterClientCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientMetadataException": - case "com.amazonaws.ssooidc#InvalidClientMetadataException": - throw await de_InvalidClientMetadataExceptionRes(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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); +} +exports.BlockedException = BlockedException; +class MissingVersionException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "MissingVersionException", + $fault: "client", + ...opts, + }); + this.name = "MissingVersionException"; + this.$fault = "client"; + Object.setPrototypeOf(this, MissingVersionException.prototype); } -}; -var de_StartDeviceAuthorizationCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_StartDeviceAuthorizationCommandError(output, context); +} +exports.MissingVersionException = MissingVersionException; +class NoUpdateAvailableException extends ECSServiceException_1.ECSServiceException { + constructor(opts) { + super({ + name: "NoUpdateAvailableException", + $fault: "client", + ...opts, + }); + this.name = "NoUpdateAvailableException"; + this.$fault = "client"; + Object.setPrototypeOf(this, NoUpdateAvailableException.prototype); } - const contents = (0, smithy_client_7.map)({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_7.expectNonNull)((0, smithy_client_7.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_7.take)(data, { - deviceCode: smithy_client_7.expectString, - expiresIn: smithy_client_7.expectInt32, - interval: smithy_client_7.expectInt32, - userCode: smithy_client_7.expectString, - verificationUri: smithy_client_7.expectString, - verificationUriComplete: smithy_client_7.expectString - }); - Object.assign(contents, doc); - return contents; +} +exports.NoUpdateAvailableException = NoUpdateAvailableException; +const SessionFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.tokenValue && { tokenValue: smithy_client_1.SENSITIVE_STRING }), +}); +exports.SessionFilterSensitiveLog = SessionFilterSensitiveLog; +const ExecuteCommandResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.session && { session: (0, exports.SessionFilterSensitiveLog)(obj.session) }), +}); +exports.ExecuteCommandResponseFilterSensitiveLog = ExecuteCommandResponseFilterSensitiveLog; + + +/***/ }), + +/***/ 1147: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 92183: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListAccountSettings = void 0; +const ListAccountSettingsCommand_1 = __nccwpck_require__(89726); +const ECSClient_1 = __nccwpck_require__(55714); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountSettingsCommand_1.ListAccountSettingsCommand(input), ...args); }; -var de_StartDeviceAuthorizationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - 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 "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); - } -}; -var throwDefaultError = (0, smithy_client_7.withBaseException)(SSOOIDCServiceException); -var de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new AccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new AuthorizationPendingException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InternalServerExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InternalServerException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InvalidClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InvalidClientMetadataException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidGrantExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InvalidGrantException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidScopeExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InvalidScopeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_SlowDownExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new SlowDownException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new UnauthorizedClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new UnsupportedGrantTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var deserializeMetadata = (output) => { - var _a, _b; - return ({ - httpStatusCode: output.statusCode, - requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"] - }); -}; -var collectBodyString = (streamBody, context) => (0, smithy_client_7.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -var parseErrorBody = async (errorBody, context) => { - var _a; - const value = await parseBody(errorBody, context); - value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message; - return value; -}; -var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k2) => k2.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (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]; +async function* paginateListAccountSettings(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ECSClient_1.ECSClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; + else { + throw new Error("Invalid client, expected ECS | ECSClient"); } - return cleanValue; - }; - 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"]); - } -}; -var CreateTokenCommand = class _CreateTokenCommand extends smithy_client_6.Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_2.getEndpointPlugin)(configuration, _CreateTokenCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "CreateTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateTokenCommand(input, context); - } - deserialize(output, context) { - return de_CreateTokenCommand(output, context); - } -}; -exports.CreateTokenCommand = CreateTokenCommand; -const middleware_endpoint_3 = __nccwpck_require__(82918); -const middleware_serde_2 = __nccwpck_require__(81238); -const smithy_client_9 = __nccwpck_require__(63570); -var RegisterClientCommand = class _RegisterClientCommand extends smithy_client_9.Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_2.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_3.getEndpointPlugin)(configuration, _RegisterClientCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "RegisterClientCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_RegisterClientCommand(input, context); - } - deserialize(output, context) { - return de_RegisterClientCommand(output, context); - } -}; -const middleware_endpoint_4 = __nccwpck_require__(82918); -const middleware_serde_3 = __nccwpck_require__(81238); -const smithy_client_10 = __nccwpck_require__(63570); -var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends smithy_client_10.Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_3.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_4.getEndpointPlugin)(configuration, _StartDeviceAuthorizationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "StartDeviceAuthorizationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_StartDeviceAuthorizationCommand(input, context); - } - deserialize(output, context) { - return de_StartDeviceAuthorizationCommand(output, context); + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); } -}; -var commands = { - CreateTokenCommand, - RegisterClientCommand, - StartDeviceAuthorizationCommand -}; -var SSOOIDC = class extends SSOOIDCClient { -}; -(0, smithy_client_5.createAggregatedClient)(commands, SSOOIDC); - - -/***/ }), - -/***/ 1191: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.REFRESH_MESSAGE = exports.EXPIRE_WINDOW_MS = void 0; -exports.EXPIRE_WINDOW_MS = 5 * 60 * 1000; -exports.REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; + return undefined; +} +exports.paginateListAccountSettings = paginateListAccountSettings; /***/ }), -/***/ 24540: +/***/ 82008: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromSso = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const constants_1 = __nccwpck_require__(1191); -const getNewSsoOidcToken_1 = __nccwpck_require__(5467); -const validateTokenExpiry_1 = __nccwpck_require__(49580); -const validateTokenKey_1 = __nccwpck_require__(78522); -const writeSSOTokenToFile_1 = __nccwpck_require__(31167); -const lastRefreshAttemptTime = new Date(0); -const fromSso = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); - const profile = profiles[profileName]; - if (!profile) { - throw new property_provider_1.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false); - } - else if (!profile["sso_session"]) { - throw new property_provider_1.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`); - } - const ssoSessionName = profile["sso_session"]; - const ssoSessions = await (0, shared_ini_file_loader_1.loadSsoSessionData)(init); - const ssoSession = ssoSessions[ssoSessionName]; - if (!ssoSession) { - throw new property_provider_1.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 property_provider_1.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, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoSessionName); - } - catch (e) { - throw new property_provider_1.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${constants_1.REFRESH_MESSAGE}`, false); - } - (0, validateTokenKey_1.validateTokenKey)("accessToken", ssoToken.accessToken); - (0, validateTokenKey_1.validateTokenKey)("expiresAt", ssoToken.expiresAt); - const { accessToken, expiresAt } = ssoToken; - const existingToken = { token: accessToken, expiration: new Date(expiresAt) }; - if (existingToken.expiration.getTime() - Date.now() > constants_1.EXPIRE_WINDOW_MS) { - return existingToken; - } - if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) { - (0, validateTokenExpiry_1.validateTokenExpiry)(existingToken); - return existingToken; - } - (0, validateTokenKey_1.validateTokenKey)("clientId", ssoToken.clientId, true); - (0, validateTokenKey_1.validateTokenKey)("clientSecret", ssoToken.clientSecret, true); - (0, validateTokenKey_1.validateTokenKey)("refreshToken", ssoToken.refreshToken, true); - try { - lastRefreshAttemptTime.setTime(Date.now()); - const newSsoOidcToken = await (0, getNewSsoOidcToken_1.getNewSsoOidcToken)(ssoToken, ssoRegion); - (0, validateTokenKey_1.validateTokenKey)("accessToken", newSsoOidcToken.accessToken); - (0, validateTokenKey_1.validateTokenKey)("expiresIn", newSsoOidcToken.expiresIn); - const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000); - try { - await (0, writeSSOTokenToFile_1.writeSSOTokenToFile)(ssoSessionName, { - ...ssoToken, - accessToken: newSsoOidcToken.accessToken, - expiresAt: newTokenExpiration.toISOString(), - refreshToken: newSsoOidcToken.refreshToken, - }); +exports.paginateListAttributes = void 0; +const ListAttributesCommand_1 = __nccwpck_require__(51415); +const ECSClient_1 = __nccwpck_require__(55714); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAttributesCommand_1.ListAttributesCommand(input), ...args); +}; +async function* paginateListAttributes(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ECSClient_1.ECSClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); } - catch (error) { + else { + throw new Error("Invalid client, expected ECS | ECSClient"); } - return { - token: newSsoOidcToken.accessToken, - expiration: newTokenExpiration, - }; - } - catch (error) { - (0, validateTokenExpiry_1.validateTokenExpiry)(existingToken); - return existingToken; + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); } -}; -exports.fromSso = fromSso; + return undefined; +} +exports.paginateListAttributes = paginateListAttributes; /***/ }), -/***/ 85739: +/***/ 54484: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromStatic = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const fromStatic = ({ token }) => async () => { - if (!token || !token.token) { - throw new property_provider_1.TokenProviderError(`Please pass a valid token to fromStatic`, false); - } - return token; +exports.paginateListClusters = void 0; +const ListClustersCommand_1 = __nccwpck_require__(92960); +const ECSClient_1 = __nccwpck_require__(55714); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListClustersCommand_1.ListClustersCommand(input), ...args); }; -exports.fromStatic = fromStatic; +async function* paginateListClusters(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ECSClient_1.ECSClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected ECS | ECSClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListClusters = paginateListClusters; /***/ }), -/***/ 5467: +/***/ 44984: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getNewSsoOidcToken = void 0; -const client_sso_oidc_node_1 = __nccwpck_require__(33000); -const getSsoOidcClient_1 = __nccwpck_require__(82109); -const getNewSsoOidcToken = (ssoToken, ssoRegion) => { - const ssoOidcClient = (0, getSsoOidcClient_1.getSsoOidcClient)(ssoRegion); - return ssoOidcClient.send(new client_sso_oidc_node_1.CreateTokenCommand({ - clientId: ssoToken.clientId, - clientSecret: ssoToken.clientSecret, - refreshToken: ssoToken.refreshToken, - grantType: "refresh_token", - })); +exports.paginateListContainerInstances = void 0; +const ListContainerInstancesCommand_1 = __nccwpck_require__(85133); +const ECSClient_1 = __nccwpck_require__(55714); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListContainerInstancesCommand_1.ListContainerInstancesCommand(input), ...args); }; -exports.getNewSsoOidcToken = getNewSsoOidcToken; - - -/***/ }), - -/***/ 82109: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSsoOidcClient = void 0; -const client_sso_oidc_node_1 = __nccwpck_require__(33000); -const ssoOidcClientsHash = {}; -const getSsoOidcClient = (ssoRegion) => { - if (ssoOidcClientsHash[ssoRegion]) { - return ssoOidcClientsHash[ssoRegion]; +async function* paginateListContainerInstances(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ECSClient_1.ECSClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected ECS | ECSClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); } - const ssoOidcClient = new client_sso_oidc_node_1.SSOOIDCClient({ region: ssoRegion }); - ssoOidcClientsHash[ssoRegion] = ssoOidcClient; - return ssoOidcClient; -}; -exports.getSsoOidcClient = getSsoOidcClient; - - -/***/ }), - -/***/ 7398: -/***/ ((__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__(33000), exports); -tslib_1.__exportStar(__nccwpck_require__(24540), exports); -tslib_1.__exportStar(__nccwpck_require__(85739), exports); -tslib_1.__exportStar(__nccwpck_require__(1075), exports); - - -/***/ }), - -/***/ 1075: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.nodeProvider = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const fromSso_1 = __nccwpck_require__(24540); -const nodeProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromSso_1.fromSso)(init), async () => { - throw new property_provider_1.TokenProviderError("Could not load token from any providers", false); -}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined); -exports.nodeProvider = nodeProvider; + return undefined; +} +exports.paginateListContainerInstances = paginateListContainerInstances; /***/ }), -/***/ 49580: +/***/ 72409: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateTokenExpiry = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const constants_1 = __nccwpck_require__(1191); -const validateTokenExpiry = (token) => { - if (token.expiration && token.expiration.getTime() < Date.now()) { - throw new property_provider_1.TokenProviderError(`Token is expired. ${constants_1.REFRESH_MESSAGE}`, false); - } +exports.paginateListServicesByNamespace = void 0; +const ListServicesByNamespaceCommand_1 = __nccwpck_require__(2796); +const ECSClient_1 = __nccwpck_require__(55714); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListServicesByNamespaceCommand_1.ListServicesByNamespaceCommand(input), ...args); }; -exports.validateTokenExpiry = validateTokenExpiry; +async function* paginateListServicesByNamespace(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ECSClient_1.ECSClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected ECS | ECSClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListServicesByNamespace = paginateListServicesByNamespace; /***/ }), -/***/ 78522: +/***/ 99383: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateTokenKey = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const constants_1 = __nccwpck_require__(1191); -const validateTokenKey = (key, value, forRefresh = false) => { - if (typeof value === "undefined") { - throw new property_provider_1.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${constants_1.REFRESH_MESSAGE}`, false); - } +exports.paginateListServices = void 0; +const ListServicesCommand_1 = __nccwpck_require__(51752); +const ECSClient_1 = __nccwpck_require__(55714); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListServicesCommand_1.ListServicesCommand(input), ...args); }; -exports.validateTokenKey = validateTokenKey; +async function* paginateListServices(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ECSClient_1.ECSClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected ECS | ECSClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListServices = paginateListServices; /***/ }), -/***/ 31167: +/***/ 93812: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.writeSSOTokenToFile = void 0; -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const fs_1 = __nccwpck_require__(57147); -const { writeFile } = fs_1.promises; -const writeSSOTokenToFile = (id, ssoToken) => { - const tokenFilepath = (0, shared_ini_file_loader_1.getSSOTokenFilepath)(id); - const tokenString = JSON.stringify(ssoToken, null, 2); - return writeFile(tokenFilepath, tokenString); +exports.paginateListTaskDefinitionFamilies = void 0; +const ListTaskDefinitionFamiliesCommand_1 = __nccwpck_require__(62735); +const ECSClient_1 = __nccwpck_require__(55714); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListTaskDefinitionFamiliesCommand_1.ListTaskDefinitionFamiliesCommand(input), ...args); }; -exports.writeSSOTokenToFile = writeSSOTokenToFile; +async function* paginateListTaskDefinitionFamilies(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ECSClient_1.ECSClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected ECS | ECSClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListTaskDefinitionFamilies = paginateListTaskDefinitionFamilies; /***/ }), -/***/ 79074: +/***/ 22161: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ECS = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -const CreateCapacityProviderCommand_1 = __nccwpck_require__(24286); -const CreateClusterCommand_1 = __nccwpck_require__(39837); -const CreateServiceCommand_1 = __nccwpck_require__(60897); -const CreateTaskSetCommand_1 = __nccwpck_require__(31781); -const DeleteAccountSettingCommand_1 = __nccwpck_require__(71334); -const DeleteAttributesCommand_1 = __nccwpck_require__(88362); -const DeleteCapacityProviderCommand_1 = __nccwpck_require__(7608); -const DeleteClusterCommand_1 = __nccwpck_require__(36303); -const DeleteServiceCommand_1 = __nccwpck_require__(70362); -const DeleteTaskDefinitionsCommand_1 = __nccwpck_require__(94786); -const DeleteTaskSetCommand_1 = __nccwpck_require__(97462); -const DeregisterContainerInstanceCommand_1 = __nccwpck_require__(83594); -const DeregisterTaskDefinitionCommand_1 = __nccwpck_require__(87388); -const DescribeCapacityProvidersCommand_1 = __nccwpck_require__(42171); -const DescribeClustersCommand_1 = __nccwpck_require__(74863); -const DescribeContainerInstancesCommand_1 = __nccwpck_require__(28965); -const DescribeServicesCommand_1 = __nccwpck_require__(1000); -const DescribeTaskDefinitionCommand_1 = __nccwpck_require__(30751); -const DescribeTasksCommand_1 = __nccwpck_require__(59793); -const DescribeTaskSetsCommand_1 = __nccwpck_require__(40105); -const DiscoverPollEndpointCommand_1 = __nccwpck_require__(21923); -const ExecuteCommandCommand_1 = __nccwpck_require__(79414); -const GetTaskProtectionCommand_1 = __nccwpck_require__(98165); -const ListAccountSettingsCommand_1 = __nccwpck_require__(89726); -const ListAttributesCommand_1 = __nccwpck_require__(51415); -const ListClustersCommand_1 = __nccwpck_require__(92960); -const ListContainerInstancesCommand_1 = __nccwpck_require__(85133); -const ListServicesByNamespaceCommand_1 = __nccwpck_require__(2796); -const ListServicesCommand_1 = __nccwpck_require__(51752); -const ListTagsForResourceCommand_1 = __nccwpck_require__(69786); -const ListTaskDefinitionFamiliesCommand_1 = __nccwpck_require__(62735); +exports.paginateListTaskDefinitions = void 0; const ListTaskDefinitionsCommand_1 = __nccwpck_require__(27068); -const ListTasksCommand_1 = __nccwpck_require__(67517); -const PutAccountSettingCommand_1 = __nccwpck_require__(25364); -const PutAccountSettingDefaultCommand_1 = __nccwpck_require__(84597); -const PutAttributesCommand_1 = __nccwpck_require__(57327); -const PutClusterCapacityProvidersCommand_1 = __nccwpck_require__(60177); -const RegisterContainerInstanceCommand_1 = __nccwpck_require__(10590); -const RegisterTaskDefinitionCommand_1 = __nccwpck_require__(96309); -const RunTaskCommand_1 = __nccwpck_require__(55037); -const StartTaskCommand_1 = __nccwpck_require__(93535); -const StopTaskCommand_1 = __nccwpck_require__(98004); -const SubmitAttachmentStateChangesCommand_1 = __nccwpck_require__(10047); -const SubmitContainerStateChangeCommand_1 = __nccwpck_require__(60946); -const SubmitTaskStateChangeCommand_1 = __nccwpck_require__(92999); -const TagResourceCommand_1 = __nccwpck_require__(38275); -const UntagResourceCommand_1 = __nccwpck_require__(46926); -const UpdateCapacityProviderCommand_1 = __nccwpck_require__(11810); -const UpdateClusterCommand_1 = __nccwpck_require__(2219); -const UpdateClusterSettingsCommand_1 = __nccwpck_require__(76288); -const UpdateContainerAgentCommand_1 = __nccwpck_require__(32759); -const UpdateContainerInstancesStateCommand_1 = __nccwpck_require__(11453); -const UpdateServiceCommand_1 = __nccwpck_require__(17075); -const UpdateServicePrimaryTaskSetCommand_1 = __nccwpck_require__(94016); -const UpdateTaskProtectionCommand_1 = __nccwpck_require__(86555); -const UpdateTaskSetCommand_1 = __nccwpck_require__(45753); const ECSClient_1 = __nccwpck_require__(55714); -const commands = { - CreateCapacityProviderCommand: CreateCapacityProviderCommand_1.CreateCapacityProviderCommand, - CreateClusterCommand: CreateClusterCommand_1.CreateClusterCommand, - CreateServiceCommand: CreateServiceCommand_1.CreateServiceCommand, - CreateTaskSetCommand: CreateTaskSetCommand_1.CreateTaskSetCommand, - DeleteAccountSettingCommand: DeleteAccountSettingCommand_1.DeleteAccountSettingCommand, - DeleteAttributesCommand: DeleteAttributesCommand_1.DeleteAttributesCommand, - DeleteCapacityProviderCommand: DeleteCapacityProviderCommand_1.DeleteCapacityProviderCommand, - DeleteClusterCommand: DeleteClusterCommand_1.DeleteClusterCommand, - DeleteServiceCommand: DeleteServiceCommand_1.DeleteServiceCommand, - DeleteTaskDefinitionsCommand: DeleteTaskDefinitionsCommand_1.DeleteTaskDefinitionsCommand, - DeleteTaskSetCommand: DeleteTaskSetCommand_1.DeleteTaskSetCommand, - DeregisterContainerInstanceCommand: DeregisterContainerInstanceCommand_1.DeregisterContainerInstanceCommand, - DeregisterTaskDefinitionCommand: DeregisterTaskDefinitionCommand_1.DeregisterTaskDefinitionCommand, - DescribeCapacityProvidersCommand: DescribeCapacityProvidersCommand_1.DescribeCapacityProvidersCommand, - DescribeClustersCommand: DescribeClustersCommand_1.DescribeClustersCommand, - DescribeContainerInstancesCommand: DescribeContainerInstancesCommand_1.DescribeContainerInstancesCommand, - DescribeServicesCommand: DescribeServicesCommand_1.DescribeServicesCommand, - DescribeTaskDefinitionCommand: DescribeTaskDefinitionCommand_1.DescribeTaskDefinitionCommand, - DescribeTasksCommand: DescribeTasksCommand_1.DescribeTasksCommand, - DescribeTaskSetsCommand: DescribeTaskSetsCommand_1.DescribeTaskSetsCommand, - DiscoverPollEndpointCommand: DiscoverPollEndpointCommand_1.DiscoverPollEndpointCommand, - ExecuteCommandCommand: ExecuteCommandCommand_1.ExecuteCommandCommand, - GetTaskProtectionCommand: GetTaskProtectionCommand_1.GetTaskProtectionCommand, - ListAccountSettingsCommand: ListAccountSettingsCommand_1.ListAccountSettingsCommand, - ListAttributesCommand: ListAttributesCommand_1.ListAttributesCommand, - ListClustersCommand: ListClustersCommand_1.ListClustersCommand, - ListContainerInstancesCommand: ListContainerInstancesCommand_1.ListContainerInstancesCommand, - ListServicesCommand: ListServicesCommand_1.ListServicesCommand, - ListServicesByNamespaceCommand: ListServicesByNamespaceCommand_1.ListServicesByNamespaceCommand, - ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand, - ListTaskDefinitionFamiliesCommand: ListTaskDefinitionFamiliesCommand_1.ListTaskDefinitionFamiliesCommand, - ListTaskDefinitionsCommand: ListTaskDefinitionsCommand_1.ListTaskDefinitionsCommand, - ListTasksCommand: ListTasksCommand_1.ListTasksCommand, - PutAccountSettingCommand: PutAccountSettingCommand_1.PutAccountSettingCommand, - PutAccountSettingDefaultCommand: PutAccountSettingDefaultCommand_1.PutAccountSettingDefaultCommand, - PutAttributesCommand: PutAttributesCommand_1.PutAttributesCommand, - PutClusterCapacityProvidersCommand: PutClusterCapacityProvidersCommand_1.PutClusterCapacityProvidersCommand, - RegisterContainerInstanceCommand: RegisterContainerInstanceCommand_1.RegisterContainerInstanceCommand, - RegisterTaskDefinitionCommand: RegisterTaskDefinitionCommand_1.RegisterTaskDefinitionCommand, - RunTaskCommand: RunTaskCommand_1.RunTaskCommand, - StartTaskCommand: StartTaskCommand_1.StartTaskCommand, - StopTaskCommand: StopTaskCommand_1.StopTaskCommand, - SubmitAttachmentStateChangesCommand: SubmitAttachmentStateChangesCommand_1.SubmitAttachmentStateChangesCommand, - SubmitContainerStateChangeCommand: SubmitContainerStateChangeCommand_1.SubmitContainerStateChangeCommand, - SubmitTaskStateChangeCommand: SubmitTaskStateChangeCommand_1.SubmitTaskStateChangeCommand, - TagResourceCommand: TagResourceCommand_1.TagResourceCommand, - UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand, - UpdateCapacityProviderCommand: UpdateCapacityProviderCommand_1.UpdateCapacityProviderCommand, - UpdateClusterCommand: UpdateClusterCommand_1.UpdateClusterCommand, - UpdateClusterSettingsCommand: UpdateClusterSettingsCommand_1.UpdateClusterSettingsCommand, - UpdateContainerAgentCommand: UpdateContainerAgentCommand_1.UpdateContainerAgentCommand, - UpdateContainerInstancesStateCommand: UpdateContainerInstancesStateCommand_1.UpdateContainerInstancesStateCommand, - UpdateServiceCommand: UpdateServiceCommand_1.UpdateServiceCommand, - UpdateServicePrimaryTaskSetCommand: UpdateServicePrimaryTaskSetCommand_1.UpdateServicePrimaryTaskSetCommand, - UpdateTaskProtectionCommand: UpdateTaskProtectionCommand_1.UpdateTaskProtectionCommand, - UpdateTaskSetCommand: UpdateTaskSetCommand_1.UpdateTaskSetCommand, +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListTaskDefinitionsCommand_1.ListTaskDefinitionsCommand(input), ...args); }; -class ECS extends ECSClient_1.ECSClient { +async function* paginateListTaskDefinitions(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ECSClient_1.ECSClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected ECS | ECSClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; } -exports.ECS = ECS; -(0, smithy_client_1.createAggregatedClient)(commands, ECS); +exports.paginateListTaskDefinitions = paginateListTaskDefinitions; /***/ }), -/***/ 55714: +/***/ 52648: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ECSClient = 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_signing_1 = __nccwpck_require__(14935); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const config_resolver_1 = __nccwpck_require__(53098); -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 EndpointParameters_1 = __nccwpck_require__(19970); -const runtimeConfig_1 = __nccwpck_require__(47246); -const runtimeExtensions_1 = __nccwpck_require__(14168); -class ECSClient extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); - const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5); - const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6); - const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []); - super(_config_8); - this.config = _config_8; - 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, middleware_signing_1.getAwsAuthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); +exports.paginateListTasks = void 0; +const ListTasksCommand_1 = __nccwpck_require__(67517); +const ECSClient_1 = __nccwpck_require__(55714); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListTasksCommand_1.ListTasksCommand(input), ...args); +}; +async function* paginateListTasks(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof ECSClient_1.ECSClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected ECS | ECSClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); } + return undefined; } -exports.ECSClient = ECSClient; +exports.paginateListTasks = paginateListTasks; /***/ }), -/***/ 24286: +/***/ 84488: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateCapacityProviderCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class CreateCapacityProviderCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateCapacityProviderCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "CreateCapacityProviderCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "CreateCapacityProvider", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateCapacityProviderCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateCapacityProviderCommand)(output, context); - } -} -exports.CreateCapacityProviderCommand = CreateCapacityProviderCommand; +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(1147), exports); +tslib_1.__exportStar(__nccwpck_require__(92183), exports); +tslib_1.__exportStar(__nccwpck_require__(82008), exports); +tslib_1.__exportStar(__nccwpck_require__(54484), exports); +tslib_1.__exportStar(__nccwpck_require__(44984), exports); +tslib_1.__exportStar(__nccwpck_require__(72409), exports); +tslib_1.__exportStar(__nccwpck_require__(99383), exports); +tslib_1.__exportStar(__nccwpck_require__(93812), exports); +tslib_1.__exportStar(__nccwpck_require__(22161), exports); +tslib_1.__exportStar(__nccwpck_require__(52648), exports); /***/ }), -/***/ 39837: +/***/ 56556: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateClusterCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); +exports.se_UpdateClusterSettingsCommand = exports.se_UpdateClusterCommand = exports.se_UpdateCapacityProviderCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SubmitTaskStateChangeCommand = exports.se_SubmitContainerStateChangeCommand = exports.se_SubmitAttachmentStateChangesCommand = exports.se_StopTaskCommand = exports.se_StartTaskCommand = exports.se_RunTaskCommand = exports.se_RegisterTaskDefinitionCommand = exports.se_RegisterContainerInstanceCommand = exports.se_PutClusterCapacityProvidersCommand = exports.se_PutAttributesCommand = exports.se_PutAccountSettingDefaultCommand = exports.se_PutAccountSettingCommand = exports.se_ListTasksCommand = exports.se_ListTaskDefinitionsCommand = exports.se_ListTaskDefinitionFamiliesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicesByNamespaceCommand = exports.se_ListServicesCommand = exports.se_ListContainerInstancesCommand = exports.se_ListClustersCommand = exports.se_ListAttributesCommand = exports.se_ListAccountSettingsCommand = exports.se_GetTaskProtectionCommand = exports.se_ExecuteCommandCommand = exports.se_DiscoverPollEndpointCommand = exports.se_DescribeTaskSetsCommand = exports.se_DescribeTasksCommand = exports.se_DescribeTaskDefinitionCommand = exports.se_DescribeServicesCommand = exports.se_DescribeContainerInstancesCommand = exports.se_DescribeClustersCommand = exports.se_DescribeCapacityProvidersCommand = exports.se_DeregisterTaskDefinitionCommand = exports.se_DeregisterContainerInstanceCommand = exports.se_DeleteTaskSetCommand = exports.se_DeleteTaskDefinitionsCommand = exports.se_DeleteServiceCommand = exports.se_DeleteClusterCommand = exports.se_DeleteCapacityProviderCommand = exports.se_DeleteAttributesCommand = exports.se_DeleteAccountSettingCommand = exports.se_CreateTaskSetCommand = exports.se_CreateServiceCommand = exports.se_CreateClusterCommand = exports.se_CreateCapacityProviderCommand = void 0; +exports.de_SubmitContainerStateChangeCommand = exports.de_SubmitAttachmentStateChangesCommand = exports.de_StopTaskCommand = exports.de_StartTaskCommand = exports.de_RunTaskCommand = exports.de_RegisterTaskDefinitionCommand = exports.de_RegisterContainerInstanceCommand = exports.de_PutClusterCapacityProvidersCommand = exports.de_PutAttributesCommand = exports.de_PutAccountSettingDefaultCommand = exports.de_PutAccountSettingCommand = exports.de_ListTasksCommand = exports.de_ListTaskDefinitionsCommand = exports.de_ListTaskDefinitionFamiliesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesByNamespaceCommand = exports.de_ListServicesCommand = exports.de_ListContainerInstancesCommand = exports.de_ListClustersCommand = exports.de_ListAttributesCommand = exports.de_ListAccountSettingsCommand = exports.de_GetTaskProtectionCommand = exports.de_ExecuteCommandCommand = exports.de_DiscoverPollEndpointCommand = exports.de_DescribeTaskSetsCommand = exports.de_DescribeTasksCommand = exports.de_DescribeTaskDefinitionCommand = exports.de_DescribeServicesCommand = exports.de_DescribeContainerInstancesCommand = exports.de_DescribeClustersCommand = exports.de_DescribeCapacityProvidersCommand = exports.de_DeregisterTaskDefinitionCommand = exports.de_DeregisterContainerInstanceCommand = exports.de_DeleteTaskSetCommand = exports.de_DeleteTaskDefinitionsCommand = exports.de_DeleteServiceCommand = exports.de_DeleteClusterCommand = exports.de_DeleteCapacityProviderCommand = exports.de_DeleteAttributesCommand = exports.de_DeleteAccountSettingCommand = exports.de_CreateTaskSetCommand = exports.de_CreateServiceCommand = exports.de_CreateClusterCommand = exports.de_CreateCapacityProviderCommand = exports.se_UpdateTaskSetCommand = exports.se_UpdateTaskProtectionCommand = exports.se_UpdateServicePrimaryTaskSetCommand = exports.se_UpdateServiceCommand = exports.se_UpdateContainerInstancesStateCommand = exports.se_UpdateContainerAgentCommand = void 0; +exports.de_UpdateTaskSetCommand = exports.de_UpdateTaskProtectionCommand = exports.de_UpdateServicePrimaryTaskSetCommand = exports.de_UpdateServiceCommand = exports.de_UpdateContainerInstancesStateCommand = exports.de_UpdateContainerAgentCommand = exports.de_UpdateClusterSettingsCommand = exports.de_UpdateClusterCommand = exports.de_UpdateCapacityProviderCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SubmitTaskStateChangeCommand = void 0; +const protocol_http_1 = __nccwpck_require__(64418); const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class CreateClusterCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateClusterCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "CreateClusterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "CreateCluster", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateClusterCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateClusterCommand)(output, context); - } -} -exports.CreateClusterCommand = CreateClusterCommand; - - -/***/ }), - -/***/ 60897: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateServiceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class CreateServiceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateServiceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "CreateServiceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "CreateService", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateServiceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateServiceCommand)(output, context); - } -} -exports.CreateServiceCommand = CreateServiceCommand; - - -/***/ }), - -/***/ 31781: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateTaskSetCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class CreateTaskSetCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateTaskSetCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "CreateTaskSetCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "CreateTaskSet", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateTaskSetCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateTaskSetCommand)(output, context); - } -} -exports.CreateTaskSetCommand = CreateTaskSetCommand; - - -/***/ }), - -/***/ 71334: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteAccountSettingCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DeleteAccountSettingCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAccountSettingCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DeleteAccountSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DeleteAccountSetting", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteAccountSettingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteAccountSettingCommand)(output, context); - } -} -exports.DeleteAccountSettingCommand = DeleteAccountSettingCommand; - - -/***/ }), - -/***/ 88362: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteAttributesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DeleteAttributesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAttributesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DeleteAttributesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DeleteAttributes", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteAttributesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteAttributesCommand)(output, context); - } -} -exports.DeleteAttributesCommand = DeleteAttributesCommand; - - -/***/ }), - -/***/ 7608: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteCapacityProviderCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DeleteCapacityProviderCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteCapacityProviderCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DeleteCapacityProviderCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DeleteCapacityProvider", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteCapacityProviderCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteCapacityProviderCommand)(output, context); - } -} -exports.DeleteCapacityProviderCommand = DeleteCapacityProviderCommand; - - -/***/ }), - -/***/ 36303: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteClusterCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DeleteClusterCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteClusterCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DeleteClusterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DeleteCluster", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteClusterCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteClusterCommand)(output, context); - } -} -exports.DeleteClusterCommand = DeleteClusterCommand; - - -/***/ }), - -/***/ 70362: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteServiceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DeleteServiceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteServiceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DeleteServiceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DeleteService", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteServiceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteServiceCommand)(output, context); - } -} -exports.DeleteServiceCommand = DeleteServiceCommand; - - -/***/ }), - -/***/ 94786: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteTaskDefinitionsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DeleteTaskDefinitionsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteTaskDefinitionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DeleteTaskDefinitionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DeleteTaskDefinitions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteTaskDefinitionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteTaskDefinitionsCommand)(output, context); - } -} -exports.DeleteTaskDefinitionsCommand = DeleteTaskDefinitionsCommand; - - -/***/ }), - -/***/ 97462: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteTaskSetCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DeleteTaskSetCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteTaskSetCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DeleteTaskSetCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DeleteTaskSet", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteTaskSetCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteTaskSetCommand)(output, context); - } -} -exports.DeleteTaskSetCommand = DeleteTaskSetCommand; - - -/***/ }), - -/***/ 83594: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeregisterContainerInstanceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DeregisterContainerInstanceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterContainerInstanceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DeregisterContainerInstanceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DeregisterContainerInstance", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeregisterContainerInstanceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeregisterContainerInstanceCommand)(output, context); - } -} -exports.DeregisterContainerInstanceCommand = DeregisterContainerInstanceCommand; - - -/***/ }), - -/***/ 87388: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeregisterTaskDefinitionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DeregisterTaskDefinitionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterTaskDefinitionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DeregisterTaskDefinitionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DeregisterTaskDefinition", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeregisterTaskDefinitionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeregisterTaskDefinitionCommand)(output, context); - } -} -exports.DeregisterTaskDefinitionCommand = DeregisterTaskDefinitionCommand; - - -/***/ }), - -/***/ 42171: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeCapacityProvidersCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DescribeCapacityProvidersCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeCapacityProvidersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DescribeCapacityProvidersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DescribeCapacityProviders", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeCapacityProvidersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeCapacityProvidersCommand)(output, context); - } -} -exports.DescribeCapacityProvidersCommand = DescribeCapacityProvidersCommand; - - -/***/ }), - -/***/ 74863: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeClustersCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DescribeClustersCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeClustersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DescribeClustersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DescribeClusters", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeClustersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeClustersCommand)(output, context); - } -} -exports.DescribeClustersCommand = DescribeClustersCommand; - - -/***/ }), - -/***/ 28965: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeContainerInstancesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DescribeContainerInstancesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeContainerInstancesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DescribeContainerInstancesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DescribeContainerInstances", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeContainerInstancesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeContainerInstancesCommand)(output, context); - } -} -exports.DescribeContainerInstancesCommand = DescribeContainerInstancesCommand; - - -/***/ }), - -/***/ 1000: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeServicesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DescribeServicesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeServicesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DescribeServicesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DescribeServices", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeServicesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeServicesCommand)(output, context); - } -} -exports.DescribeServicesCommand = DescribeServicesCommand; - - -/***/ }), - -/***/ 30751: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeTaskDefinitionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DescribeTaskDefinitionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTaskDefinitionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DescribeTaskDefinitionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DescribeTaskDefinition", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeTaskDefinitionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeTaskDefinitionCommand)(output, context); - } -} -exports.DescribeTaskDefinitionCommand = DescribeTaskDefinitionCommand; - - -/***/ }), - -/***/ 40105: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeTaskSetsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DescribeTaskSetsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTaskSetsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DescribeTaskSetsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DescribeTaskSets", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeTaskSetsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeTaskSetsCommand)(output, context); - } -} -exports.DescribeTaskSetsCommand = DescribeTaskSetsCommand; - - -/***/ }), - -/***/ 59793: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeTasksCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DescribeTasksCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTasksCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DescribeTasksCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DescribeTasks", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeTasksCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeTasksCommand)(output, context); - } -} -exports.DescribeTasksCommand = DescribeTasksCommand; - - -/***/ }), - -/***/ 21923: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DiscoverPollEndpointCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class DiscoverPollEndpointCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DiscoverPollEndpointCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "DiscoverPollEndpointCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "DiscoverPollEndpoint", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DiscoverPollEndpointCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DiscoverPollEndpointCommand)(output, context); - } -} -exports.DiscoverPollEndpointCommand = DiscoverPollEndpointCommand; - - -/***/ }), - -/***/ 79414: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ExecuteCommandCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(89402); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ExecuteCommandCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ExecuteCommandCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ExecuteCommandCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.ExecuteCommandResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ExecuteCommand", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ExecuteCommandCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ExecuteCommandCommand)(output, context); - } -} -exports.ExecuteCommandCommand = ExecuteCommandCommand; - - -/***/ }), - -/***/ 98165: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetTaskProtectionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class GetTaskProtectionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetTaskProtectionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "GetTaskProtectionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "GetTaskProtection", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetTaskProtectionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetTaskProtectionCommand)(output, context); - } -} -exports.GetTaskProtectionCommand = GetTaskProtectionCommand; - - -/***/ }), - -/***/ 89726: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAccountSettingsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ListAccountSettingsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccountSettingsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ListAccountSettingsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ListAccountSettings", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListAccountSettingsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListAccountSettingsCommand)(output, context); - } -} -exports.ListAccountSettingsCommand = ListAccountSettingsCommand; - - -/***/ }), - -/***/ 51415: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAttributesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ListAttributesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAttributesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ListAttributesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ListAttributes", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListAttributesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListAttributesCommand)(output, context); - } -} -exports.ListAttributesCommand = ListAttributesCommand; - - -/***/ }), - -/***/ 92960: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListClustersCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ListClustersCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListClustersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ListClustersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ListClusters", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListClustersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListClustersCommand)(output, context); - } -} -exports.ListClustersCommand = ListClustersCommand; - - -/***/ }), - -/***/ 85133: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListContainerInstancesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ListContainerInstancesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListContainerInstancesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ListContainerInstancesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ListContainerInstances", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListContainerInstancesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListContainerInstancesCommand)(output, context); - } -} -exports.ListContainerInstancesCommand = ListContainerInstancesCommand; - - -/***/ }), - -/***/ 2796: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListServicesByNamespaceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ListServicesByNamespaceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListServicesByNamespaceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ListServicesByNamespaceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ListServicesByNamespace", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListServicesByNamespaceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListServicesByNamespaceCommand)(output, context); - } -} -exports.ListServicesByNamespaceCommand = ListServicesByNamespaceCommand; - - -/***/ }), - -/***/ 51752: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListServicesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ListServicesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListServicesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ListServicesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ListServices", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListServicesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListServicesCommand)(output, context); - } -} -exports.ListServicesCommand = ListServicesCommand; - - -/***/ }), - -/***/ 69786: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListTagsForResourceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ListTagsForResourceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ListTagsForResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ListTagsForResource", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListTagsForResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListTagsForResourceCommand)(output, context); - } -} -exports.ListTagsForResourceCommand = ListTagsForResourceCommand; - - -/***/ }), - -/***/ 62735: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListTaskDefinitionFamiliesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ListTaskDefinitionFamiliesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTaskDefinitionFamiliesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ListTaskDefinitionFamiliesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ListTaskDefinitionFamilies", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListTaskDefinitionFamiliesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListTaskDefinitionFamiliesCommand)(output, context); - } -} -exports.ListTaskDefinitionFamiliesCommand = ListTaskDefinitionFamiliesCommand; - - -/***/ }), - -/***/ 27068: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListTaskDefinitionsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ListTaskDefinitionsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTaskDefinitionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ListTaskDefinitionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ListTaskDefinitions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListTaskDefinitionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListTaskDefinitionsCommand)(output, context); - } -} -exports.ListTaskDefinitionsCommand = ListTaskDefinitionsCommand; - - -/***/ }), - -/***/ 67517: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListTasksCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class ListTasksCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTasksCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "ListTasksCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "ListTasks", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListTasksCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListTasksCommand)(output, context); - } -} -exports.ListTasksCommand = ListTasksCommand; - - -/***/ }), - -/***/ 25364: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutAccountSettingCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class PutAccountSettingCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutAccountSettingCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "PutAccountSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "PutAccountSetting", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_PutAccountSettingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_PutAccountSettingCommand)(output, context); - } -} -exports.PutAccountSettingCommand = PutAccountSettingCommand; - - -/***/ }), - -/***/ 84597: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutAccountSettingDefaultCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class PutAccountSettingDefaultCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutAccountSettingDefaultCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "PutAccountSettingDefaultCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "PutAccountSettingDefault", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_PutAccountSettingDefaultCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_PutAccountSettingDefaultCommand)(output, context); - } -} -exports.PutAccountSettingDefaultCommand = PutAccountSettingDefaultCommand; - - -/***/ }), - -/***/ 57327: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutAttributesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class PutAttributesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutAttributesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "PutAttributesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "PutAttributes", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_PutAttributesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_PutAttributesCommand)(output, context); - } -} -exports.PutAttributesCommand = PutAttributesCommand; - - -/***/ }), - -/***/ 60177: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutClusterCapacityProvidersCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class PutClusterCapacityProvidersCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutClusterCapacityProvidersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "PutClusterCapacityProvidersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "PutClusterCapacityProviders", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_PutClusterCapacityProvidersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_PutClusterCapacityProvidersCommand)(output, context); - } -} -exports.PutClusterCapacityProvidersCommand = PutClusterCapacityProvidersCommand; - - -/***/ }), - -/***/ 10590: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RegisterContainerInstanceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class RegisterContainerInstanceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterContainerInstanceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "RegisterContainerInstanceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "RegisterContainerInstance", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_RegisterContainerInstanceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_RegisterContainerInstanceCommand)(output, context); - } -} -exports.RegisterContainerInstanceCommand = RegisterContainerInstanceCommand; - - -/***/ }), - -/***/ 96309: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RegisterTaskDefinitionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class RegisterTaskDefinitionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterTaskDefinitionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "RegisterTaskDefinitionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "RegisterTaskDefinition", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_RegisterTaskDefinitionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_RegisterTaskDefinitionCommand)(output, context); - } -} -exports.RegisterTaskDefinitionCommand = RegisterTaskDefinitionCommand; - - -/***/ }), - -/***/ 55037: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RunTaskCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class RunTaskCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RunTaskCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "RunTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "RunTask", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_RunTaskCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_RunTaskCommand)(output, context); - } -} -exports.RunTaskCommand = RunTaskCommand; - - -/***/ }), - -/***/ 93535: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StartTaskCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class StartTaskCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartTaskCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "StartTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "StartTask", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_StartTaskCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_StartTaskCommand)(output, context); - } -} -exports.StartTaskCommand = StartTaskCommand; - - -/***/ }), - -/***/ 98004: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StopTaskCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class StopTaskCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopTaskCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "StopTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "StopTask", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_StopTaskCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_StopTaskCommand)(output, context); - } -} -exports.StopTaskCommand = StopTaskCommand; - - -/***/ }), - -/***/ 10047: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SubmitAttachmentStateChangesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class SubmitAttachmentStateChangesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SubmitAttachmentStateChangesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "SubmitAttachmentStateChangesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "SubmitAttachmentStateChanges", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_SubmitAttachmentStateChangesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_SubmitAttachmentStateChangesCommand)(output, context); - } -} -exports.SubmitAttachmentStateChangesCommand = SubmitAttachmentStateChangesCommand; - - -/***/ }), - -/***/ 60946: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SubmitContainerStateChangeCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class SubmitContainerStateChangeCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SubmitContainerStateChangeCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "SubmitContainerStateChangeCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "SubmitContainerStateChange", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_SubmitContainerStateChangeCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_SubmitContainerStateChangeCommand)(output, context); - } -} -exports.SubmitContainerStateChangeCommand = SubmitContainerStateChangeCommand; - - -/***/ }), - -/***/ 92999: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SubmitTaskStateChangeCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class SubmitTaskStateChangeCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SubmitTaskStateChangeCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "SubmitTaskStateChangeCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "SubmitTaskStateChange", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_SubmitTaskStateChangeCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_SubmitTaskStateChangeCommand)(output, context); - } -} -exports.SubmitTaskStateChangeCommand = SubmitTaskStateChangeCommand; - - -/***/ }), - -/***/ 38275: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.TagResourceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class TagResourceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TagResourceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "TagResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "TagResource", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_TagResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_TagResourceCommand)(output, context); - } -} -exports.TagResourceCommand = TagResourceCommand; - - -/***/ }), - -/***/ 46926: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UntagResourceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class UntagResourceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "UntagResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "UntagResource", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UntagResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UntagResourceCommand)(output, context); - } -} -exports.UntagResourceCommand = UntagResourceCommand; - - -/***/ }), - -/***/ 11810: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateCapacityProviderCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class UpdateCapacityProviderCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateCapacityProviderCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "UpdateCapacityProviderCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "UpdateCapacityProvider", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateCapacityProviderCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateCapacityProviderCommand)(output, context); - } -} -exports.UpdateCapacityProviderCommand = UpdateCapacityProviderCommand; - - -/***/ }), - -/***/ 2219: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateClusterCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class UpdateClusterCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateClusterCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "UpdateClusterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "UpdateCluster", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateClusterCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateClusterCommand)(output, context); - } -} -exports.UpdateClusterCommand = UpdateClusterCommand; - - -/***/ }), - -/***/ 76288: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateClusterSettingsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class UpdateClusterSettingsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateClusterSettingsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "UpdateClusterSettingsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "UpdateClusterSettings", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateClusterSettingsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateClusterSettingsCommand)(output, context); - } -} -exports.UpdateClusterSettingsCommand = UpdateClusterSettingsCommand; - - -/***/ }), - -/***/ 32759: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateContainerAgentCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class UpdateContainerAgentCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateContainerAgentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "UpdateContainerAgentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "UpdateContainerAgent", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateContainerAgentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateContainerAgentCommand)(output, context); - } -} -exports.UpdateContainerAgentCommand = UpdateContainerAgentCommand; - - -/***/ }), - -/***/ 11453: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateContainerInstancesStateCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class UpdateContainerInstancesStateCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateContainerInstancesStateCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "UpdateContainerInstancesStateCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "UpdateContainerInstancesState", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateContainerInstancesStateCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateContainerInstancesStateCommand)(output, context); - } -} -exports.UpdateContainerInstancesStateCommand = UpdateContainerInstancesStateCommand; - - -/***/ }), - -/***/ 17075: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateServiceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class UpdateServiceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateServiceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "UpdateServiceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "UpdateService", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateServiceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateServiceCommand)(output, context); - } -} -exports.UpdateServiceCommand = UpdateServiceCommand; - - -/***/ }), - -/***/ 94016: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateServicePrimaryTaskSetCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class UpdateServicePrimaryTaskSetCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateServicePrimaryTaskSetCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "UpdateServicePrimaryTaskSetCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "UpdateServicePrimaryTaskSet", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateServicePrimaryTaskSetCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateServicePrimaryTaskSetCommand)(output, context); - } -} -exports.UpdateServicePrimaryTaskSetCommand = UpdateServicePrimaryTaskSetCommand; - - -/***/ }), - -/***/ 86555: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateTaskProtectionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class UpdateTaskProtectionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateTaskProtectionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "UpdateTaskProtectionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "UpdateTaskProtection", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateTaskProtectionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateTaskProtectionCommand)(output, context); - } -} -exports.UpdateTaskProtectionCommand = UpdateTaskProtectionCommand; - - -/***/ }), - -/***/ 45753: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateTaskSetCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_json1_1_1 = __nccwpck_require__(56556); -class UpdateTaskSetCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateTaskSetCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECSClient"; - const commandName = "UpdateTaskSetCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonEC2ContainerServiceV20141113", - operation: "UpdateTaskSet", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateTaskSetCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateTaskSetCommand)(output, context); - } -} -exports.UpdateTaskSetCommand = UpdateTaskSetCommand; - - -/***/ }), - -/***/ 65233: -/***/ ((__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__(24286), exports); -tslib_1.__exportStar(__nccwpck_require__(39837), exports); -tslib_1.__exportStar(__nccwpck_require__(60897), exports); -tslib_1.__exportStar(__nccwpck_require__(31781), exports); -tslib_1.__exportStar(__nccwpck_require__(71334), exports); -tslib_1.__exportStar(__nccwpck_require__(88362), exports); -tslib_1.__exportStar(__nccwpck_require__(7608), exports); -tslib_1.__exportStar(__nccwpck_require__(36303), exports); -tslib_1.__exportStar(__nccwpck_require__(70362), exports); -tslib_1.__exportStar(__nccwpck_require__(94786), exports); -tslib_1.__exportStar(__nccwpck_require__(97462), exports); -tslib_1.__exportStar(__nccwpck_require__(83594), exports); -tslib_1.__exportStar(__nccwpck_require__(87388), exports); -tslib_1.__exportStar(__nccwpck_require__(42171), exports); -tslib_1.__exportStar(__nccwpck_require__(74863), exports); -tslib_1.__exportStar(__nccwpck_require__(28965), exports); -tslib_1.__exportStar(__nccwpck_require__(1000), exports); -tslib_1.__exportStar(__nccwpck_require__(30751), exports); -tslib_1.__exportStar(__nccwpck_require__(40105), exports); -tslib_1.__exportStar(__nccwpck_require__(59793), exports); -tslib_1.__exportStar(__nccwpck_require__(21923), exports); -tslib_1.__exportStar(__nccwpck_require__(79414), exports); -tslib_1.__exportStar(__nccwpck_require__(98165), exports); -tslib_1.__exportStar(__nccwpck_require__(89726), exports); -tslib_1.__exportStar(__nccwpck_require__(51415), exports); -tslib_1.__exportStar(__nccwpck_require__(92960), exports); -tslib_1.__exportStar(__nccwpck_require__(85133), exports); -tslib_1.__exportStar(__nccwpck_require__(2796), exports); -tslib_1.__exportStar(__nccwpck_require__(51752), exports); -tslib_1.__exportStar(__nccwpck_require__(69786), exports); -tslib_1.__exportStar(__nccwpck_require__(62735), exports); -tslib_1.__exportStar(__nccwpck_require__(27068), exports); -tslib_1.__exportStar(__nccwpck_require__(67517), exports); -tslib_1.__exportStar(__nccwpck_require__(25364), exports); -tslib_1.__exportStar(__nccwpck_require__(84597), exports); -tslib_1.__exportStar(__nccwpck_require__(57327), exports); -tslib_1.__exportStar(__nccwpck_require__(60177), exports); -tslib_1.__exportStar(__nccwpck_require__(10590), exports); -tslib_1.__exportStar(__nccwpck_require__(96309), exports); -tslib_1.__exportStar(__nccwpck_require__(55037), exports); -tslib_1.__exportStar(__nccwpck_require__(93535), exports); -tslib_1.__exportStar(__nccwpck_require__(98004), exports); -tslib_1.__exportStar(__nccwpck_require__(10047), exports); -tslib_1.__exportStar(__nccwpck_require__(60946), exports); -tslib_1.__exportStar(__nccwpck_require__(92999), exports); -tslib_1.__exportStar(__nccwpck_require__(38275), exports); -tslib_1.__exportStar(__nccwpck_require__(46926), exports); -tslib_1.__exportStar(__nccwpck_require__(11810), exports); -tslib_1.__exportStar(__nccwpck_require__(2219), exports); -tslib_1.__exportStar(__nccwpck_require__(76288), exports); -tslib_1.__exportStar(__nccwpck_require__(32759), exports); -tslib_1.__exportStar(__nccwpck_require__(11453), exports); -tslib_1.__exportStar(__nccwpck_require__(17075), exports); -tslib_1.__exportStar(__nccwpck_require__(94016), exports); -tslib_1.__exportStar(__nccwpck_require__(86555), exports); -tslib_1.__exportStar(__nccwpck_require__(45753), exports); - - -/***/ }), - -/***/ 19970: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveClientEndpointParameters = void 0; -const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "ecs", - }; -}; -exports.resolveClientEndpointParameters = resolveClientEndpointParameters; - - -/***/ }), - -/***/ 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 ruleset_1 = __nccwpck_require__(83635); -const defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); -}; -exports.defaultEndpointResolver = defaultEndpointResolver; - - -/***/ }), - -/***/ 83635: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ruleSet = void 0; -const q = "required", r = "fn", s = "argv", t = "ref"; -const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }]; -const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://ecs.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }; -exports.ruleSet = _data; - - -/***/ }), - -/***/ 18209: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ECSServiceException = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(55714), exports); -tslib_1.__exportStar(__nccwpck_require__(79074), exports); -tslib_1.__exportStar(__nccwpck_require__(65233), exports); -tslib_1.__exportStar(__nccwpck_require__(84488), exports); -tslib_1.__exportStar(__nccwpck_require__(64379), exports); -tslib_1.__exportStar(__nccwpck_require__(22040), exports); -var ECSServiceException_1 = __nccwpck_require__(47688); -Object.defineProperty(exports, "ECSServiceException", ({ enumerable: true, get: function () { return ECSServiceException_1.ECSServiceException; } })); - - -/***/ }), - -/***/ 47688: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ECSServiceException = exports.__ServiceException = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } })); -class ECSServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, ECSServiceException.prototype); - } -} -exports.ECSServiceException = ECSServiceException; - - -/***/ }), - -/***/ 22040: -/***/ ((__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__(89402), exports); - - -/***/ }), - -/***/ 89402: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.TaskDefinitionPlacementConstraintType = exports.PidMode = exports.NetworkMode = exports.IpcMode = exports.UlimitName = exports.ResourceType = exports.TransportProtocol = exports.ApplicationProtocol = exports.DeviceCgroupPermission = exports.FirelensConfigurationType = exports.EnvironmentFileType = exports.ContainerCondition = exports.Compatibility = exports.ClusterContainsTasksException = exports.ClusterContainsServicesException = exports.ClusterContainsContainerInstancesException = exports.TargetNotFoundException = exports.TargetType = exports.SettingName = exports.ServiceNotFoundException = exports.ServiceNotActiveException = exports.UnsupportedFeatureException = exports.PlatformUnknownException = exports.PlatformTaskDefinitionIncompatibilityException = exports.StabilityStatus = exports.ScaleUnit = exports.DeploymentRolloutState = exports.LogDriver = exports.SchedulingStrategy = exports.PropagateTags = exports.PlacementStrategyType = exports.PlacementConstraintType = exports.AssignPublicIp = exports.LaunchType = exports.DeploymentControllerType = exports.ClusterNotFoundException = exports.NamespaceNotFoundException = exports.ClusterSettingName = exports.ExecuteCommandLogging = exports.UpdateInProgressException = exports.ServerException = exports.LimitExceededException = exports.InvalidParameterException = exports.CapacityProviderUpdateStatus = exports.CapacityProviderStatus = exports.ManagedTerminationProtection = exports.ManagedScalingStatus = exports.ClientException = exports.AgentUpdateStatus = exports.AccessDeniedException = void 0; -exports.ExecuteCommandResponseFilterSensitiveLog = exports.SessionFilterSensitiveLog = exports.NoUpdateAvailableException = exports.MissingVersionException = exports.BlockedException = exports.PlatformDeviceType = exports.ResourceInUseException = exports.AttributeLimitExceededException = exports.DesiredStatus = exports.SortOrder = exports.TaskDefinitionFamilyStatus = exports.ContainerInstanceStatus = exports.ResourceNotFoundException = exports.TargetNotConnectedException = exports.TaskSetField = exports.TaskStopCode = exports.ManagedAgentName = exports.HealthStatus = exports.Connectivity = exports.TaskField = exports.TaskDefinitionField = exports.ServiceField = exports.ContainerInstanceField = exports.ClusterField = exports.CapacityProviderField = exports.InstanceHealthCheckType = exports.InstanceHealthCheckState = exports.TaskSetNotFoundException = exports.EFSTransitEncryption = exports.EFSAuthorizationConfigIAM = exports.Scope = exports.TaskDefinitionStatus = exports.OSFamily = exports.CPUArchitecture = exports.ProxyConfigurationType = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -const ECSServiceException_1 = __nccwpck_require__(47688); -class AccessDeniedException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "AccessDeniedException", - $fault: "client", - ...opts, - }); - this.name = "AccessDeniedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AccessDeniedException.prototype); - } -} -exports.AccessDeniedException = AccessDeniedException; -exports.AgentUpdateStatus = { - FAILED: "FAILED", - PENDING: "PENDING", - STAGED: "STAGED", - STAGING: "STAGING", - UPDATED: "UPDATED", - UPDATING: "UPDATING", -}; -class ClientException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "ClientException", - $fault: "client", - ...opts, - }); - this.name = "ClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ClientException.prototype); - } -} -exports.ClientException = ClientException; -exports.ManagedScalingStatus = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -}; -exports.ManagedTerminationProtection = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -}; -exports.CapacityProviderStatus = { - ACTIVE: "ACTIVE", - INACTIVE: "INACTIVE", -}; -exports.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", -}; -class InvalidParameterException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "InvalidParameterException", - $fault: "client", - ...opts, - }); - this.name = "InvalidParameterException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidParameterException.prototype); - } -} -exports.InvalidParameterException = InvalidParameterException; -class LimitExceededException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "LimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "LimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, LimitExceededException.prototype); - } -} -exports.LimitExceededException = LimitExceededException; -class ServerException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "ServerException", - $fault: "server", - ...opts, - }); - this.name = "ServerException"; - this.$fault = "server"; - Object.setPrototypeOf(this, ServerException.prototype); - } -} -exports.ServerException = ServerException; -class UpdateInProgressException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "UpdateInProgressException", - $fault: "client", - ...opts, - }); - this.name = "UpdateInProgressException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UpdateInProgressException.prototype); - } -} -exports.UpdateInProgressException = UpdateInProgressException; -exports.ExecuteCommandLogging = { - DEFAULT: "DEFAULT", - NONE: "NONE", - OVERRIDE: "OVERRIDE", -}; -exports.ClusterSettingName = { - CONTAINER_INSIGHTS: "containerInsights", -}; -class NamespaceNotFoundException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "NamespaceNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "NamespaceNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, NamespaceNotFoundException.prototype); - } -} -exports.NamespaceNotFoundException = NamespaceNotFoundException; -class ClusterNotFoundException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "ClusterNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ClusterNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ClusterNotFoundException.prototype); - } -} -exports.ClusterNotFoundException = ClusterNotFoundException; -exports.DeploymentControllerType = { - CODE_DEPLOY: "CODE_DEPLOY", - ECS: "ECS", - EXTERNAL: "EXTERNAL", -}; -exports.LaunchType = { - EC2: "EC2", - EXTERNAL: "EXTERNAL", - FARGATE: "FARGATE", -}; -exports.AssignPublicIp = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -}; -exports.PlacementConstraintType = { - DISTINCT_INSTANCE: "distinctInstance", - MEMBER_OF: "memberOf", -}; -exports.PlacementStrategyType = { - BINPACK: "binpack", - RANDOM: "random", - SPREAD: "spread", -}; -exports.PropagateTags = { - NONE: "NONE", - SERVICE: "SERVICE", - TASK_DEFINITION: "TASK_DEFINITION", -}; -exports.SchedulingStrategy = { - DAEMON: "DAEMON", - REPLICA: "REPLICA", -}; -exports.LogDriver = { - AWSFIRELENS: "awsfirelens", - AWSLOGS: "awslogs", - FLUENTD: "fluentd", - GELF: "gelf", - JOURNALD: "journald", - JSON_FILE: "json-file", - SPLUNK: "splunk", - SYSLOG: "syslog", -}; -exports.DeploymentRolloutState = { - COMPLETED: "COMPLETED", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", -}; -exports.ScaleUnit = { - PERCENT: "PERCENT", -}; -exports.StabilityStatus = { - STABILIZING: "STABILIZING", - STEADY_STATE: "STEADY_STATE", -}; -class PlatformTaskDefinitionIncompatibilityException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "PlatformTaskDefinitionIncompatibilityException", - $fault: "client", - ...opts, - }); - this.name = "PlatformTaskDefinitionIncompatibilityException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PlatformTaskDefinitionIncompatibilityException.prototype); - } -} -exports.PlatformTaskDefinitionIncompatibilityException = PlatformTaskDefinitionIncompatibilityException; -class PlatformUnknownException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "PlatformUnknownException", - $fault: "client", - ...opts, - }); - this.name = "PlatformUnknownException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PlatformUnknownException.prototype); - } -} -exports.PlatformUnknownException = PlatformUnknownException; -class UnsupportedFeatureException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "UnsupportedFeatureException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedFeatureException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedFeatureException.prototype); - } -} -exports.UnsupportedFeatureException = UnsupportedFeatureException; -class ServiceNotActiveException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "ServiceNotActiveException", - $fault: "client", - ...opts, - }); - this.name = "ServiceNotActiveException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ServiceNotActiveException.prototype); - } -} -exports.ServiceNotActiveException = ServiceNotActiveException; -class ServiceNotFoundException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "ServiceNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ServiceNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ServiceNotFoundException.prototype); - } -} -exports.ServiceNotFoundException = ServiceNotFoundException; -exports.SettingName = { - AWSVPC_TRUNKING: "awsvpcTrunking", - CONTAINER_INSIGHTS: "containerInsights", - CONTAINER_INSTANCE_LONG_ARN_FORMAT: "containerInstanceLongArnFormat", - FARGATE_FIPS_MODE: "fargateFIPSMode", - FARGATE_TASK_RETIREMENT_WAIT_PERIOD: "fargateTaskRetirementWaitPeriod", - SERVICE_LONG_ARN_FORMAT: "serviceLongArnFormat", - TAG_RESOURCE_AUTHORIZATION: "tagResourceAuthorization", - TASK_LONG_ARN_FORMAT: "taskLongArnFormat", -}; -exports.TargetType = { - CONTAINER_INSTANCE: "container-instance", -}; -class TargetNotFoundException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "TargetNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "TargetNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TargetNotFoundException.prototype); - } -} -exports.TargetNotFoundException = TargetNotFoundException; -class ClusterContainsContainerInstancesException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "ClusterContainsContainerInstancesException", - $fault: "client", - ...opts, - }); - this.name = "ClusterContainsContainerInstancesException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ClusterContainsContainerInstancesException.prototype); - } -} -exports.ClusterContainsContainerInstancesException = ClusterContainsContainerInstancesException; -class ClusterContainsServicesException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "ClusterContainsServicesException", - $fault: "client", - ...opts, - }); - this.name = "ClusterContainsServicesException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ClusterContainsServicesException.prototype); - } -} -exports.ClusterContainsServicesException = ClusterContainsServicesException; -class ClusterContainsTasksException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "ClusterContainsTasksException", - $fault: "client", - ...opts, - }); - this.name = "ClusterContainsTasksException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ClusterContainsTasksException.prototype); - } -} -exports.ClusterContainsTasksException = ClusterContainsTasksException; -exports.Compatibility = { - EC2: "EC2", - EXTERNAL: "EXTERNAL", - FARGATE: "FARGATE", -}; -exports.ContainerCondition = { - COMPLETE: "COMPLETE", - HEALTHY: "HEALTHY", - START: "START", - SUCCESS: "SUCCESS", -}; -exports.EnvironmentFileType = { - S3: "s3", -}; -exports.FirelensConfigurationType = { - FLUENTBIT: "fluentbit", - FLUENTD: "fluentd", -}; -exports.DeviceCgroupPermission = { - MKNOD: "mknod", - READ: "read", - WRITE: "write", -}; -exports.ApplicationProtocol = { - GRPC: "grpc", - HTTP: "http", - HTTP2: "http2", -}; -exports.TransportProtocol = { - TCP: "tcp", - UDP: "udp", -}; -exports.ResourceType = { - GPU: "GPU", - INFERENCE_ACCELERATOR: "InferenceAccelerator", -}; -exports.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", -}; -exports.IpcMode = { - HOST: "host", - NONE: "none", - TASK: "task", -}; -exports.NetworkMode = { - AWSVPC: "awsvpc", - BRIDGE: "bridge", - HOST: "host", - NONE: "none", -}; -exports.PidMode = { - HOST: "host", - TASK: "task", -}; -exports.TaskDefinitionPlacementConstraintType = { - MEMBER_OF: "memberOf", -}; -exports.ProxyConfigurationType = { - APPMESH: "APPMESH", -}; -exports.CPUArchitecture = { - ARM64: "ARM64", - X86_64: "X86_64", -}; -exports.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", -}; -exports.TaskDefinitionStatus = { - ACTIVE: "ACTIVE", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - INACTIVE: "INACTIVE", -}; -exports.Scope = { - SHARED: "shared", - TASK: "task", -}; -exports.EFSAuthorizationConfigIAM = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -}; -exports.EFSTransitEncryption = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -}; -class TaskSetNotFoundException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "TaskSetNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "TaskSetNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TaskSetNotFoundException.prototype); - } -} -exports.TaskSetNotFoundException = TaskSetNotFoundException; -exports.InstanceHealthCheckState = { - IMPAIRED: "IMPAIRED", - INITIALIZING: "INITIALIZING", - INSUFFICIENT_DATA: "INSUFFICIENT_DATA", - OK: "OK", -}; -exports.InstanceHealthCheckType = { - CONTAINER_RUNTIME: "CONTAINER_RUNTIME", -}; -exports.CapacityProviderField = { - TAGS: "TAGS", -}; -exports.ClusterField = { - ATTACHMENTS: "ATTACHMENTS", - CONFIGURATIONS: "CONFIGURATIONS", - SETTINGS: "SETTINGS", - STATISTICS: "STATISTICS", - TAGS: "TAGS", -}; -exports.ContainerInstanceField = { - CONTAINER_INSTANCE_HEALTH: "CONTAINER_INSTANCE_HEALTH", - TAGS: "TAGS", -}; -exports.ServiceField = { - TAGS: "TAGS", -}; -exports.TaskDefinitionField = { - TAGS: "TAGS", -}; -exports.TaskField = { - TAGS: "TAGS", -}; -exports.Connectivity = { - CONNECTED: "CONNECTED", - DISCONNECTED: "DISCONNECTED", -}; -exports.HealthStatus = { - HEALTHY: "HEALTHY", - UNHEALTHY: "UNHEALTHY", - UNKNOWN: "UNKNOWN", -}; -exports.ManagedAgentName = { - ExecuteCommandAgent: "ExecuteCommandAgent", -}; -exports.TaskStopCode = { - ESSENTIAL_CONTAINER_EXITED: "EssentialContainerExited", - SERVICE_SCHEDULER_INITIATED: "ServiceSchedulerInitiated", - SPOT_INTERRUPTION: "SpotInterruption", - TASK_FAILED_TO_START: "TaskFailedToStart", - TERMINATION_NOTICE: "TerminationNotice", - USER_INITIATED: "UserInitiated", -}; -exports.TaskSetField = { - TAGS: "TAGS", -}; -class TargetNotConnectedException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "TargetNotConnectedException", - $fault: "client", - ...opts, - }); - this.name = "TargetNotConnectedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TargetNotConnectedException.prototype); - } -} -exports.TargetNotConnectedException = TargetNotConnectedException; -class ResourceNotFoundException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "ResourceNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ResourceNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceNotFoundException.prototype); - } -} -exports.ResourceNotFoundException = ResourceNotFoundException; -exports.ContainerInstanceStatus = { - ACTIVE: "ACTIVE", - DEREGISTERING: "DEREGISTERING", - DRAINING: "DRAINING", - REGISTERING: "REGISTERING", - REGISTRATION_FAILED: "REGISTRATION_FAILED", -}; -exports.TaskDefinitionFamilyStatus = { - ACTIVE: "ACTIVE", - ALL: "ALL", - INACTIVE: "INACTIVE", -}; -exports.SortOrder = { - ASC: "ASC", - DESC: "DESC", -}; -exports.DesiredStatus = { - PENDING: "PENDING", - RUNNING: "RUNNING", - STOPPED: "STOPPED", -}; -class AttributeLimitExceededException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "AttributeLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "AttributeLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AttributeLimitExceededException.prototype); - } -} -exports.AttributeLimitExceededException = AttributeLimitExceededException; -class ResourceInUseException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "ResourceInUseException", - $fault: "client", - ...opts, - }); - this.name = "ResourceInUseException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceInUseException.prototype); - } -} -exports.ResourceInUseException = ResourceInUseException; -exports.PlatformDeviceType = { - GPU: "GPU", -}; -class BlockedException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "BlockedException", - $fault: "client", - ...opts, - }); - this.name = "BlockedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, BlockedException.prototype); - } -} -exports.BlockedException = BlockedException; -class MissingVersionException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "MissingVersionException", - $fault: "client", - ...opts, - }); - this.name = "MissingVersionException"; - this.$fault = "client"; - Object.setPrototypeOf(this, MissingVersionException.prototype); - } -} -exports.MissingVersionException = MissingVersionException; -class NoUpdateAvailableException extends ECSServiceException_1.ECSServiceException { - constructor(opts) { - super({ - name: "NoUpdateAvailableException", - $fault: "client", - ...opts, - }); - this.name = "NoUpdateAvailableException"; - this.$fault = "client"; - Object.setPrototypeOf(this, NoUpdateAvailableException.prototype); - } -} -exports.NoUpdateAvailableException = NoUpdateAvailableException; -const SessionFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.tokenValue && { tokenValue: smithy_client_1.SENSITIVE_STRING }), -}); -exports.SessionFilterSensitiveLog = SessionFilterSensitiveLog; -const ExecuteCommandResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.session && { session: (0, exports.SessionFilterSensitiveLog)(obj.session) }), -}); -exports.ExecuteCommandResponseFilterSensitiveLog = ExecuteCommandResponseFilterSensitiveLog; - - -/***/ }), - -/***/ 1147: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 92183: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAccountSettings = void 0; -const ListAccountSettingsCommand_1 = __nccwpck_require__(89726); -const ECSClient_1 = __nccwpck_require__(55714); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountSettingsCommand_1.ListAccountSettingsCommand(input), ...args); -}; -async function* paginateListAccountSettings(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECSClient_1.ECSClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECS | ECSClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListAccountSettings = paginateListAccountSettings; - - -/***/ }), - -/***/ 82008: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAttributes = void 0; -const ListAttributesCommand_1 = __nccwpck_require__(51415); -const ECSClient_1 = __nccwpck_require__(55714); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAttributesCommand_1.ListAttributesCommand(input), ...args); -}; -async function* paginateListAttributes(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECSClient_1.ECSClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECS | ECSClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListAttributes = paginateListAttributes; - - -/***/ }), - -/***/ 54484: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListClusters = void 0; -const ListClustersCommand_1 = __nccwpck_require__(92960); -const ECSClient_1 = __nccwpck_require__(55714); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListClustersCommand_1.ListClustersCommand(input), ...args); -}; -async function* paginateListClusters(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECSClient_1.ECSClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECS | ECSClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListClusters = paginateListClusters; - - -/***/ }), - -/***/ 44984: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListContainerInstances = void 0; -const ListContainerInstancesCommand_1 = __nccwpck_require__(85133); -const ECSClient_1 = __nccwpck_require__(55714); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListContainerInstancesCommand_1.ListContainerInstancesCommand(input), ...args); -}; -async function* paginateListContainerInstances(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECSClient_1.ECSClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECS | ECSClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListContainerInstances = paginateListContainerInstances; - - -/***/ }), - -/***/ 72409: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListServicesByNamespace = void 0; -const ListServicesByNamespaceCommand_1 = __nccwpck_require__(2796); -const ECSClient_1 = __nccwpck_require__(55714); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListServicesByNamespaceCommand_1.ListServicesByNamespaceCommand(input), ...args); -}; -async function* paginateListServicesByNamespace(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECSClient_1.ECSClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECS | ECSClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListServicesByNamespace = paginateListServicesByNamespace; - - -/***/ }), - -/***/ 99383: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListServices = void 0; -const ListServicesCommand_1 = __nccwpck_require__(51752); -const ECSClient_1 = __nccwpck_require__(55714); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListServicesCommand_1.ListServicesCommand(input), ...args); -}; -async function* paginateListServices(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECSClient_1.ECSClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECS | ECSClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListServices = paginateListServices; - - -/***/ }), - -/***/ 93812: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListTaskDefinitionFamilies = void 0; -const ListTaskDefinitionFamiliesCommand_1 = __nccwpck_require__(62735); -const ECSClient_1 = __nccwpck_require__(55714); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListTaskDefinitionFamiliesCommand_1.ListTaskDefinitionFamiliesCommand(input), ...args); -}; -async function* paginateListTaskDefinitionFamilies(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECSClient_1.ECSClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECS | ECSClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListTaskDefinitionFamilies = paginateListTaskDefinitionFamilies; - - -/***/ }), - -/***/ 22161: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListTaskDefinitions = void 0; -const ListTaskDefinitionsCommand_1 = __nccwpck_require__(27068); -const ECSClient_1 = __nccwpck_require__(55714); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListTaskDefinitionsCommand_1.ListTaskDefinitionsCommand(input), ...args); -}; -async function* paginateListTaskDefinitions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECSClient_1.ECSClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECS | ECSClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListTaskDefinitions = paginateListTaskDefinitions; - - -/***/ }), - -/***/ 52648: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListTasks = void 0; -const ListTasksCommand_1 = __nccwpck_require__(67517); -const ECSClient_1 = __nccwpck_require__(55714); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListTasksCommand_1.ListTasksCommand(input), ...args); -}; -async function* paginateListTasks(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECSClient_1.ECSClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECS | ECSClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListTasks = paginateListTasks; - - -/***/ }), - -/***/ 84488: -/***/ ((__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__(1147), exports); -tslib_1.__exportStar(__nccwpck_require__(92183), exports); -tslib_1.__exportStar(__nccwpck_require__(82008), exports); -tslib_1.__exportStar(__nccwpck_require__(54484), exports); -tslib_1.__exportStar(__nccwpck_require__(44984), exports); -tslib_1.__exportStar(__nccwpck_require__(72409), exports); -tslib_1.__exportStar(__nccwpck_require__(99383), exports); -tslib_1.__exportStar(__nccwpck_require__(93812), exports); -tslib_1.__exportStar(__nccwpck_require__(22161), exports); -tslib_1.__exportStar(__nccwpck_require__(52648), exports); - - -/***/ }), - -/***/ 56556: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.se_UpdateClusterSettingsCommand = exports.se_UpdateClusterCommand = exports.se_UpdateCapacityProviderCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SubmitTaskStateChangeCommand = exports.se_SubmitContainerStateChangeCommand = exports.se_SubmitAttachmentStateChangesCommand = exports.se_StopTaskCommand = exports.se_StartTaskCommand = exports.se_RunTaskCommand = exports.se_RegisterTaskDefinitionCommand = exports.se_RegisterContainerInstanceCommand = exports.se_PutClusterCapacityProvidersCommand = exports.se_PutAttributesCommand = exports.se_PutAccountSettingDefaultCommand = exports.se_PutAccountSettingCommand = exports.se_ListTasksCommand = exports.se_ListTaskDefinitionsCommand = exports.se_ListTaskDefinitionFamiliesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicesByNamespaceCommand = exports.se_ListServicesCommand = exports.se_ListContainerInstancesCommand = exports.se_ListClustersCommand = exports.se_ListAttributesCommand = exports.se_ListAccountSettingsCommand = exports.se_GetTaskProtectionCommand = exports.se_ExecuteCommandCommand = exports.se_DiscoverPollEndpointCommand = exports.se_DescribeTaskSetsCommand = exports.se_DescribeTasksCommand = exports.se_DescribeTaskDefinitionCommand = exports.se_DescribeServicesCommand = exports.se_DescribeContainerInstancesCommand = exports.se_DescribeClustersCommand = exports.se_DescribeCapacityProvidersCommand = exports.se_DeregisterTaskDefinitionCommand = exports.se_DeregisterContainerInstanceCommand = exports.se_DeleteTaskSetCommand = exports.se_DeleteTaskDefinitionsCommand = exports.se_DeleteServiceCommand = exports.se_DeleteClusterCommand = exports.se_DeleteCapacityProviderCommand = exports.se_DeleteAttributesCommand = exports.se_DeleteAccountSettingCommand = exports.se_CreateTaskSetCommand = exports.se_CreateServiceCommand = exports.se_CreateClusterCommand = exports.se_CreateCapacityProviderCommand = void 0; -exports.de_SubmitContainerStateChangeCommand = exports.de_SubmitAttachmentStateChangesCommand = exports.de_StopTaskCommand = exports.de_StartTaskCommand = exports.de_RunTaskCommand = exports.de_RegisterTaskDefinitionCommand = exports.de_RegisterContainerInstanceCommand = exports.de_PutClusterCapacityProvidersCommand = exports.de_PutAttributesCommand = exports.de_PutAccountSettingDefaultCommand = exports.de_PutAccountSettingCommand = exports.de_ListTasksCommand = exports.de_ListTaskDefinitionsCommand = exports.de_ListTaskDefinitionFamiliesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesByNamespaceCommand = exports.de_ListServicesCommand = exports.de_ListContainerInstancesCommand = exports.de_ListClustersCommand = exports.de_ListAttributesCommand = exports.de_ListAccountSettingsCommand = exports.de_GetTaskProtectionCommand = exports.de_ExecuteCommandCommand = exports.de_DiscoverPollEndpointCommand = exports.de_DescribeTaskSetsCommand = exports.de_DescribeTasksCommand = exports.de_DescribeTaskDefinitionCommand = exports.de_DescribeServicesCommand = exports.de_DescribeContainerInstancesCommand = exports.de_DescribeClustersCommand = exports.de_DescribeCapacityProvidersCommand = exports.de_DeregisterTaskDefinitionCommand = exports.de_DeregisterContainerInstanceCommand = exports.de_DeleteTaskSetCommand = exports.de_DeleteTaskDefinitionsCommand = exports.de_DeleteServiceCommand = exports.de_DeleteClusterCommand = exports.de_DeleteCapacityProviderCommand = exports.de_DeleteAttributesCommand = exports.de_DeleteAccountSettingCommand = exports.de_CreateTaskSetCommand = exports.de_CreateServiceCommand = exports.de_CreateClusterCommand = exports.de_CreateCapacityProviderCommand = exports.se_UpdateTaskSetCommand = exports.se_UpdateTaskProtectionCommand = exports.se_UpdateServicePrimaryTaskSetCommand = exports.se_UpdateServiceCommand = exports.se_UpdateContainerInstancesStateCommand = exports.se_UpdateContainerAgentCommand = void 0; -exports.de_UpdateTaskSetCommand = exports.de_UpdateTaskProtectionCommand = exports.de_UpdateServicePrimaryTaskSetCommand = exports.de_UpdateServiceCommand = exports.de_UpdateContainerInstancesStateCommand = exports.de_UpdateContainerAgentCommand = exports.de_UpdateClusterSettingsCommand = exports.de_UpdateClusterCommand = exports.de_UpdateCapacityProviderCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SubmitTaskStateChangeCommand = void 0; -const protocol_http_1 = __nccwpck_require__(64418); -const smithy_client_1 = __nccwpck_require__(63570); -const ECSServiceException_1 = __nccwpck_require__(47688); -const models_0_1 = __nccwpck_require__(89402); -const se_CreateCapacityProviderCommand = async (input, context) => { - const headers = sharedHeaders("CreateCapacityProvider"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateCapacityProviderCommand = se_CreateCapacityProviderCommand; -const se_CreateClusterCommand = async (input, context) => { - const headers = sharedHeaders("CreateCluster"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateClusterCommand = se_CreateClusterCommand; -const se_CreateServiceCommand = async (input, context) => { - const headers = sharedHeaders("CreateService"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateServiceCommand = se_CreateServiceCommand; -const se_CreateTaskSetCommand = async (input, context) => { - const headers = sharedHeaders("CreateTaskSet"); - let body; - body = JSON.stringify(se_CreateTaskSetRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateTaskSetCommand = se_CreateTaskSetCommand; -const se_DeleteAccountSettingCommand = async (input, context) => { - const headers = sharedHeaders("DeleteAccountSetting"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteAccountSettingCommand = se_DeleteAccountSettingCommand; -const se_DeleteAttributesCommand = async (input, context) => { - const headers = sharedHeaders("DeleteAttributes"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteAttributesCommand = se_DeleteAttributesCommand; -const se_DeleteCapacityProviderCommand = async (input, context) => { - const headers = sharedHeaders("DeleteCapacityProvider"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteCapacityProviderCommand = se_DeleteCapacityProviderCommand; -const se_DeleteClusterCommand = async (input, context) => { - const headers = sharedHeaders("DeleteCluster"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteClusterCommand = se_DeleteClusterCommand; -const se_DeleteServiceCommand = async (input, context) => { - const headers = sharedHeaders("DeleteService"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteServiceCommand = se_DeleteServiceCommand; -const se_DeleteTaskDefinitionsCommand = async (input, context) => { - const headers = sharedHeaders("DeleteTaskDefinitions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteTaskDefinitionsCommand = se_DeleteTaskDefinitionsCommand; -const se_DeleteTaskSetCommand = async (input, context) => { - const headers = sharedHeaders("DeleteTaskSet"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteTaskSetCommand = se_DeleteTaskSetCommand; -const se_DeregisterContainerInstanceCommand = async (input, context) => { - const headers = sharedHeaders("DeregisterContainerInstance"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeregisterContainerInstanceCommand = se_DeregisterContainerInstanceCommand; -const se_DeregisterTaskDefinitionCommand = async (input, context) => { - const headers = sharedHeaders("DeregisterTaskDefinition"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeregisterTaskDefinitionCommand = se_DeregisterTaskDefinitionCommand; -const se_DescribeCapacityProvidersCommand = async (input, context) => { - const headers = sharedHeaders("DescribeCapacityProviders"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeCapacityProvidersCommand = se_DescribeCapacityProvidersCommand; -const se_DescribeClustersCommand = async (input, context) => { - const headers = sharedHeaders("DescribeClusters"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeClustersCommand = se_DescribeClustersCommand; -const se_DescribeContainerInstancesCommand = async (input, context) => { - const headers = sharedHeaders("DescribeContainerInstances"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeContainerInstancesCommand = se_DescribeContainerInstancesCommand; -const se_DescribeServicesCommand = async (input, context) => { - const headers = sharedHeaders("DescribeServices"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeServicesCommand = se_DescribeServicesCommand; -const se_DescribeTaskDefinitionCommand = async (input, context) => { - const headers = sharedHeaders("DescribeTaskDefinition"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeTaskDefinitionCommand = se_DescribeTaskDefinitionCommand; -const se_DescribeTasksCommand = async (input, context) => { - const headers = sharedHeaders("DescribeTasks"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeTasksCommand = se_DescribeTasksCommand; -const se_DescribeTaskSetsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeTaskSets"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeTaskSetsCommand = se_DescribeTaskSetsCommand; -const se_DiscoverPollEndpointCommand = async (input, context) => { - const headers = sharedHeaders("DiscoverPollEndpoint"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DiscoverPollEndpointCommand = se_DiscoverPollEndpointCommand; -const se_ExecuteCommandCommand = async (input, context) => { - const headers = sharedHeaders("ExecuteCommand"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ExecuteCommandCommand = se_ExecuteCommandCommand; -const se_GetTaskProtectionCommand = async (input, context) => { - const headers = sharedHeaders("GetTaskProtection"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetTaskProtectionCommand = se_GetTaskProtectionCommand; -const se_ListAccountSettingsCommand = async (input, context) => { - const headers = sharedHeaders("ListAccountSettings"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListAccountSettingsCommand = se_ListAccountSettingsCommand; -const se_ListAttributesCommand = async (input, context) => { - const headers = sharedHeaders("ListAttributes"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListAttributesCommand = se_ListAttributesCommand; -const se_ListClustersCommand = async (input, context) => { - const headers = sharedHeaders("ListClusters"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListClustersCommand = se_ListClustersCommand; -const se_ListContainerInstancesCommand = async (input, context) => { - const headers = sharedHeaders("ListContainerInstances"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListContainerInstancesCommand = se_ListContainerInstancesCommand; -const se_ListServicesCommand = async (input, context) => { - const headers = sharedHeaders("ListServices"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListServicesCommand = se_ListServicesCommand; -const se_ListServicesByNamespaceCommand = async (input, context) => { - const headers = sharedHeaders("ListServicesByNamespace"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListServicesByNamespaceCommand = se_ListServicesByNamespaceCommand; -const se_ListTagsForResourceCommand = async (input, context) => { - const headers = sharedHeaders("ListTagsForResource"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand; -const se_ListTaskDefinitionFamiliesCommand = async (input, context) => { - const headers = sharedHeaders("ListTaskDefinitionFamilies"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListTaskDefinitionFamiliesCommand = se_ListTaskDefinitionFamiliesCommand; -const se_ListTaskDefinitionsCommand = async (input, context) => { - const headers = sharedHeaders("ListTaskDefinitions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListTaskDefinitionsCommand = se_ListTaskDefinitionsCommand; -const se_ListTasksCommand = async (input, context) => { - const headers = sharedHeaders("ListTasks"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListTasksCommand = se_ListTasksCommand; -const se_PutAccountSettingCommand = async (input, context) => { - const headers = sharedHeaders("PutAccountSetting"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_PutAccountSettingCommand = se_PutAccountSettingCommand; -const se_PutAccountSettingDefaultCommand = async (input, context) => { - const headers = sharedHeaders("PutAccountSettingDefault"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_PutAccountSettingDefaultCommand = se_PutAccountSettingDefaultCommand; -const se_PutAttributesCommand = async (input, context) => { - const headers = sharedHeaders("PutAttributes"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_PutAttributesCommand = se_PutAttributesCommand; -const se_PutClusterCapacityProvidersCommand = async (input, context) => { - const headers = sharedHeaders("PutClusterCapacityProviders"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_PutClusterCapacityProvidersCommand = se_PutClusterCapacityProvidersCommand; -const se_RegisterContainerInstanceCommand = async (input, context) => { - const headers = sharedHeaders("RegisterContainerInstance"); - let body; - body = JSON.stringify(se_RegisterContainerInstanceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_RegisterContainerInstanceCommand = se_RegisterContainerInstanceCommand; -const se_RegisterTaskDefinitionCommand = async (input, context) => { - const headers = sharedHeaders("RegisterTaskDefinition"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_RegisterTaskDefinitionCommand = se_RegisterTaskDefinitionCommand; -const se_RunTaskCommand = async (input, context) => { - const headers = sharedHeaders("RunTask"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_RunTaskCommand = se_RunTaskCommand; -const se_StartTaskCommand = async (input, context) => { - const headers = sharedHeaders("StartTask"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_StartTaskCommand = se_StartTaskCommand; -const se_StopTaskCommand = async (input, context) => { - const headers = sharedHeaders("StopTask"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_StopTaskCommand = se_StopTaskCommand; -const se_SubmitAttachmentStateChangesCommand = async (input, context) => { - const headers = sharedHeaders("SubmitAttachmentStateChanges"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_SubmitAttachmentStateChangesCommand = se_SubmitAttachmentStateChangesCommand; -const se_SubmitContainerStateChangeCommand = async (input, context) => { - const headers = sharedHeaders("SubmitContainerStateChange"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_SubmitContainerStateChangeCommand = se_SubmitContainerStateChangeCommand; -const se_SubmitTaskStateChangeCommand = async (input, context) => { - const headers = sharedHeaders("SubmitTaskStateChange"); - let body; - body = JSON.stringify(se_SubmitTaskStateChangeRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_SubmitTaskStateChangeCommand = se_SubmitTaskStateChangeCommand; -const se_TagResourceCommand = async (input, context) => { - const headers = sharedHeaders("TagResource"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_TagResourceCommand = se_TagResourceCommand; -const se_UntagResourceCommand = async (input, context) => { - const headers = sharedHeaders("UntagResource"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UntagResourceCommand = se_UntagResourceCommand; -const se_UpdateCapacityProviderCommand = async (input, context) => { - const headers = sharedHeaders("UpdateCapacityProvider"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateCapacityProviderCommand = se_UpdateCapacityProviderCommand; -const se_UpdateClusterCommand = async (input, context) => { - const headers = sharedHeaders("UpdateCluster"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateClusterCommand = se_UpdateClusterCommand; -const se_UpdateClusterSettingsCommand = async (input, context) => { - const headers = sharedHeaders("UpdateClusterSettings"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateClusterSettingsCommand = se_UpdateClusterSettingsCommand; -const se_UpdateContainerAgentCommand = async (input, context) => { - const headers = sharedHeaders("UpdateContainerAgent"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateContainerAgentCommand = se_UpdateContainerAgentCommand; -const se_UpdateContainerInstancesStateCommand = async (input, context) => { - const headers = sharedHeaders("UpdateContainerInstancesState"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateContainerInstancesStateCommand = se_UpdateContainerInstancesStateCommand; -const se_UpdateServiceCommand = async (input, context) => { - const headers = sharedHeaders("UpdateService"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateServiceCommand = se_UpdateServiceCommand; -const se_UpdateServicePrimaryTaskSetCommand = async (input, context) => { - const headers = sharedHeaders("UpdateServicePrimaryTaskSet"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateServicePrimaryTaskSetCommand = se_UpdateServicePrimaryTaskSetCommand; -const se_UpdateTaskProtectionCommand = async (input, context) => { - const headers = sharedHeaders("UpdateTaskProtection"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateTaskProtectionCommand = se_UpdateTaskProtectionCommand; -const se_UpdateTaskSetCommand = async (input, context) => { - const headers = sharedHeaders("UpdateTaskSet"); - let body; - body = JSON.stringify(se_UpdateTaskSetRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateTaskSetCommand = se_UpdateTaskSetCommand; -const de_CreateCapacityProviderCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateCapacityProviderCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateCapacityProviderCommand = de_CreateCapacityProviderCommand; -const de_CreateCapacityProviderCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateClusterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateClusterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateClusterCommand = de_CreateClusterCommand; -const de_CreateClusterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "NamespaceNotFoundException": - case "com.amazonaws.ecs#NamespaceNotFoundException": - throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateServiceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateServiceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_CreateServiceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateServiceCommand = de_CreateServiceCommand; -const de_CreateServiceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "NamespaceNotFoundException": - case "com.amazonaws.ecs#NamespaceNotFoundException": - throw await de_NamespaceNotFoundExceptionRes(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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - case "UnsupportedFeatureException": - case "com.amazonaws.ecs#UnsupportedFeatureException": - throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateTaskSetCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateTaskSetCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_CreateTaskSetResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateTaskSetCommand = de_CreateTaskSetCommand; -const de_CreateTaskSetCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "NamespaceNotFoundException": - case "com.amazonaws.ecs#NamespaceNotFoundException": - throw await de_NamespaceNotFoundExceptionRes(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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(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 "UnsupportedFeatureException": - case "com.amazonaws.ecs#UnsupportedFeatureException": - throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteAccountSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteAccountSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteAccountSettingCommand = de_DeleteAccountSettingCommand; -const de_DeleteAccountSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteAttributesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteAttributesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteAttributesCommand = de_DeleteAttributesCommand; -const de_DeleteAttributesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "TargetNotFoundException": - case "com.amazonaws.ecs#TargetNotFoundException": - throw await de_TargetNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteCapacityProviderCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteCapacityProviderCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteCapacityProviderCommand = de_DeleteCapacityProviderCommand; -const de_DeleteCapacityProviderCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteClusterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteClusterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteClusterCommand = de_DeleteClusterCommand; -const de_DeleteClusterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(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 "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteServiceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteServiceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DeleteServiceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteServiceCommand = de_DeleteServiceCommand; -const de_DeleteServiceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - case "ServiceNotFoundException": - case "com.amazonaws.ecs#ServiceNotFoundException": - throw await de_ServiceNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteTaskDefinitionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteTaskDefinitionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DeleteTaskDefinitionsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteTaskDefinitionsCommand = de_DeleteTaskDefinitionsCommand; -const de_DeleteTaskDefinitionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteTaskSetCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteTaskSetCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DeleteTaskSetResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteTaskSetCommand = de_DeleteTaskSetCommand; -const de_DeleteTaskSetCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(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 "TaskSetNotFoundException": - case "com.amazonaws.ecs#TaskSetNotFoundException": - throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context); - case "UnsupportedFeatureException": - case "com.amazonaws.ecs#UnsupportedFeatureException": - throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeregisterContainerInstanceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeregisterContainerInstanceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DeregisterContainerInstanceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeregisterContainerInstanceCommand = de_DeregisterContainerInstanceCommand; -const de_DeregisterContainerInstanceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeregisterTaskDefinitionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeregisterTaskDefinitionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DeregisterTaskDefinitionResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeregisterTaskDefinitionCommand = de_DeregisterTaskDefinitionCommand; -const de_DeregisterTaskDefinitionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeCapacityProvidersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeCapacityProvidersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeCapacityProvidersCommand = de_DescribeCapacityProvidersCommand; -const de_DescribeCapacityProvidersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeClustersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeClustersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeClustersCommand = de_DescribeClustersCommand; -const de_DescribeClustersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeContainerInstancesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeContainerInstancesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeContainerInstancesResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeContainerInstancesCommand = de_DescribeContainerInstancesCommand; -const de_DescribeContainerInstancesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeServicesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeServicesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeServicesResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeServicesCommand = de_DescribeServicesCommand; -const de_DescribeServicesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeTaskDefinitionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeTaskDefinitionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeTaskDefinitionResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeTaskDefinitionCommand = de_DescribeTaskDefinitionCommand; -const de_DescribeTaskDefinitionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeTasksCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeTasksCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeTasksResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeTasksCommand = de_DescribeTasksCommand; -const de_DescribeTasksCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeTaskSetsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeTaskSetsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeTaskSetsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeTaskSetsCommand = de_DescribeTaskSetsCommand; -const de_DescribeTaskSetsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(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 "UnsupportedFeatureException": - case "com.amazonaws.ecs#UnsupportedFeatureException": - throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DiscoverPollEndpointCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DiscoverPollEndpointCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DiscoverPollEndpointCommand = de_DiscoverPollEndpointCommand; -const de_DiscoverPollEndpointCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ExecuteCommandCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ExecuteCommandCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ExecuteCommandCommand = de_ExecuteCommandCommand; -const de_ExecuteCommandCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - case "TargetNotConnectedException": - case "com.amazonaws.ecs#TargetNotConnectedException": - throw await de_TargetNotConnectedExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetTaskProtectionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetTaskProtectionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetTaskProtectionResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetTaskProtectionCommand = de_GetTaskProtectionCommand; -const de_GetTaskProtectionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.ecs#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - case "UnsupportedFeatureException": - case "com.amazonaws.ecs#UnsupportedFeatureException": - throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListAccountSettingsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListAccountSettingsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListAccountSettingsCommand = de_ListAccountSettingsCommand; -const de_ListAccountSettingsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListAttributesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListAttributesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListAttributesCommand = de_ListAttributesCommand; -const de_ListAttributesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListClustersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListClustersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListClustersCommand = de_ListClustersCommand; -const de_ListClustersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListContainerInstancesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListContainerInstancesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListContainerInstancesCommand = de_ListContainerInstancesCommand; -const de_ListContainerInstancesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListServicesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListServicesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListServicesCommand = de_ListServicesCommand; -const de_ListServicesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListServicesByNamespaceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListServicesByNamespaceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListServicesByNamespaceCommand = de_ListServicesByNamespaceCommand; -const de_ListServicesByNamespaceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "NamespaceNotFoundException": - case "com.amazonaws.ecs#NamespaceNotFoundException": - throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListTagsForResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListTagsForResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand; -const de_ListTagsForResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListTaskDefinitionFamiliesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListTaskDefinitionFamiliesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListTaskDefinitionFamiliesCommand = de_ListTaskDefinitionFamiliesCommand; -const de_ListTaskDefinitionFamiliesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListTaskDefinitionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListTaskDefinitionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListTaskDefinitionsCommand = de_ListTaskDefinitionsCommand; -const de_ListTaskDefinitionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListTasksCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListTasksCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListTasksCommand = de_ListTasksCommand; -const de_ListTasksCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - case "ServiceNotFoundException": - case "com.amazonaws.ecs#ServiceNotFoundException": - throw await de_ServiceNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_PutAccountSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutAccountSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_PutAccountSettingCommand = de_PutAccountSettingCommand; -const de_PutAccountSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_PutAccountSettingDefaultCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutAccountSettingDefaultCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_PutAccountSettingDefaultCommand = de_PutAccountSettingDefaultCommand; -const de_PutAccountSettingDefaultCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_PutAttributesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutAttributesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_PutAttributesCommand = de_PutAttributesCommand; -const de_PutAttributesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AttributeLimitExceededException": - case "com.amazonaws.ecs#AttributeLimitExceededException": - throw await de_AttributeLimitExceededExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "TargetNotFoundException": - case "com.amazonaws.ecs#TargetNotFoundException": - throw await de_TargetNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_PutClusterCapacityProvidersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutClusterCapacityProvidersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_PutClusterCapacityProvidersCommand = de_PutClusterCapacityProvidersCommand; -const de_PutClusterCapacityProvidersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ResourceInUseException": - case "com.amazonaws.ecs#ResourceInUseException": - throw await de_ResourceInUseExceptionRes(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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_RegisterContainerInstanceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RegisterContainerInstanceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_RegisterContainerInstanceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_RegisterContainerInstanceCommand = de_RegisterContainerInstanceCommand; -const de_RegisterContainerInstanceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_RegisterTaskDefinitionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RegisterTaskDefinitionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_RegisterTaskDefinitionResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_RegisterTaskDefinitionCommand = de_RegisterTaskDefinitionCommand; -const de_RegisterTaskDefinitionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_RunTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RunTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_RunTaskResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_RunTaskCommand = de_RunTaskCommand; -const de_RunTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "BlockedException": - case "com.amazonaws.ecs#BlockedException": - throw await de_BlockedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - case "UnsupportedFeatureException": - case "com.amazonaws.ecs#UnsupportedFeatureException": - throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_StartTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StartTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_StartTaskResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_StartTaskCommand = de_StartTaskCommand; -const de_StartTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_StopTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StopTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_StopTaskResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_StopTaskCommand = de_StopTaskCommand; -const de_StopTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_SubmitAttachmentStateChangesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_SubmitAttachmentStateChangesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_SubmitAttachmentStateChangesCommand = de_SubmitAttachmentStateChangesCommand; -const de_SubmitAttachmentStateChangesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_SubmitContainerStateChangeCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_SubmitContainerStateChangeCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_SubmitContainerStateChangeCommand = de_SubmitContainerStateChangeCommand; -const de_SubmitContainerStateChangeCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_SubmitTaskStateChangeCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_SubmitTaskStateChangeCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_SubmitTaskStateChangeCommand = de_SubmitTaskStateChangeCommand; -const de_SubmitTaskStateChangeCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_TagResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_TagResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_TagResourceCommand = de_TagResourceCommand; -const de_TagResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.ecs#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UntagResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UntagResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UntagResourceCommand = de_UntagResourceCommand; -const de_UntagResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.ecs#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateCapacityProviderCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateCapacityProviderCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateCapacityProviderCommand = de_UpdateCapacityProviderCommand; -const de_UpdateCapacityProviderCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = 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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateClusterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateClusterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateClusterCommand = de_UpdateClusterCommand; -const de_UpdateClusterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "NamespaceNotFoundException": - case "com.amazonaws.ecs#NamespaceNotFoundException": - throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateClusterSettingsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateClusterSettingsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateClusterSettingsCommand = de_UpdateClusterSettingsCommand; -const de_UpdateClusterSettingsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateContainerAgentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateContainerAgentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateContainerAgentResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateContainerAgentCommand = de_UpdateContainerAgentCommand; -const de_UpdateContainerAgentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(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); - 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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateContainerInstancesStateCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateContainerInstancesStateCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateContainerInstancesStateResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateContainerInstancesStateCommand = de_UpdateContainerInstancesStateCommand; -const de_UpdateContainerInstancesStateCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateServiceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateServiceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateServiceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateServiceCommand = de_UpdateServiceCommand; -const de_UpdateServiceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "NamespaceNotFoundException": - case "com.amazonaws.ecs#NamespaceNotFoundException": - throw await de_NamespaceNotFoundExceptionRes(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 "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateServicePrimaryTaskSetCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateServicePrimaryTaskSetCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateServicePrimaryTaskSetResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateServicePrimaryTaskSetCommand = de_UpdateServicePrimaryTaskSetCommand; -const de_UpdateServicePrimaryTaskSetCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(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 "TaskSetNotFoundException": - case "com.amazonaws.ecs#TaskSetNotFoundException": - throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context); - case "UnsupportedFeatureException": - case "com.amazonaws.ecs#UnsupportedFeatureException": - throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateTaskProtectionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateTaskProtectionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateTaskProtectionResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateTaskProtectionCommand = de_UpdateTaskProtectionCommand; -const de_UpdateTaskProtectionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.ecs#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(parsedOutput, context); - case "UnsupportedFeatureException": - case "com.amazonaws.ecs#UnsupportedFeatureException": - throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateTaskSetCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateTaskSetCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateTaskSetResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateTaskSetCommand = de_UpdateTaskSetCommand; -const de_UpdateTaskSetCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ecs#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ClientException": - case "com.amazonaws.ecs#ClientException": - throw await de_ClientExceptionRes(parsedOutput, context); - case "ClusterNotFoundException": - case "com.amazonaws.ecs#ClusterNotFoundException": - throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); - case "InvalidParameterException": - case "com.amazonaws.ecs#InvalidParameterException": - throw await de_InvalidParameterExceptionRes(parsedOutput, context); - case "ServerException": - case "com.amazonaws.ecs#ServerException": - throw await de_ServerExceptionRes(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 "TaskSetNotFoundException": - case "com.amazonaws.ecs#TaskSetNotFoundException": - throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context); - case "UnsupportedFeatureException": - case "com.amazonaws.ecs#UnsupportedFeatureException": - throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.AccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AttributeLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.AttributeLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_BlockedExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.BlockedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ClientExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ClusterContainsContainerInstancesExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ClusterContainsContainerInstancesException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ClusterContainsServicesExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ClusterContainsServicesException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ClusterContainsTasksExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ClusterContainsTasksException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ClusterNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ClusterNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidParameterExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidParameterException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_LimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.LimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_MissingVersionExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.MissingVersionException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_NamespaceNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.NamespaceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_NoUpdateAvailableExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.NoUpdateAvailableException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_PlatformTaskDefinitionIncompatibilityExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.PlatformTaskDefinitionIncompatibilityException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_PlatformUnknownExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.PlatformUnknownException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourceInUseExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ResourceInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ServerExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ServerException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ServiceNotActiveExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ServiceNotActiveException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ServiceNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ServiceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_TargetNotConnectedExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.TargetNotConnectedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.TargetNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_TaskSetNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.TaskSetNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_UnsupportedFeatureExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.UnsupportedFeatureException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_UpdateInProgressExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.UpdateInProgressException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const se_CreateTaskSetRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - capacityProviderStrategy: smithy_client_1._json, - clientToken: [], - cluster: [], - externalId: [], - launchType: [], - loadBalancers: smithy_client_1._json, - networkConfiguration: smithy_client_1._json, - platformVersion: [], - scale: (_) => se_Scale(_, context), - service: [], - serviceRegistries: smithy_client_1._json, - tags: smithy_client_1._json, - taskDefinition: [], - }); -}; -const se_RegisterContainerInstanceRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - attributes: smithy_client_1._json, - cluster: [], - containerInstanceArn: [], - instanceIdentityDocument: [], - instanceIdentityDocumentSignature: [], - platformDevices: smithy_client_1._json, - tags: smithy_client_1._json, - totalResources: (_) => se_Resources(_, context), - versionInfo: smithy_client_1._json, - }); -}; -const se_Resource = (input, context) => { - return (0, smithy_client_1.take)(input, { - doubleValue: smithy_client_1.serializeFloat, - integerValue: [], - longValue: [], - name: [], - stringSetValue: smithy_client_1._json, - type: [], - }); -}; -const se_Resources = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return se_Resource(entry, context); - }); -}; -const se_Scale = (input, context) => { - return (0, smithy_client_1.take)(input, { - unit: [], - value: smithy_client_1.serializeFloat, - }); -}; -const se_SubmitTaskStateChangeRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - attachments: smithy_client_1._json, - cluster: [], - containers: smithy_client_1._json, - executionStoppedAt: (_) => Math.round(_.getTime() / 1000), - managedAgents: smithy_client_1._json, - pullStartedAt: (_) => Math.round(_.getTime() / 1000), - pullStoppedAt: (_) => Math.round(_.getTime() / 1000), - reason: [], - status: [], - task: [], - }); -}; -const se_UpdateTaskSetRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - cluster: [], - scale: (_) => se_Scale(_, context), - service: [], - taskSet: [], - }); -}; -const de_Container = (output, context) => { - return (0, smithy_client_1.take)(output, { - containerArn: smithy_client_1.expectString, - cpu: smithy_client_1.expectString, - exitCode: smithy_client_1.expectInt32, - gpuIds: smithy_client_1._json, - healthStatus: smithy_client_1.expectString, - image: smithy_client_1.expectString, - imageDigest: smithy_client_1.expectString, - lastStatus: smithy_client_1.expectString, - managedAgents: (_) => de_ManagedAgents(_, context), - memory: smithy_client_1.expectString, - memoryReservation: smithy_client_1.expectString, - name: smithy_client_1.expectString, - networkBindings: smithy_client_1._json, - networkInterfaces: smithy_client_1._json, - reason: smithy_client_1.expectString, - runtimeId: smithy_client_1.expectString, - taskArn: smithy_client_1.expectString, - }); -}; -const de_ContainerInstance = (output, context) => { - return (0, smithy_client_1.take)(output, { - agentConnected: smithy_client_1.expectBoolean, - agentUpdateStatus: smithy_client_1.expectString, - attachments: smithy_client_1._json, - attributes: smithy_client_1._json, - capacityProviderName: smithy_client_1.expectString, - containerInstanceArn: smithy_client_1.expectString, - ec2InstanceId: smithy_client_1.expectString, - healthStatus: (_) => de_ContainerInstanceHealthStatus(_, context), - pendingTasksCount: smithy_client_1.expectInt32, - registeredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - registeredResources: (_) => de_Resources(_, context), - remainingResources: (_) => de_Resources(_, context), - runningTasksCount: smithy_client_1.expectInt32, - status: smithy_client_1.expectString, - statusReason: smithy_client_1.expectString, - tags: smithy_client_1._json, - version: smithy_client_1.expectLong, - versionInfo: smithy_client_1._json, - }); -}; -const de_ContainerInstanceHealthStatus = (output, context) => { - return (0, smithy_client_1.take)(output, { - details: (_) => de_InstanceHealthCheckResultList(_, context), - overallStatus: smithy_client_1.expectString, - }); -}; -const de_ContainerInstances = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ContainerInstance(entry, context); - }); - return retVal; -}; -const de_Containers = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Container(entry, context); - }); - return retVal; -}; -const de_CreateServiceResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - service: (_) => de_Service(_, context), - }); -}; -const de_CreateTaskSetResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - taskSet: (_) => de_TaskSet(_, context), - }); -}; -const de_DeleteServiceResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - service: (_) => de_Service(_, context), - }); -}; -const de_DeleteTaskDefinitionsResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - failures: smithy_client_1._json, - taskDefinitions: (_) => de_TaskDefinitionList(_, context), - }); -}; -const de_DeleteTaskSetResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - taskSet: (_) => de_TaskSet(_, context), - }); -}; -const de_Deployment = (output, context) => { - return (0, smithy_client_1.take)(output, { - capacityProviderStrategy: smithy_client_1._json, - createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - desiredCount: smithy_client_1.expectInt32, - failedTasks: smithy_client_1.expectInt32, - id: smithy_client_1.expectString, - launchType: smithy_client_1.expectString, - networkConfiguration: smithy_client_1._json, - pendingCount: smithy_client_1.expectInt32, - platformFamily: smithy_client_1.expectString, - platformVersion: smithy_client_1.expectString, - rolloutState: smithy_client_1.expectString, - rolloutStateReason: smithy_client_1.expectString, - runningCount: smithy_client_1.expectInt32, - serviceConnectConfiguration: smithy_client_1._json, - serviceConnectResources: smithy_client_1._json, - status: smithy_client_1.expectString, - taskDefinition: smithy_client_1.expectString, - updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - }); -}; -const de_Deployments = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Deployment(entry, context); - }); - return retVal; -}; -const de_DeregisterContainerInstanceResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - containerInstance: (_) => de_ContainerInstance(_, context), - }); -}; -const de_DeregisterTaskDefinitionResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - taskDefinition: (_) => de_TaskDefinition(_, context), - }); -}; -const de_DescribeContainerInstancesResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - containerInstances: (_) => de_ContainerInstances(_, context), - failures: smithy_client_1._json, - }); -}; -const de_DescribeServicesResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - failures: smithy_client_1._json, - services: (_) => de_Services(_, context), - }); -}; -const de_DescribeTaskDefinitionResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - tags: smithy_client_1._json, - taskDefinition: (_) => de_TaskDefinition(_, context), - }); -}; -const de_DescribeTaskSetsResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - failures: smithy_client_1._json, - taskSets: (_) => de_TaskSets(_, context), - }); -}; -const de_DescribeTasksResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - failures: smithy_client_1._json, - tasks: (_) => de_Tasks(_, context), - }); -}; -const de_GetTaskProtectionResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - failures: smithy_client_1._json, - protectedTasks: (_) => de_ProtectedTasks(_, context), - }); -}; -const de_InstanceHealthCheckResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - lastStatusChange: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - status: smithy_client_1.expectString, - type: smithy_client_1.expectString, - }); -}; -const de_InstanceHealthCheckResultList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InstanceHealthCheckResult(entry, context); - }); - return retVal; -}; -const de_ManagedAgent = (output, context) => { - return (0, smithy_client_1.take)(output, { - lastStartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - lastStatus: smithy_client_1.expectString, - name: smithy_client_1.expectString, - reason: smithy_client_1.expectString, - }); -}; -const de_ManagedAgents = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ManagedAgent(entry, context); - }); - return retVal; -}; -const de_ProtectedTask = (output, context) => { - return (0, smithy_client_1.take)(output, { - expirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - protectionEnabled: smithy_client_1.expectBoolean, - taskArn: smithy_client_1.expectString, - }); -}; -const de_ProtectedTasks = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ProtectedTask(entry, context); - }); - return retVal; -}; -const de_RegisterContainerInstanceResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - containerInstance: (_) => de_ContainerInstance(_, context), - }); -}; -const de_RegisterTaskDefinitionResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - tags: smithy_client_1._json, - taskDefinition: (_) => de_TaskDefinition(_, context), - }); -}; -const de_Resource = (output, context) => { - return (0, smithy_client_1.take)(output, { - doubleValue: smithy_client_1.limitedParseDouble, - integerValue: smithy_client_1.expectInt32, - longValue: smithy_client_1.expectLong, - name: smithy_client_1.expectString, - stringSetValue: smithy_client_1._json, - type: smithy_client_1.expectString, - }); -}; -const de_Resources = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Resource(entry, context); - }); - return retVal; -}; -const de_RunTaskResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - failures: smithy_client_1._json, - tasks: (_) => de_Tasks(_, context), - }); -}; -const de_Scale = (output, context) => { - return (0, smithy_client_1.take)(output, { - unit: smithy_client_1.expectString, - value: smithy_client_1.limitedParseDouble, - }); -}; -const de_Service = (output, context) => { - return (0, smithy_client_1.take)(output, { - capacityProviderStrategy: smithy_client_1._json, - clusterArn: smithy_client_1.expectString, - createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - createdBy: smithy_client_1.expectString, - deploymentConfiguration: smithy_client_1._json, - deploymentController: smithy_client_1._json, - deployments: (_) => de_Deployments(_, context), - desiredCount: smithy_client_1.expectInt32, - enableECSManagedTags: smithy_client_1.expectBoolean, - enableExecuteCommand: smithy_client_1.expectBoolean, - events: (_) => de_ServiceEvents(_, context), - healthCheckGracePeriodSeconds: smithy_client_1.expectInt32, - launchType: smithy_client_1.expectString, - loadBalancers: smithy_client_1._json, - networkConfiguration: smithy_client_1._json, - pendingCount: smithy_client_1.expectInt32, - placementConstraints: smithy_client_1._json, - placementStrategy: smithy_client_1._json, - platformFamily: smithy_client_1.expectString, - platformVersion: smithy_client_1.expectString, - propagateTags: smithy_client_1.expectString, - roleArn: smithy_client_1.expectString, - runningCount: smithy_client_1.expectInt32, - schedulingStrategy: smithy_client_1.expectString, - serviceArn: smithy_client_1.expectString, - serviceName: smithy_client_1.expectString, - serviceRegistries: smithy_client_1._json, - status: smithy_client_1.expectString, - tags: smithy_client_1._json, - taskDefinition: smithy_client_1.expectString, - taskSets: (_) => de_TaskSets(_, context), - }); -}; -const de_ServiceEvent = (output, context) => { - return (0, smithy_client_1.take)(output, { - createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - id: smithy_client_1.expectString, - message: smithy_client_1.expectString, - }); -}; -const de_ServiceEvents = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ServiceEvent(entry, context); - }); - return retVal; -}; -const de_Services = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Service(entry, context); - }); - return retVal; -}; -const de_StartTaskResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - failures: smithy_client_1._json, - tasks: (_) => de_Tasks(_, context), - }); -}; -const de_StopTaskResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - task: (_) => de_Task(_, context), - }); -}; -const de_Task = (output, context) => { - return (0, smithy_client_1.take)(output, { - attachments: smithy_client_1._json, - attributes: smithy_client_1._json, - availabilityZone: smithy_client_1.expectString, - capacityProviderName: smithy_client_1.expectString, - clusterArn: smithy_client_1.expectString, - connectivity: smithy_client_1.expectString, - connectivityAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - containerInstanceArn: smithy_client_1.expectString, - containers: (_) => de_Containers(_, context), - cpu: smithy_client_1.expectString, - createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - desiredStatus: smithy_client_1.expectString, - enableExecuteCommand: smithy_client_1.expectBoolean, - ephemeralStorage: smithy_client_1._json, - executionStoppedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - group: smithy_client_1.expectString, - healthStatus: smithy_client_1.expectString, - inferenceAccelerators: smithy_client_1._json, - lastStatus: smithy_client_1.expectString, - launchType: smithy_client_1.expectString, - memory: smithy_client_1.expectString, - overrides: smithy_client_1._json, - platformFamily: smithy_client_1.expectString, - platformVersion: smithy_client_1.expectString, - pullStartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - pullStoppedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - startedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - startedBy: smithy_client_1.expectString, - stopCode: smithy_client_1.expectString, - stoppedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - stoppedReason: smithy_client_1.expectString, - stoppingAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - tags: smithy_client_1._json, - taskArn: smithy_client_1.expectString, - taskDefinitionArn: smithy_client_1.expectString, - version: smithy_client_1.expectLong, - }); -}; -const de_TaskDefinition = (output, context) => { - return (0, smithy_client_1.take)(output, { - compatibilities: smithy_client_1._json, - containerDefinitions: smithy_client_1._json, - cpu: smithy_client_1.expectString, - deregisteredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ephemeralStorage: smithy_client_1._json, - executionRoleArn: smithy_client_1.expectString, - family: smithy_client_1.expectString, - inferenceAccelerators: smithy_client_1._json, - ipcMode: smithy_client_1.expectString, - memory: smithy_client_1.expectString, - networkMode: smithy_client_1.expectString, - pidMode: smithy_client_1.expectString, - placementConstraints: smithy_client_1._json, - proxyConfiguration: smithy_client_1._json, - registeredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - registeredBy: smithy_client_1.expectString, - requiresAttributes: smithy_client_1._json, - requiresCompatibilities: smithy_client_1._json, - revision: smithy_client_1.expectInt32, - runtimePlatform: smithy_client_1._json, - status: smithy_client_1.expectString, - taskDefinitionArn: smithy_client_1.expectString, - taskRoleArn: smithy_client_1.expectString, - volumes: smithy_client_1._json, - }); -}; -const de_TaskDefinitionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_TaskDefinition(entry, context); - }); - return retVal; -}; -const de_Tasks = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Task(entry, context); - }); - return retVal; -}; -const de_TaskSet = (output, context) => { - return (0, smithy_client_1.take)(output, { - capacityProviderStrategy: smithy_client_1._json, - clusterArn: smithy_client_1.expectString, - computedDesiredCount: smithy_client_1.expectInt32, - createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - externalId: smithy_client_1.expectString, - id: smithy_client_1.expectString, - launchType: smithy_client_1.expectString, - loadBalancers: smithy_client_1._json, - networkConfiguration: smithy_client_1._json, - pendingCount: smithy_client_1.expectInt32, - platformFamily: smithy_client_1.expectString, - platformVersion: smithy_client_1.expectString, - runningCount: smithy_client_1.expectInt32, - scale: (_) => de_Scale(_, context), - serviceArn: smithy_client_1.expectString, - serviceRegistries: smithy_client_1._json, - stabilityStatus: smithy_client_1.expectString, - stabilityStatusAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - startedBy: smithy_client_1.expectString, - status: smithy_client_1.expectString, - tags: smithy_client_1._json, - taskDefinition: smithy_client_1.expectString, - taskSetArn: smithy_client_1.expectString, - updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - }); -}; -const de_TaskSets = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_TaskSet(entry, context); - }); - return retVal; -}; -const de_UpdateContainerAgentResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - containerInstance: (_) => de_ContainerInstance(_, context), - }); -}; -const de_UpdateContainerInstancesStateResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - containerInstances: (_) => de_ContainerInstances(_, context), - failures: smithy_client_1._json, - }); -}; -const de_UpdateServicePrimaryTaskSetResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - taskSet: (_) => de_TaskSet(_, context), - }); -}; -const de_UpdateServiceResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - service: (_) => de_Service(_, context), - }); -}; -const de_UpdateTaskProtectionResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - failures: smithy_client_1._json, - protectedTasks: (_) => de_ProtectedTasks(_, context), - }); -}; -const de_UpdateTaskSetResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - taskSet: (_) => de_TaskSet(_, context), - }); -}; -const deserializeMetadata = (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"], -}); -const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -const throwDefaultError = (0, smithy_client_1.withBaseException)(ECSServiceException_1.ECSServiceException); -const buildHttpRpcRequest = 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 !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); -}; -function sharedHeaders(operation) { - return { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": `AmazonEC2ContainerServiceV20141113.${operation}`, - }; -} -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; -}; -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (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; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); - } -}; - - -/***/ }), - -/***/ 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 client_sts_1 = __nccwpck_require__(52209); -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); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_node_1.defaultUserAgent)({ 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), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(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, - }), - 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), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 94516: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -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 endpointResolver_1 = __nccwpck_require__(55021); -const getRuntimeConfig = (config) => ({ - 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 ?? [], - 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; - - -/***/ }), - -/***/ 14168: -/***/ ((__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 asPartial = (t) => t; -const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - }; -}; -exports.resolveRuntimeExtensions = resolveRuntimeExtensions; - - -/***/ }), - -/***/ 64379: -/***/ ((__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__(95853), exports); -tslib_1.__exportStar(__nccwpck_require__(39606), exports); -tslib_1.__exportStar(__nccwpck_require__(43464), exports); -tslib_1.__exportStar(__nccwpck_require__(41497), exports); - - -/***/ }), - -/***/ 95853: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilServicesInactive = exports.waitForServicesInactive = void 0; -const util_waiter_1 = __nccwpck_require__(78011); -const DescribeServicesCommand_1 = __nccwpck_require__(1000); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeServicesCommand_1.DescribeServicesCommand(input)); - reason = result; - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.failures); - const projection_3 = flat_1.map((element_2) => { - return element_2.reason; - }); - return projection_3; - }; - for (const anyStringEq_4 of returnComparator()) { - if (anyStringEq_4 == "MISSING") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - } - catch (e) { } - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.services); - const projection_3 = flat_1.map((element_2) => { - return element_2.status; - }); - return projection_3; - }; - for (const anyStringEq_4 of returnComparator()) { - if (anyStringEq_4 == "INACTIVE") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForServicesInactive = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForServicesInactive = waitForServicesInactive; -const waitUntilServicesInactive = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); -}; -exports.waitUntilServicesInactive = waitUntilServicesInactive; - - -/***/ }), - -/***/ 39606: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilServicesStable = exports.waitForServicesStable = void 0; -const util_waiter_1 = __nccwpck_require__(78011); -const DescribeServicesCommand_1 = __nccwpck_require__(1000); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeServicesCommand_1.DescribeServicesCommand(input)); - reason = result; - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.failures); - const projection_3 = flat_1.map((element_2) => { - return element_2.reason; - }); - return projection_3; - }; - for (const anyStringEq_4 of returnComparator()) { - if (anyStringEq_4 == "MISSING") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - } - catch (e) { } - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.services); - const projection_3 = flat_1.map((element_2) => { - return element_2.status; - }); - return projection_3; - }; - for (const anyStringEq_4 of returnComparator()) { - if (anyStringEq_4 == "DRAINING") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - } - catch (e) { } - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.services); - const projection_3 = flat_1.map((element_2) => { - return element_2.status; - }); - return projection_3; - }; - for (const anyStringEq_4 of returnComparator()) { - if (anyStringEq_4 == "INACTIVE") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - } - catch (e) { } - try { - const returnComparator = () => { - const filterRes_2 = result.services.filter((element_1) => { - return !(element_1.deployments.length == 1.0 && element_1.runningCount == element_1.desiredCount); - }); - return filterRes_2.length == 0.0; - }; - if (returnComparator() == true) { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForServicesStable = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForServicesStable = waitForServicesStable; -const waitUntilServicesStable = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); -}; -exports.waitUntilServicesStable = waitUntilServicesStable; - - -/***/ }), - -/***/ 43464: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilTasksRunning = exports.waitForTasksRunning = void 0; -const util_waiter_1 = __nccwpck_require__(78011); -const DescribeTasksCommand_1 = __nccwpck_require__(59793); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeTasksCommand_1.DescribeTasksCommand(input)); - reason = result; - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.tasks); - const projection_3 = flat_1.map((element_2) => { - return element_2.lastStatus; - }); - return projection_3; - }; - for (const anyStringEq_4 of returnComparator()) { - if (anyStringEq_4 == "STOPPED") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - } - catch (e) { } - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.failures); - const projection_3 = flat_1.map((element_2) => { - return element_2.reason; - }); - return projection_3; - }; - for (const anyStringEq_4 of returnComparator()) { - if (anyStringEq_4 == "MISSING") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - } - catch (e) { } - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.tasks); - const projection_3 = flat_1.map((element_2) => { - return element_2.lastStatus; - }); - return projection_3; - }; - let allStringEq_5 = returnComparator().length > 0; - for (const element_4 of returnComparator()) { - allStringEq_5 = allStringEq_5 && element_4 == "RUNNING"; - } - if (allStringEq_5) { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForTasksRunning = async (params, input) => { - const serviceDefaults = { minDelay: 6, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForTasksRunning = waitForTasksRunning; -const waitUntilTasksRunning = async (params, input) => { - const serviceDefaults = { minDelay: 6, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); -}; -exports.waitUntilTasksRunning = waitUntilTasksRunning; - - -/***/ }), - -/***/ 41497: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilTasksStopped = exports.waitForTasksStopped = void 0; -const util_waiter_1 = __nccwpck_require__(78011); -const DescribeTasksCommand_1 = __nccwpck_require__(59793); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeTasksCommand_1.DescribeTasksCommand(input)); - reason = result; - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.tasks); - const projection_3 = flat_1.map((element_2) => { - return element_2.lastStatus; - }); - return projection_3; - }; - let allStringEq_5 = returnComparator().length > 0; - for (const element_4 of returnComparator()) { - allStringEq_5 = allStringEq_5 && element_4 == "STOPPED"; - } - if (allStringEq_5) { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForTasksStopped = async (params, input) => { - const serviceDefaults = { minDelay: 6, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForTasksStopped = waitForTasksStopped; -const waitUntilTasksStopped = async (params, input) => { - const serviceDefaults = { minDelay: 6, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); -}; -exports.waitUntilTasksStopped = waitUntilTasksStopped; - - -/***/ }), - -/***/ 54887: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ElasticLoadBalancingV2 = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -const AddListenerCertificatesCommand_1 = __nccwpck_require__(12321); -const AddTagsCommand_1 = __nccwpck_require__(49145); -const CreateListenerCommand_1 = __nccwpck_require__(41732); -const CreateLoadBalancerCommand_1 = __nccwpck_require__(11263); -const CreateRuleCommand_1 = __nccwpck_require__(45658); -const CreateTargetGroupCommand_1 = __nccwpck_require__(63177); -const DeleteListenerCommand_1 = __nccwpck_require__(1913); -const DeleteLoadBalancerCommand_1 = __nccwpck_require__(44640); -const DeleteRuleCommand_1 = __nccwpck_require__(74182); -const DeleteTargetGroupCommand_1 = __nccwpck_require__(29381); -const DeregisterTargetsCommand_1 = __nccwpck_require__(27848); -const DescribeAccountLimitsCommand_1 = __nccwpck_require__(45648); -const DescribeListenerCertificatesCommand_1 = __nccwpck_require__(40049); -const DescribeListenersCommand_1 = __nccwpck_require__(76871); -const DescribeLoadBalancerAttributesCommand_1 = __nccwpck_require__(55220); -const DescribeLoadBalancersCommand_1 = __nccwpck_require__(85295); -const DescribeRulesCommand_1 = __nccwpck_require__(40030); -const DescribeSSLPoliciesCommand_1 = __nccwpck_require__(28088); -const DescribeTagsCommand_1 = __nccwpck_require__(36485); -const DescribeTargetGroupAttributesCommand_1 = __nccwpck_require__(25138); -const DescribeTargetGroupsCommand_1 = __nccwpck_require__(17626); -const DescribeTargetHealthCommand_1 = __nccwpck_require__(48163); -const ModifyListenerCommand_1 = __nccwpck_require__(78161); -const ModifyLoadBalancerAttributesCommand_1 = __nccwpck_require__(54619); -const ModifyRuleCommand_1 = __nccwpck_require__(64014); -const ModifyTargetGroupAttributesCommand_1 = __nccwpck_require__(66091); -const ModifyTargetGroupCommand_1 = __nccwpck_require__(89776); -const RegisterTargetsCommand_1 = __nccwpck_require__(43263); -const RemoveListenerCertificatesCommand_1 = __nccwpck_require__(68114); -const RemoveTagsCommand_1 = __nccwpck_require__(11355); -const SetIpAddressTypeCommand_1 = __nccwpck_require__(11926); -const SetRulePrioritiesCommand_1 = __nccwpck_require__(38989); -const SetSecurityGroupsCommand_1 = __nccwpck_require__(76366); -const SetSubnetsCommand_1 = __nccwpck_require__(69079); -const ElasticLoadBalancingV2Client_1 = __nccwpck_require__(72577); -const commands = { - AddListenerCertificatesCommand: AddListenerCertificatesCommand_1.AddListenerCertificatesCommand, - AddTagsCommand: AddTagsCommand_1.AddTagsCommand, - CreateListenerCommand: CreateListenerCommand_1.CreateListenerCommand, - CreateLoadBalancerCommand: CreateLoadBalancerCommand_1.CreateLoadBalancerCommand, - CreateRuleCommand: CreateRuleCommand_1.CreateRuleCommand, - CreateTargetGroupCommand: CreateTargetGroupCommand_1.CreateTargetGroupCommand, - DeleteListenerCommand: DeleteListenerCommand_1.DeleteListenerCommand, - DeleteLoadBalancerCommand: DeleteLoadBalancerCommand_1.DeleteLoadBalancerCommand, - DeleteRuleCommand: DeleteRuleCommand_1.DeleteRuleCommand, - DeleteTargetGroupCommand: DeleteTargetGroupCommand_1.DeleteTargetGroupCommand, - DeregisterTargetsCommand: DeregisterTargetsCommand_1.DeregisterTargetsCommand, - DescribeAccountLimitsCommand: DescribeAccountLimitsCommand_1.DescribeAccountLimitsCommand, - DescribeListenerCertificatesCommand: DescribeListenerCertificatesCommand_1.DescribeListenerCertificatesCommand, - DescribeListenersCommand: DescribeListenersCommand_1.DescribeListenersCommand, - DescribeLoadBalancerAttributesCommand: DescribeLoadBalancerAttributesCommand_1.DescribeLoadBalancerAttributesCommand, - DescribeLoadBalancersCommand: DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand, - DescribeRulesCommand: DescribeRulesCommand_1.DescribeRulesCommand, - DescribeSSLPoliciesCommand: DescribeSSLPoliciesCommand_1.DescribeSSLPoliciesCommand, - DescribeTagsCommand: DescribeTagsCommand_1.DescribeTagsCommand, - DescribeTargetGroupAttributesCommand: DescribeTargetGroupAttributesCommand_1.DescribeTargetGroupAttributesCommand, - DescribeTargetGroupsCommand: DescribeTargetGroupsCommand_1.DescribeTargetGroupsCommand, - DescribeTargetHealthCommand: DescribeTargetHealthCommand_1.DescribeTargetHealthCommand, - ModifyListenerCommand: ModifyListenerCommand_1.ModifyListenerCommand, - ModifyLoadBalancerAttributesCommand: ModifyLoadBalancerAttributesCommand_1.ModifyLoadBalancerAttributesCommand, - ModifyRuleCommand: ModifyRuleCommand_1.ModifyRuleCommand, - ModifyTargetGroupCommand: ModifyTargetGroupCommand_1.ModifyTargetGroupCommand, - ModifyTargetGroupAttributesCommand: ModifyTargetGroupAttributesCommand_1.ModifyTargetGroupAttributesCommand, - RegisterTargetsCommand: RegisterTargetsCommand_1.RegisterTargetsCommand, - RemoveListenerCertificatesCommand: RemoveListenerCertificatesCommand_1.RemoveListenerCertificatesCommand, - RemoveTagsCommand: RemoveTagsCommand_1.RemoveTagsCommand, - SetIpAddressTypeCommand: SetIpAddressTypeCommand_1.SetIpAddressTypeCommand, - SetRulePrioritiesCommand: SetRulePrioritiesCommand_1.SetRulePrioritiesCommand, - SetSecurityGroupsCommand: SetSecurityGroupsCommand_1.SetSecurityGroupsCommand, - SetSubnetsCommand: SetSubnetsCommand_1.SetSubnetsCommand, -}; -class ElasticLoadBalancingV2 extends ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client { -} -exports.ElasticLoadBalancingV2 = ElasticLoadBalancingV2; -(0, smithy_client_1.createAggregatedClient)(commands, ElasticLoadBalancingV2); - - -/***/ }), - -/***/ 72577: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ElasticLoadBalancingV2Client = exports.__Client = void 0; -const middleware_host_header_1 = __nccwpck_require__(59820); -const middleware_logger_1 = __nccwpck_require__(20014); -const middleware_recursion_detection_1 = __nccwpck_require__(85525); -const middleware_signing_1 = __nccwpck_require__(14935); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const config_resolver_1 = __nccwpck_require__(53098); -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 EndpointParameters_1 = __nccwpck_require__(11715); -const runtimeConfig_1 = __nccwpck_require__(51401); -const runtimeExtensions_1 = __nccwpck_require__(47313); -class ElasticLoadBalancingV2Client extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); - const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5); - const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6); - const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []); - super(_config_8); - this.config = _config_8; - 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, middleware_signing_1.getAwsAuthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.ElasticLoadBalancingV2Client = ElasticLoadBalancingV2Client; - - -/***/ }), - -/***/ 12321: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AddListenerCertificatesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class AddListenerCertificatesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AddListenerCertificatesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "AddListenerCertificatesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "AddListenerCertificates", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_AddListenerCertificatesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_AddListenerCertificatesCommand)(output, context); - } -} -exports.AddListenerCertificatesCommand = AddListenerCertificatesCommand; - - -/***/ }), - -/***/ 49145: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AddTagsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class AddTagsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AddTagsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "AddTagsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "AddTags", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_AddTagsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_AddTagsCommand)(output, context); - } -} -exports.AddTagsCommand = AddTagsCommand; - - -/***/ }), - -/***/ 41732: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateListenerCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class CreateListenerCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateListenerCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "CreateListenerCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "CreateListener", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_CreateListenerCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_CreateListenerCommand)(output, context); - } -} -exports.CreateListenerCommand = CreateListenerCommand; - - -/***/ }), - -/***/ 11263: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateLoadBalancerCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class CreateLoadBalancerCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateLoadBalancerCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "CreateLoadBalancerCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "CreateLoadBalancer", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_CreateLoadBalancerCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_CreateLoadBalancerCommand)(output, context); - } -} -exports.CreateLoadBalancerCommand = CreateLoadBalancerCommand; - - -/***/ }), - -/***/ 45658: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateRuleCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class CreateRuleCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateRuleCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "CreateRuleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "CreateRule", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_CreateRuleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_CreateRuleCommand)(output, context); - } -} -exports.CreateRuleCommand = CreateRuleCommand; - - -/***/ }), - -/***/ 63177: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateTargetGroupCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class CreateTargetGroupCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateTargetGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "CreateTargetGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "CreateTargetGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_CreateTargetGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_CreateTargetGroupCommand)(output, context); - } -} -exports.CreateTargetGroupCommand = CreateTargetGroupCommand; - - -/***/ }), - -/***/ 1913: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteListenerCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DeleteListenerCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteListenerCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DeleteListenerCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DeleteListener", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DeleteListenerCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DeleteListenerCommand)(output, context); - } -} -exports.DeleteListenerCommand = DeleteListenerCommand; - - -/***/ }), - -/***/ 44640: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteLoadBalancerCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DeleteLoadBalancerCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteLoadBalancerCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DeleteLoadBalancerCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DeleteLoadBalancer", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DeleteLoadBalancerCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DeleteLoadBalancerCommand)(output, context); - } -} -exports.DeleteLoadBalancerCommand = DeleteLoadBalancerCommand; - - -/***/ }), - -/***/ 74182: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteRuleCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DeleteRuleCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteRuleCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DeleteRuleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DeleteRule", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DeleteRuleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DeleteRuleCommand)(output, context); - } -} -exports.DeleteRuleCommand = DeleteRuleCommand; - - -/***/ }), - -/***/ 29381: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteTargetGroupCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DeleteTargetGroupCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteTargetGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DeleteTargetGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DeleteTargetGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DeleteTargetGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DeleteTargetGroupCommand)(output, context); - } -} -exports.DeleteTargetGroupCommand = DeleteTargetGroupCommand; - - -/***/ }), - -/***/ 27848: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeregisterTargetsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DeregisterTargetsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterTargetsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DeregisterTargetsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DeregisterTargets", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DeregisterTargetsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DeregisterTargetsCommand)(output, context); - } -} -exports.DeregisterTargetsCommand = DeregisterTargetsCommand; - - -/***/ }), - -/***/ 45648: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeAccountLimitsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeAccountLimitsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAccountLimitsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeAccountLimitsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeAccountLimits", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeAccountLimitsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeAccountLimitsCommand)(output, context); - } -} -exports.DescribeAccountLimitsCommand = DescribeAccountLimitsCommand; - - -/***/ }), - -/***/ 40049: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeListenerCertificatesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeListenerCertificatesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeListenerCertificatesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeListenerCertificatesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeListenerCertificates", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeListenerCertificatesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeListenerCertificatesCommand)(output, context); - } -} -exports.DescribeListenerCertificatesCommand = DescribeListenerCertificatesCommand; - - -/***/ }), - -/***/ 76871: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeListenersCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeListenersCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeListenersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeListenersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeListeners", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeListenersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeListenersCommand)(output, context); - } -} -exports.DescribeListenersCommand = DescribeListenersCommand; - - -/***/ }), - -/***/ 55220: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeLoadBalancerAttributesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeLoadBalancerAttributesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeLoadBalancerAttributesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeLoadBalancerAttributesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeLoadBalancerAttributes", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeLoadBalancerAttributesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeLoadBalancerAttributesCommand)(output, context); - } -} -exports.DescribeLoadBalancerAttributesCommand = DescribeLoadBalancerAttributesCommand; - - -/***/ }), - -/***/ 85295: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeLoadBalancersCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeLoadBalancersCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeLoadBalancersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeLoadBalancersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeLoadBalancers", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeLoadBalancersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeLoadBalancersCommand)(output, context); - } -} -exports.DescribeLoadBalancersCommand = DescribeLoadBalancersCommand; - - -/***/ }), - -/***/ 40030: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeRulesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeRulesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeRulesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeRulesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeRules", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeRulesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeRulesCommand)(output, context); - } -} -exports.DescribeRulesCommand = DescribeRulesCommand; - - -/***/ }), - -/***/ 28088: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeSSLPoliciesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeSSLPoliciesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeSSLPoliciesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeSSLPoliciesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeSSLPolicies", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeSSLPoliciesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeSSLPoliciesCommand)(output, context); - } -} -exports.DescribeSSLPoliciesCommand = DescribeSSLPoliciesCommand; - - -/***/ }), - -/***/ 36485: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeTagsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeTagsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTagsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeTagsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeTags", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeTagsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeTagsCommand)(output, context); - } -} -exports.DescribeTagsCommand = DescribeTagsCommand; - - -/***/ }), - -/***/ 25138: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeTargetGroupAttributesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeTargetGroupAttributesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTargetGroupAttributesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeTargetGroupAttributesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeTargetGroupAttributes", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeTargetGroupAttributesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeTargetGroupAttributesCommand)(output, context); - } -} -exports.DescribeTargetGroupAttributesCommand = DescribeTargetGroupAttributesCommand; - - -/***/ }), - -/***/ 17626: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeTargetGroupsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeTargetGroupsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTargetGroupsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeTargetGroupsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeTargetGroups", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeTargetGroupsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeTargetGroupsCommand)(output, context); - } -} -exports.DescribeTargetGroupsCommand = DescribeTargetGroupsCommand; - - -/***/ }), - -/***/ 48163: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeTargetHealthCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class DescribeTargetHealthCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTargetHealthCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "DescribeTargetHealthCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "DescribeTargetHealth", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DescribeTargetHealthCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DescribeTargetHealthCommand)(output, context); - } -} -exports.DescribeTargetHealthCommand = DescribeTargetHealthCommand; - - -/***/ }), - -/***/ 78161: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ModifyListenerCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class ModifyListenerCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyListenerCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "ModifyListenerCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "ModifyListener", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_ModifyListenerCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_ModifyListenerCommand)(output, context); - } -} -exports.ModifyListenerCommand = ModifyListenerCommand; - - -/***/ }), - -/***/ 54619: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ModifyLoadBalancerAttributesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class ModifyLoadBalancerAttributesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyLoadBalancerAttributesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "ModifyLoadBalancerAttributesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "ModifyLoadBalancerAttributes", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_ModifyLoadBalancerAttributesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_ModifyLoadBalancerAttributesCommand)(output, context); - } -} -exports.ModifyLoadBalancerAttributesCommand = ModifyLoadBalancerAttributesCommand; - - -/***/ }), - -/***/ 64014: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ModifyRuleCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class ModifyRuleCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyRuleCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "ModifyRuleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "ModifyRule", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_ModifyRuleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_ModifyRuleCommand)(output, context); - } -} -exports.ModifyRuleCommand = ModifyRuleCommand; - - -/***/ }), - -/***/ 66091: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ModifyTargetGroupAttributesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class ModifyTargetGroupAttributesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyTargetGroupAttributesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "ModifyTargetGroupAttributesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "ModifyTargetGroupAttributes", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_ModifyTargetGroupAttributesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_ModifyTargetGroupAttributesCommand)(output, context); - } -} -exports.ModifyTargetGroupAttributesCommand = ModifyTargetGroupAttributesCommand; - - -/***/ }), - -/***/ 89776: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ModifyTargetGroupCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class ModifyTargetGroupCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyTargetGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "ModifyTargetGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "ModifyTargetGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_ModifyTargetGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_ModifyTargetGroupCommand)(output, context); - } -} -exports.ModifyTargetGroupCommand = ModifyTargetGroupCommand; - - -/***/ }), - -/***/ 43263: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RegisterTargetsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class RegisterTargetsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterTargetsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "RegisterTargetsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "RegisterTargets", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_RegisterTargetsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_RegisterTargetsCommand)(output, context); - } -} -exports.RegisterTargetsCommand = RegisterTargetsCommand; - - -/***/ }), - -/***/ 68114: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RemoveListenerCertificatesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class RemoveListenerCertificatesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveListenerCertificatesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "RemoveListenerCertificatesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "RemoveListenerCertificates", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_RemoveListenerCertificatesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_RemoveListenerCertificatesCommand)(output, context); - } -} -exports.RemoveListenerCertificatesCommand = RemoveListenerCertificatesCommand; - - -/***/ }), - -/***/ 11355: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RemoveTagsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class RemoveTagsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveTagsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "RemoveTagsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "RemoveTags", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_RemoveTagsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_RemoveTagsCommand)(output, context); - } -} -exports.RemoveTagsCommand = RemoveTagsCommand; - - -/***/ }), - -/***/ 11926: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SetIpAddressTypeCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class SetIpAddressTypeCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetIpAddressTypeCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "SetIpAddressTypeCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "SetIpAddressType", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_SetIpAddressTypeCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_SetIpAddressTypeCommand)(output, context); - } -} -exports.SetIpAddressTypeCommand = SetIpAddressTypeCommand; - - -/***/ }), - -/***/ 38989: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SetRulePrioritiesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class SetRulePrioritiesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetRulePrioritiesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "SetRulePrioritiesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "SetRulePriorities", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_SetRulePrioritiesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_SetRulePrioritiesCommand)(output, context); - } -} -exports.SetRulePrioritiesCommand = SetRulePrioritiesCommand; - - -/***/ }), - -/***/ 76366: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SetSecurityGroupsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class SetSecurityGroupsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetSecurityGroupsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "SetSecurityGroupsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "SetSecurityGroups", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_SetSecurityGroupsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_SetSecurityGroupsCommand)(output, context); - } -} -exports.SetSecurityGroupsCommand = SetSecurityGroupsCommand; - - -/***/ }), - -/***/ 69079: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SetSubnetsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(60483); -class SetSubnetsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetSubnetsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ElasticLoadBalancingV2Client"; - const commandName = "SetSubnetsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "ElasticLoadBalancing_v10", - operation: "SetSubnets", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_SetSubnetsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_SetSubnetsCommand)(output, context); - } -} -exports.SetSubnetsCommand = SetSubnetsCommand; - - -/***/ }), - -/***/ 98924: -/***/ ((__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__(12321), exports); -tslib_1.__exportStar(__nccwpck_require__(49145), exports); -tslib_1.__exportStar(__nccwpck_require__(41732), exports); -tslib_1.__exportStar(__nccwpck_require__(11263), exports); -tslib_1.__exportStar(__nccwpck_require__(45658), exports); -tslib_1.__exportStar(__nccwpck_require__(63177), exports); -tslib_1.__exportStar(__nccwpck_require__(1913), exports); -tslib_1.__exportStar(__nccwpck_require__(44640), exports); -tslib_1.__exportStar(__nccwpck_require__(74182), exports); -tslib_1.__exportStar(__nccwpck_require__(29381), exports); -tslib_1.__exportStar(__nccwpck_require__(27848), exports); -tslib_1.__exportStar(__nccwpck_require__(45648), exports); -tslib_1.__exportStar(__nccwpck_require__(40049), exports); -tslib_1.__exportStar(__nccwpck_require__(76871), exports); -tslib_1.__exportStar(__nccwpck_require__(55220), exports); -tslib_1.__exportStar(__nccwpck_require__(85295), exports); -tslib_1.__exportStar(__nccwpck_require__(40030), exports); -tslib_1.__exportStar(__nccwpck_require__(28088), exports); -tslib_1.__exportStar(__nccwpck_require__(36485), exports); -tslib_1.__exportStar(__nccwpck_require__(25138), exports); -tslib_1.__exportStar(__nccwpck_require__(17626), exports); -tslib_1.__exportStar(__nccwpck_require__(48163), exports); -tslib_1.__exportStar(__nccwpck_require__(78161), exports); -tslib_1.__exportStar(__nccwpck_require__(54619), exports); -tslib_1.__exportStar(__nccwpck_require__(64014), exports); -tslib_1.__exportStar(__nccwpck_require__(66091), exports); -tslib_1.__exportStar(__nccwpck_require__(89776), exports); -tslib_1.__exportStar(__nccwpck_require__(43263), exports); -tslib_1.__exportStar(__nccwpck_require__(68114), exports); -tslib_1.__exportStar(__nccwpck_require__(11355), exports); -tslib_1.__exportStar(__nccwpck_require__(11926), exports); -tslib_1.__exportStar(__nccwpck_require__(38989), exports); -tslib_1.__exportStar(__nccwpck_require__(76366), exports); -tslib_1.__exportStar(__nccwpck_require__(69079), exports); - - -/***/ }), - -/***/ 11715: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveClientEndpointParameters = void 0; -const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "elasticloadbalancing", - }; +const ECSServiceException_1 = __nccwpck_require__(47688); +const models_0_1 = __nccwpck_require__(89402); +const se_CreateCapacityProviderCommand = async (input, context) => { + const headers = sharedHeaders("CreateCapacityProvider"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.resolveClientEndpointParameters = resolveClientEndpointParameters; - - -/***/ }), - -/***/ 97017: -/***/ ((__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 ruleset_1 = __nccwpck_require__(91123); -const defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); +exports.se_CreateCapacityProviderCommand = se_CreateCapacityProviderCommand; +const se_CreateClusterCommand = async (input, context) => { + const headers = sharedHeaders("CreateCluster"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.defaultEndpointResolver = defaultEndpointResolver; - - -/***/ }), - -/***/ 91123: -/***/ ((__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 = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }]; -const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://elasticloadbalancing.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }; -exports.ruleSet = _data; - - -/***/ }), - -/***/ 49346: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ElasticLoadBalancingV2ServiceException = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(72577), exports); -tslib_1.__exportStar(__nccwpck_require__(54887), exports); -tslib_1.__exportStar(__nccwpck_require__(98924), exports); -tslib_1.__exportStar(__nccwpck_require__(55649), exports); -tslib_1.__exportStar(__nccwpck_require__(80616), exports); -tslib_1.__exportStar(__nccwpck_require__(26412), exports); -var ElasticLoadBalancingV2ServiceException_1 = __nccwpck_require__(8182); -Object.defineProperty(exports, "ElasticLoadBalancingV2ServiceException", ({ enumerable: true, get: function () { return ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException; } })); - - -/***/ }), - -/***/ 8182: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ElasticLoadBalancingV2ServiceException = exports.__ServiceException = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } })); -class ElasticLoadBalancingV2ServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, ElasticLoadBalancingV2ServiceException.prototype); - } -} -exports.ElasticLoadBalancingV2ServiceException = ElasticLoadBalancingV2ServiceException; - - -/***/ }), - -/***/ 26412: -/***/ ((__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__(72907), exports); - - -/***/ }), - -/***/ 72907: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.HealthUnavailableException = exports.TargetHealthStateEnum = exports.TargetHealthReasonEnum = exports.InvalidTargetException = exports.DuplicateTargetGroupNameException = exports.TargetTypeEnum = exports.TargetGroupIpAddressTypeEnum = exports.TooManyTargetGroupsException = exports.TooManyRulesException = exports.PriorityInUseException = exports.TooManyLoadBalancersException = exports.SubnetNotFoundException = exports.ResourceInUseException = exports.OperationNotPermittedException = exports.InvalidSubnetException = exports.InvalidSecurityGroupException = exports.InvalidSchemeException = exports.DuplicateLoadBalancerNameException = exports.LoadBalancerStateEnum = exports.LoadBalancerTypeEnum = exports.LoadBalancerSchemeEnum = exports.IpAddressType = exports.UnsupportedProtocolException = exports.TooManyUniqueTargetGroupsPerLoadBalancerException = exports.TooManyTargetsException = exports.TooManyRegistrationsForTargetIdException = exports.TooManyListenersException = exports.TooManyActionsException = exports.TargetGroupAssociationLimitException = exports.SSLPolicyNotFoundException = exports.InvalidLoadBalancerActionException = exports.InvalidConfigurationRequestException = exports.IncompatibleProtocolsException = exports.DuplicateListenerException = exports.ProtocolEnum = exports.AvailabilityZoneNotSupportedException = exports.ALPNPolicyNotSupportedException = exports.AllocationIdNotFoundException = exports.TooManyTagsException = exports.TargetGroupNotFoundException = exports.RuleNotFoundException = exports.LoadBalancerNotFoundException = exports.DuplicateTagKeysException = exports.TooManyCertificatesException = exports.ListenerNotFoundException = exports.CertificateNotFoundException = exports.ActionTypeEnum = exports.RedirectActionStatusCodeEnum = exports.AuthenticateOidcActionConditionalBehaviorEnum = exports.AuthenticateCognitoActionConditionalBehaviorEnum = void 0; -exports.EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum = void 0; -const ElasticLoadBalancingV2ServiceException_1 = __nccwpck_require__(8182); -exports.AuthenticateCognitoActionConditionalBehaviorEnum = { - ALLOW: "allow", - AUTHENTICATE: "authenticate", - DENY: "deny", +exports.se_CreateClusterCommand = se_CreateClusterCommand; +const se_CreateServiceCommand = async (input, context) => { + const headers = sharedHeaders("CreateService"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.AuthenticateOidcActionConditionalBehaviorEnum = { - ALLOW: "allow", - AUTHENTICATE: "authenticate", - DENY: "deny", +exports.se_CreateServiceCommand = se_CreateServiceCommand; +const se_CreateTaskSetCommand = async (input, context) => { + const headers = sharedHeaders("CreateTaskSet"); + let body; + body = JSON.stringify(se_CreateTaskSetRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.RedirectActionStatusCodeEnum = { - HTTP_301: "HTTP_301", - HTTP_302: "HTTP_302", +exports.se_CreateTaskSetCommand = se_CreateTaskSetCommand; +const se_DeleteAccountSettingCommand = async (input, context) => { + const headers = sharedHeaders("DeleteAccountSetting"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.ActionTypeEnum = { - AUTHENTICATE_COGNITO: "authenticate-cognito", - AUTHENTICATE_OIDC: "authenticate-oidc", - FIXED_RESPONSE: "fixed-response", - FORWARD: "forward", - REDIRECT: "redirect", +exports.se_DeleteAccountSettingCommand = se_DeleteAccountSettingCommand; +const se_DeleteAttributesCommand = async (input, context) => { + const headers = sharedHeaders("DeleteAttributes"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -class CertificateNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "CertificateNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "CertificateNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, CertificateNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.CertificateNotFoundException = CertificateNotFoundException; -class ListenerNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "ListenerNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ListenerNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ListenerNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.ListenerNotFoundException = ListenerNotFoundException; -class TooManyCertificatesException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TooManyCertificatesException", - $fault: "client", - ...opts, - }); - this.name = "TooManyCertificatesException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyCertificatesException.prototype); - this.Message = opts.Message; - } -} -exports.TooManyCertificatesException = TooManyCertificatesException; -class DuplicateTagKeysException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "DuplicateTagKeysException", - $fault: "client", - ...opts, - }); - this.name = "DuplicateTagKeysException"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateTagKeysException.prototype); - this.Message = opts.Message; - } -} -exports.DuplicateTagKeysException = DuplicateTagKeysException; -class LoadBalancerNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "LoadBalancerNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "LoadBalancerNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, LoadBalancerNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.LoadBalancerNotFoundException = LoadBalancerNotFoundException; -class RuleNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "RuleNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "RuleNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, RuleNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.RuleNotFoundException = RuleNotFoundException; -class TargetGroupNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TargetGroupNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "TargetGroupNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TargetGroupNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.TargetGroupNotFoundException = TargetGroupNotFoundException; -class TooManyTagsException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TooManyTagsException", - $fault: "client", - ...opts, - }); - this.name = "TooManyTagsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyTagsException.prototype); - this.Message = opts.Message; - } -} -exports.TooManyTagsException = TooManyTagsException; -class AllocationIdNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "AllocationIdNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AllocationIdNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AllocationIdNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.AllocationIdNotFoundException = AllocationIdNotFoundException; -class ALPNPolicyNotSupportedException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "ALPNPolicyNotSupportedException", - $fault: "client", - ...opts, - }); - this.name = "ALPNPolicyNotSupportedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ALPNPolicyNotSupportedException.prototype); - this.Message = opts.Message; - } -} -exports.ALPNPolicyNotSupportedException = ALPNPolicyNotSupportedException; -class AvailabilityZoneNotSupportedException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "AvailabilityZoneNotSupportedException", - $fault: "client", - ...opts, - }); - this.name = "AvailabilityZoneNotSupportedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AvailabilityZoneNotSupportedException.prototype); - this.Message = opts.Message; - } -} -exports.AvailabilityZoneNotSupportedException = AvailabilityZoneNotSupportedException; -exports.ProtocolEnum = { - GENEVE: "GENEVE", - HTTP: "HTTP", - HTTPS: "HTTPS", - TCP: "TCP", - TCP_UDP: "TCP_UDP", - TLS: "TLS", - UDP: "UDP", +exports.se_DeleteAttributesCommand = se_DeleteAttributesCommand; +const se_DeleteCapacityProviderCommand = async (input, context) => { + const headers = sharedHeaders("DeleteCapacityProvider"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DeleteCapacityProviderCommand = se_DeleteCapacityProviderCommand; +const se_DeleteClusterCommand = async (input, context) => { + const headers = sharedHeaders("DeleteCluster"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DeleteClusterCommand = se_DeleteClusterCommand; +const se_DeleteServiceCommand = async (input, context) => { + const headers = sharedHeaders("DeleteService"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DeleteServiceCommand = se_DeleteServiceCommand; +const se_DeleteTaskDefinitionsCommand = async (input, context) => { + const headers = sharedHeaders("DeleteTaskDefinitions"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DeleteTaskDefinitionsCommand = se_DeleteTaskDefinitionsCommand; +const se_DeleteTaskSetCommand = async (input, context) => { + const headers = sharedHeaders("DeleteTaskSet"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DeleteTaskSetCommand = se_DeleteTaskSetCommand; +const se_DeregisterContainerInstanceCommand = async (input, context) => { + const headers = sharedHeaders("DeregisterContainerInstance"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DeregisterContainerInstanceCommand = se_DeregisterContainerInstanceCommand; +const se_DeregisterTaskDefinitionCommand = async (input, context) => { + const headers = sharedHeaders("DeregisterTaskDefinition"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DeregisterTaskDefinitionCommand = se_DeregisterTaskDefinitionCommand; +const se_DescribeCapacityProvidersCommand = async (input, context) => { + const headers = sharedHeaders("DescribeCapacityProviders"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DescribeCapacityProvidersCommand = se_DescribeCapacityProvidersCommand; +const se_DescribeClustersCommand = async (input, context) => { + const headers = sharedHeaders("DescribeClusters"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DescribeClustersCommand = se_DescribeClustersCommand; +const se_DescribeContainerInstancesCommand = async (input, context) => { + const headers = sharedHeaders("DescribeContainerInstances"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DescribeContainerInstancesCommand = se_DescribeContainerInstancesCommand; +const se_DescribeServicesCommand = async (input, context) => { + const headers = sharedHeaders("DescribeServices"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DescribeServicesCommand = se_DescribeServicesCommand; +const se_DescribeTaskDefinitionCommand = async (input, context) => { + const headers = sharedHeaders("DescribeTaskDefinition"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DescribeTaskDefinitionCommand = se_DescribeTaskDefinitionCommand; +const se_DescribeTasksCommand = async (input, context) => { + const headers = sharedHeaders("DescribeTasks"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DescribeTasksCommand = se_DescribeTasksCommand; +const se_DescribeTaskSetsCommand = async (input, context) => { + const headers = sharedHeaders("DescribeTaskSets"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DescribeTaskSetsCommand = se_DescribeTaskSetsCommand; +const se_DiscoverPollEndpointCommand = async (input, context) => { + const headers = sharedHeaders("DiscoverPollEndpoint"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_DiscoverPollEndpointCommand = se_DiscoverPollEndpointCommand; +const se_ExecuteCommandCommand = async (input, context) => { + const headers = sharedHeaders("ExecuteCommand"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ExecuteCommandCommand = se_ExecuteCommandCommand; +const se_GetTaskProtectionCommand = async (input, context) => { + const headers = sharedHeaders("GetTaskProtection"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_GetTaskProtectionCommand = se_GetTaskProtectionCommand; +const se_ListAccountSettingsCommand = async (input, context) => { + const headers = sharedHeaders("ListAccountSettings"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ListAccountSettingsCommand = se_ListAccountSettingsCommand; +const se_ListAttributesCommand = async (input, context) => { + const headers = sharedHeaders("ListAttributes"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ListAttributesCommand = se_ListAttributesCommand; +const se_ListClustersCommand = async (input, context) => { + const headers = sharedHeaders("ListClusters"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ListClustersCommand = se_ListClustersCommand; +const se_ListContainerInstancesCommand = async (input, context) => { + const headers = sharedHeaders("ListContainerInstances"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ListContainerInstancesCommand = se_ListContainerInstancesCommand; +const se_ListServicesCommand = async (input, context) => { + const headers = sharedHeaders("ListServices"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ListServicesCommand = se_ListServicesCommand; +const se_ListServicesByNamespaceCommand = async (input, context) => { + const headers = sharedHeaders("ListServicesByNamespace"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ListServicesByNamespaceCommand = se_ListServicesByNamespaceCommand; +const se_ListTagsForResourceCommand = async (input, context) => { + const headers = sharedHeaders("ListTagsForResource"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand; +const se_ListTaskDefinitionFamiliesCommand = async (input, context) => { + const headers = sharedHeaders("ListTaskDefinitionFamilies"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ListTaskDefinitionFamiliesCommand = se_ListTaskDefinitionFamiliesCommand; +const se_ListTaskDefinitionsCommand = async (input, context) => { + const headers = sharedHeaders("ListTaskDefinitions"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ListTaskDefinitionsCommand = se_ListTaskDefinitionsCommand; +const se_ListTasksCommand = async (input, context) => { + const headers = sharedHeaders("ListTasks"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_ListTasksCommand = se_ListTasksCommand; +const se_PutAccountSettingCommand = async (input, context) => { + const headers = sharedHeaders("PutAccountSetting"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_PutAccountSettingCommand = se_PutAccountSettingCommand; +const se_PutAccountSettingDefaultCommand = async (input, context) => { + const headers = sharedHeaders("PutAccountSettingDefault"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_PutAccountSettingDefaultCommand = se_PutAccountSettingDefaultCommand; +const se_PutAttributesCommand = async (input, context) => { + const headers = sharedHeaders("PutAttributes"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -class DuplicateListenerException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "DuplicateListenerException", - $fault: "client", - ...opts, - }); - this.name = "DuplicateListenerException"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateListenerException.prototype); - this.Message = opts.Message; - } -} -exports.DuplicateListenerException = DuplicateListenerException; -class IncompatibleProtocolsException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "IncompatibleProtocolsException", - $fault: "client", - ...opts, - }); - this.name = "IncompatibleProtocolsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IncompatibleProtocolsException.prototype); - this.Message = opts.Message; - } -} -exports.IncompatibleProtocolsException = IncompatibleProtocolsException; -class InvalidConfigurationRequestException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "InvalidConfigurationRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidConfigurationRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidConfigurationRequestException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidConfigurationRequestException = InvalidConfigurationRequestException; -class InvalidLoadBalancerActionException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "InvalidLoadBalancerActionException", - $fault: "client", - ...opts, - }); - this.name = "InvalidLoadBalancerActionException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidLoadBalancerActionException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidLoadBalancerActionException = InvalidLoadBalancerActionException; -class SSLPolicyNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "SSLPolicyNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "SSLPolicyNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, SSLPolicyNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.SSLPolicyNotFoundException = SSLPolicyNotFoundException; -class TargetGroupAssociationLimitException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TargetGroupAssociationLimitException", - $fault: "client", - ...opts, - }); - this.name = "TargetGroupAssociationLimitException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TargetGroupAssociationLimitException.prototype); - this.Message = opts.Message; - } -} -exports.TargetGroupAssociationLimitException = TargetGroupAssociationLimitException; -class TooManyActionsException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TooManyActionsException", - $fault: "client", - ...opts, - }); - this.name = "TooManyActionsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyActionsException.prototype); - this.Message = opts.Message; - } -} -exports.TooManyActionsException = TooManyActionsException; -class TooManyListenersException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TooManyListenersException", - $fault: "client", - ...opts, - }); - this.name = "TooManyListenersException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyListenersException.prototype); - this.Message = opts.Message; - } -} -exports.TooManyListenersException = TooManyListenersException; -class TooManyRegistrationsForTargetIdException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TooManyRegistrationsForTargetIdException", - $fault: "client", - ...opts, - }); - this.name = "TooManyRegistrationsForTargetIdException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyRegistrationsForTargetIdException.prototype); - this.Message = opts.Message; - } -} -exports.TooManyRegistrationsForTargetIdException = TooManyRegistrationsForTargetIdException; -class TooManyTargetsException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TooManyTargetsException", - $fault: "client", - ...opts, - }); - this.name = "TooManyTargetsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyTargetsException.prototype); - this.Message = opts.Message; - } -} -exports.TooManyTargetsException = TooManyTargetsException; -class TooManyUniqueTargetGroupsPerLoadBalancerException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TooManyUniqueTargetGroupsPerLoadBalancerException", - $fault: "client", - ...opts, - }); - this.name = "TooManyUniqueTargetGroupsPerLoadBalancerException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyUniqueTargetGroupsPerLoadBalancerException.prototype); - this.Message = opts.Message; - } -} -exports.TooManyUniqueTargetGroupsPerLoadBalancerException = TooManyUniqueTargetGroupsPerLoadBalancerException; -class UnsupportedProtocolException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "UnsupportedProtocolException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedProtocolException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedProtocolException.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedProtocolException = UnsupportedProtocolException; -exports.IpAddressType = { - DUALSTACK: "dualstack", - IPV4: "ipv4", +exports.se_PutAttributesCommand = se_PutAttributesCommand; +const se_PutClusterCapacityProvidersCommand = async (input, context) => { + const headers = sharedHeaders("PutClusterCapacityProviders"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.LoadBalancerSchemeEnum = { - INTERNAL: "internal", - INTERNET_FACING: "internet-facing", +exports.se_PutClusterCapacityProvidersCommand = se_PutClusterCapacityProvidersCommand; +const se_RegisterContainerInstanceCommand = async (input, context) => { + const headers = sharedHeaders("RegisterContainerInstance"); + let body; + body = JSON.stringify(se_RegisterContainerInstanceRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.LoadBalancerTypeEnum = { - APPLICATION: "application", - GATEWAY: "gateway", - NETWORK: "network", +exports.se_RegisterContainerInstanceCommand = se_RegisterContainerInstanceCommand; +const se_RegisterTaskDefinitionCommand = async (input, context) => { + const headers = sharedHeaders("RegisterTaskDefinition"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.LoadBalancerStateEnum = { - ACTIVE: "active", - ACTIVE_IMPAIRED: "active_impaired", - FAILED: "failed", - PROVISIONING: "provisioning", +exports.se_RegisterTaskDefinitionCommand = se_RegisterTaskDefinitionCommand; +const se_RunTaskCommand = async (input, context) => { + const headers = sharedHeaders("RunTask"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -class DuplicateLoadBalancerNameException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "DuplicateLoadBalancerNameException", - $fault: "client", - ...opts, - }); - this.name = "DuplicateLoadBalancerNameException"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateLoadBalancerNameException.prototype); - this.Message = opts.Message; - } -} -exports.DuplicateLoadBalancerNameException = DuplicateLoadBalancerNameException; -class InvalidSchemeException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "InvalidSchemeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidSchemeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidSchemeException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidSchemeException = InvalidSchemeException; -class InvalidSecurityGroupException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "InvalidSecurityGroupException", - $fault: "client", - ...opts, - }); - this.name = "InvalidSecurityGroupException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidSecurityGroupException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidSecurityGroupException = InvalidSecurityGroupException; -class InvalidSubnetException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "InvalidSubnetException", - $fault: "client", - ...opts, - }); - this.name = "InvalidSubnetException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidSubnetException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidSubnetException = InvalidSubnetException; -class OperationNotPermittedException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "OperationNotPermittedException", - $fault: "client", - ...opts, - }); - this.name = "OperationNotPermittedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OperationNotPermittedException.prototype); - this.Message = opts.Message; - } -} -exports.OperationNotPermittedException = OperationNotPermittedException; -class ResourceInUseException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "ResourceInUseException", - $fault: "client", - ...opts, - }); - this.name = "ResourceInUseException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceInUseException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceInUseException = ResourceInUseException; -class SubnetNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "SubnetNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "SubnetNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, SubnetNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.SubnetNotFoundException = SubnetNotFoundException; -class TooManyLoadBalancersException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TooManyLoadBalancersException", - $fault: "client", - ...opts, - }); - this.name = "TooManyLoadBalancersException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyLoadBalancersException.prototype); - this.Message = opts.Message; - } -} -exports.TooManyLoadBalancersException = TooManyLoadBalancersException; -class PriorityInUseException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "PriorityInUseException", - $fault: "client", - ...opts, - }); - this.name = "PriorityInUseException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PriorityInUseException.prototype); - this.Message = opts.Message; - } -} -exports.PriorityInUseException = PriorityInUseException; -class TooManyRulesException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TooManyRulesException", - $fault: "client", - ...opts, - }); - this.name = "TooManyRulesException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyRulesException.prototype); - this.Message = opts.Message; - } -} -exports.TooManyRulesException = TooManyRulesException; -class TooManyTargetGroupsException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "TooManyTargetGroupsException", - $fault: "client", - ...opts, - }); - this.name = "TooManyTargetGroupsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyTargetGroupsException.prototype); - this.Message = opts.Message; - } -} -exports.TooManyTargetGroupsException = TooManyTargetGroupsException; -exports.TargetGroupIpAddressTypeEnum = { - IPV4: "ipv4", - IPV6: "ipv6", +exports.se_RunTaskCommand = se_RunTaskCommand; +const se_StartTaskCommand = async (input, context) => { + const headers = sharedHeaders("StartTask"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.TargetTypeEnum = { - ALB: "alb", - INSTANCE: "instance", - IP: "ip", - LAMBDA: "lambda", +exports.se_StartTaskCommand = se_StartTaskCommand; +const se_StopTaskCommand = async (input, context) => { + const headers = sharedHeaders("StopTask"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -class DuplicateTargetGroupNameException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "DuplicateTargetGroupNameException", - $fault: "client", - ...opts, - }); - this.name = "DuplicateTargetGroupNameException"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateTargetGroupNameException.prototype); - this.Message = opts.Message; - } -} -exports.DuplicateTargetGroupNameException = DuplicateTargetGroupNameException; -class InvalidTargetException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "InvalidTargetException", - $fault: "client", - ...opts, - }); - this.name = "InvalidTargetException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTargetException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidTargetException = InvalidTargetException; -exports.TargetHealthReasonEnum = { - DEREGISTRATION_IN_PROGRESS: "Target.DeregistrationInProgress", - FAILED_HEALTH_CHECKS: "Target.FailedHealthChecks", - HEALTH_CHECK_DISABLED: "Target.HealthCheckDisabled", - INITIAL_HEALTH_CHECKING: "Elb.InitialHealthChecking", - INTERNAL_ERROR: "Elb.InternalError", - INVALID_STATE: "Target.InvalidState", - IP_UNUSABLE: "Target.IpUnusable", - NOT_IN_USE: "Target.NotInUse", - NOT_REGISTERED: "Target.NotRegistered", - REGISTRATION_IN_PROGRESS: "Elb.RegistrationInProgress", - RESPONSE_CODE_MISMATCH: "Target.ResponseCodeMismatch", - TIMEOUT: "Target.Timeout", +exports.se_StopTaskCommand = se_StopTaskCommand; +const se_SubmitAttachmentStateChangesCommand = async (input, context) => { + const headers = sharedHeaders("SubmitAttachmentStateChanges"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.TargetHealthStateEnum = { - DRAINING: "draining", - HEALTHY: "healthy", - INITIAL: "initial", - UNAVAILABLE: "unavailable", - UNHEALTHY: "unhealthy", - UNUSED: "unused", +exports.se_SubmitAttachmentStateChangesCommand = se_SubmitAttachmentStateChangesCommand; +const se_SubmitContainerStateChangeCommand = async (input, context) => { + const headers = sharedHeaders("SubmitContainerStateChange"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -class HealthUnavailableException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { - constructor(opts) { - super({ - name: "HealthUnavailableException", - $fault: "server", - ...opts, - }); - this.name = "HealthUnavailableException"; - this.$fault = "server"; - Object.setPrototypeOf(this, HealthUnavailableException.prototype); - this.Message = opts.Message; - } -} -exports.HealthUnavailableException = HealthUnavailableException; -exports.EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum = { - off: "off", - on: "on", +exports.se_SubmitContainerStateChangeCommand = se_SubmitContainerStateChangeCommand; +const se_SubmitTaskStateChangeCommand = async (input, context) => { + const headers = sharedHeaders("SubmitTaskStateChange"); + let body; + body = JSON.stringify(se_SubmitTaskStateChangeRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; - - -/***/ }), - -/***/ 386: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeListeners = void 0; -const DescribeListenersCommand_1 = __nccwpck_require__(76871); -const ElasticLoadBalancingV2Client_1 = __nccwpck_require__(72577); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeListenersCommand_1.DescribeListenersCommand(input), ...args); +exports.se_SubmitTaskStateChangeCommand = se_SubmitTaskStateChangeCommand; +const se_TagResourceCommand = async (input, context) => { + const headers = sharedHeaders("TagResource"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -async function* paginateDescribeListeners(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.Marker = token; - if (config.client instanceof ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ElasticLoadBalancingV2 | ElasticLoadBalancingV2Client"); - } - yield page; - const prevToken = token; - token = page.NextMarker; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeListeners = paginateDescribeListeners; - - -/***/ }), - -/***/ 30854: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeLoadBalancers = void 0; -const DescribeLoadBalancersCommand_1 = __nccwpck_require__(85295); -const ElasticLoadBalancingV2Client_1 = __nccwpck_require__(72577); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand(input), ...args); +exports.se_TagResourceCommand = se_TagResourceCommand; +const se_UntagResourceCommand = async (input, context) => { + const headers = sharedHeaders("UntagResource"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -async function* paginateDescribeLoadBalancers(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.Marker = token; - if (config.client instanceof ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ElasticLoadBalancingV2 | ElasticLoadBalancingV2Client"); - } - yield page; - const prevToken = token; - token = page.NextMarker; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeLoadBalancers = paginateDescribeLoadBalancers; - - -/***/ }), - -/***/ 36784: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeTargetGroups = void 0; -const DescribeTargetGroupsCommand_1 = __nccwpck_require__(17626); -const ElasticLoadBalancingV2Client_1 = __nccwpck_require__(72577); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeTargetGroupsCommand_1.DescribeTargetGroupsCommand(input), ...args); +exports.se_UntagResourceCommand = se_UntagResourceCommand; +const se_UpdateCapacityProviderCommand = async (input, context) => { + const headers = sharedHeaders("UpdateCapacityProvider"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -async function* paginateDescribeTargetGroups(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.Marker = token; - if (config.client instanceof ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ElasticLoadBalancingV2 | ElasticLoadBalancingV2Client"); - } - yield page; - const prevToken = token; - token = page.NextMarker; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeTargetGroups = paginateDescribeTargetGroups; - - -/***/ }), - -/***/ 46914: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 55649: -/***/ ((__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__(386), exports); -tslib_1.__exportStar(__nccwpck_require__(30854), exports); -tslib_1.__exportStar(__nccwpck_require__(36784), exports); -tslib_1.__exportStar(__nccwpck_require__(46914), exports); - - -/***/ }), - -/***/ 60483: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.de_DescribeLoadBalancersCommand = exports.de_DescribeLoadBalancerAttributesCommand = exports.de_DescribeListenersCommand = exports.de_DescribeListenerCertificatesCommand = exports.de_DescribeAccountLimitsCommand = exports.de_DeregisterTargetsCommand = exports.de_DeleteTargetGroupCommand = exports.de_DeleteRuleCommand = exports.de_DeleteLoadBalancerCommand = exports.de_DeleteListenerCommand = exports.de_CreateTargetGroupCommand = exports.de_CreateRuleCommand = exports.de_CreateLoadBalancerCommand = exports.de_CreateListenerCommand = exports.de_AddTagsCommand = exports.de_AddListenerCertificatesCommand = exports.se_SetSubnetsCommand = exports.se_SetSecurityGroupsCommand = exports.se_SetRulePrioritiesCommand = exports.se_SetIpAddressTypeCommand = exports.se_RemoveTagsCommand = exports.se_RemoveListenerCertificatesCommand = exports.se_RegisterTargetsCommand = exports.se_ModifyTargetGroupAttributesCommand = exports.se_ModifyTargetGroupCommand = exports.se_ModifyRuleCommand = exports.se_ModifyLoadBalancerAttributesCommand = exports.se_ModifyListenerCommand = exports.se_DescribeTargetHealthCommand = exports.se_DescribeTargetGroupsCommand = exports.se_DescribeTargetGroupAttributesCommand = exports.se_DescribeTagsCommand = exports.se_DescribeSSLPoliciesCommand = exports.se_DescribeRulesCommand = exports.se_DescribeLoadBalancersCommand = exports.se_DescribeLoadBalancerAttributesCommand = exports.se_DescribeListenersCommand = exports.se_DescribeListenerCertificatesCommand = exports.se_DescribeAccountLimitsCommand = exports.se_DeregisterTargetsCommand = exports.se_DeleteTargetGroupCommand = exports.se_DeleteRuleCommand = exports.se_DeleteLoadBalancerCommand = exports.se_DeleteListenerCommand = exports.se_CreateTargetGroupCommand = exports.se_CreateRuleCommand = exports.se_CreateLoadBalancerCommand = exports.se_CreateListenerCommand = exports.se_AddTagsCommand = exports.se_AddListenerCertificatesCommand = void 0; -exports.de_SetSubnetsCommand = exports.de_SetSecurityGroupsCommand = exports.de_SetRulePrioritiesCommand = exports.de_SetIpAddressTypeCommand = exports.de_RemoveTagsCommand = exports.de_RemoveListenerCertificatesCommand = exports.de_RegisterTargetsCommand = exports.de_ModifyTargetGroupAttributesCommand = exports.de_ModifyTargetGroupCommand = exports.de_ModifyRuleCommand = exports.de_ModifyLoadBalancerAttributesCommand = exports.de_ModifyListenerCommand = exports.de_DescribeTargetHealthCommand = exports.de_DescribeTargetGroupsCommand = exports.de_DescribeTargetGroupAttributesCommand = exports.de_DescribeTagsCommand = exports.de_DescribeSSLPoliciesCommand = exports.de_DescribeRulesCommand = void 0; -const protocol_http_1 = __nccwpck_require__(64418); -const smithy_client_1 = __nccwpck_require__(63570); -const fast_xml_parser_1 = __nccwpck_require__(12603); -const ElasticLoadBalancingV2ServiceException_1 = __nccwpck_require__(8182); -const models_0_1 = __nccwpck_require__(72907); -const se_AddListenerCertificatesCommand = async (input, context) => { - const headers = SHARED_HEADERS; +exports.se_UpdateCapacityProviderCommand = se_UpdateCapacityProviderCommand; +const se_UpdateClusterCommand = async (input, context) => { + const headers = sharedHeaders("UpdateCluster"); let body; - body = buildFormUrlencodedString({ - ...se_AddListenerCertificatesInput(input, context), - Action: "AddListenerCertificates", - Version: "2015-12-01", - }); + body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.se_AddListenerCertificatesCommand = se_AddListenerCertificatesCommand; -const se_AddTagsCommand = async (input, context) => { - const headers = SHARED_HEADERS; +exports.se_UpdateClusterCommand = se_UpdateClusterCommand; +const se_UpdateClusterSettingsCommand = async (input, context) => { + const headers = sharedHeaders("UpdateClusterSettings"); let body; - body = buildFormUrlencodedString({ - ...se_AddTagsInput(input, context), - Action: "AddTags", - Version: "2015-12-01", - }); + body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.se_AddTagsCommand = se_AddTagsCommand; -const se_CreateListenerCommand = async (input, context) => { - const headers = SHARED_HEADERS; +exports.se_UpdateClusterSettingsCommand = se_UpdateClusterSettingsCommand; +const se_UpdateContainerAgentCommand = async (input, context) => { + const headers = sharedHeaders("UpdateContainerAgent"); let body; - body = buildFormUrlencodedString({ - ...se_CreateListenerInput(input, context), - Action: "CreateListener", - Version: "2015-12-01", - }); + body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.se_CreateListenerCommand = se_CreateListenerCommand; -const se_CreateLoadBalancerCommand = async (input, context) => { - const headers = SHARED_HEADERS; +exports.se_UpdateContainerAgentCommand = se_UpdateContainerAgentCommand; +const se_UpdateContainerInstancesStateCommand = async (input, context) => { + const headers = sharedHeaders("UpdateContainerInstancesState"); let body; - body = buildFormUrlencodedString({ - ...se_CreateLoadBalancerInput(input, context), - Action: "CreateLoadBalancer", - Version: "2015-12-01", - }); + body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.se_CreateLoadBalancerCommand = se_CreateLoadBalancerCommand; -const se_CreateRuleCommand = async (input, context) => { - const headers = SHARED_HEADERS; +exports.se_UpdateContainerInstancesStateCommand = se_UpdateContainerInstancesStateCommand; +const se_UpdateServiceCommand = async (input, context) => { + const headers = sharedHeaders("UpdateService"); let body; - body = buildFormUrlencodedString({ - ...se_CreateRuleInput(input, context), - Action: "CreateRule", - Version: "2015-12-01", - }); + body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.se_CreateRuleCommand = se_CreateRuleCommand; -const se_CreateTargetGroupCommand = async (input, context) => { - const headers = SHARED_HEADERS; +exports.se_UpdateServiceCommand = se_UpdateServiceCommand; +const se_UpdateServicePrimaryTaskSetCommand = async (input, context) => { + const headers = sharedHeaders("UpdateServicePrimaryTaskSet"); let body; - body = buildFormUrlencodedString({ - ...se_CreateTargetGroupInput(input, context), - Action: "CreateTargetGroup", - Version: "2015-12-01", - }); + body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -exports.se_CreateTargetGroupCommand = se_CreateTargetGroupCommand; -const se_DeleteListenerCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DeleteListenerInput(input, context), - Action: "DeleteListener", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.se_UpdateServicePrimaryTaskSetCommand = se_UpdateServicePrimaryTaskSetCommand; +const se_UpdateTaskProtectionCommand = async (input, context) => { + const headers = sharedHeaders("UpdateTaskProtection"); + let body; + body = JSON.stringify((0, smithy_client_1._json)(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_UpdateTaskProtectionCommand = se_UpdateTaskProtectionCommand; +const se_UpdateTaskSetCommand = async (input, context) => { + const headers = sharedHeaders("UpdateTaskSet"); + let body; + body = JSON.stringify(se_UpdateTaskSetRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_UpdateTaskSetCommand = se_UpdateTaskSetCommand; +const de_CreateCapacityProviderCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_CreateCapacityProviderCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = (0, smithy_client_1._json)(data); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_CreateCapacityProviderCommand = de_CreateCapacityProviderCommand; +const de_CreateCapacityProviderCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = 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); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; +const de_CreateClusterCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_CreateClusterCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = (0, smithy_client_1._json)(data); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_CreateClusterCommand = de_CreateClusterCommand; +const de_CreateClusterCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = 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 "NamespaceNotFoundException": + case "com.amazonaws.ecs#NamespaceNotFoundException": + throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; +const de_CreateServiceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_CreateServiceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_CreateServiceResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_CreateServiceCommand = de_CreateServiceCommand; +const de_CreateServiceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "NamespaceNotFoundException": + case "com.amazonaws.ecs#NamespaceNotFoundException": + throw await de_NamespaceNotFoundExceptionRes(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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + case "UnsupportedFeatureException": + case "com.amazonaws.ecs#UnsupportedFeatureException": + throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; +const de_CreateTaskSetCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_CreateTaskSetCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_CreateTaskSetResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_CreateTaskSetCommand = de_CreateTaskSetCommand; +const de_CreateTaskSetCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "NamespaceNotFoundException": + case "com.amazonaws.ecs#NamespaceNotFoundException": + throw await de_NamespaceNotFoundExceptionRes(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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(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 "UnsupportedFeatureException": + case "com.amazonaws.ecs#UnsupportedFeatureException": + throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; +const de_DeleteAccountSettingCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteAccountSettingCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = (0, smithy_client_1._json)(data); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DeleteAccountSettingCommand = de_DeleteAccountSettingCommand; +const de_DeleteAccountSettingCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; +const de_DeleteAttributesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteAttributesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = (0, smithy_client_1._json)(data); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DeleteAttributesCommand = de_DeleteAttributesCommand; +const de_DeleteAttributesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "TargetNotFoundException": + case "com.amazonaws.ecs#TargetNotFoundException": + throw await de_TargetNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; +const de_DeleteCapacityProviderCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteCapacityProviderCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = (0, smithy_client_1._json)(data); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DeleteCapacityProviderCommand = de_DeleteCapacityProviderCommand; +const de_DeleteCapacityProviderCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; +const de_DeleteClusterCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteClusterCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = (0, smithy_client_1._json)(data); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_DeleteListenerCommand = se_DeleteListenerCommand; -const se_DeleteLoadBalancerCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DeleteLoadBalancerInput(input, context), - Action: "DeleteLoadBalancer", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DeleteClusterCommand = de_DeleteClusterCommand; +const de_DeleteClusterCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(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 "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(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); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_DeleteLoadBalancerCommand = se_DeleteLoadBalancerCommand; -const se_DeleteRuleCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DeleteRuleInput(input, context), - Action: "DeleteRule", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DeleteServiceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteServiceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DeleteServiceResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_DeleteRuleCommand = se_DeleteRuleCommand; -const se_DeleteTargetGroupCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DeleteTargetGroupInput(input, context), - Action: "DeleteTargetGroup", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DeleteServiceCommand = de_DeleteServiceCommand; +const de_DeleteServiceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + case "ServiceNotFoundException": + case "com.amazonaws.ecs#ServiceNotFoundException": + throw await de_ServiceNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_DeleteTargetGroupCommand = se_DeleteTargetGroupCommand; -const se_DeregisterTargetsCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DeregisterTargetsInput(input, context), - Action: "DeregisterTargets", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DeleteTaskDefinitionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteTaskDefinitionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DeleteTaskDefinitionsResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_DeregisterTargetsCommand = se_DeregisterTargetsCommand; -const se_DescribeAccountLimitsCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeAccountLimitsInput(input, context), - Action: "DescribeAccountLimits", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DeleteTaskDefinitionsCommand = de_DeleteTaskDefinitionsCommand; +const de_DeleteTaskDefinitionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_DescribeAccountLimitsCommand = se_DescribeAccountLimitsCommand; -const se_DescribeListenerCertificatesCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeListenerCertificatesInput(input, context), - Action: "DescribeListenerCertificates", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DeleteTaskSetCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteTaskSetCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DeleteTaskSetResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_DescribeListenerCertificatesCommand = se_DescribeListenerCertificatesCommand; -const se_DescribeListenersCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeListenersInput(input, context), - Action: "DescribeListeners", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DeleteTaskSetCommand = de_DeleteTaskSetCommand; +const de_DeleteTaskSetCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(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 "TaskSetNotFoundException": + case "com.amazonaws.ecs#TaskSetNotFoundException": + throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context); + case "UnsupportedFeatureException": + case "com.amazonaws.ecs#UnsupportedFeatureException": + throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_DescribeListenersCommand = se_DescribeListenersCommand; -const se_DescribeLoadBalancerAttributesCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeLoadBalancerAttributesInput(input, context), - Action: "DescribeLoadBalancerAttributes", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DeregisterContainerInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeregisterContainerInstanceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DeregisterContainerInstanceResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_DescribeLoadBalancerAttributesCommand = se_DescribeLoadBalancerAttributesCommand; -const se_DescribeLoadBalancersCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeLoadBalancersInput(input, context), - Action: "DescribeLoadBalancers", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DeregisterContainerInstanceCommand = de_DeregisterContainerInstanceCommand; +const de_DeregisterContainerInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_DescribeLoadBalancersCommand = se_DescribeLoadBalancersCommand; -const se_DescribeRulesCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeRulesInput(input, context), - Action: "DescribeRules", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DeregisterTaskDefinitionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeregisterTaskDefinitionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DeregisterTaskDefinitionResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_DescribeRulesCommand = se_DescribeRulesCommand; -const se_DescribeSSLPoliciesCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeSSLPoliciesInput(input, context), - Action: "DescribeSSLPolicies", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DeregisterTaskDefinitionCommand = de_DeregisterTaskDefinitionCommand; +const de_DeregisterTaskDefinitionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_DescribeSSLPoliciesCommand = se_DescribeSSLPoliciesCommand; -const se_DescribeTagsCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeTagsInput(input, context), - Action: "DescribeTags", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DescribeCapacityProvidersCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeCapacityProvidersCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = (0, smithy_client_1._json)(data); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_DescribeTagsCommand = se_DescribeTagsCommand; -const se_DescribeTargetGroupAttributesCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeTargetGroupAttributesInput(input, context), - Action: "DescribeTargetGroupAttributes", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DescribeCapacityProvidersCommand = de_DescribeCapacityProvidersCommand; +const de_DescribeCapacityProvidersCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_DescribeTargetGroupAttributesCommand = se_DescribeTargetGroupAttributesCommand; -const se_DescribeTargetGroupsCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeTargetGroupsInput(input, context), - Action: "DescribeTargetGroups", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DescribeClustersCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeClustersCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = (0, smithy_client_1._json)(data); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_DescribeTargetGroupsCommand = se_DescribeTargetGroupsCommand; -const se_DescribeTargetHealthCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DescribeTargetHealthInput(input, context), - Action: "DescribeTargetHealth", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DescribeClustersCommand = de_DescribeClustersCommand; +const de_DescribeClustersCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_DescribeTargetHealthCommand = se_DescribeTargetHealthCommand; -const se_ModifyListenerCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_ModifyListenerInput(input, context), - Action: "ModifyListener", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DescribeContainerInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeContainerInstancesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeContainerInstancesResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_ModifyListenerCommand = se_ModifyListenerCommand; -const se_ModifyLoadBalancerAttributesCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_ModifyLoadBalancerAttributesInput(input, context), - Action: "ModifyLoadBalancerAttributes", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DescribeContainerInstancesCommand = de_DescribeContainerInstancesCommand; +const de_DescribeContainerInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_ModifyLoadBalancerAttributesCommand = se_ModifyLoadBalancerAttributesCommand; -const se_ModifyRuleCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_ModifyRuleInput(input, context), - Action: "ModifyRule", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DescribeServicesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeServicesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeServicesResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_ModifyRuleCommand = se_ModifyRuleCommand; -const se_ModifyTargetGroupCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_ModifyTargetGroupInput(input, context), - Action: "ModifyTargetGroup", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DescribeServicesCommand = de_DescribeServicesCommand; +const de_DescribeServicesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_ModifyTargetGroupCommand = se_ModifyTargetGroupCommand; -const se_ModifyTargetGroupAttributesCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_ModifyTargetGroupAttributesInput(input, context), - Action: "ModifyTargetGroupAttributes", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DescribeTaskDefinitionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeTaskDefinitionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeTaskDefinitionResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_ModifyTargetGroupAttributesCommand = se_ModifyTargetGroupAttributesCommand; -const se_RegisterTargetsCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_RegisterTargetsInput(input, context), - Action: "RegisterTargets", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DescribeTaskDefinitionCommand = de_DescribeTaskDefinitionCommand; +const de_DescribeTaskDefinitionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_RegisterTargetsCommand = se_RegisterTargetsCommand; -const se_RemoveListenerCertificatesCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_RemoveListenerCertificatesInput(input, context), - Action: "RemoveListenerCertificates", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DescribeTasksCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeTasksCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeTasksResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_RemoveListenerCertificatesCommand = se_RemoveListenerCertificatesCommand; -const se_RemoveTagsCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_RemoveTagsInput(input, context), - Action: "RemoveTags", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DescribeTasksCommand = de_DescribeTasksCommand; +const de_DescribeTasksCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_RemoveTagsCommand = se_RemoveTagsCommand; -const se_SetIpAddressTypeCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_SetIpAddressTypeInput(input, context), - Action: "SetIpAddressType", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DescribeTaskSetsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeTaskSetsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeTaskSetsResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_SetIpAddressTypeCommand = se_SetIpAddressTypeCommand; -const se_SetRulePrioritiesCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_SetRulePrioritiesInput(input, context), - Action: "SetRulePriorities", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DescribeTaskSetsCommand = de_DescribeTaskSetsCommand; +const de_DescribeTaskSetsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(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 "UnsupportedFeatureException": + case "com.amazonaws.ecs#UnsupportedFeatureException": + throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_SetRulePrioritiesCommand = se_SetRulePrioritiesCommand; -const se_SetSecurityGroupsCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_SetSecurityGroupsInput(input, context), - Action: "SetSecurityGroups", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const de_DiscoverPollEndpointCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DiscoverPollEndpointCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = (0, smithy_client_1._json)(data); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_SetSecurityGroupsCommand = se_SetSecurityGroupsCommand; -const se_SetSubnetsCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_SetSubnetsInput(input, context), - Action: "SetSubnets", - Version: "2015-12-01", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +exports.de_DiscoverPollEndpointCommand = de_DiscoverPollEndpointCommand; +const de_DiscoverPollEndpointCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -exports.se_SetSubnetsCommand = se_SetSubnetsCommand; -const de_AddListenerCertificatesCommand = async (output, context) => { +const de_ExecuteCommandCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_AddListenerCertificatesCommandError(output, context); + return de_ExecuteCommandCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_AddListenerCertificatesOutput(data.AddListenerCertificatesResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_AddListenerCertificatesCommand = de_AddListenerCertificatesCommand; -const de_AddListenerCertificatesCommandError = async (output, context) => { +exports.de_ExecuteCommandCommand = de_ExecuteCommandCommand; +const de_ExecuteCommandCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "CertificateNotFound": - case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException": - throw await de_CertificateNotFoundExceptionRes(parsedOutput, context); - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); - case "TooManyCertificates": - case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException": - throw await de_TooManyCertificatesExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + case "TargetNotConnectedException": + case "com.amazonaws.ecs#TargetNotConnectedException": + throw await de_TargetNotConnectedExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_AddTagsCommand = async (output, context) => { +const de_GetTaskProtectionCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_AddTagsCommandError(output, context); + return de_GetTaskProtectionCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_AddTagsOutput(data.AddTagsResult, context); + contents = de_GetTaskProtectionResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_AddTagsCommand = de_AddTagsCommand; -const de_AddTagsCommandError = async (output, context) => { +exports.de_GetTaskProtectionCommand = de_GetTaskProtectionCommand; +const de_GetTaskProtectionCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "DuplicateTagKeys": - case "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException": - throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context); - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); - case "RuleNotFound": - case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": - throw await de_RuleNotFoundExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); - case "TooManyTags": - case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": - throw await de_TooManyTagsExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.ecs#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + case "UnsupportedFeatureException": + case "com.amazonaws.ecs#UnsupportedFeatureException": + throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_CreateListenerCommand = async (output, context) => { +const de_ListAccountSettingsCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_CreateListenerCommandError(output, context); + return de_ListAccountSettingsCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_CreateListenerOutput(data.CreateListenerResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_CreateListenerCommand = de_CreateListenerCommand; -const de_CreateListenerCommandError = async (output, context) => { +exports.de_ListAccountSettingsCommand = de_ListAccountSettingsCommand; +const de_ListAccountSettingsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; +const de_ListAttributesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_ListAttributesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = (0, smithy_client_1._json)(data); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_ListAttributesCommand = de_ListAttributesCommand; +const de_ListAttributesCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ALPNPolicyNotFound": - case "com.amazonaws.elasticloadbalancingv2#ALPNPolicyNotSupportedException": - throw await de_ALPNPolicyNotSupportedExceptionRes(parsedOutput, context); - case "CertificateNotFound": - case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException": - throw await de_CertificateNotFoundExceptionRes(parsedOutput, context); - case "DuplicateListener": - case "com.amazonaws.elasticloadbalancingv2#DuplicateListenerException": - throw await de_DuplicateListenerExceptionRes(parsedOutput, context); - case "IncompatibleProtocols": - case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException": - throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context); - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "InvalidLoadBalancerAction": - case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException": - throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context); - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); - case "SSLPolicyNotFound": - case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException": - throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context); - case "TargetGroupAssociationLimit": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException": - throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); - case "TooManyActions": - case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException": - throw await de_TooManyActionsExceptionRes(parsedOutput, context); - case "TooManyCertificates": - case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException": - throw await de_TooManyCertificatesExceptionRes(parsedOutput, context); - case "TooManyListeners": - case "com.amazonaws.elasticloadbalancingv2#TooManyListenersException": - throw await de_TooManyListenersExceptionRes(parsedOutput, context); - case "TooManyRegistrationsForTargetId": - case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": - throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context); - case "TooManyTags": - case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": - throw await de_TooManyTagsExceptionRes(parsedOutput, context); - case "TooManyTargets": - case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": - throw await de_TooManyTargetsExceptionRes(parsedOutput, context); - case "TooManyUniqueTargetGroupsPerLoadBalancer": - case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException": - throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context); - case "UnsupportedProtocol": - case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": - throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_CreateLoadBalancerCommand = async (output, context) => { +const de_ListClustersCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_CreateLoadBalancerCommandError(output, context); + return de_ListClustersCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_CreateLoadBalancerOutput(data.CreateLoadBalancerResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_CreateLoadBalancerCommand = de_CreateLoadBalancerCommand; -const de_CreateLoadBalancerCommandError = async (output, context) => { +exports.de_ListClustersCommand = de_ListClustersCommand; +const de_ListClustersCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AllocationIdNotFound": - case "com.amazonaws.elasticloadbalancingv2#AllocationIdNotFoundException": - throw await de_AllocationIdNotFoundExceptionRes(parsedOutput, context); - case "AvailabilityZoneNotSupported": - case "com.amazonaws.elasticloadbalancingv2#AvailabilityZoneNotSupportedException": - throw await de_AvailabilityZoneNotSupportedExceptionRes(parsedOutput, context); - case "DuplicateLoadBalancerName": - case "com.amazonaws.elasticloadbalancingv2#DuplicateLoadBalancerNameException": - throw await de_DuplicateLoadBalancerNameExceptionRes(parsedOutput, context); - case "DuplicateTagKeys": - case "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException": - throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context); - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "InvalidScheme": - case "com.amazonaws.elasticloadbalancingv2#InvalidSchemeException": - throw await de_InvalidSchemeExceptionRes(parsedOutput, context); - case "InvalidSecurityGroup": - case "com.amazonaws.elasticloadbalancingv2#InvalidSecurityGroupException": - throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context); - case "InvalidSubnet": - case "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException": - throw await de_InvalidSubnetExceptionRes(parsedOutput, context); - case "OperationNotPermitted": - case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": - throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); - case "ResourceInUse": - case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException": - throw await de_ResourceInUseExceptionRes(parsedOutput, context); - case "SubnetNotFound": - case "com.amazonaws.elasticloadbalancingv2#SubnetNotFoundException": - throw await de_SubnetNotFoundExceptionRes(parsedOutput, context); - case "TooManyLoadBalancers": - case "com.amazonaws.elasticloadbalancingv2#TooManyLoadBalancersException": - throw await de_TooManyLoadBalancersExceptionRes(parsedOutput, context); - case "TooManyTags": - case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": - throw await de_TooManyTagsExceptionRes(parsedOutput, context); + 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_CreateRuleCommand = async (output, context) => { +const de_ListContainerInstancesCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_CreateRuleCommandError(output, context); + return de_ListContainerInstancesCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_CreateRuleOutput(data.CreateRuleResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_CreateRuleCommand = de_CreateRuleCommand; -const de_CreateRuleCommandError = async (output, context) => { +exports.de_ListContainerInstancesCommand = de_ListContainerInstancesCommand; +const de_ListContainerInstancesCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "IncompatibleProtocols": - case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException": - throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context); - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "InvalidLoadBalancerAction": - case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException": - throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context); - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); - case "PriorityInUse": - case "com.amazonaws.elasticloadbalancingv2#PriorityInUseException": - throw await de_PriorityInUseExceptionRes(parsedOutput, context); - case "TargetGroupAssociationLimit": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException": - throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); - case "TooManyActions": - case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException": - throw await de_TooManyActionsExceptionRes(parsedOutput, context); - case "TooManyRegistrationsForTargetId": - case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": - throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context); - case "TooManyRules": - case "com.amazonaws.elasticloadbalancingv2#TooManyRulesException": - throw await de_TooManyRulesExceptionRes(parsedOutput, context); - case "TooManyTags": - case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": - throw await de_TooManyTagsExceptionRes(parsedOutput, context); - case "TooManyTargetGroups": - case "com.amazonaws.elasticloadbalancingv2#TooManyTargetGroupsException": - throw await de_TooManyTargetGroupsExceptionRes(parsedOutput, context); - case "TooManyTargets": - case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": - throw await de_TooManyTargetsExceptionRes(parsedOutput, context); - case "TooManyUniqueTargetGroupsPerLoadBalancer": - case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException": - throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context); - case "UnsupportedProtocol": - case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": - throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_CreateTargetGroupCommand = async (output, context) => { +const de_ListServicesCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_CreateTargetGroupCommandError(output, context); + return de_ListServicesCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_CreateTargetGroupOutput(data.CreateTargetGroupResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_CreateTargetGroupCommand = de_CreateTargetGroupCommand; -const de_CreateTargetGroupCommandError = async (output, context) => { +exports.de_ListServicesCommand = de_ListServicesCommand; +const de_ListServicesCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "DuplicateTargetGroupName": - case "com.amazonaws.elasticloadbalancingv2#DuplicateTargetGroupNameException": - throw await de_DuplicateTargetGroupNameExceptionRes(parsedOutput, context); - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "TooManyTags": - case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": - throw await de_TooManyTagsExceptionRes(parsedOutput, context); - case "TooManyTargetGroups": - case "com.amazonaws.elasticloadbalancingv2#TooManyTargetGroupsException": - throw await de_TooManyTargetGroupsExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DeleteListenerCommand = async (output, context) => { +const de_ListServicesByNamespaceCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DeleteListenerCommandError(output, context); + return de_ListServicesByNamespaceCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DeleteListenerOutput(data.DeleteListenerResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DeleteListenerCommand = de_DeleteListenerCommand; -const de_DeleteListenerCommandError = async (output, context) => { +exports.de_ListServicesByNamespaceCommand = de_ListServicesByNamespaceCommand; +const de_ListServicesByNamespaceCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); - case "ResourceInUse": - case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException": - throw await de_ResourceInUseExceptionRes(parsedOutput, context); + 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 "NamespaceNotFoundException": + case "com.amazonaws.ecs#NamespaceNotFoundException": + throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DeleteLoadBalancerCommand = async (output, context) => { +const de_ListTagsForResourceCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DeleteLoadBalancerCommandError(output, context); + return de_ListTagsForResourceCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DeleteLoadBalancerOutput(data.DeleteLoadBalancerResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DeleteLoadBalancerCommand = de_DeleteLoadBalancerCommand; -const de_DeleteLoadBalancerCommandError = async (output, context) => { +exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand; +const de_ListTagsForResourceCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); - case "OperationNotPermitted": - case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": - throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); - case "ResourceInUse": - case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException": - throw await de_ResourceInUseExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DeleteRuleCommand = async (output, context) => { +const de_ListTaskDefinitionFamiliesCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DeleteRuleCommandError(output, context); + return de_ListTaskDefinitionFamiliesCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DeleteRuleOutput(data.DeleteRuleResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DeleteRuleCommand = de_DeleteRuleCommand; -const de_DeleteRuleCommandError = async (output, context) => { +exports.de_ListTaskDefinitionFamiliesCommand = de_ListTaskDefinitionFamiliesCommand; +const de_ListTaskDefinitionFamiliesCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "OperationNotPermitted": - case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": - throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); - case "RuleNotFound": - case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": - throw await de_RuleNotFoundExceptionRes(parsedOutput, context); + 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DeleteTargetGroupCommand = async (output, context) => { +const de_ListTaskDefinitionsCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DeleteTargetGroupCommandError(output, context); + return de_ListTaskDefinitionsCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DeleteTargetGroupOutput(data.DeleteTargetGroupResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DeleteTargetGroupCommand = de_DeleteTargetGroupCommand; -const de_DeleteTargetGroupCommandError = async (output, context) => { +exports.de_ListTaskDefinitionsCommand = de_ListTaskDefinitionsCommand; +const de_ListTaskDefinitionsCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ResourceInUse": - case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException": - throw await de_ResourceInUseExceptionRes(parsedOutput, context); + 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DeregisterTargetsCommand = async (output, context) => { +const de_ListTasksCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DeregisterTargetsCommandError(output, context); + return de_ListTasksCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DeregisterTargetsOutput(data.DeregisterTargetsResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DeregisterTargetsCommand = de_DeregisterTargetsCommand; -const de_DeregisterTargetsCommandError = async (output, context) => { +exports.de_ListTasksCommand = de_ListTasksCommand; +const de_ListTasksCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "InvalidTarget": - case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException": - throw await de_InvalidTargetExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + case "ServiceNotFoundException": + case "com.amazonaws.ecs#ServiceNotFoundException": + throw await de_ServiceNotFoundExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DescribeAccountLimitsCommand = async (output, context) => { +const de_PutAccountSettingCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeAccountLimitsCommandError(output, context); + return de_PutAccountSettingCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeAccountLimitsOutput(data.DescribeAccountLimitsResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeAccountLimitsCommand = de_DescribeAccountLimitsCommand; -const de_DescribeAccountLimitsCommandError = async (output, context) => { +exports.de_PutAccountSettingCommand = de_PutAccountSettingCommand; +const de_PutAccountSettingCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); + const errorCode = 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } }; -const de_DescribeListenerCertificatesCommand = async (output, context) => { +const de_PutAccountSettingDefaultCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeListenerCertificatesCommandError(output, context); + return de_PutAccountSettingDefaultCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeListenerCertificatesOutput(data.DescribeListenerCertificatesResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeListenerCertificatesCommand = de_DescribeListenerCertificatesCommand; -const de_DescribeListenerCertificatesCommandError = async (output, context) => { +exports.de_PutAccountSettingDefaultCommand = de_PutAccountSettingDefaultCommand; +const de_PutAccountSettingDefaultCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DescribeListenersCommand = async (output, context) => { +const de_PutAttributesCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeListenersCommandError(output, context); + return de_PutAttributesCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeListenersOutput(data.DescribeListenersResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeListenersCommand = de_DescribeListenersCommand; -const de_DescribeListenersCommandError = async (output, context) => { +exports.de_PutAttributesCommand = de_PutAttributesCommand; +const de_PutAttributesCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); - case "UnsupportedProtocol": - case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": - throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + case "AttributeLimitExceededException": + case "com.amazonaws.ecs#AttributeLimitExceededException": + throw await de_AttributeLimitExceededExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "TargetNotFoundException": + case "com.amazonaws.ecs#TargetNotFoundException": + throw await de_TargetNotFoundExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DescribeLoadBalancerAttributesCommand = async (output, context) => { +const de_PutClusterCapacityProvidersCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeLoadBalancerAttributesCommandError(output, context); + return de_PutClusterCapacityProvidersCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeLoadBalancerAttributesOutput(data.DescribeLoadBalancerAttributesResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeLoadBalancerAttributesCommand = de_DescribeLoadBalancerAttributesCommand; -const de_DescribeLoadBalancerAttributesCommandError = async (output, context) => { +exports.de_PutClusterCapacityProvidersCommand = de_PutClusterCapacityProvidersCommand; +const de_PutClusterCapacityProvidersCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.ecs#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(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); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DescribeLoadBalancersCommand = async (output, context) => { +const de_RegisterContainerInstanceCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeLoadBalancersCommandError(output, context); + return de_RegisterContainerInstanceCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeLoadBalancersOutput(data.DescribeLoadBalancersResult, context); + contents = de_RegisterContainerInstanceResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeLoadBalancersCommand = de_DescribeLoadBalancersCommand; -const de_DescribeLoadBalancersCommandError = async (output, context) => { +exports.de_RegisterContainerInstanceCommand = de_RegisterContainerInstanceCommand; +const de_RegisterContainerInstanceCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DescribeRulesCommand = async (output, context) => { +const de_RegisterTaskDefinitionCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeRulesCommandError(output, context); + return de_RegisterTaskDefinitionCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeRulesOutput(data.DescribeRulesResult, context); + contents = de_RegisterTaskDefinitionResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeRulesCommand = de_DescribeRulesCommand; -const de_DescribeRulesCommandError = async (output, context) => { +exports.de_RegisterTaskDefinitionCommand = de_RegisterTaskDefinitionCommand; +const de_RegisterTaskDefinitionCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); - case "RuleNotFound": - case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": - throw await de_RuleNotFoundExceptionRes(parsedOutput, context); - case "UnsupportedProtocol": - case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": - throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DescribeSSLPoliciesCommand = async (output, context) => { +const de_RunTaskCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeSSLPoliciesCommandError(output, context); + return de_RunTaskCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeSSLPoliciesOutput(data.DescribeSSLPoliciesResult, context); + contents = de_RunTaskResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeSSLPoliciesCommand = de_DescribeSSLPoliciesCommand; -const de_DescribeSSLPoliciesCommandError = async (output, context) => { +exports.de_RunTaskCommand = de_RunTaskCommand; +const de_RunTaskCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "SSLPolicyNotFound": - case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException": - throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BlockedException": + case "com.amazonaws.ecs#BlockedException": + throw await de_BlockedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + case "UnsupportedFeatureException": + case "com.amazonaws.ecs#UnsupportedFeatureException": + throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DescribeTagsCommand = async (output, context) => { +const de_StartTaskCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeTagsCommandError(output, context); + return de_StartTaskCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeTagsOutput(data.DescribeTagsResult, context); + contents = de_StartTaskResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeTagsCommand = de_DescribeTagsCommand; -const de_DescribeTagsCommandError = async (output, context) => { +exports.de_StartTaskCommand = de_StartTaskCommand; +const de_StartTaskCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); - case "RuleNotFound": - case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": - throw await de_RuleNotFoundExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DescribeTargetGroupAttributesCommand = async (output, context) => { +const de_StopTaskCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeTargetGroupAttributesCommandError(output, context); + return de_StopTaskCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeTargetGroupAttributesOutput(data.DescribeTargetGroupAttributesResult, context); + contents = de_StopTaskResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeTargetGroupAttributesCommand = de_DescribeTargetGroupAttributesCommand; -const de_DescribeTargetGroupAttributesCommandError = async (output, context) => { +exports.de_StopTaskCommand = de_StopTaskCommand; +const de_StopTaskCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DescribeTargetGroupsCommand = async (output, context) => { +const de_SubmitAttachmentStateChangesCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeTargetGroupsCommandError(output, context); + return de_SubmitAttachmentStateChangesCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeTargetGroupsOutput(data.DescribeTargetGroupsResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeTargetGroupsCommand = de_DescribeTargetGroupsCommand; -const de_DescribeTargetGroupsCommandError = async (output, context) => { +exports.de_SubmitAttachmentStateChangesCommand = de_SubmitAttachmentStateChangesCommand; +const de_SubmitAttachmentStateChangesCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_DescribeTargetHealthCommand = async (output, context) => { +const de_SubmitContainerStateChangeCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_DescribeTargetHealthCommandError(output, context); + return de_SubmitContainerStateChangeCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_DescribeTargetHealthOutput(data.DescribeTargetHealthResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_DescribeTargetHealthCommand = de_DescribeTargetHealthCommand; -const de_DescribeTargetHealthCommandError = async (output, context) => { +exports.de_SubmitContainerStateChangeCommand = de_SubmitContainerStateChangeCommand; +const de_SubmitContainerStateChangeCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "HealthUnavailable": - case "com.amazonaws.elasticloadbalancingv2#HealthUnavailableException": - throw await de_HealthUnavailableExceptionRes(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException": - throw await de_InvalidTargetExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_ModifyListenerCommand = async (output, context) => { +const de_SubmitTaskStateChangeCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_ModifyListenerCommandError(output, context); + return de_SubmitTaskStateChangeCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_ModifyListenerOutput(data.ModifyListenerResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_ModifyListenerCommand = de_ModifyListenerCommand; -const de_ModifyListenerCommandError = async (output, context) => { +exports.de_SubmitTaskStateChangeCommand = de_SubmitTaskStateChangeCommand; +const de_SubmitTaskStateChangeCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ALPNPolicyNotFound": - case "com.amazonaws.elasticloadbalancingv2#ALPNPolicyNotSupportedException": - throw await de_ALPNPolicyNotSupportedExceptionRes(parsedOutput, context); - case "CertificateNotFound": - case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException": - throw await de_CertificateNotFoundExceptionRes(parsedOutput, context); - case "DuplicateListener": - case "com.amazonaws.elasticloadbalancingv2#DuplicateListenerException": - throw await de_DuplicateListenerExceptionRes(parsedOutput, context); - case "IncompatibleProtocols": - case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException": - throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context); - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "InvalidLoadBalancerAction": - case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException": - throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context); - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); - case "SSLPolicyNotFound": - case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException": - throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context); - case "TargetGroupAssociationLimit": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException": - throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); - case "TooManyActions": - case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException": - throw await de_TooManyActionsExceptionRes(parsedOutput, context); - case "TooManyCertificates": - case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException": - throw await de_TooManyCertificatesExceptionRes(parsedOutput, context); - case "TooManyListeners": - case "com.amazonaws.elasticloadbalancingv2#TooManyListenersException": - throw await de_TooManyListenersExceptionRes(parsedOutput, context); - case "TooManyRegistrationsForTargetId": - case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": - throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context); - case "TooManyTargets": - case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": - throw await de_TooManyTargetsExceptionRes(parsedOutput, context); - case "TooManyUniqueTargetGroupsPerLoadBalancer": - case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException": - throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context); - case "UnsupportedProtocol": - case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": - throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_ModifyLoadBalancerAttributesCommand = async (output, context) => { +const de_TagResourceCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_ModifyLoadBalancerAttributesCommandError(output, context); + return de_TagResourceCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_ModifyLoadBalancerAttributesOutput(data.ModifyLoadBalancerAttributesResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_ModifyLoadBalancerAttributesCommand = de_ModifyLoadBalancerAttributesCommand; -const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => { +exports.de_TagResourceCommand = de_TagResourceCommand; +const de_TagResourceCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.ecs#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_ModifyRuleCommand = async (output, context) => { +const de_UntagResourceCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_ModifyRuleCommandError(output, context); + return de_UntagResourceCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_ModifyRuleOutput(data.ModifyRuleResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_ModifyRuleCommand = de_ModifyRuleCommand; -const de_ModifyRuleCommandError = async (output, context) => { +exports.de_UntagResourceCommand = de_UntagResourceCommand; +const de_UntagResourceCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "IncompatibleProtocols": - case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException": - throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context); - case "InvalidLoadBalancerAction": - case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException": - throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context); - case "OperationNotPermitted": - case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": - throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); - case "RuleNotFound": - case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": - throw await de_RuleNotFoundExceptionRes(parsedOutput, context); - case "TargetGroupAssociationLimit": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException": - throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); - case "TooManyActions": - case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException": - throw await de_TooManyActionsExceptionRes(parsedOutput, context); - case "TooManyRegistrationsForTargetId": - case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": - throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context); - case "TooManyTargets": - case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": - throw await de_TooManyTargetsExceptionRes(parsedOutput, context); - case "TooManyUniqueTargetGroupsPerLoadBalancer": - case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException": - throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context); - case "UnsupportedProtocol": - case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": - throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.ecs#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_ModifyTargetGroupCommand = async (output, context) => { +const de_UpdateCapacityProviderCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_ModifyTargetGroupCommandError(output, context); + return de_UpdateCapacityProviderCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_ModifyTargetGroupOutput(data.ModifyTargetGroupResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_ModifyTargetGroupCommand = de_ModifyTargetGroupCommand; -const de_ModifyTargetGroupCommandError = async (output, context) => { +exports.de_UpdateCapacityProviderCommand = de_UpdateCapacityProviderCommand; +const de_UpdateCapacityProviderCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + 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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_ModifyTargetGroupAttributesCommand = async (output, context) => { +const de_UpdateClusterCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_ModifyTargetGroupAttributesCommandError(output, context); + return de_UpdateClusterCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_ModifyTargetGroupAttributesOutput(data.ModifyTargetGroupAttributesResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_ModifyTargetGroupAttributesCommand = de_ModifyTargetGroupAttributesCommand; -const de_ModifyTargetGroupAttributesCommandError = async (output, context) => { +exports.de_UpdateClusterCommand = de_UpdateClusterCommand; +const de_UpdateClusterCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "NamespaceNotFoundException": + case "com.amazonaws.ecs#NamespaceNotFoundException": + throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_RegisterTargetsCommand = async (output, context) => { +const de_UpdateClusterSettingsCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_RegisterTargetsCommandError(output, context); + return de_UpdateClusterSettingsCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_RegisterTargetsOutput(data.RegisterTargetsResult, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_RegisterTargetsCommand = de_RegisterTargetsCommand; -const de_RegisterTargetsCommandError = async (output, context) => { +exports.de_UpdateClusterSettingsCommand = de_UpdateClusterSettingsCommand; +const de_UpdateClusterSettingsCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "InvalidTarget": - case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException": - throw await de_InvalidTargetExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); - case "TooManyRegistrationsForTargetId": - case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": - throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context); - case "TooManyTargets": - case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": - throw await de_TooManyTargetsExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_RemoveListenerCertificatesCommand = async (output, context) => { +const de_UpdateContainerAgentCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_RemoveListenerCertificatesCommandError(output, context); + return de_UpdateContainerAgentCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_RemoveListenerCertificatesOutput(data.RemoveListenerCertificatesResult, context); + contents = de_UpdateContainerAgentResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_RemoveListenerCertificatesCommand = de_RemoveListenerCertificatesCommand; -const de_RemoveListenerCertificatesCommandError = async (output, context) => { +exports.de_UpdateContainerAgentCommand = de_UpdateContainerAgentCommand; +const de_UpdateContainerAgentCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); - case "OperationNotPermitted": - case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": - throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(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); + 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); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_RemoveTagsCommand = async (output, context) => { +const de_UpdateContainerInstancesStateCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_RemoveTagsCommandError(output, context); + return de_UpdateContainerInstancesStateCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_RemoveTagsOutput(data.RemoveTagsResult, context); + contents = de_UpdateContainerInstancesStateResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_RemoveTagsCommand = de_RemoveTagsCommand; -const de_RemoveTagsCommandError = async (output, context) => { +exports.de_UpdateContainerInstancesStateCommand = de_UpdateContainerInstancesStateCommand; +const de_UpdateContainerInstancesStateCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ListenerNotFound": - case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": - throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); - case "RuleNotFound": - case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": - throw await de_RuleNotFoundExceptionRes(parsedOutput, context); - case "TargetGroupNotFound": - case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": - throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); - case "TooManyTags": - case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": - throw await de_TooManyTagsExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_SetIpAddressTypeCommand = async (output, context) => { +const de_UpdateServiceCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_SetIpAddressTypeCommandError(output, context); + return de_UpdateServiceCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_SetIpAddressTypeOutput(data.SetIpAddressTypeResult, context); + contents = de_UpdateServiceResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_SetIpAddressTypeCommand = de_SetIpAddressTypeCommand; -const de_SetIpAddressTypeCommandError = async (output, context) => { +exports.de_UpdateServiceCommand = de_UpdateServiceCommand; +const de_UpdateServiceCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "InvalidSubnet": - case "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException": - throw await de_InvalidSubnetExceptionRes(parsedOutput, context); - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "NamespaceNotFoundException": + case "com.amazonaws.ecs#NamespaceNotFoundException": + throw await de_NamespaceNotFoundExceptionRes(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 "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(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); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_SetRulePrioritiesCommand = async (output, context) => { +const de_UpdateServicePrimaryTaskSetCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_SetRulePrioritiesCommandError(output, context); + return de_UpdateServicePrimaryTaskSetCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_SetRulePrioritiesOutput(data.SetRulePrioritiesResult, context); + contents = de_UpdateServicePrimaryTaskSetResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_SetRulePrioritiesCommand = de_SetRulePrioritiesCommand; -const de_SetRulePrioritiesCommandError = async (output, context) => { +exports.de_UpdateServicePrimaryTaskSetCommand = de_UpdateServicePrimaryTaskSetCommand; +const de_UpdateServicePrimaryTaskSetCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "OperationNotPermitted": - case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": - throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); - case "PriorityInUse": - case "com.amazonaws.elasticloadbalancingv2#PriorityInUseException": - throw await de_PriorityInUseExceptionRes(parsedOutput, context); - case "RuleNotFound": - case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": - throw await de_RuleNotFoundExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(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 "TaskSetNotFoundException": + case "com.amazonaws.ecs#TaskSetNotFoundException": + throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context); + case "UnsupportedFeatureException": + case "com.amazonaws.ecs#UnsupportedFeatureException": + throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_SetSecurityGroupsCommand = async (output, context) => { +const de_UpdateTaskProtectionCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_SetSecurityGroupsCommandError(output, context); + return de_UpdateTaskProtectionCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_SetSecurityGroupsOutput(data.SetSecurityGroupsResult, context); + contents = de_UpdateTaskProtectionResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_SetSecurityGroupsCommand = de_SetSecurityGroupsCommand; -const de_SetSecurityGroupsCommandError = async (output, context) => { +exports.de_UpdateTaskProtectionCommand = de_UpdateTaskProtectionCommand; +const de_UpdateTaskProtectionCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "InvalidSecurityGroup": - case "com.amazonaws.elasticloadbalancingv2#InvalidSecurityGroupException": - throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context); - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.ecs#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(parsedOutput, context); + case "UnsupportedFeatureException": + case "com.amazonaws.ecs#UnsupportedFeatureException": + throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_SetSubnetsCommand = async (output, context) => { +const de_UpdateTaskSetCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_SetSubnetsCommandError(output, context); + return de_UpdateTaskSetCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_SetSubnetsOutput(data.SetSubnetsResult, context); + contents = de_UpdateTaskSetResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return response; }; -exports.de_SetSubnetsCommand = de_SetSubnetsCommand; -const de_SetSubnetsCommandError = async (output, context) => { +exports.de_UpdateTaskSetCommand = de_UpdateTaskSetCommand; +const de_UpdateTaskSetCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AllocationIdNotFound": - case "com.amazonaws.elasticloadbalancingv2#AllocationIdNotFoundException": - throw await de_AllocationIdNotFoundExceptionRes(parsedOutput, context); - case "AvailabilityZoneNotSupported": - case "com.amazonaws.elasticloadbalancingv2#AvailabilityZoneNotSupportedException": - throw await de_AvailabilityZoneNotSupportedExceptionRes(parsedOutput, context); - case "InvalidConfigurationRequest": - case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": - throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); - case "InvalidSubnet": - case "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException": - throw await de_InvalidSubnetExceptionRes(parsedOutput, context); - case "LoadBalancerNotFound": - case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": - throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); - case "SubnetNotFound": - case "com.amazonaws.elasticloadbalancingv2#SubnetNotFoundException": - throw await de_SubnetNotFoundExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.ecs#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientException": + case "com.amazonaws.ecs#ClientException": + throw await de_ClientExceptionRes(parsedOutput, context); + case "ClusterNotFoundException": + case "com.amazonaws.ecs#ClusterNotFoundException": + throw await de_ClusterNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.ecs#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "ServerException": + case "com.amazonaws.ecs#ServerException": + throw await de_ServerExceptionRes(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 "TaskSetNotFoundException": + case "com.amazonaws.ecs#TaskSetNotFoundException": + throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context); + case "UnsupportedFeatureException": + case "com.amazonaws.ecs#UnsupportedFeatureException": + throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody: parsedBody.Error, + parsedBody, errorCode, }); } }; -const de_AllocationIdNotFoundExceptionRes = async (parsedOutput, context) => { +const de_AccessDeniedExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_AllocationIdNotFoundException(body.Error, context); - const exception = new models_0_1.AllocationIdNotFoundException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_ALPNPolicyNotSupportedExceptionRes = async (parsedOutput, context) => { +const de_AttributeLimitExceededExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_ALPNPolicyNotSupportedException(body.Error, context); - const exception = new models_0_1.ALPNPolicyNotSupportedException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.AttributeLimitExceededException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_AvailabilityZoneNotSupportedExceptionRes = async (parsedOutput, context) => { +const de_BlockedExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_AvailabilityZoneNotSupportedException(body.Error, context); - const exception = new models_0_1.AvailabilityZoneNotSupportedException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.BlockedException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_CertificateNotFoundExceptionRes = async (parsedOutput, context) => { +const de_ClientExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_CertificateNotFoundException(body.Error, context); - const exception = new models_0_1.CertificateNotFoundException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.ClientException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_DuplicateListenerExceptionRes = async (parsedOutput, context) => { +const de_ClusterContainsContainerInstancesExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_DuplicateListenerException(body.Error, context); - const exception = new models_0_1.DuplicateListenerException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.ClusterContainsContainerInstancesException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_DuplicateLoadBalancerNameExceptionRes = async (parsedOutput, context) => { +const de_ClusterContainsServicesExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_DuplicateLoadBalancerNameException(body.Error, context); - const exception = new models_0_1.DuplicateLoadBalancerNameException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.ClusterContainsServicesException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_DuplicateTagKeysExceptionRes = async (parsedOutput, context) => { +const de_ClusterContainsTasksExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_DuplicateTagKeysException(body.Error, context); - const exception = new models_0_1.DuplicateTagKeysException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.ClusterContainsTasksException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_DuplicateTargetGroupNameExceptionRes = async (parsedOutput, context) => { +const de_ClusterNotFoundExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_DuplicateTargetGroupNameException(body.Error, context); - const exception = new models_0_1.DuplicateTargetGroupNameException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.ClusterNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_HealthUnavailableExceptionRes = async (parsedOutput, context) => { +const de_InvalidParameterExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_HealthUnavailableException(body.Error, context); - const exception = new models_0_1.HealthUnavailableException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.InvalidParameterException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_IncompatibleProtocolsExceptionRes = async (parsedOutput, context) => { +const de_LimitExceededExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_IncompatibleProtocolsException(body.Error, context); - const exception = new models_0_1.IncompatibleProtocolsException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.LimitExceededException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_InvalidConfigurationRequestExceptionRes = async (parsedOutput, context) => { +const de_MissingVersionExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_InvalidConfigurationRequestException(body.Error, context); - const exception = new models_0_1.InvalidConfigurationRequestException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.MissingVersionException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_InvalidLoadBalancerActionExceptionRes = async (parsedOutput, context) => { +const de_NamespaceNotFoundExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_InvalidLoadBalancerActionException(body.Error, context); - const exception = new models_0_1.InvalidLoadBalancerActionException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.NamespaceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_InvalidSchemeExceptionRes = async (parsedOutput, context) => { +const de_NoUpdateAvailableExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_InvalidSchemeException(body.Error, context); - const exception = new models_0_1.InvalidSchemeException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.NoUpdateAvailableException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_InvalidSecurityGroupExceptionRes = async (parsedOutput, context) => { +const de_PlatformTaskDefinitionIncompatibilityExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_InvalidSecurityGroupException(body.Error, context); - const exception = new models_0_1.InvalidSecurityGroupException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.PlatformTaskDefinitionIncompatibilityException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_InvalidSubnetExceptionRes = async (parsedOutput, context) => { +const de_PlatformUnknownExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_InvalidSubnetException(body.Error, context); - const exception = new models_0_1.InvalidSubnetException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.PlatformUnknownException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_InvalidTargetExceptionRes = async (parsedOutput, context) => { +const de_ResourceInUseExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_InvalidTargetException(body.Error, context); - const exception = new models_0_1.InvalidTargetException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.ResourceInUseException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_ListenerNotFoundExceptionRes = async (parsedOutput, context) => { +const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_ListenerNotFoundException(body.Error, context); - const exception = new models_0_1.ListenerNotFoundException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.ResourceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_LoadBalancerNotFoundExceptionRes = async (parsedOutput, context) => { +const de_ServerExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_LoadBalancerNotFoundException(body.Error, context); - const exception = new models_0_1.LoadBalancerNotFoundException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.ServerException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => { +const de_ServiceNotActiveExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_OperationNotPermittedException(body.Error, context); - const exception = new models_0_1.OperationNotPermittedException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.ServiceNotActiveException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_PriorityInUseExceptionRes = async (parsedOutput, context) => { +const de_ServiceNotFoundExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_PriorityInUseException(body.Error, context); - const exception = new models_0_1.PriorityInUseException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.ServiceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_ResourceInUseExceptionRes = async (parsedOutput, context) => { +const de_TargetNotConnectedExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_ResourceInUseException(body.Error, context); - const exception = new models_0_1.ResourceInUseException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.TargetNotConnectedException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_RuleNotFoundExceptionRes = async (parsedOutput, context) => { +const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_RuleNotFoundException(body.Error, context); - const exception = new models_0_1.RuleNotFoundException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.TargetNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_SSLPolicyNotFoundExceptionRes = async (parsedOutput, context) => { +const de_TaskSetNotFoundExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_SSLPolicyNotFoundException(body.Error, context); - const exception = new models_0_1.SSLPolicyNotFoundException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.TaskSetNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_SubnetNotFoundExceptionRes = async (parsedOutput, context) => { +const de_UnsupportedFeatureExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_SubnetNotFoundException(body.Error, context); - const exception = new models_0_1.SubnetNotFoundException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.UnsupportedFeatureException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TargetGroupAssociationLimitExceptionRes = async (parsedOutput, context) => { +const de_UpdateInProgressExceptionRes = async (parsedOutput, context) => { const body = parsedOutput.body; - const deserialized = de_TargetGroupAssociationLimitException(body.Error, context); - const exception = new models_0_1.TargetGroupAssociationLimitException({ + const deserialized = (0, smithy_client_1._json)(body); + const exception = new models_0_1.UpdateInProgressException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized, }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TargetGroupNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TargetGroupNotFoundException(body.Error, context); - const exception = new models_0_1.TargetGroupNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const se_CreateTaskSetRequest = (input, context) => { + return (0, smithy_client_1.take)(input, { + capacityProviderStrategy: smithy_client_1._json, + clientToken: [], + cluster: [], + externalId: [], + launchType: [], + loadBalancers: smithy_client_1._json, + networkConfiguration: smithy_client_1._json, + platformVersion: [], + scale: (_) => se_Scale(_, context), + service: [], + serviceRegistries: smithy_client_1._json, + tags: smithy_client_1._json, + taskDefinition: [], }); - return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TooManyActionsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TooManyActionsException(body.Error, context); - const exception = new models_0_1.TooManyActionsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const se_RegisterContainerInstanceRequest = (input, context) => { + return (0, smithy_client_1.take)(input, { + attributes: smithy_client_1._json, + cluster: [], + containerInstanceArn: [], + instanceIdentityDocument: [], + instanceIdentityDocumentSignature: [], + platformDevices: smithy_client_1._json, + tags: smithy_client_1._json, + totalResources: (_) => se_Resources(_, context), + versionInfo: smithy_client_1._json, }); - return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TooManyCertificatesExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TooManyCertificatesException(body.Error, context); - const exception = new models_0_1.TooManyCertificatesException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const se_Resource = (input, context) => { + return (0, smithy_client_1.take)(input, { + doubleValue: smithy_client_1.serializeFloat, + integerValue: [], + longValue: [], + name: [], + stringSetValue: smithy_client_1._json, + type: [], }); - return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TooManyListenersExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TooManyListenersException(body.Error, context); - const exception = new models_0_1.TooManyListenersException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const se_Resources = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return se_Resource(entry, context); }); - return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TooManyLoadBalancersExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TooManyLoadBalancersException(body.Error, context); - const exception = new models_0_1.TooManyLoadBalancersException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const se_Scale = (input, context) => { + return (0, smithy_client_1.take)(input, { + unit: [], + value: smithy_client_1.serializeFloat, }); - return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TooManyRegistrationsForTargetIdExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TooManyRegistrationsForTargetIdException(body.Error, context); - const exception = new models_0_1.TooManyRegistrationsForTargetIdException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const se_SubmitTaskStateChangeRequest = (input, context) => { + return (0, smithy_client_1.take)(input, { + attachments: smithy_client_1._json, + cluster: [], + containers: smithy_client_1._json, + executionStoppedAt: (_) => Math.round(_.getTime() / 1000), + managedAgents: smithy_client_1._json, + pullStartedAt: (_) => Math.round(_.getTime() / 1000), + pullStoppedAt: (_) => Math.round(_.getTime() / 1000), + reason: [], + status: [], + task: [], }); - return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TooManyRulesExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TooManyRulesException(body.Error, context); - const exception = new models_0_1.TooManyRulesException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const se_UpdateTaskSetRequest = (input, context) => { + return (0, smithy_client_1.take)(input, { + cluster: [], + scale: (_) => se_Scale(_, context), + service: [], + taskSet: [], }); - return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TooManyTagsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TooManyTagsException(body.Error, context); - const exception = new models_0_1.TooManyTagsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const de_Container = (output, context) => { + return (0, smithy_client_1.take)(output, { + containerArn: smithy_client_1.expectString, + cpu: smithy_client_1.expectString, + exitCode: smithy_client_1.expectInt32, + gpuIds: smithy_client_1._json, + healthStatus: smithy_client_1.expectString, + image: smithy_client_1.expectString, + imageDigest: smithy_client_1.expectString, + lastStatus: smithy_client_1.expectString, + managedAgents: (_) => de_ManagedAgents(_, context), + memory: smithy_client_1.expectString, + memoryReservation: smithy_client_1.expectString, + name: smithy_client_1.expectString, + networkBindings: smithy_client_1._json, + networkInterfaces: smithy_client_1._json, + reason: smithy_client_1.expectString, + runtimeId: smithy_client_1.expectString, + taskArn: smithy_client_1.expectString, }); - return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TooManyTargetGroupsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TooManyTargetGroupsException(body.Error, context); - const exception = new models_0_1.TooManyTargetGroupsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const de_ContainerInstance = (output, context) => { + return (0, smithy_client_1.take)(output, { + agentConnected: smithy_client_1.expectBoolean, + agentUpdateStatus: smithy_client_1.expectString, + attachments: smithy_client_1._json, + attributes: smithy_client_1._json, + capacityProviderName: smithy_client_1.expectString, + containerInstanceArn: smithy_client_1.expectString, + ec2InstanceId: smithy_client_1.expectString, + healthStatus: (_) => de_ContainerInstanceHealthStatus(_, context), + pendingTasksCount: smithy_client_1.expectInt32, + registeredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + registeredResources: (_) => de_Resources(_, context), + remainingResources: (_) => de_Resources(_, context), + runningTasksCount: smithy_client_1.expectInt32, + status: smithy_client_1.expectString, + statusReason: smithy_client_1.expectString, + tags: smithy_client_1._json, + version: smithy_client_1.expectLong, + versionInfo: smithy_client_1._json, }); - return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TooManyTargetsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TooManyTargetsException(body.Error, context); - const exception = new models_0_1.TooManyTargetsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const de_ContainerInstanceHealthStatus = (output, context) => { + return (0, smithy_client_1.take)(output, { + details: (_) => de_InstanceHealthCheckResultList(_, context), + overallStatus: smithy_client_1.expectString, }); - return (0, smithy_client_1.decorateServiceException)(exception, body); }; -const de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_TooManyUniqueTargetGroupsPerLoadBalancerException(body.Error, context); - const exception = new models_0_1.TooManyUniqueTargetGroupsPerLoadBalancerException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const de_ContainerInstances = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_ContainerInstance(entry, context); }); - return (0, smithy_client_1.decorateServiceException)(exception, body); + return retVal; }; -const de_UnsupportedProtocolExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_UnsupportedProtocolException(body.Error, context); - const exception = new models_0_1.UnsupportedProtocolException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, +const de_Containers = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Container(entry, context); }); - return (0, smithy_client_1.decorateServiceException)(exception, body); + return retVal; }; -const se_Action = (input, context) => { - const entries = {}; - if (input.Type != null) { - entries["Type"] = input.Type; - } - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; - } - if (input.AuthenticateOidcConfig != null) { - const memberEntries = se_AuthenticateOidcActionConfig(input.AuthenticateOidcConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `AuthenticateOidcConfig.${key}`; - entries[loc] = value; - }); - } - if (input.AuthenticateCognitoConfig != null) { - const memberEntries = se_AuthenticateCognitoActionConfig(input.AuthenticateCognitoConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `AuthenticateCognitoConfig.${key}`; - entries[loc] = value; - }); - } - if (input.Order != null) { - entries["Order"] = input.Order; - } - if (input.RedirectConfig != null) { - const memberEntries = se_RedirectActionConfig(input.RedirectConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `RedirectConfig.${key}`; - entries[loc] = value; - }); - } - if (input.FixedResponseConfig != null) { - const memberEntries = se_FixedResponseActionConfig(input.FixedResponseConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `FixedResponseConfig.${key}`; - entries[loc] = value; - }); - } - if (input.ForwardConfig != null) { - const memberEntries = se_ForwardActionConfig(input.ForwardConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `ForwardConfig.${key}`; - entries[loc] = value; - }); - } - return entries; +const de_CreateServiceResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + service: (_) => de_Service(_, context), + }); }; -const se_Actions = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_Action(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; +const de_CreateTaskSetResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + taskSet: (_) => de_TaskSet(_, context), + }); }; -const se_AddListenerCertificatesInput = (input, context) => { - const entries = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; - } - if (input.Certificates != null) { - const memberEntries = se_CertificateList(input.Certificates, context); - if (input.Certificates?.length === 0) { - entries.Certificates = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Certificates.${key}`; - entries[loc] = value; - }); - } - return entries; +const de_DeleteServiceResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + service: (_) => de_Service(_, context), + }); }; -const se_AddTagsInput = (input, context) => { - const entries = {}; - if (input.ResourceArns != null) { - const memberEntries = se_ResourceArns(input.ResourceArns, context); - if (input.ResourceArns?.length === 0) { - entries.ResourceArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `ResourceArns.${key}`; - entries[loc] = value; - }); - } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - return entries; +const de_DeleteTaskDefinitionsResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + failures: smithy_client_1._json, + taskDefinitions: (_) => de_TaskDefinitionList(_, context), + }); }; -const se_AlpnPolicyName = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; - } - return entries; +const de_DeleteTaskSetResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + taskSet: (_) => de_TaskSet(_, context), + }); }; -const se_AuthenticateCognitoActionAuthenticationRequestExtraParams = (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++; +const de_Deployment = (output, context) => { + return (0, smithy_client_1.take)(output, { + capacityProviderStrategy: smithy_client_1._json, + createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + desiredCount: smithy_client_1.expectInt32, + failedTasks: smithy_client_1.expectInt32, + id: smithy_client_1.expectString, + launchType: smithy_client_1.expectString, + networkConfiguration: smithy_client_1._json, + pendingCount: smithy_client_1.expectInt32, + platformFamily: smithy_client_1.expectString, + platformVersion: smithy_client_1.expectString, + rolloutState: smithy_client_1.expectString, + rolloutStateReason: smithy_client_1.expectString, + runningCount: smithy_client_1.expectInt32, + serviceConnectConfiguration: smithy_client_1._json, + serviceConnectResources: smithy_client_1._json, + status: smithy_client_1.expectString, + taskDefinition: smithy_client_1.expectString, + updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), }); - return entries; }; -const se_AuthenticateCognitoActionConfig = (input, context) => { - const entries = {}; - if (input.UserPoolArn != null) { - entries["UserPoolArn"] = input.UserPoolArn; - } - if (input.UserPoolClientId != null) { - entries["UserPoolClientId"] = input.UserPoolClientId; - } - if (input.UserPoolDomain != null) { - entries["UserPoolDomain"] = input.UserPoolDomain; - } - if (input.SessionCookieName != null) { - entries["SessionCookieName"] = input.SessionCookieName; - } - if (input.Scope != null) { - entries["Scope"] = input.Scope; - } - if (input.SessionTimeout != null) { - entries["SessionTimeout"] = input.SessionTimeout; - } - if (input.AuthenticationRequestExtraParams != null) { - const memberEntries = se_AuthenticateCognitoActionAuthenticationRequestExtraParams(input.AuthenticationRequestExtraParams, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `AuthenticationRequestExtraParams.${key}`; - entries[loc] = value; - }); - } - if (input.OnUnauthenticatedRequest != null) { - entries["OnUnauthenticatedRequest"] = input.OnUnauthenticatedRequest; - } - return entries; +const de_Deployments = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Deployment(entry, context); + }); + return retVal; }; -const se_AuthenticateOidcActionAuthenticationRequestExtraParams = (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++; +const de_DeregisterContainerInstanceResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + containerInstance: (_) => de_ContainerInstance(_, context), }); - return entries; }; -const se_AuthenticateOidcActionConfig = (input, context) => { - const entries = {}; - if (input.Issuer != null) { - entries["Issuer"] = input.Issuer; - } - if (input.AuthorizationEndpoint != null) { - entries["AuthorizationEndpoint"] = input.AuthorizationEndpoint; - } - if (input.TokenEndpoint != null) { - entries["TokenEndpoint"] = input.TokenEndpoint; - } - if (input.UserInfoEndpoint != null) { - entries["UserInfoEndpoint"] = input.UserInfoEndpoint; - } - if (input.ClientId != null) { - entries["ClientId"] = input.ClientId; - } - if (input.ClientSecret != null) { - entries["ClientSecret"] = input.ClientSecret; - } - if (input.SessionCookieName != null) { - entries["SessionCookieName"] = input.SessionCookieName; - } - if (input.Scope != null) { - entries["Scope"] = input.Scope; - } - if (input.SessionTimeout != null) { - entries["SessionTimeout"] = input.SessionTimeout; - } - if (input.AuthenticationRequestExtraParams != null) { - const memberEntries = se_AuthenticateOidcActionAuthenticationRequestExtraParams(input.AuthenticationRequestExtraParams, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `AuthenticationRequestExtraParams.${key}`; - entries[loc] = value; - }); - } - if (input.OnUnauthenticatedRequest != null) { - entries["OnUnauthenticatedRequest"] = input.OnUnauthenticatedRequest; - } - if (input.UseExistingClientSecret != null) { - entries["UseExistingClientSecret"] = input.UseExistingClientSecret; - } - return entries; +const de_DeregisterTaskDefinitionResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + taskDefinition: (_) => de_TaskDefinition(_, context), + }); }; -const se_Certificate = (input, context) => { - const entries = {}; - if (input.CertificateArn != null) { - entries["CertificateArn"] = input.CertificateArn; - } - if (input.IsDefault != null) { - entries["IsDefault"] = input.IsDefault; - } - return entries; +const de_DescribeContainerInstancesResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + containerInstances: (_) => de_ContainerInstances(_, context), + failures: smithy_client_1._json, + }); +}; +const de_DescribeServicesResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + failures: smithy_client_1._json, + services: (_) => de_Services(_, context), + }); +}; +const de_DescribeTaskDefinitionResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + tags: smithy_client_1._json, + taskDefinition: (_) => de_TaskDefinition(_, context), + }); +}; +const de_DescribeTaskSetsResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + failures: smithy_client_1._json, + taskSets: (_) => de_TaskSets(_, context), + }); +}; +const de_DescribeTasksResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + failures: smithy_client_1._json, + tasks: (_) => de_Tasks(_, context), + }); +}; +const de_GetTaskProtectionResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + failures: smithy_client_1._json, + protectedTasks: (_) => de_ProtectedTasks(_, context), + }); +}; +const de_InstanceHealthCheckResult = (output, context) => { + return (0, smithy_client_1.take)(output, { + lastStatusChange: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + status: smithy_client_1.expectString, + type: smithy_client_1.expectString, + }); +}; +const de_InstanceHealthCheckResultList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_InstanceHealthCheckResult(entry, context); + }); + return retVal; +}; +const de_ManagedAgent = (output, context) => { + return (0, smithy_client_1.take)(output, { + lastStartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + lastStatus: smithy_client_1.expectString, + name: smithy_client_1.expectString, + reason: smithy_client_1.expectString, + }); +}; +const de_ManagedAgents = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_ManagedAgent(entry, context); + }); + return retVal; +}; +const de_ProtectedTask = (output, context) => { + return (0, smithy_client_1.take)(output, { + expirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + protectionEnabled: smithy_client_1.expectBoolean, + taskArn: smithy_client_1.expectString, + }); +}; +const de_ProtectedTasks = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_ProtectedTask(entry, context); + }); + return retVal; +}; +const de_RegisterContainerInstanceResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + containerInstance: (_) => de_ContainerInstance(_, context), + }); +}; +const de_RegisterTaskDefinitionResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + tags: smithy_client_1._json, + taskDefinition: (_) => de_TaskDefinition(_, context), + }); +}; +const de_Resource = (output, context) => { + return (0, smithy_client_1.take)(output, { + doubleValue: smithy_client_1.limitedParseDouble, + integerValue: smithy_client_1.expectInt32, + longValue: smithy_client_1.expectLong, + name: smithy_client_1.expectString, + stringSetValue: smithy_client_1._json, + type: smithy_client_1.expectString, + }); +}; +const de_Resources = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Resource(entry, context); + }); + return retVal; }; -const se_CertificateList = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_Certificate(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; +const de_RunTaskResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + failures: smithy_client_1._json, + tasks: (_) => de_Tasks(_, context), + }); }; -const se_CreateListenerInput = (input, context) => { - const entries = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; - } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; - } - if (input.Port != null) { - entries["Port"] = input.Port; - } - if (input.SslPolicy != null) { - entries["SslPolicy"] = input.SslPolicy; - } - if (input.Certificates != null) { - const memberEntries = se_CertificateList(input.Certificates, context); - if (input.Certificates?.length === 0) { - entries.Certificates = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Certificates.${key}`; - entries[loc] = value; - }); - } - if (input.DefaultActions != null) { - const memberEntries = se_Actions(input.DefaultActions, context); - if (input.DefaultActions?.length === 0) { - entries.DefaultActions = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `DefaultActions.${key}`; - entries[loc] = value; - }); - } - if (input.AlpnPolicy != null) { - const memberEntries = se_AlpnPolicyName(input.AlpnPolicy, context); - if (input.AlpnPolicy?.length === 0) { - entries.AlpnPolicy = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `AlpnPolicy.${key}`; - entries[loc] = value; - }); - } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - return entries; +const de_Scale = (output, context) => { + return (0, smithy_client_1.take)(output, { + unit: smithy_client_1.expectString, + value: smithy_client_1.limitedParseDouble, + }); }; -const se_CreateLoadBalancerInput = (input, context) => { - const entries = {}; - if (input.Name != null) { - entries["Name"] = input.Name; - } - if (input.Subnets != null) { - const memberEntries = se_Subnets(input.Subnets, context); - if (input.Subnets?.length === 0) { - entries.Subnets = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Subnets.${key}`; - entries[loc] = value; - }); - } - if (input.SubnetMappings != null) { - const memberEntries = se_SubnetMappings(input.SubnetMappings, context); - if (input.SubnetMappings?.length === 0) { - entries.SubnetMappings = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `SubnetMappings.${key}`; - entries[loc] = value; - }); - } - if (input.SecurityGroups != null) { - const memberEntries = se_SecurityGroups(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { - entries.SecurityGroups = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `SecurityGroups.${key}`; - entries[loc] = value; - }); - } - if (input.Scheme != null) { - entries["Scheme"] = input.Scheme; - } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - if (input.Type != null) { - entries["Type"] = input.Type; - } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; - } - if (input.CustomerOwnedIpv4Pool != null) { - entries["CustomerOwnedIpv4Pool"] = input.CustomerOwnedIpv4Pool; - } - return entries; +const de_Service = (output, context) => { + return (0, smithy_client_1.take)(output, { + capacityProviderStrategy: smithy_client_1._json, + clusterArn: smithy_client_1.expectString, + createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + createdBy: smithy_client_1.expectString, + deploymentConfiguration: smithy_client_1._json, + deploymentController: smithy_client_1._json, + deployments: (_) => de_Deployments(_, context), + desiredCount: smithy_client_1.expectInt32, + enableECSManagedTags: smithy_client_1.expectBoolean, + enableExecuteCommand: smithy_client_1.expectBoolean, + events: (_) => de_ServiceEvents(_, context), + healthCheckGracePeriodSeconds: smithy_client_1.expectInt32, + launchType: smithy_client_1.expectString, + loadBalancers: smithy_client_1._json, + networkConfiguration: smithy_client_1._json, + pendingCount: smithy_client_1.expectInt32, + placementConstraints: smithy_client_1._json, + placementStrategy: smithy_client_1._json, + platformFamily: smithy_client_1.expectString, + platformVersion: smithy_client_1.expectString, + propagateTags: smithy_client_1.expectString, + roleArn: smithy_client_1.expectString, + runningCount: smithy_client_1.expectInt32, + schedulingStrategy: smithy_client_1.expectString, + serviceArn: smithy_client_1.expectString, + serviceName: smithy_client_1.expectString, + serviceRegistries: smithy_client_1._json, + status: smithy_client_1.expectString, + tags: smithy_client_1._json, + taskDefinition: smithy_client_1.expectString, + taskSets: (_) => de_TaskSets(_, context), + }); }; -const se_CreateRuleInput = (input, context) => { - const entries = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; - } - if (input.Conditions != null) { - const memberEntries = se_RuleConditionList(input.Conditions, context); - if (input.Conditions?.length === 0) { - entries.Conditions = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Conditions.${key}`; - entries[loc] = value; - }); - } - if (input.Priority != null) { - entries["Priority"] = input.Priority; - } - if (input.Actions != null) { - const memberEntries = se_Actions(input.Actions, context); - if (input.Actions?.length === 0) { - entries.Actions = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Actions.${key}`; - entries[loc] = value; - }); - } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - return entries; +const de_ServiceEvent = (output, context) => { + return (0, smithy_client_1.take)(output, { + createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + id: smithy_client_1.expectString, + message: smithy_client_1.expectString, + }); }; -const se_CreateTargetGroupInput = (input, context) => { - const entries = {}; - if (input.Name != null) { - entries["Name"] = input.Name; - } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; - } - if (input.ProtocolVersion != null) { - entries["ProtocolVersion"] = input.ProtocolVersion; - } - if (input.Port != null) { - entries["Port"] = input.Port; - } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; - } - if (input.HealthCheckProtocol != null) { - entries["HealthCheckProtocol"] = input.HealthCheckProtocol; - } - if (input.HealthCheckPort != null) { - entries["HealthCheckPort"] = input.HealthCheckPort; - } - if (input.HealthCheckEnabled != null) { - entries["HealthCheckEnabled"] = input.HealthCheckEnabled; - } - if (input.HealthCheckPath != null) { - entries["HealthCheckPath"] = input.HealthCheckPath; - } - if (input.HealthCheckIntervalSeconds != null) { - entries["HealthCheckIntervalSeconds"] = input.HealthCheckIntervalSeconds; - } - if (input.HealthCheckTimeoutSeconds != null) { - entries["HealthCheckTimeoutSeconds"] = input.HealthCheckTimeoutSeconds; - } - if (input.HealthyThresholdCount != null) { - entries["HealthyThresholdCount"] = input.HealthyThresholdCount; - } - if (input.UnhealthyThresholdCount != null) { - entries["UnhealthyThresholdCount"] = input.UnhealthyThresholdCount; - } - if (input.Matcher != null) { - const memberEntries = se_Matcher(input.Matcher, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Matcher.${key}`; - entries[loc] = value; - }); - } - if (input.TargetType != null) { - entries["TargetType"] = input.TargetType; - } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; - } - return entries; +const de_ServiceEvents = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_ServiceEvent(entry, context); + }); + return retVal; }; -const se_DeleteListenerInput = (input, context) => { - const entries = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; - } - return entries; +const de_Services = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Service(entry, context); + }); + return retVal; }; -const se_DeleteLoadBalancerInput = (input, context) => { - const entries = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; - } - return entries; +const de_StartTaskResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + failures: smithy_client_1._json, + tasks: (_) => de_Tasks(_, context), + }); }; -const se_DeleteRuleInput = (input, context) => { - const entries = {}; - if (input.RuleArn != null) { - entries["RuleArn"] = input.RuleArn; - } - return entries; +const de_StopTaskResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + task: (_) => de_Task(_, context), + }); }; -const se_DeleteTargetGroupInput = (input, context) => { - const entries = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; - } - return entries; +const de_Task = (output, context) => { + return (0, smithy_client_1.take)(output, { + attachments: smithy_client_1._json, + attributes: smithy_client_1._json, + availabilityZone: smithy_client_1.expectString, + capacityProviderName: smithy_client_1.expectString, + clusterArn: smithy_client_1.expectString, + connectivity: smithy_client_1.expectString, + connectivityAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + containerInstanceArn: smithy_client_1.expectString, + containers: (_) => de_Containers(_, context), + cpu: smithy_client_1.expectString, + createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + desiredStatus: smithy_client_1.expectString, + enableExecuteCommand: smithy_client_1.expectBoolean, + ephemeralStorage: smithy_client_1._json, + executionStoppedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + group: smithy_client_1.expectString, + healthStatus: smithy_client_1.expectString, + inferenceAccelerators: smithy_client_1._json, + lastStatus: smithy_client_1.expectString, + launchType: smithy_client_1.expectString, + memory: smithy_client_1.expectString, + overrides: smithy_client_1._json, + platformFamily: smithy_client_1.expectString, + platformVersion: smithy_client_1.expectString, + pullStartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + pullStoppedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + startedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + startedBy: smithy_client_1.expectString, + stopCode: smithy_client_1.expectString, + stoppedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + stoppedReason: smithy_client_1.expectString, + stoppingAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + tags: smithy_client_1._json, + taskArn: smithy_client_1.expectString, + taskDefinitionArn: smithy_client_1.expectString, + version: smithy_client_1.expectLong, + }); }; -const se_DeregisterTargetsInput = (input, context) => { - const entries = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; - } - if (input.Targets != null) { - const memberEntries = se_TargetDescriptions(input.Targets, context); - if (input.Targets?.length === 0) { - entries.Targets = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Targets.${key}`; - entries[loc] = value; - }); - } - return entries; +const de_TaskDefinition = (output, context) => { + return (0, smithy_client_1.take)(output, { + compatibilities: smithy_client_1._json, + containerDefinitions: smithy_client_1._json, + cpu: smithy_client_1.expectString, + deregisteredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + ephemeralStorage: smithy_client_1._json, + executionRoleArn: smithy_client_1.expectString, + family: smithy_client_1.expectString, + inferenceAccelerators: smithy_client_1._json, + ipcMode: smithy_client_1.expectString, + memory: smithy_client_1.expectString, + networkMode: smithy_client_1.expectString, + pidMode: smithy_client_1.expectString, + placementConstraints: smithy_client_1._json, + proxyConfiguration: smithy_client_1._json, + registeredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + registeredBy: smithy_client_1.expectString, + requiresAttributes: smithy_client_1._json, + requiresCompatibilities: smithy_client_1._json, + revision: smithy_client_1.expectInt32, + runtimePlatform: smithy_client_1._json, + status: smithy_client_1.expectString, + taskDefinitionArn: smithy_client_1.expectString, + taskRoleArn: smithy_client_1.expectString, + volumes: smithy_client_1._json, + }); }; -const se_DescribeAccountLimitsInput = (input, context) => { - const entries = {}; - if (input.Marker != null) { - entries["Marker"] = input.Marker; - } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; - } - return entries; +const de_TaskDefinitionList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_TaskDefinition(entry, context); + }); + return retVal; }; -const se_DescribeListenerCertificatesInput = (input, context) => { - const entries = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; - } - if (input.Marker != null) { - entries["Marker"] = input.Marker; - } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; - } - return entries; +const de_Tasks = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Task(entry, context); + }); + return retVal; }; -const se_DescribeListenersInput = (input, context) => { - const entries = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; - } - if (input.ListenerArns != null) { - const memberEntries = se_ListenerArns(input.ListenerArns, context); - if (input.ListenerArns?.length === 0) { - entries.ListenerArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `ListenerArns.${key}`; - entries[loc] = value; - }); - } - if (input.Marker != null) { - entries["Marker"] = input.Marker; - } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; - } - return entries; +const de_TaskSet = (output, context) => { + return (0, smithy_client_1.take)(output, { + capacityProviderStrategy: smithy_client_1._json, + clusterArn: smithy_client_1.expectString, + computedDesiredCount: smithy_client_1.expectInt32, + createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + externalId: smithy_client_1.expectString, + id: smithy_client_1.expectString, + launchType: smithy_client_1.expectString, + loadBalancers: smithy_client_1._json, + networkConfiguration: smithy_client_1._json, + pendingCount: smithy_client_1.expectInt32, + platformFamily: smithy_client_1.expectString, + platformVersion: smithy_client_1.expectString, + runningCount: smithy_client_1.expectInt32, + scale: (_) => de_Scale(_, context), + serviceArn: smithy_client_1.expectString, + serviceRegistries: smithy_client_1._json, + stabilityStatus: smithy_client_1.expectString, + stabilityStatusAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + startedBy: smithy_client_1.expectString, + status: smithy_client_1.expectString, + tags: smithy_client_1._json, + taskDefinition: smithy_client_1.expectString, + taskSetArn: smithy_client_1.expectString, + updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), + }); }; -const se_DescribeLoadBalancerAttributesInput = (input, context) => { - const entries = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; - } - return entries; +const de_TaskSets = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_TaskSet(entry, context); + }); + return retVal; }; -const se_DescribeLoadBalancersInput = (input, context) => { - const entries = {}; - if (input.LoadBalancerArns != null) { - const memberEntries = se_LoadBalancerArns(input.LoadBalancerArns, context); - if (input.LoadBalancerArns?.length === 0) { - entries.LoadBalancerArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `LoadBalancerArns.${key}`; - entries[loc] = value; - }); - } - if (input.Names != null) { - const memberEntries = se_LoadBalancerNames(input.Names, context); - if (input.Names?.length === 0) { - entries.Names = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Names.${key}`; - entries[loc] = value; - }); - } - if (input.Marker != null) { - entries["Marker"] = input.Marker; - } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; - } - return entries; +const de_UpdateContainerAgentResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + containerInstance: (_) => de_ContainerInstance(_, context), + }); }; -const se_DescribeRulesInput = (input, context) => { - const entries = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; - } - if (input.RuleArns != null) { - const memberEntries = se_RuleArns(input.RuleArns, context); - if (input.RuleArns?.length === 0) { - entries.RuleArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `RuleArns.${key}`; - entries[loc] = value; - }); - } - if (input.Marker != null) { - entries["Marker"] = input.Marker; - } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; - } - return entries; +const de_UpdateContainerInstancesStateResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + containerInstances: (_) => de_ContainerInstances(_, context), + failures: smithy_client_1._json, + }); }; -const se_DescribeSSLPoliciesInput = (input, context) => { - const entries = {}; - if (input.Names != null) { - const memberEntries = se_SslPolicyNames(input.Names, context); - if (input.Names?.length === 0) { - entries.Names = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Names.${key}`; - entries[loc] = value; - }); - } - if (input.Marker != null) { - entries["Marker"] = input.Marker; - } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; - } - if (input.LoadBalancerType != null) { - entries["LoadBalancerType"] = input.LoadBalancerType; - } - return entries; +const de_UpdateServicePrimaryTaskSetResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + taskSet: (_) => de_TaskSet(_, context), + }); }; -const se_DescribeTagsInput = (input, context) => { - const entries = {}; - if (input.ResourceArns != null) { - const memberEntries = se_ResourceArns(input.ResourceArns, context); - if (input.ResourceArns?.length === 0) { - entries.ResourceArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `ResourceArns.${key}`; - entries[loc] = value; - }); - } - return entries; +const de_UpdateServiceResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + service: (_) => de_Service(_, context), + }); }; -const se_DescribeTargetGroupAttributesInput = (input, context) => { - const entries = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; - } - return entries; +const de_UpdateTaskProtectionResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + failures: smithy_client_1._json, + protectedTasks: (_) => de_ProtectedTasks(_, context), + }); }; -const se_DescribeTargetGroupsInput = (input, context) => { - const entries = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; - } - if (input.TargetGroupArns != null) { - const memberEntries = se_TargetGroupArns(input.TargetGroupArns, context); - if (input.TargetGroupArns?.length === 0) { - entries.TargetGroupArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `TargetGroupArns.${key}`; - entries[loc] = value; - }); - } - if (input.Names != null) { - const memberEntries = se_TargetGroupNames(input.Names, context); - if (input.Names?.length === 0) { - entries.Names = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Names.${key}`; - entries[loc] = value; - }); - } - if (input.Marker != null) { - entries["Marker"] = input.Marker; - } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; - } - return entries; +const de_UpdateTaskSetResponse = (output, context) => { + return (0, smithy_client_1.take)(output, { + taskSet: (_) => de_TaskSet(_, context), + }); }; -const se_DescribeTargetHealthInput = (input, context) => { - const entries = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; +const deserializeMetadata = (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"], +}); +const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); +const throwDefaultError = (0, smithy_client_1.withBaseException)(ECSServiceException_1.ECSServiceException); +const buildHttpRpcRequest = 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 !== undefined) { + contents.hostname = resolvedHostname; } - if (input.Targets != null) { - const memberEntries = se_TargetDescriptions(input.Targets, context); - if (input.Targets?.length === 0) { - entries.Targets = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Targets.${key}`; - entries[loc] = value; - }); + if (body !== undefined) { + contents.body = body; } - return entries; + return new protocol_http_1.HttpRequest(contents); }; -const se_FixedResponseActionConfig = (input, context) => { - const entries = {}; - if (input.MessageBody != null) { - entries["MessageBody"] = input.MessageBody; - } - if (input.StatusCode != null) { - entries["StatusCode"] = input.StatusCode; - } - if (input.ContentType != null) { - entries["ContentType"] = input.ContentType; +function sharedHeaders(operation) { + return { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": `AmazonEC2ContainerServiceV20141113.${operation}`, + }; +} +const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); } - return entries; + return {}; +}); +const parseErrorBody = async (errorBody, context) => { + const value = await parseBody(errorBody, context); + value.message = value.message ?? value.Message; + return value; }; -const se_ForwardActionConfig = (input, context) => { - const entries = {}; - if (input.TargetGroups != null) { - const memberEntries = se_TargetGroupList(input.TargetGroups, context); - if (input.TargetGroups?.length === 0) { - entries.TargetGroups = []; +const loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === "number") { + cleanValue = cleanValue.toString(); } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `TargetGroups.${key}`; - entries[loc] = value; - }); - } - if (input.TargetGroupStickinessConfig != null) { - const memberEntries = se_TargetGroupStickinessConfig(input.TargetGroupStickinessConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `TargetGroupStickinessConfig.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const se_HostHeaderConditionConfig = (input, context) => { - const entries = {}; - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { - entries.Values = []; + if (cleanValue.indexOf(",") >= 0) { + cleanValue = cleanValue.split(",")[0]; } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Values.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const se_HttpHeaderConditionConfig = (input, context) => { - const entries = {}; - if (input.HttpHeaderName != null) { - entries["HttpHeaderName"] = input.HttpHeaderName; - } - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { - entries.Values = []; + if (cleanValue.indexOf(":") >= 0) { + cleanValue = cleanValue.split(":")[0]; } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Values.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const se_HttpRequestMethodConditionConfig = (input, context) => { - const entries = {}; - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { - entries.Values = []; + if (cleanValue.indexOf("#") >= 0) { + cleanValue = cleanValue.split("#")[1]; } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Values.${key}`; - entries[loc] = value; - }); + return cleanValue; + }; + const headerKey = findKey(output.headers, "x-amzn-errortype"); + if (headerKey !== undefined) { + return sanitizeErrorCode(output.headers[headerKey]); } - return entries; -}; -const se_ListenerArns = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; + if (data.code !== undefined) { + return sanitizeErrorCode(data.code); } - return entries; -}; -const se_ListOfString = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; + if (data["__type"] !== undefined) { + return sanitizeErrorCode(data["__type"]); } - return entries; }; -const se_LoadBalancerArns = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; - } - return entries; + + +/***/ }), + +/***/ 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 client_sts_1 = __nccwpck_require__(52209); +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); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: config?.defaultUserAgentProvider ?? + (0, util_user_agent_node_1.defaultUserAgent)({ 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), + region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(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, + }), + 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), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + }; }; -const se_LoadBalancerAttribute = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries["Key"] = input.Key; - } - if (input.Value != null) { - entries["Value"] = input.Value; - } - return entries; +exports.getRuntimeConfig = getRuntimeConfig; + + +/***/ }), + +/***/ 94516: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRuntimeConfig = void 0; +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 endpointResolver_1 = __nccwpck_require__(55021); +const getRuntimeConfig = (config) => ({ + 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 ?? [], + 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; + + +/***/ }), + +/***/ 14168: +/***/ ((__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 asPartial = (t) => t; +const resolveRuntimeExtensions = (runtimeConfig, extensions) => { + const extensionConfiguration = { + ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + }; + extensions.forEach((extension) => extension.configure(extensionConfiguration)); + return { + ...runtimeConfig, + ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), + ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), + ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + }; }; -const se_LoadBalancerAttributes = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; +exports.resolveRuntimeExtensions = resolveRuntimeExtensions; + + +/***/ }), + +/***/ 64379: +/***/ ((__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__(95853), exports); +tslib_1.__exportStar(__nccwpck_require__(39606), exports); +tslib_1.__exportStar(__nccwpck_require__(43464), exports); +tslib_1.__exportStar(__nccwpck_require__(41497), exports); + + +/***/ }), + +/***/ 95853: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.waitUntilServicesInactive = exports.waitForServicesInactive = void 0; +const util_waiter_1 = __nccwpck_require__(78011); +const DescribeServicesCommand_1 = __nccwpck_require__(1000); +const checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeServicesCommand_1.DescribeServicesCommand(input)); + reason = result; + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.failures); + const projection_3 = flat_1.map((element_2) => { + return element_2.reason; + }); + return projection_3; + }; + for (const anyStringEq_4 of returnComparator()) { + if (anyStringEq_4 == "MISSING") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } + } + catch (e) { } + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.services); + const projection_3 = flat_1.map((element_2) => { + return element_2.status; + }); + return projection_3; + }; + for (const anyStringEq_4 of returnComparator()) { + if (anyStringEq_4 == "INACTIVE") { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } } - const memberEntries = se_LoadBalancerAttribute(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; + catch (e) { } } - return entries; -}; -const se_LoadBalancerNames = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; + catch (exception) { + reason = exception; } - return entries; + return { state: util_waiter_1.WaiterState.RETRY, reason }; }; -const se_Matcher = (input, context) => { - const entries = {}; - if (input.HttpCode != null) { - entries["HttpCode"] = input.HttpCode; - } - if (input.GrpcCode != null) { - entries["GrpcCode"] = input.GrpcCode; - } - return entries; +const waitForServicesInactive = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); }; -const se_ModifyListenerInput = (input, context) => { - const entries = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; - } - if (input.Port != null) { - entries["Port"] = input.Port; - } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; - } - if (input.SslPolicy != null) { - entries["SslPolicy"] = input.SslPolicy; - } - if (input.Certificates != null) { - const memberEntries = se_CertificateList(input.Certificates, context); - if (input.Certificates?.length === 0) { - entries.Certificates = []; +exports.waitForServicesInactive = waitForServicesInactive; +const waitUntilServicesInactive = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); +}; +exports.waitUntilServicesInactive = waitUntilServicesInactive; + + +/***/ }), + +/***/ 39606: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.waitUntilServicesStable = exports.waitForServicesStable = void 0; +const util_waiter_1 = __nccwpck_require__(78011); +const DescribeServicesCommand_1 = __nccwpck_require__(1000); +const checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeServicesCommand_1.DescribeServicesCommand(input)); + reason = result; + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.failures); + const projection_3 = flat_1.map((element_2) => { + return element_2.reason; + }); + return projection_3; + }; + for (const anyStringEq_4 of returnComparator()) { + if (anyStringEq_4 == "MISSING") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Certificates.${key}`; - entries[loc] = value; - }); - } - if (input.DefaultActions != null) { - const memberEntries = se_Actions(input.DefaultActions, context); - if (input.DefaultActions?.length === 0) { - entries.DefaultActions = []; + catch (e) { } + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.services); + const projection_3 = flat_1.map((element_2) => { + return element_2.status; + }); + return projection_3; + }; + for (const anyStringEq_4 of returnComparator()) { + if (anyStringEq_4 == "DRAINING") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `DefaultActions.${key}`; - entries[loc] = value; - }); - } - if (input.AlpnPolicy != null) { - const memberEntries = se_AlpnPolicyName(input.AlpnPolicy, context); - if (input.AlpnPolicy?.length === 0) { - entries.AlpnPolicy = []; + catch (e) { } + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.services); + const projection_3 = flat_1.map((element_2) => { + return element_2.status; + }); + return projection_3; + }; + for (const anyStringEq_4 of returnComparator()) { + if (anyStringEq_4 == "INACTIVE") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `AlpnPolicy.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const se_ModifyLoadBalancerAttributesInput = (input, context) => { - const entries = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; - } - if (input.Attributes != null) { - const memberEntries = se_LoadBalancerAttributes(input.Attributes, context); - if (input.Attributes?.length === 0) { - entries.Attributes = []; + catch (e) { } + try { + const returnComparator = () => { + const filterRes_2 = result.services.filter((element_1) => { + return !(element_1.deployments.length == 1.0 && element_1.runningCount == element_1.desiredCount); + }); + return filterRes_2.length == 0.0; + }; + if (returnComparator() == true) { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Attributes.${key}`; - entries[loc] = value; - }); + catch (e) { } } - return entries; -}; -const se_ModifyRuleInput = (input, context) => { - const entries = {}; - if (input.RuleArn != null) { - entries["RuleArn"] = input.RuleArn; + catch (exception) { + reason = exception; } - if (input.Conditions != null) { - const memberEntries = se_RuleConditionList(input.Conditions, context); - if (input.Conditions?.length === 0) { - entries.Conditions = []; + return { state: util_waiter_1.WaiterState.RETRY, reason }; +}; +const waitForServicesStable = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); +}; +exports.waitForServicesStable = waitForServicesStable; +const waitUntilServicesStable = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); +}; +exports.waitUntilServicesStable = waitUntilServicesStable; + + +/***/ }), + +/***/ 43464: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.waitUntilTasksRunning = exports.waitForTasksRunning = void 0; +const util_waiter_1 = __nccwpck_require__(78011); +const DescribeTasksCommand_1 = __nccwpck_require__(59793); +const checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeTasksCommand_1.DescribeTasksCommand(input)); + reason = result; + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.tasks); + const projection_3 = flat_1.map((element_2) => { + return element_2.lastStatus; + }); + return projection_3; + }; + for (const anyStringEq_4 of returnComparator()) { + if (anyStringEq_4 == "STOPPED") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Conditions.${key}`; - entries[loc] = value; - }); - } - if (input.Actions != null) { - const memberEntries = se_Actions(input.Actions, context); - if (input.Actions?.length === 0) { - entries.Actions = []; + catch (e) { } + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.failures); + const projection_3 = flat_1.map((element_2) => { + return element_2.reason; + }); + return projection_3; + }; + for (const anyStringEq_4 of returnComparator()) { + if (anyStringEq_4 == "MISSING") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Actions.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const se_ModifyTargetGroupAttributesInput = (input, context) => { - const entries = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; - } - if (input.Attributes != null) { - const memberEntries = se_TargetGroupAttributes(input.Attributes, context); - if (input.Attributes?.length === 0) { - entries.Attributes = []; + catch (e) { } + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.tasks); + const projection_3 = flat_1.map((element_2) => { + return element_2.lastStatus; + }); + return projection_3; + }; + let allStringEq_5 = returnComparator().length > 0; + for (const element_4 of returnComparator()) { + allStringEq_5 = allStringEq_5 && element_4 == "RUNNING"; + } + if (allStringEq_5) { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Attributes.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const se_ModifyTargetGroupInput = (input, context) => { - const entries = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; - } - if (input.HealthCheckProtocol != null) { - entries["HealthCheckProtocol"] = input.HealthCheckProtocol; - } - if (input.HealthCheckPort != null) { - entries["HealthCheckPort"] = input.HealthCheckPort; - } - if (input.HealthCheckPath != null) { - entries["HealthCheckPath"] = input.HealthCheckPath; - } - if (input.HealthCheckEnabled != null) { - entries["HealthCheckEnabled"] = input.HealthCheckEnabled; - } - if (input.HealthCheckIntervalSeconds != null) { - entries["HealthCheckIntervalSeconds"] = input.HealthCheckIntervalSeconds; - } - if (input.HealthCheckTimeoutSeconds != null) { - entries["HealthCheckTimeoutSeconds"] = input.HealthCheckTimeoutSeconds; - } - if (input.HealthyThresholdCount != null) { - entries["HealthyThresholdCount"] = input.HealthyThresholdCount; - } - if (input.UnhealthyThresholdCount != null) { - entries["UnhealthyThresholdCount"] = input.UnhealthyThresholdCount; + catch (e) { } } - if (input.Matcher != null) { - const memberEntries = se_Matcher(input.Matcher, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Matcher.${key}`; - entries[loc] = value; - }); + catch (exception) { + reason = exception; } - return entries; + return { state: util_waiter_1.WaiterState.RETRY, reason }; }; -const se_PathPatternConditionConfig = (input, context) => { - const entries = {}; - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { - entries.Values = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Values.${key}`; - entries[loc] = value; - }); - } - return entries; +const waitForTasksRunning = async (params, input) => { + const serviceDefaults = { minDelay: 6, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); }; -const se_QueryStringConditionConfig = (input, context) => { - const entries = {}; - if (input.Values != null) { - const memberEntries = se_QueryStringKeyValuePairList(input.Values, context); - if (input.Values?.length === 0) { - entries.Values = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Values.${key}`; - entries[loc] = value; - }); - } - return entries; +exports.waitForTasksRunning = waitForTasksRunning; +const waitUntilTasksRunning = async (params, input) => { + const serviceDefaults = { minDelay: 6, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); }; -const se_QueryStringKeyValuePair = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries["Key"] = input.Key; +exports.waitUntilTasksRunning = waitUntilTasksRunning; + + +/***/ }), + +/***/ 41497: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.waitUntilTasksStopped = exports.waitForTasksStopped = void 0; +const util_waiter_1 = __nccwpck_require__(78011); +const DescribeTasksCommand_1 = __nccwpck_require__(59793); +const checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeTasksCommand_1.DescribeTasksCommand(input)); + reason = result; + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.tasks); + const projection_3 = flat_1.map((element_2) => { + return element_2.lastStatus; + }); + return projection_3; + }; + let allStringEq_5 = returnComparator().length > 0; + for (const element_4 of returnComparator()) { + allStringEq_5 = allStringEq_5 && element_4 == "STOPPED"; + } + if (allStringEq_5) { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } + catch (e) { } } - if (input.Value != null) { - entries["Value"] = input.Value; + catch (exception) { + reason = exception; } - return entries; + return { state: util_waiter_1.WaiterState.RETRY, reason }; }; -const se_QueryStringKeyValuePairList = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_QueryStringKeyValuePair(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; +const waitForTasksStopped = async (params, input) => { + const serviceDefaults = { minDelay: 6, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); }; -const se_RedirectActionConfig = (input, context) => { - const entries = {}; - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; +exports.waitForTasksStopped = waitForTasksStopped; +const waitUntilTasksStopped = async (params, input) => { + const serviceDefaults = { minDelay: 6, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); +}; +exports.waitUntilTasksStopped = waitUntilTasksStopped; + + +/***/ }), + +/***/ 54887: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ElasticLoadBalancingV2 = void 0; +const smithy_client_1 = __nccwpck_require__(63570); +const AddListenerCertificatesCommand_1 = __nccwpck_require__(12321); +const AddTagsCommand_1 = __nccwpck_require__(49145); +const CreateListenerCommand_1 = __nccwpck_require__(41732); +const CreateLoadBalancerCommand_1 = __nccwpck_require__(11263); +const CreateRuleCommand_1 = __nccwpck_require__(45658); +const CreateTargetGroupCommand_1 = __nccwpck_require__(63177); +const DeleteListenerCommand_1 = __nccwpck_require__(1913); +const DeleteLoadBalancerCommand_1 = __nccwpck_require__(44640); +const DeleteRuleCommand_1 = __nccwpck_require__(74182); +const DeleteTargetGroupCommand_1 = __nccwpck_require__(29381); +const DeregisterTargetsCommand_1 = __nccwpck_require__(27848); +const DescribeAccountLimitsCommand_1 = __nccwpck_require__(45648); +const DescribeListenerCertificatesCommand_1 = __nccwpck_require__(40049); +const DescribeListenersCommand_1 = __nccwpck_require__(76871); +const DescribeLoadBalancerAttributesCommand_1 = __nccwpck_require__(55220); +const DescribeLoadBalancersCommand_1 = __nccwpck_require__(85295); +const DescribeRulesCommand_1 = __nccwpck_require__(40030); +const DescribeSSLPoliciesCommand_1 = __nccwpck_require__(28088); +const DescribeTagsCommand_1 = __nccwpck_require__(36485); +const DescribeTargetGroupAttributesCommand_1 = __nccwpck_require__(25138); +const DescribeTargetGroupsCommand_1 = __nccwpck_require__(17626); +const DescribeTargetHealthCommand_1 = __nccwpck_require__(48163); +const ModifyListenerCommand_1 = __nccwpck_require__(78161); +const ModifyLoadBalancerAttributesCommand_1 = __nccwpck_require__(54619); +const ModifyRuleCommand_1 = __nccwpck_require__(64014); +const ModifyTargetGroupAttributesCommand_1 = __nccwpck_require__(66091); +const ModifyTargetGroupCommand_1 = __nccwpck_require__(89776); +const RegisterTargetsCommand_1 = __nccwpck_require__(43263); +const RemoveListenerCertificatesCommand_1 = __nccwpck_require__(68114); +const RemoveTagsCommand_1 = __nccwpck_require__(11355); +const SetIpAddressTypeCommand_1 = __nccwpck_require__(11926); +const SetRulePrioritiesCommand_1 = __nccwpck_require__(38989); +const SetSecurityGroupsCommand_1 = __nccwpck_require__(76366); +const SetSubnetsCommand_1 = __nccwpck_require__(69079); +const ElasticLoadBalancingV2Client_1 = __nccwpck_require__(72577); +const commands = { + AddListenerCertificatesCommand: AddListenerCertificatesCommand_1.AddListenerCertificatesCommand, + AddTagsCommand: AddTagsCommand_1.AddTagsCommand, + CreateListenerCommand: CreateListenerCommand_1.CreateListenerCommand, + CreateLoadBalancerCommand: CreateLoadBalancerCommand_1.CreateLoadBalancerCommand, + CreateRuleCommand: CreateRuleCommand_1.CreateRuleCommand, + CreateTargetGroupCommand: CreateTargetGroupCommand_1.CreateTargetGroupCommand, + DeleteListenerCommand: DeleteListenerCommand_1.DeleteListenerCommand, + DeleteLoadBalancerCommand: DeleteLoadBalancerCommand_1.DeleteLoadBalancerCommand, + DeleteRuleCommand: DeleteRuleCommand_1.DeleteRuleCommand, + DeleteTargetGroupCommand: DeleteTargetGroupCommand_1.DeleteTargetGroupCommand, + DeregisterTargetsCommand: DeregisterTargetsCommand_1.DeregisterTargetsCommand, + DescribeAccountLimitsCommand: DescribeAccountLimitsCommand_1.DescribeAccountLimitsCommand, + DescribeListenerCertificatesCommand: DescribeListenerCertificatesCommand_1.DescribeListenerCertificatesCommand, + DescribeListenersCommand: DescribeListenersCommand_1.DescribeListenersCommand, + DescribeLoadBalancerAttributesCommand: DescribeLoadBalancerAttributesCommand_1.DescribeLoadBalancerAttributesCommand, + DescribeLoadBalancersCommand: DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand, + DescribeRulesCommand: DescribeRulesCommand_1.DescribeRulesCommand, + DescribeSSLPoliciesCommand: DescribeSSLPoliciesCommand_1.DescribeSSLPoliciesCommand, + DescribeTagsCommand: DescribeTagsCommand_1.DescribeTagsCommand, + DescribeTargetGroupAttributesCommand: DescribeTargetGroupAttributesCommand_1.DescribeTargetGroupAttributesCommand, + DescribeTargetGroupsCommand: DescribeTargetGroupsCommand_1.DescribeTargetGroupsCommand, + DescribeTargetHealthCommand: DescribeTargetHealthCommand_1.DescribeTargetHealthCommand, + ModifyListenerCommand: ModifyListenerCommand_1.ModifyListenerCommand, + ModifyLoadBalancerAttributesCommand: ModifyLoadBalancerAttributesCommand_1.ModifyLoadBalancerAttributesCommand, + ModifyRuleCommand: ModifyRuleCommand_1.ModifyRuleCommand, + ModifyTargetGroupCommand: ModifyTargetGroupCommand_1.ModifyTargetGroupCommand, + ModifyTargetGroupAttributesCommand: ModifyTargetGroupAttributesCommand_1.ModifyTargetGroupAttributesCommand, + RegisterTargetsCommand: RegisterTargetsCommand_1.RegisterTargetsCommand, + RemoveListenerCertificatesCommand: RemoveListenerCertificatesCommand_1.RemoveListenerCertificatesCommand, + RemoveTagsCommand: RemoveTagsCommand_1.RemoveTagsCommand, + SetIpAddressTypeCommand: SetIpAddressTypeCommand_1.SetIpAddressTypeCommand, + SetRulePrioritiesCommand: SetRulePrioritiesCommand_1.SetRulePrioritiesCommand, + SetSecurityGroupsCommand: SetSecurityGroupsCommand_1.SetSecurityGroupsCommand, + SetSubnetsCommand: SetSubnetsCommand_1.SetSubnetsCommand, +}; +class ElasticLoadBalancingV2 extends ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client { +} +exports.ElasticLoadBalancingV2 = ElasticLoadBalancingV2; +(0, smithy_client_1.createAggregatedClient)(commands, ElasticLoadBalancingV2); + + +/***/ }), + +/***/ 72577: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ElasticLoadBalancingV2Client = 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_signing_1 = __nccwpck_require__(14935); +const middleware_user_agent_1 = __nccwpck_require__(64688); +const config_resolver_1 = __nccwpck_require__(53098); +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 EndpointParameters_1 = __nccwpck_require__(11715); +const runtimeConfig_1 = __nccwpck_require__(51401); +const runtimeExtensions_1 = __nccwpck_require__(47313); +class ElasticLoadBalancingV2Client extends smithy_client_1.Client { + constructor(...[configuration]) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); + const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); + const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); + const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); + const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); + const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); + const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5); + const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6); + const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []); + super(_config_8); + this.config = _config_8; + 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, middleware_signing_1.getAwsAuthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); } - if (input.Port != null) { - entries["Port"] = input.Port; + destroy() { + super.destroy(); } - if (input.Host != null) { - entries["Host"] = input.Host; +} +exports.ElasticLoadBalancingV2Client = ElasticLoadBalancingV2Client; + + +/***/ }), + +/***/ 12321: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AddListenerCertificatesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class AddListenerCertificatesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (input.Path != null) { - entries["Path"] = input.Path; + constructor(input) { + super(); + this.input = input; } - if (input.Query != null) { - entries["Query"] = input.Query; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AddListenerCertificatesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "AddListenerCertificatesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "AddListenerCertificates", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.StatusCode != null) { - entries["StatusCode"] = input.StatusCode; + serialize(input, context) { + return (0, Aws_query_1.se_AddListenerCertificatesCommand)(input, context); } - return entries; -}; -const se_RegisterTargetsInput = (input, context) => { - const entries = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + deserialize(output, context) { + return (0, Aws_query_1.de_AddListenerCertificatesCommand)(output, context); } - if (input.Targets != null) { - const memberEntries = se_TargetDescriptions(input.Targets, context); - if (input.Targets?.length === 0) { - entries.Targets = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Targets.${key}`; - entries[loc] = value; - }); +} +exports.AddListenerCertificatesCommand = AddListenerCertificatesCommand; + + +/***/ }), + +/***/ 49145: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AddTagsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class AddTagsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const se_RemoveListenerCertificatesInput = (input, context) => { - const entries = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; + constructor(input) { + super(); + this.input = input; } - if (input.Certificates != null) { - const memberEntries = se_CertificateList(input.Certificates, context); - if (input.Certificates?.length === 0) { - entries.Certificates = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Certificates.${key}`; - entries[loc] = value; - }); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AddTagsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "AddTagsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "AddTags", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return entries; -}; -const se_RemoveTagsInput = (input, context) => { - const entries = {}; - if (input.ResourceArns != null) { - const memberEntries = se_ResourceArns(input.ResourceArns, context); - if (input.ResourceArns?.length === 0) { - entries.ResourceArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `ResourceArns.${key}`; - entries[loc] = value; - }); + serialize(input, context) { + return (0, Aws_query_1.se_AddTagsCommand)(input, context); } - if (input.TagKeys != null) { - const memberEntries = se_TagKeys(input.TagKeys, context); - if (input.TagKeys?.length === 0) { - entries.TagKeys = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `TagKeys.${key}`; - entries[loc] = value; - }); + deserialize(output, context) { + return (0, Aws_query_1.de_AddTagsCommand)(output, context); } - return entries; -}; -const se_ResourceArns = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; +} +exports.AddTagsCommand = AddTagsCommand; + + +/***/ }), + +/***/ 41732: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateListenerCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class CreateListenerCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const se_RuleArns = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; + constructor(input) { + super(); + this.input = input; } - return entries; -}; -const se_RuleCondition = (input, context) => { - const entries = {}; - if (input.Field != null) { - entries["Field"] = input.Field; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateListenerCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "CreateListenerCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "CreateListener", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { - entries.Values = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Values.${key}`; - entries[loc] = value; - }); + serialize(input, context) { + return (0, Aws_query_1.se_CreateListenerCommand)(input, context); } - if (input.HostHeaderConfig != null) { - const memberEntries = se_HostHeaderConditionConfig(input.HostHeaderConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `HostHeaderConfig.${key}`; - entries[loc] = value; - }); + deserialize(output, context) { + return (0, Aws_query_1.de_CreateListenerCommand)(output, context); } - if (input.PathPatternConfig != null) { - const memberEntries = se_PathPatternConditionConfig(input.PathPatternConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PathPatternConfig.${key}`; - entries[loc] = value; - }); +} +exports.CreateListenerCommand = CreateListenerCommand; + + +/***/ }), + +/***/ 11263: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateLoadBalancerCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class CreateLoadBalancerCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (input.HttpHeaderConfig != null) { - const memberEntries = se_HttpHeaderConditionConfig(input.HttpHeaderConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `HttpHeaderConfig.${key}`; - entries[loc] = value; - }); + constructor(input) { + super(); + this.input = input; } - if (input.QueryStringConfig != null) { - const memberEntries = se_QueryStringConditionConfig(input.QueryStringConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `QueryStringConfig.${key}`; - entries[loc] = value; - }); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateLoadBalancerCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "CreateLoadBalancerCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "CreateLoadBalancer", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.HttpRequestMethodConfig != null) { - const memberEntries = se_HttpRequestMethodConditionConfig(input.HttpRequestMethodConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `HttpRequestMethodConfig.${key}`; - entries[loc] = value; - }); + serialize(input, context) { + return (0, Aws_query_1.se_CreateLoadBalancerCommand)(input, context); } - if (input.SourceIpConfig != null) { - const memberEntries = se_SourceIpConditionConfig(input.SourceIpConfig, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `SourceIpConfig.${key}`; - entries[loc] = value; - }); + deserialize(output, context) { + return (0, Aws_query_1.de_CreateLoadBalancerCommand)(output, context); } - return entries; -}; -const se_RuleConditionList = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_RuleCondition(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; +} +exports.CreateLoadBalancerCommand = CreateLoadBalancerCommand; + + +/***/ }), + +/***/ 45658: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateRuleCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class CreateRuleCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const se_RulePriorityList = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_RulePriorityPair(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; + constructor(input) { + super(); + this.input = input; } - return entries; -}; -const se_RulePriorityPair = (input, context) => { - const entries = {}; - if (input.RuleArn != null) { - entries["RuleArn"] = input.RuleArn; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateRuleCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "CreateRuleCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "CreateRule", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.Priority != null) { - entries["Priority"] = input.Priority; + serialize(input, context) { + return (0, Aws_query_1.se_CreateRuleCommand)(input, context); } - return entries; -}; -const se_SecurityGroups = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; + deserialize(output, context) { + return (0, Aws_query_1.de_CreateRuleCommand)(output, context); } - return entries; -}; -const se_SetIpAddressTypeInput = (input, context) => { - const entries = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; +} +exports.CreateRuleCommand = CreateRuleCommand; + + +/***/ }), + +/***/ 63177: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateTargetGroupCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class CreateTargetGroupCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + constructor(input) { + super(); + this.input = input; } - return entries; -}; -const se_SetRulePrioritiesInput = (input, context) => { - const entries = {}; - if (input.RulePriorities != null) { - const memberEntries = se_RulePriorityList(input.RulePriorities, context); - if (input.RulePriorities?.length === 0) { - entries.RulePriorities = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `RulePriorities.${key}`; - entries[loc] = value; - }); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateTargetGroupCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "CreateTargetGroupCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "CreateTargetGroup", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return entries; -}; -const se_SetSecurityGroupsInput = (input, context) => { - const entries = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + serialize(input, context) { + return (0, Aws_query_1.se_CreateTargetGroupCommand)(input, context); } - if (input.SecurityGroups != null) { - const memberEntries = se_SecurityGroups(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { - entries.SecurityGroups = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `SecurityGroups.${key}`; - entries[loc] = value; - }); + deserialize(output, context) { + return (0, Aws_query_1.de_CreateTargetGroupCommand)(output, context); } - if (input.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic != null) { - entries["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] = - input.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic; +} +exports.CreateTargetGroupCommand = CreateTargetGroupCommand; + + +/***/ }), + +/***/ 1913: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteListenerCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DeleteListenerCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const se_SetSubnetsInput = (input, context) => { - const entries = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + constructor(input) { + super(); + this.input = input; } - if (input.Subnets != null) { - const memberEntries = se_Subnets(input.Subnets, context); - if (input.Subnets?.length === 0) { - entries.Subnets = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Subnets.${key}`; - entries[loc] = value; - }); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteListenerCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DeleteListenerCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DeleteListener", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.SubnetMappings != null) { - const memberEntries = se_SubnetMappings(input.SubnetMappings, context); - if (input.SubnetMappings?.length === 0) { - entries.SubnetMappings = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `SubnetMappings.${key}`; - entries[loc] = value; - }); + serialize(input, context) { + return (0, Aws_query_1.se_DeleteListenerCommand)(input, context); } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + deserialize(output, context) { + return (0, Aws_query_1.de_DeleteListenerCommand)(output, context); } - return entries; -}; -const se_SourceIpConditionConfig = (input, context) => { - const entries = {}; - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { - entries.Values = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Values.${key}`; - entries[loc] = value; - }); +} +exports.DeleteListenerCommand = DeleteListenerCommand; + + +/***/ }), + +/***/ 44640: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteLoadBalancerCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DeleteLoadBalancerCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const se_SslPolicyNames = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; + constructor(input) { + super(); + this.input = input; } - return entries; -}; -const se_SubnetMapping = (input, context) => { - const entries = {}; - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteLoadBalancerCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DeleteLoadBalancerCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DeleteLoadBalancer", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.AllocationId != null) { - entries["AllocationId"] = input.AllocationId; + serialize(input, context) { + return (0, Aws_query_1.se_DeleteLoadBalancerCommand)(input, context); } - if (input.PrivateIPv4Address != null) { - entries["PrivateIPv4Address"] = input.PrivateIPv4Address; + deserialize(output, context) { + return (0, Aws_query_1.de_DeleteLoadBalancerCommand)(output, context); } - if (input.IPv6Address != null) { - entries["IPv6Address"] = input.IPv6Address; +} +exports.DeleteLoadBalancerCommand = DeleteLoadBalancerCommand; + + +/***/ }), + +/***/ 74182: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteRuleCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DeleteRuleCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const se_SubnetMappings = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_SubnetMapping(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; + constructor(input) { + super(); + this.input = input; } - return entries; -}; -const se_Subnets = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteRuleCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DeleteRuleCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DeleteRule", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return entries; -}; -const se_Tag = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + serialize(input, context) { + return (0, Aws_query_1.se_DeleteRuleCommand)(input, context); } - if (input.Value != null) { - entries["Value"] = input.Value; + deserialize(output, context) { + return (0, Aws_query_1.de_DeleteRuleCommand)(output, context); } - return entries; -}; -const se_TagKeys = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; +} +exports.DeleteRuleCommand = DeleteRuleCommand; + + +/***/ }), + +/***/ 29381: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteTargetGroupCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DeleteTargetGroupCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const se_TagList = (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++; + constructor(input) { + super(); + this.input = input; } - return entries; -}; -const se_TargetDescription = (input, context) => { - const entries = {}; - if (input.Id != null) { - entries["Id"] = input.Id; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteTargetGroupCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DeleteTargetGroupCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DeleteTargetGroup", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.Port != null) { - entries["Port"] = input.Port; + serialize(input, context) { + return (0, Aws_query_1.se_DeleteTargetGroupCommand)(input, context); } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + deserialize(output, context) { + return (0, Aws_query_1.de_DeleteTargetGroupCommand)(output, context); } - return entries; -}; -const se_TargetDescriptions = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_TargetDescription(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; +} +exports.DeleteTargetGroupCommand = DeleteTargetGroupCommand; + + +/***/ }), + +/***/ 27848: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeregisterTargetsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DeregisterTargetsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const se_TargetGroupArns = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; + constructor(input) { + super(); + this.input = input; } - return entries; -}; -const se_TargetGroupAttribute = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterTargetsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DeregisterTargetsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DeregisterTargets", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.Value != null) { - entries["Value"] = input.Value; + serialize(input, context) { + return (0, Aws_query_1.se_DeregisterTargetsCommand)(input, context); } - return entries; -}; -const se_TargetGroupAttributes = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_TargetGroupAttribute(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; + deserialize(output, context) { + return (0, Aws_query_1.de_DeregisterTargetsCommand)(output, context); } - return entries; -}; -const se_TargetGroupList = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_TargetGroupTuple(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; +} +exports.DeregisterTargetsCommand = DeregisterTargetsCommand; + + +/***/ }), + +/***/ 45648: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeAccountLimitsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeAccountLimitsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const se_TargetGroupNames = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; + constructor(input) { + super(); + this.input = input; } - return entries; -}; -const se_TargetGroupStickinessConfig = (input, context) => { - const entries = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAccountLimitsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeAccountLimitsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeAccountLimits", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + serialize(input, context) { + return (0, Aws_query_1.se_DescribeAccountLimitsCommand)(input, context); } - return entries; -}; -const se_TargetGroupTuple = (input, context) => { - const entries = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeAccountLimitsCommand)(output, context); } - if (input.Weight != null) { - entries["Weight"] = input.Weight; +} +exports.DescribeAccountLimitsCommand = DescribeAccountLimitsCommand; + + +/***/ }), + +/***/ 40049: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeListenerCertificatesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeListenerCertificatesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return entries; -}; -const de_Action = (output, context) => { - const contents = {}; - if (output["Type"] !== undefined) { - contents.Type = (0, smithy_client_1.expectString)(output["Type"]); + constructor(input) { + super(); + this.input = input; } - if (output["TargetGroupArn"] !== undefined) { - contents.TargetGroupArn = (0, smithy_client_1.expectString)(output["TargetGroupArn"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeListenerCertificatesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeListenerCertificatesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeListenerCertificates", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (output["AuthenticateOidcConfig"] !== undefined) { - contents.AuthenticateOidcConfig = de_AuthenticateOidcActionConfig(output["AuthenticateOidcConfig"], context); + serialize(input, context) { + return (0, Aws_query_1.se_DescribeListenerCertificatesCommand)(input, context); } - if (output["AuthenticateCognitoConfig"] !== undefined) { - contents.AuthenticateCognitoConfig = de_AuthenticateCognitoActionConfig(output["AuthenticateCognitoConfig"], context); + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeListenerCertificatesCommand)(output, context); } - if (output["Order"] !== undefined) { - contents.Order = (0, smithy_client_1.strictParseInt32)(output["Order"]); +} +exports.DescribeListenerCertificatesCommand = DescribeListenerCertificatesCommand; + + +/***/ }), + +/***/ 76871: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeListenersCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeListenersCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (output["RedirectConfig"] !== undefined) { - contents.RedirectConfig = de_RedirectActionConfig(output["RedirectConfig"], context); + constructor(input) { + super(); + this.input = input; } - if (output["FixedResponseConfig"] !== undefined) { - contents.FixedResponseConfig = de_FixedResponseActionConfig(output["FixedResponseConfig"], context); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeListenersCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeListenersCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeListeners", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (output["ForwardConfig"] !== undefined) { - contents.ForwardConfig = de_ForwardActionConfig(output["ForwardConfig"], context); + serialize(input, context) { + return (0, Aws_query_1.se_DescribeListenersCommand)(input, context); } - return contents; -}; -const de_Actions = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Action(entry, context); - }); -}; -const de_AddListenerCertificatesOutput = (output, context) => { - const contents = {}; - if (output.Certificates === "") { - contents.Certificates = []; + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeListenersCommand)(output, context); } - else if (output["Certificates"] !== undefined && output["Certificates"]["member"] !== undefined) { - contents.Certificates = de_CertificateList((0, smithy_client_1.getArrayIfSingleItem)(output["Certificates"]["member"]), context); +} +exports.DescribeListenersCommand = DescribeListenersCommand; + + +/***/ }), + +/***/ 55220: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeLoadBalancerAttributesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeLoadBalancerAttributesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return contents; -}; -const de_AddTagsOutput = (output, context) => { - const contents = {}; - return contents; -}; -const de_AllocationIdNotFoundException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + constructor(input) { + super(); + this.input = input; } - return contents; -}; -const de_AlpnPolicyName = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return (0, smithy_client_1.expectString)(entry); - }); -}; -const de_ALPNPolicyNotSupportedException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeLoadBalancerAttributesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeLoadBalancerAttributesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeLoadBalancerAttributes", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return contents; -}; -const de_AuthenticateCognitoActionAuthenticationRequestExtraParams = (output, context) => { - return output.reduce((acc, pair) => { - if (pair["value"] === null) { - return acc; - } - acc[pair["key"]] = (0, smithy_client_1.expectString)(pair["value"]); - return acc; - }, {}); -}; -const de_AuthenticateCognitoActionConfig = (output, context) => { - const contents = {}; - if (output["UserPoolArn"] !== undefined) { - contents.UserPoolArn = (0, smithy_client_1.expectString)(output["UserPoolArn"]); + serialize(input, context) { + return (0, Aws_query_1.se_DescribeLoadBalancerAttributesCommand)(input, context); } - if (output["UserPoolClientId"] !== undefined) { - contents.UserPoolClientId = (0, smithy_client_1.expectString)(output["UserPoolClientId"]); + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeLoadBalancerAttributesCommand)(output, context); } - if (output["UserPoolDomain"] !== undefined) { - contents.UserPoolDomain = (0, smithy_client_1.expectString)(output["UserPoolDomain"]); +} +exports.DescribeLoadBalancerAttributesCommand = DescribeLoadBalancerAttributesCommand; + + +/***/ }), + +/***/ 85295: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeLoadBalancersCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeLoadBalancersCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (output["SessionCookieName"] !== undefined) { - contents.SessionCookieName = (0, smithy_client_1.expectString)(output["SessionCookieName"]); + constructor(input) { + super(); + this.input = input; } - if (output["Scope"] !== undefined) { - contents.Scope = (0, smithy_client_1.expectString)(output["Scope"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeLoadBalancersCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeLoadBalancersCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeLoadBalancers", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (output["SessionTimeout"] !== undefined) { - contents.SessionTimeout = (0, smithy_client_1.strictParseLong)(output["SessionTimeout"]); + serialize(input, context) { + return (0, Aws_query_1.se_DescribeLoadBalancersCommand)(input, context); } - if (output.AuthenticationRequestExtraParams === "") { - contents.AuthenticationRequestExtraParams = {}; + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeLoadBalancersCommand)(output, context); } - else if (output["AuthenticationRequestExtraParams"] !== undefined && - output["AuthenticationRequestExtraParams"]["entry"] !== undefined) { - contents.AuthenticationRequestExtraParams = de_AuthenticateCognitoActionAuthenticationRequestExtraParams((0, smithy_client_1.getArrayIfSingleItem)(output["AuthenticationRequestExtraParams"]["entry"]), context); +} +exports.DescribeLoadBalancersCommand = DescribeLoadBalancersCommand; + + +/***/ }), + +/***/ 40030: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeRulesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeRulesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (output["OnUnauthenticatedRequest"] !== undefined) { - contents.OnUnauthenticatedRequest = (0, smithy_client_1.expectString)(output["OnUnauthenticatedRequest"]); + constructor(input) { + super(); + this.input = input; } - return contents; -}; -const de_AuthenticateOidcActionAuthenticationRequestExtraParams = (output, context) => { - return output.reduce((acc, pair) => { - if (pair["value"] === null) { - return acc; - } - acc[pair["key"]] = (0, smithy_client_1.expectString)(pair["value"]); - return acc; - }, {}); -}; -const de_AuthenticateOidcActionConfig = (output, context) => { - const contents = {}; - if (output["Issuer"] !== undefined) { - contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeRulesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeRulesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeRules", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (output["AuthorizationEndpoint"] !== undefined) { - contents.AuthorizationEndpoint = (0, smithy_client_1.expectString)(output["AuthorizationEndpoint"]); + serialize(input, context) { + return (0, Aws_query_1.se_DescribeRulesCommand)(input, context); } - if (output["TokenEndpoint"] !== undefined) { - contents.TokenEndpoint = (0, smithy_client_1.expectString)(output["TokenEndpoint"]); + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeRulesCommand)(output, context); } - if (output["UserInfoEndpoint"] !== undefined) { - contents.UserInfoEndpoint = (0, smithy_client_1.expectString)(output["UserInfoEndpoint"]); +} +exports.DescribeRulesCommand = DescribeRulesCommand; + + +/***/ }), + +/***/ 28088: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeSSLPoliciesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeSSLPoliciesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (output["ClientId"] !== undefined) { - contents.ClientId = (0, smithy_client_1.expectString)(output["ClientId"]); + constructor(input) { + super(); + this.input = input; } - if (output["ClientSecret"] !== undefined) { - contents.ClientSecret = (0, smithy_client_1.expectString)(output["ClientSecret"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeSSLPoliciesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeSSLPoliciesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeSSLPolicies", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (output["SessionCookieName"] !== undefined) { - contents.SessionCookieName = (0, smithy_client_1.expectString)(output["SessionCookieName"]); + serialize(input, context) { + return (0, Aws_query_1.se_DescribeSSLPoliciesCommand)(input, context); } - if (output["Scope"] !== undefined) { - contents.Scope = (0, smithy_client_1.expectString)(output["Scope"]); + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeSSLPoliciesCommand)(output, context); } - if (output["SessionTimeout"] !== undefined) { - contents.SessionTimeout = (0, smithy_client_1.strictParseLong)(output["SessionTimeout"]); +} +exports.DescribeSSLPoliciesCommand = DescribeSSLPoliciesCommand; + + +/***/ }), + +/***/ 36485: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeTagsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeTagsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (output.AuthenticationRequestExtraParams === "") { - contents.AuthenticationRequestExtraParams = {}; + constructor(input) { + super(); + this.input = input; } - else if (output["AuthenticationRequestExtraParams"] !== undefined && - output["AuthenticationRequestExtraParams"]["entry"] !== undefined) { - contents.AuthenticationRequestExtraParams = de_AuthenticateOidcActionAuthenticationRequestExtraParams((0, smithy_client_1.getArrayIfSingleItem)(output["AuthenticationRequestExtraParams"]["entry"]), context); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTagsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeTagsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeTags", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (output["OnUnauthenticatedRequest"] !== undefined) { - contents.OnUnauthenticatedRequest = (0, smithy_client_1.expectString)(output["OnUnauthenticatedRequest"]); + serialize(input, context) { + return (0, Aws_query_1.se_DescribeTagsCommand)(input, context); } - if (output["UseExistingClientSecret"] !== undefined) { - contents.UseExistingClientSecret = (0, smithy_client_1.parseBoolean)(output["UseExistingClientSecret"]); + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeTagsCommand)(output, context); } - return contents; -}; -const de_AvailabilityZone = (output, context) => { - const contents = {}; - if (output["ZoneName"] !== undefined) { - contents.ZoneName = (0, smithy_client_1.expectString)(output["ZoneName"]); +} +exports.DescribeTagsCommand = DescribeTagsCommand; + + +/***/ }), + +/***/ 25138: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeTargetGroupAttributesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeTargetGroupAttributesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (output["SubnetId"] !== undefined) { - contents.SubnetId = (0, smithy_client_1.expectString)(output["SubnetId"]); + constructor(input) { + super(); + this.input = input; } - if (output["OutpostId"] !== undefined) { - contents.OutpostId = (0, smithy_client_1.expectString)(output["OutpostId"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTargetGroupAttributesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeTargetGroupAttributesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeTargetGroupAttributes", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (output.LoadBalancerAddresses === "") { - contents.LoadBalancerAddresses = []; + serialize(input, context) { + return (0, Aws_query_1.se_DescribeTargetGroupAttributesCommand)(input, context); } - else if (output["LoadBalancerAddresses"] !== undefined && output["LoadBalancerAddresses"]["member"] !== undefined) { - contents.LoadBalancerAddresses = de_LoadBalancerAddresses((0, smithy_client_1.getArrayIfSingleItem)(output["LoadBalancerAddresses"]["member"]), context); + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeTargetGroupAttributesCommand)(output, context); } - return contents; -}; -const de_AvailabilityZoneNotSupportedException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +} +exports.DescribeTargetGroupAttributesCommand = DescribeTargetGroupAttributesCommand; + + +/***/ }), + +/***/ 17626: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeTargetGroupsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeTargetGroupsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return contents; -}; -const de_AvailabilityZones = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AvailabilityZone(entry, context); - }); -}; -const de_Certificate = (output, context) => { - const contents = {}; - if (output["CertificateArn"] !== undefined) { - contents.CertificateArn = (0, smithy_client_1.expectString)(output["CertificateArn"]); + constructor(input) { + super(); + this.input = input; } - if (output["IsDefault"] !== undefined) { - contents.IsDefault = (0, smithy_client_1.parseBoolean)(output["IsDefault"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTargetGroupsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeTargetGroupsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeTargetGroups", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return contents; -}; -const de_CertificateList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Certificate(entry, context); - }); -}; -const de_CertificateNotFoundException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + serialize(input, context) { + return (0, Aws_query_1.se_DescribeTargetGroupsCommand)(input, context); } - return contents; -}; -const de_Cipher = (output, context) => { - const contents = {}; - if (output["Name"] !== undefined) { - contents.Name = (0, smithy_client_1.expectString)(output["Name"]); + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeTargetGroupsCommand)(output, context); } - if (output["Priority"] !== undefined) { - contents.Priority = (0, smithy_client_1.strictParseInt32)(output["Priority"]); +} +exports.DescribeTargetGroupsCommand = DescribeTargetGroupsCommand; + + +/***/ }), + +/***/ 48163: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeTargetHealthCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class DescribeTargetHealthCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return contents; -}; -const de_Ciphers = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Cipher(entry, context); - }); -}; -const de_CreateListenerOutput = (output, context) => { - const contents = {}; - if (output.Listeners === "") { - contents.Listeners = []; + constructor(input) { + super(); + this.input = input; } - else if (output["Listeners"] !== undefined && output["Listeners"]["member"] !== undefined) { - contents.Listeners = de_Listeners((0, smithy_client_1.getArrayIfSingleItem)(output["Listeners"]["member"]), context); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeTargetHealthCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "DescribeTargetHealthCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "DescribeTargetHealth", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return contents; -}; -const de_CreateLoadBalancerOutput = (output, context) => { - const contents = {}; - if (output.LoadBalancers === "") { - contents.LoadBalancers = []; + serialize(input, context) { + return (0, Aws_query_1.se_DescribeTargetHealthCommand)(input, context); } - else if (output["LoadBalancers"] !== undefined && output["LoadBalancers"]["member"] !== undefined) { - contents.LoadBalancers = de_LoadBalancers((0, smithy_client_1.getArrayIfSingleItem)(output["LoadBalancers"]["member"]), context); + deserialize(output, context) { + return (0, Aws_query_1.de_DescribeTargetHealthCommand)(output, context); } - return contents; -}; -const de_CreateRuleOutput = (output, context) => { - const contents = {}; - if (output.Rules === "") { - contents.Rules = []; +} +exports.DescribeTargetHealthCommand = DescribeTargetHealthCommand; + + +/***/ }), + +/***/ 78161: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ModifyListenerCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class ModifyListenerCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { - contents.Rules = de_Rules((0, smithy_client_1.getArrayIfSingleItem)(output["Rules"]["member"]), context); + constructor(input) { + super(); + this.input = input; } - return contents; -}; -const de_CreateTargetGroupOutput = (output, context) => { - const contents = {}; - if (output.TargetGroups === "") { - contents.TargetGroups = []; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyListenerCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "ModifyListenerCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "ModifyListener", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { - contents.TargetGroups = de_TargetGroups((0, smithy_client_1.getArrayIfSingleItem)(output["TargetGroups"]["member"]), context); + serialize(input, context) { + return (0, Aws_query_1.se_ModifyListenerCommand)(input, context); } - return contents; -}; -const de_DeleteListenerOutput = (output, context) => { - const contents = {}; - return contents; -}; -const de_DeleteLoadBalancerOutput = (output, context) => { - const contents = {}; - return contents; -}; -const de_DeleteRuleOutput = (output, context) => { - const contents = {}; - return contents; -}; -const de_DeleteTargetGroupOutput = (output, context) => { - const contents = {}; - return contents; -}; -const de_DeregisterTargetsOutput = (output, context) => { - const contents = {}; - return contents; -}; -const de_DescribeAccountLimitsOutput = (output, context) => { - const contents = {}; - if (output.Limits === "") { - contents.Limits = []; + deserialize(output, context) { + return (0, Aws_query_1.de_ModifyListenerCommand)(output, context); } - else if (output["Limits"] !== undefined && output["Limits"]["member"] !== undefined) { - contents.Limits = de_Limits((0, smithy_client_1.getArrayIfSingleItem)(output["Limits"]["member"]), context); +} +exports.ModifyListenerCommand = ModifyListenerCommand; + + +/***/ }), + +/***/ 54619: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ModifyLoadBalancerAttributesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class ModifyLoadBalancerAttributesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); + constructor(input) { + super(); + this.input = input; } - return contents; -}; -const de_DescribeListenerCertificatesOutput = (output, context) => { - const contents = {}; - if (output.Certificates === "") { - contents.Certificates = []; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyLoadBalancerAttributesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "ModifyLoadBalancerAttributesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "ModifyLoadBalancerAttributes", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - else if (output["Certificates"] !== undefined && output["Certificates"]["member"] !== undefined) { - contents.Certificates = de_CertificateList((0, smithy_client_1.getArrayIfSingleItem)(output["Certificates"]["member"]), context); + serialize(input, context) { + return (0, Aws_query_1.se_ModifyLoadBalancerAttributesCommand)(input, context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); + deserialize(output, context) { + return (0, Aws_query_1.de_ModifyLoadBalancerAttributesCommand)(output, context); } - return contents; -}; -const de_DescribeListenersOutput = (output, context) => { - const contents = {}; - if (output.Listeners === "") { - contents.Listeners = []; +} +exports.ModifyLoadBalancerAttributesCommand = ModifyLoadBalancerAttributesCommand; + + +/***/ }), + +/***/ 64014: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ModifyRuleCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class ModifyRuleCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - else if (output["Listeners"] !== undefined && output["Listeners"]["member"] !== undefined) { - contents.Listeners = de_Listeners((0, smithy_client_1.getArrayIfSingleItem)(output["Listeners"]["member"]), context); + constructor(input) { + super(); + this.input = input; } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyRuleCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "ModifyRuleCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "ModifyRule", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return contents; -}; -const de_DescribeLoadBalancerAttributesOutput = (output, context) => { - const contents = {}; - if (output.Attributes === "") { - contents.Attributes = []; + serialize(input, context) { + return (0, Aws_query_1.se_ModifyRuleCommand)(input, context); } - else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { - contents.Attributes = de_LoadBalancerAttributes((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["member"]), context); + deserialize(output, context) { + return (0, Aws_query_1.de_ModifyRuleCommand)(output, context); } - return contents; -}; -const de_DescribeLoadBalancersOutput = (output, context) => { - const contents = {}; - if (output.LoadBalancers === "") { - contents.LoadBalancers = []; +} +exports.ModifyRuleCommand = ModifyRuleCommand; + + +/***/ }), + +/***/ 66091: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ModifyTargetGroupAttributesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class ModifyTargetGroupAttributesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - else if (output["LoadBalancers"] !== undefined && output["LoadBalancers"]["member"] !== undefined) { - contents.LoadBalancers = de_LoadBalancers((0, smithy_client_1.getArrayIfSingleItem)(output["LoadBalancers"]["member"]), context); + constructor(input) { + super(); + this.input = input; } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyTargetGroupAttributesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "ModifyTargetGroupAttributesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "ModifyTargetGroupAttributes", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return contents; -}; -const de_DescribeRulesOutput = (output, context) => { - const contents = {}; - if (output.Rules === "") { - contents.Rules = []; + serialize(input, context) { + return (0, Aws_query_1.se_ModifyTargetGroupAttributesCommand)(input, context); } - else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { - contents.Rules = de_Rules((0, smithy_client_1.getArrayIfSingleItem)(output["Rules"]["member"]), context); + deserialize(output, context) { + return (0, Aws_query_1.de_ModifyTargetGroupAttributesCommand)(output, context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); +} +exports.ModifyTargetGroupAttributesCommand = ModifyTargetGroupAttributesCommand; + + +/***/ }), + +/***/ 89776: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ModifyTargetGroupCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class ModifyTargetGroupCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return contents; -}; -const de_DescribeSSLPoliciesOutput = (output, context) => { - const contents = {}; - if (output.SslPolicies === "") { - contents.SslPolicies = []; + constructor(input) { + super(); + this.input = input; } - else if (output["SslPolicies"] !== undefined && output["SslPolicies"]["member"] !== undefined) { - contents.SslPolicies = de_SslPolicies((0, smithy_client_1.getArrayIfSingleItem)(output["SslPolicies"]["member"]), context); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyTargetGroupCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "ModifyTargetGroupCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "ModifyTargetGroup", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); + serialize(input, context) { + return (0, Aws_query_1.se_ModifyTargetGroupCommand)(input, context); } - return contents; -}; -const de_DescribeTagsOutput = (output, context) => { - const contents = {}; - if (output.TagDescriptions === "") { - contents.TagDescriptions = []; + deserialize(output, context) { + return (0, Aws_query_1.de_ModifyTargetGroupCommand)(output, context); } - else if (output["TagDescriptions"] !== undefined && output["TagDescriptions"]["member"] !== undefined) { - contents.TagDescriptions = de_TagDescriptions((0, smithy_client_1.getArrayIfSingleItem)(output["TagDescriptions"]["member"]), context); +} +exports.ModifyTargetGroupCommand = ModifyTargetGroupCommand; + + +/***/ }), + +/***/ 43263: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RegisterTargetsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class RegisterTargetsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return contents; -}; -const de_DescribeTargetGroupAttributesOutput = (output, context) => { - const contents = {}; - if (output.Attributes === "") { - contents.Attributes = []; + constructor(input) { + super(); + this.input = input; } - else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { - contents.Attributes = de_TargetGroupAttributes((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["member"]), context); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterTargetsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "RegisterTargetsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "RegisterTargets", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return contents; -}; -const de_DescribeTargetGroupsOutput = (output, context) => { - const contents = {}; - if (output.TargetGroups === "") { - contents.TargetGroups = []; + serialize(input, context) { + return (0, Aws_query_1.se_RegisterTargetsCommand)(input, context); } - else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { - contents.TargetGroups = de_TargetGroups((0, smithy_client_1.getArrayIfSingleItem)(output["TargetGroups"]["member"]), context); + deserialize(output, context) { + return (0, Aws_query_1.de_RegisterTargetsCommand)(output, context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); +} +exports.RegisterTargetsCommand = RegisterTargetsCommand; + + +/***/ }), + +/***/ 68114: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RemoveListenerCertificatesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class RemoveListenerCertificatesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return contents; -}; -const de_DescribeTargetHealthOutput = (output, context) => { - const contents = {}; - if (output.TargetHealthDescriptions === "") { - contents.TargetHealthDescriptions = []; + constructor(input) { + super(); + this.input = input; } - else if (output["TargetHealthDescriptions"] !== undefined && - output["TargetHealthDescriptions"]["member"] !== undefined) { - contents.TargetHealthDescriptions = de_TargetHealthDescriptions((0, smithy_client_1.getArrayIfSingleItem)(output["TargetHealthDescriptions"]["member"]), context); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveListenerCertificatesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "RemoveListenerCertificatesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "RemoveListenerCertificates", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return contents; -}; -const de_DuplicateListenerException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + serialize(input, context) { + return (0, Aws_query_1.se_RemoveListenerCertificatesCommand)(input, context); } - return contents; -}; -const de_DuplicateLoadBalancerNameException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + deserialize(output, context) { + return (0, Aws_query_1.de_RemoveListenerCertificatesCommand)(output, context); } - return contents; -}; -const de_DuplicateTagKeysException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +} +exports.RemoveListenerCertificatesCommand = RemoveListenerCertificatesCommand; + + +/***/ }), + +/***/ 11355: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RemoveTagsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class RemoveTagsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return contents; -}; -const de_DuplicateTargetGroupNameException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + constructor(input) { + super(); + this.input = input; } - return contents; -}; -const de_FixedResponseActionConfig = (output, context) => { - const contents = {}; - if (output["MessageBody"] !== undefined) { - contents.MessageBody = (0, smithy_client_1.expectString)(output["MessageBody"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveTagsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "RemoveTagsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "RemoveTags", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - if (output["StatusCode"] !== undefined) { - contents.StatusCode = (0, smithy_client_1.expectString)(output["StatusCode"]); + serialize(input, context) { + return (0, Aws_query_1.se_RemoveTagsCommand)(input, context); } - if (output["ContentType"] !== undefined) { - contents.ContentType = (0, smithy_client_1.expectString)(output["ContentType"]); + deserialize(output, context) { + return (0, Aws_query_1.de_RemoveTagsCommand)(output, context); } - return contents; -}; -const de_ForwardActionConfig = (output, context) => { - const contents = {}; - if (output.TargetGroups === "") { - contents.TargetGroups = []; +} +exports.RemoveTagsCommand = RemoveTagsCommand; + + +/***/ }), + +/***/ 11926: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SetIpAddressTypeCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class SetIpAddressTypeCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { - contents.TargetGroups = de_TargetGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["TargetGroups"]["member"]), context); + constructor(input) { + super(); + this.input = input; } - if (output["TargetGroupStickinessConfig"] !== undefined) { - contents.TargetGroupStickinessConfig = de_TargetGroupStickinessConfig(output["TargetGroupStickinessConfig"], context); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetIpAddressTypeCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "SetIpAddressTypeCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "SetIpAddressType", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return contents; -}; -const de_HealthUnavailableException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + serialize(input, context) { + return (0, Aws_query_1.se_SetIpAddressTypeCommand)(input, context); } - return contents; -}; -const de_HostHeaderConditionConfig = (output, context) => { - const contents = {}; - if (output.Values === "") { - contents.Values = []; + deserialize(output, context) { + return (0, Aws_query_1.de_SetIpAddressTypeCommand)(output, context); } - else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); +} +exports.SetIpAddressTypeCommand = SetIpAddressTypeCommand; + + +/***/ }), + +/***/ 38989: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SetRulePrioritiesCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class SetRulePrioritiesCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return contents; -}; -const de_HttpHeaderConditionConfig = (output, context) => { - const contents = {}; - if (output["HttpHeaderName"] !== undefined) { - contents.HttpHeaderName = (0, smithy_client_1.expectString)(output["HttpHeaderName"]); + constructor(input) { + super(); + this.input = input; } - if (output.Values === "") { - contents.Values = []; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetRulePrioritiesCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "SetRulePrioritiesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "SetRulePriorities", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); + serialize(input, context) { + return (0, Aws_query_1.se_SetRulePrioritiesCommand)(input, context); } - return contents; -}; -const de_HttpRequestMethodConditionConfig = (output, context) => { - const contents = {}; - if (output.Values === "") { - contents.Values = []; + deserialize(output, context) { + return (0, Aws_query_1.de_SetRulePrioritiesCommand)(output, context); } - else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); +} +exports.SetRulePrioritiesCommand = SetRulePrioritiesCommand; + + +/***/ }), + +/***/ 76366: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SetSecurityGroupsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class SetSecurityGroupsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return contents; -}; -const de_IncompatibleProtocolsException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + constructor(input) { + super(); + this.input = input; } - return contents; -}; -const de_InvalidConfigurationRequestException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetSecurityGroupsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "SetSecurityGroupsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "SetSecurityGroups", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return contents; -}; -const de_InvalidLoadBalancerActionException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + serialize(input, context) { + return (0, Aws_query_1.se_SetSecurityGroupsCommand)(input, context); } - return contents; -}; -const de_InvalidSchemeException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + deserialize(output, context) { + return (0, Aws_query_1.de_SetSecurityGroupsCommand)(output, context); } - return contents; -}; -const de_InvalidSecurityGroupException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +} +exports.SetSecurityGroupsCommand = SetSecurityGroupsCommand; + + +/***/ }), + +/***/ 69079: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SetSubnetsCommand = exports.$Command = void 0; +const middleware_endpoint_1 = __nccwpck_require__(82918); +const middleware_serde_1 = __nccwpck_require__(81238); +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); +const types_1 = __nccwpck_require__(55756); +const Aws_query_1 = __nccwpck_require__(60483); +class SetSubnetsCommand extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; } - return contents; -}; -const de_InvalidSubnetException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + constructor(input) { + super(); + this.input = input; } - return contents; -}; -const de_InvalidTargetException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetSubnetsCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "ElasticLoadBalancingV2Client"; + const commandName = "SetSubnetsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "ElasticLoadBalancing_v10", + operation: "SetSubnets", + }, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return contents; -}; -const de_Limit = (output, context) => { - const contents = {}; - if (output["Name"] !== undefined) { - contents.Name = (0, smithy_client_1.expectString)(output["Name"]); + serialize(input, context) { + return (0, Aws_query_1.se_SetSubnetsCommand)(input, context); } - if (output["Max"] !== undefined) { - contents.Max = (0, smithy_client_1.expectString)(output["Max"]); + deserialize(output, context) { + return (0, Aws_query_1.de_SetSubnetsCommand)(output, context); } - return contents; +} +exports.SetSubnetsCommand = SetSubnetsCommand; + + +/***/ }), + +/***/ 98924: +/***/ ((__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__(12321), exports); +tslib_1.__exportStar(__nccwpck_require__(49145), exports); +tslib_1.__exportStar(__nccwpck_require__(41732), exports); +tslib_1.__exportStar(__nccwpck_require__(11263), exports); +tslib_1.__exportStar(__nccwpck_require__(45658), exports); +tslib_1.__exportStar(__nccwpck_require__(63177), exports); +tslib_1.__exportStar(__nccwpck_require__(1913), exports); +tslib_1.__exportStar(__nccwpck_require__(44640), exports); +tslib_1.__exportStar(__nccwpck_require__(74182), exports); +tslib_1.__exportStar(__nccwpck_require__(29381), exports); +tslib_1.__exportStar(__nccwpck_require__(27848), exports); +tslib_1.__exportStar(__nccwpck_require__(45648), exports); +tslib_1.__exportStar(__nccwpck_require__(40049), exports); +tslib_1.__exportStar(__nccwpck_require__(76871), exports); +tslib_1.__exportStar(__nccwpck_require__(55220), exports); +tslib_1.__exportStar(__nccwpck_require__(85295), exports); +tslib_1.__exportStar(__nccwpck_require__(40030), exports); +tslib_1.__exportStar(__nccwpck_require__(28088), exports); +tslib_1.__exportStar(__nccwpck_require__(36485), exports); +tslib_1.__exportStar(__nccwpck_require__(25138), exports); +tslib_1.__exportStar(__nccwpck_require__(17626), exports); +tslib_1.__exportStar(__nccwpck_require__(48163), exports); +tslib_1.__exportStar(__nccwpck_require__(78161), exports); +tslib_1.__exportStar(__nccwpck_require__(54619), exports); +tslib_1.__exportStar(__nccwpck_require__(64014), exports); +tslib_1.__exportStar(__nccwpck_require__(66091), exports); +tslib_1.__exportStar(__nccwpck_require__(89776), exports); +tslib_1.__exportStar(__nccwpck_require__(43263), exports); +tslib_1.__exportStar(__nccwpck_require__(68114), exports); +tslib_1.__exportStar(__nccwpck_require__(11355), exports); +tslib_1.__exportStar(__nccwpck_require__(11926), exports); +tslib_1.__exportStar(__nccwpck_require__(38989), exports); +tslib_1.__exportStar(__nccwpck_require__(76366), exports); +tslib_1.__exportStar(__nccwpck_require__(69079), exports); + + +/***/ }), + +/***/ 11715: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveClientEndpointParameters = void 0; +const resolveClientEndpointParameters = (options) => { + return { + ...options, + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "elasticloadbalancing", + }; }; -const de_Limits = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Limit(entry, context); +exports.resolveClientEndpointParameters = resolveClientEndpointParameters; + + +/***/ }), + +/***/ 97017: +/***/ ((__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 ruleset_1 = __nccwpck_require__(91123); +const defaultEndpointResolver = (endpointParams, context = {}) => { + return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { + endpointParams: endpointParams, + logger: context.logger, }); }; -const de_Listener = (output, context) => { - const contents = {}; - if (output["ListenerArn"] !== undefined) { - contents.ListenerArn = (0, smithy_client_1.expectString)(output["ListenerArn"]); - } - if (output["LoadBalancerArn"] !== undefined) { - contents.LoadBalancerArn = (0, smithy_client_1.expectString)(output["LoadBalancerArn"]); - } - if (output["Port"] !== undefined) { - contents.Port = (0, smithy_client_1.strictParseInt32)(output["Port"]); - } - if (output["Protocol"] !== undefined) { - contents.Protocol = (0, smithy_client_1.expectString)(output["Protocol"]); - } - if (output.Certificates === "") { - contents.Certificates = []; - } - else if (output["Certificates"] !== undefined && output["Certificates"]["member"] !== undefined) { - contents.Certificates = de_CertificateList((0, smithy_client_1.getArrayIfSingleItem)(output["Certificates"]["member"]), context); - } - if (output["SslPolicy"] !== undefined) { - contents.SslPolicy = (0, smithy_client_1.expectString)(output["SslPolicy"]); - } - if (output.DefaultActions === "") { - contents.DefaultActions = []; - } - else if (output["DefaultActions"] !== undefined && output["DefaultActions"]["member"] !== undefined) { - contents.DefaultActions = de_Actions((0, smithy_client_1.getArrayIfSingleItem)(output["DefaultActions"]["member"]), context); - } - if (output.AlpnPolicy === "") { - contents.AlpnPolicy = []; - } - else if (output["AlpnPolicy"] !== undefined && output["AlpnPolicy"]["member"] !== undefined) { - contents.AlpnPolicy = de_AlpnPolicyName((0, smithy_client_1.getArrayIfSingleItem)(output["AlpnPolicy"]["member"]), context); +exports.defaultEndpointResolver = defaultEndpointResolver; + + +/***/ }), + +/***/ 91123: +/***/ ((__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 = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }]; +const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://elasticloadbalancing.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }; +exports.ruleSet = _data; + + +/***/ }), + +/***/ 49346: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ElasticLoadBalancingV2ServiceException = void 0; +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(72577), exports); +tslib_1.__exportStar(__nccwpck_require__(54887), exports); +tslib_1.__exportStar(__nccwpck_require__(98924), exports); +tslib_1.__exportStar(__nccwpck_require__(55649), exports); +tslib_1.__exportStar(__nccwpck_require__(80616), exports); +tslib_1.__exportStar(__nccwpck_require__(26412), exports); +var ElasticLoadBalancingV2ServiceException_1 = __nccwpck_require__(8182); +Object.defineProperty(exports, "ElasticLoadBalancingV2ServiceException", ({ enumerable: true, get: function () { return ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException; } })); + + +/***/ }), + +/***/ 8182: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ElasticLoadBalancingV2ServiceException = exports.__ServiceException = void 0; +const smithy_client_1 = __nccwpck_require__(63570); +Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } })); +class ElasticLoadBalancingV2ServiceException extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, ElasticLoadBalancingV2ServiceException.prototype); } - return contents; +} +exports.ElasticLoadBalancingV2ServiceException = ElasticLoadBalancingV2ServiceException; + + +/***/ }), + +/***/ 26412: +/***/ ((__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__(72907), exports); + + +/***/ }), + +/***/ 72907: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HealthUnavailableException = exports.TargetHealthStateEnum = exports.TargetHealthReasonEnum = exports.InvalidTargetException = exports.DuplicateTargetGroupNameException = exports.TargetTypeEnum = exports.TargetGroupIpAddressTypeEnum = exports.TooManyTargetGroupsException = exports.TooManyRulesException = exports.PriorityInUseException = exports.TooManyLoadBalancersException = exports.SubnetNotFoundException = exports.ResourceInUseException = exports.OperationNotPermittedException = exports.InvalidSubnetException = exports.InvalidSecurityGroupException = exports.InvalidSchemeException = exports.DuplicateLoadBalancerNameException = exports.LoadBalancerStateEnum = exports.LoadBalancerTypeEnum = exports.LoadBalancerSchemeEnum = exports.IpAddressType = exports.UnsupportedProtocolException = exports.TooManyUniqueTargetGroupsPerLoadBalancerException = exports.TooManyTargetsException = exports.TooManyRegistrationsForTargetIdException = exports.TooManyListenersException = exports.TooManyActionsException = exports.TargetGroupAssociationLimitException = exports.SSLPolicyNotFoundException = exports.InvalidLoadBalancerActionException = exports.InvalidConfigurationRequestException = exports.IncompatibleProtocolsException = exports.DuplicateListenerException = exports.ProtocolEnum = exports.AvailabilityZoneNotSupportedException = exports.ALPNPolicyNotSupportedException = exports.AllocationIdNotFoundException = exports.TooManyTagsException = exports.TargetGroupNotFoundException = exports.RuleNotFoundException = exports.LoadBalancerNotFoundException = exports.DuplicateTagKeysException = exports.TooManyCertificatesException = exports.ListenerNotFoundException = exports.CertificateNotFoundException = exports.ActionTypeEnum = exports.RedirectActionStatusCodeEnum = exports.AuthenticateOidcActionConditionalBehaviorEnum = exports.AuthenticateCognitoActionConditionalBehaviorEnum = void 0; +exports.EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum = void 0; +const ElasticLoadBalancingV2ServiceException_1 = __nccwpck_require__(8182); +exports.AuthenticateCognitoActionConditionalBehaviorEnum = { + ALLOW: "allow", + AUTHENTICATE: "authenticate", + DENY: "deny", }; -const de_ListenerNotFoundException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); - } - return contents; +exports.AuthenticateOidcActionConditionalBehaviorEnum = { + ALLOW: "allow", + AUTHENTICATE: "authenticate", + DENY: "deny", }; -const de_Listeners = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Listener(entry, context); - }); +exports.RedirectActionStatusCodeEnum = { + HTTP_301: "HTTP_301", + HTTP_302: "HTTP_302", }; -const de_ListOfString = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return (0, smithy_client_1.expectString)(entry); - }); +exports.ActionTypeEnum = { + AUTHENTICATE_COGNITO: "authenticate-cognito", + AUTHENTICATE_OIDC: "authenticate-oidc", + FIXED_RESPONSE: "fixed-response", + FORWARD: "forward", + REDIRECT: "redirect", }; -const de_LoadBalancer = (output, context) => { - const contents = {}; - if (output["LoadBalancerArn"] !== undefined) { - contents.LoadBalancerArn = (0, smithy_client_1.expectString)(output["LoadBalancerArn"]); - } - if (output["DNSName"] !== undefined) { - contents.DNSName = (0, smithy_client_1.expectString)(output["DNSName"]); - } - if (output["CanonicalHostedZoneId"] !== undefined) { - contents.CanonicalHostedZoneId = (0, smithy_client_1.expectString)(output["CanonicalHostedZoneId"]); - } - if (output["CreatedTime"] !== undefined) { - contents.CreatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CreatedTime"])); - } - if (output["LoadBalancerName"] !== undefined) { - contents.LoadBalancerName = (0, smithy_client_1.expectString)(output["LoadBalancerName"]); - } - if (output["Scheme"] !== undefined) { - contents.Scheme = (0, smithy_client_1.expectString)(output["Scheme"]); +class CertificateNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "CertificateNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "CertificateNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, CertificateNotFoundException.prototype); + this.Message = opts.Message; } - if (output["VpcId"] !== undefined) { - contents.VpcId = (0, smithy_client_1.expectString)(output["VpcId"]); +} +exports.CertificateNotFoundException = CertificateNotFoundException; +class ListenerNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "ListenerNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "ListenerNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ListenerNotFoundException.prototype); + this.Message = opts.Message; } - if (output["State"] !== undefined) { - contents.State = de_LoadBalancerState(output["State"], context); +} +exports.ListenerNotFoundException = ListenerNotFoundException; +class TooManyCertificatesException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TooManyCertificatesException", + $fault: "client", + ...opts, + }); + this.name = "TooManyCertificatesException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyCertificatesException.prototype); + this.Message = opts.Message; } - if (output["Type"] !== undefined) { - contents.Type = (0, smithy_client_1.expectString)(output["Type"]); +} +exports.TooManyCertificatesException = TooManyCertificatesException; +class DuplicateTagKeysException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "DuplicateTagKeysException", + $fault: "client", + ...opts, + }); + this.name = "DuplicateTagKeysException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DuplicateTagKeysException.prototype); + this.Message = opts.Message; } - if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; +} +exports.DuplicateTagKeysException = DuplicateTagKeysException; +class LoadBalancerNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "LoadBalancerNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "LoadBalancerNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, LoadBalancerNotFoundException.prototype); + this.Message = opts.Message; } - else if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["member"] !== undefined) { - contents.AvailabilityZones = de_AvailabilityZones((0, smithy_client_1.getArrayIfSingleItem)(output["AvailabilityZones"]["member"]), context); +} +exports.LoadBalancerNotFoundException = LoadBalancerNotFoundException; +class RuleNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "RuleNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "RuleNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RuleNotFoundException.prototype); + this.Message = opts.Message; } - if (output.SecurityGroups === "") { - contents.SecurityGroups = []; +} +exports.RuleNotFoundException = RuleNotFoundException; +class TargetGroupNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TargetGroupNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "TargetGroupNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TargetGroupNotFoundException.prototype); + this.Message = opts.Message; } - else if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) { - contents.SecurityGroups = de_SecurityGroups((0, smithy_client_1.getArrayIfSingleItem)(output["SecurityGroups"]["member"]), context); +} +exports.TargetGroupNotFoundException = TargetGroupNotFoundException; +class TooManyTagsException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TooManyTagsException", + $fault: "client", + ...opts, + }); + this.name = "TooManyTagsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyTagsException.prototype); + this.Message = opts.Message; } - if (output["IpAddressType"] !== undefined) { - contents.IpAddressType = (0, smithy_client_1.expectString)(output["IpAddressType"]); +} +exports.TooManyTagsException = TooManyTagsException; +class AllocationIdNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "AllocationIdNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "AllocationIdNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AllocationIdNotFoundException.prototype); + this.Message = opts.Message; } - if (output["CustomerOwnedIpv4Pool"] !== undefined) { - contents.CustomerOwnedIpv4Pool = (0, smithy_client_1.expectString)(output["CustomerOwnedIpv4Pool"]); +} +exports.AllocationIdNotFoundException = AllocationIdNotFoundException; +class ALPNPolicyNotSupportedException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "ALPNPolicyNotSupportedException", + $fault: "client", + ...opts, + }); + this.name = "ALPNPolicyNotSupportedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ALPNPolicyNotSupportedException.prototype); + this.Message = opts.Message; } - if (output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] !== undefined) { - contents.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = (0, smithy_client_1.expectString)(output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"]); +} +exports.ALPNPolicyNotSupportedException = ALPNPolicyNotSupportedException; +class AvailabilityZoneNotSupportedException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "AvailabilityZoneNotSupportedException", + $fault: "client", + ...opts, + }); + this.name = "AvailabilityZoneNotSupportedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AvailabilityZoneNotSupportedException.prototype); + this.Message = opts.Message; } - return contents; +} +exports.AvailabilityZoneNotSupportedException = AvailabilityZoneNotSupportedException; +exports.ProtocolEnum = { + GENEVE: "GENEVE", + HTTP: "HTTP", + HTTPS: "HTTPS", + TCP: "TCP", + TCP_UDP: "TCP_UDP", + TLS: "TLS", + UDP: "UDP", }; -const de_LoadBalancerAddress = (output, context) => { - const contents = {}; - if (output["IpAddress"] !== undefined) { - contents.IpAddress = (0, smithy_client_1.expectString)(output["IpAddress"]); - } - if (output["AllocationId"] !== undefined) { - contents.AllocationId = (0, smithy_client_1.expectString)(output["AllocationId"]); +class DuplicateListenerException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "DuplicateListenerException", + $fault: "client", + ...opts, + }); + this.name = "DuplicateListenerException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DuplicateListenerException.prototype); + this.Message = opts.Message; } - if (output["PrivateIPv4Address"] !== undefined) { - contents.PrivateIPv4Address = (0, smithy_client_1.expectString)(output["PrivateIPv4Address"]); +} +exports.DuplicateListenerException = DuplicateListenerException; +class IncompatibleProtocolsException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "IncompatibleProtocolsException", + $fault: "client", + ...opts, + }); + this.name = "IncompatibleProtocolsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IncompatibleProtocolsException.prototype); + this.Message = opts.Message; } - if (output["IPv6Address"] !== undefined) { - contents.IPv6Address = (0, smithy_client_1.expectString)(output["IPv6Address"]); +} +exports.IncompatibleProtocolsException = IncompatibleProtocolsException; +class InvalidConfigurationRequestException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "InvalidConfigurationRequestException", + $fault: "client", + ...opts, + }); + this.name = "InvalidConfigurationRequestException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidConfigurationRequestException.prototype); + this.Message = opts.Message; } - return contents; -}; -const de_LoadBalancerAddresses = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_LoadBalancerAddress(entry, context); - }); -}; -const de_LoadBalancerArns = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return (0, smithy_client_1.expectString)(entry); - }); -}; -const de_LoadBalancerAttribute = (output, context) => { - const contents = {}; - if (output["Key"] !== undefined) { - contents.Key = (0, smithy_client_1.expectString)(output["Key"]); +} +exports.InvalidConfigurationRequestException = InvalidConfigurationRequestException; +class InvalidLoadBalancerActionException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "InvalidLoadBalancerActionException", + $fault: "client", + ...opts, + }); + this.name = "InvalidLoadBalancerActionException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidLoadBalancerActionException.prototype); + this.Message = opts.Message; } - if (output["Value"] !== undefined) { - contents.Value = (0, smithy_client_1.expectString)(output["Value"]); +} +exports.InvalidLoadBalancerActionException = InvalidLoadBalancerActionException; +class SSLPolicyNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "SSLPolicyNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "SSLPolicyNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, SSLPolicyNotFoundException.prototype); + this.Message = opts.Message; } - return contents; -}; -const de_LoadBalancerAttributes = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_LoadBalancerAttribute(entry, context); - }); -}; -const de_LoadBalancerNotFoundException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +} +exports.SSLPolicyNotFoundException = SSLPolicyNotFoundException; +class TargetGroupAssociationLimitException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TargetGroupAssociationLimitException", + $fault: "client", + ...opts, + }); + this.name = "TargetGroupAssociationLimitException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TargetGroupAssociationLimitException.prototype); + this.Message = opts.Message; } - return contents; -}; -const de_LoadBalancers = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_LoadBalancer(entry, context); - }); -}; -const de_LoadBalancerState = (output, context) => { - const contents = {}; - if (output["Code"] !== undefined) { - contents.Code = (0, smithy_client_1.expectString)(output["Code"]); +} +exports.TargetGroupAssociationLimitException = TargetGroupAssociationLimitException; +class TooManyActionsException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TooManyActionsException", + $fault: "client", + ...opts, + }); + this.name = "TooManyActionsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyActionsException.prototype); + this.Message = opts.Message; } - if (output["Reason"] !== undefined) { - contents.Reason = (0, smithy_client_1.expectString)(output["Reason"]); +} +exports.TooManyActionsException = TooManyActionsException; +class TooManyListenersException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TooManyListenersException", + $fault: "client", + ...opts, + }); + this.name = "TooManyListenersException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyListenersException.prototype); + this.Message = opts.Message; } - return contents; -}; -const de_Matcher = (output, context) => { - const contents = {}; - if (output["HttpCode"] !== undefined) { - contents.HttpCode = (0, smithy_client_1.expectString)(output["HttpCode"]); +} +exports.TooManyListenersException = TooManyListenersException; +class TooManyRegistrationsForTargetIdException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TooManyRegistrationsForTargetIdException", + $fault: "client", + ...opts, + }); + this.name = "TooManyRegistrationsForTargetIdException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyRegistrationsForTargetIdException.prototype); + this.Message = opts.Message; } - if (output["GrpcCode"] !== undefined) { - contents.GrpcCode = (0, smithy_client_1.expectString)(output["GrpcCode"]); +} +exports.TooManyRegistrationsForTargetIdException = TooManyRegistrationsForTargetIdException; +class TooManyTargetsException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TooManyTargetsException", + $fault: "client", + ...opts, + }); + this.name = "TooManyTargetsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyTargetsException.prototype); + this.Message = opts.Message; } - return contents; -}; -const de_ModifyListenerOutput = (output, context) => { - const contents = {}; - if (output.Listeners === "") { - contents.Listeners = []; +} +exports.TooManyTargetsException = TooManyTargetsException; +class TooManyUniqueTargetGroupsPerLoadBalancerException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TooManyUniqueTargetGroupsPerLoadBalancerException", + $fault: "client", + ...opts, + }); + this.name = "TooManyUniqueTargetGroupsPerLoadBalancerException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyUniqueTargetGroupsPerLoadBalancerException.prototype); + this.Message = opts.Message; } - else if (output["Listeners"] !== undefined && output["Listeners"]["member"] !== undefined) { - contents.Listeners = de_Listeners((0, smithy_client_1.getArrayIfSingleItem)(output["Listeners"]["member"]), context); +} +exports.TooManyUniqueTargetGroupsPerLoadBalancerException = TooManyUniqueTargetGroupsPerLoadBalancerException; +class UnsupportedProtocolException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "UnsupportedProtocolException", + $fault: "client", + ...opts, + }); + this.name = "UnsupportedProtocolException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnsupportedProtocolException.prototype); + this.Message = opts.Message; } - return contents; +} +exports.UnsupportedProtocolException = UnsupportedProtocolException; +exports.IpAddressType = { + DUALSTACK: "dualstack", + IPV4: "ipv4", }; -const de_ModifyLoadBalancerAttributesOutput = (output, context) => { - const contents = {}; - if (output.Attributes === "") { - contents.Attributes = []; - } - else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { - contents.Attributes = de_LoadBalancerAttributes((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["member"]), context); - } - return contents; +exports.LoadBalancerSchemeEnum = { + INTERNAL: "internal", + INTERNET_FACING: "internet-facing", }; -const de_ModifyRuleOutput = (output, context) => { - const contents = {}; - if (output.Rules === "") { - contents.Rules = []; - } - else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { - contents.Rules = de_Rules((0, smithy_client_1.getArrayIfSingleItem)(output["Rules"]["member"]), context); - } - return contents; +exports.LoadBalancerTypeEnum = { + APPLICATION: "application", + GATEWAY: "gateway", + NETWORK: "network", }; -const de_ModifyTargetGroupAttributesOutput = (output, context) => { - const contents = {}; - if (output.Attributes === "") { - contents.Attributes = []; - } - else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { - contents.Attributes = de_TargetGroupAttributes((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["member"]), context); - } - return contents; +exports.LoadBalancerStateEnum = { + ACTIVE: "active", + ACTIVE_IMPAIRED: "active_impaired", + FAILED: "failed", + PROVISIONING: "provisioning", }; -const de_ModifyTargetGroupOutput = (output, context) => { - const contents = {}; - if (output.TargetGroups === "") { - contents.TargetGroups = []; +class DuplicateLoadBalancerNameException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "DuplicateLoadBalancerNameException", + $fault: "client", + ...opts, + }); + this.name = "DuplicateLoadBalancerNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DuplicateLoadBalancerNameException.prototype); + this.Message = opts.Message; } - else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { - contents.TargetGroups = de_TargetGroups((0, smithy_client_1.getArrayIfSingleItem)(output["TargetGroups"]["member"]), context); +} +exports.DuplicateLoadBalancerNameException = DuplicateLoadBalancerNameException; +class InvalidSchemeException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "InvalidSchemeException", + $fault: "client", + ...opts, + }); + this.name = "InvalidSchemeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidSchemeException.prototype); + this.Message = opts.Message; } - return contents; -}; -const de_OperationNotPermittedException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +} +exports.InvalidSchemeException = InvalidSchemeException; +class InvalidSecurityGroupException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "InvalidSecurityGroupException", + $fault: "client", + ...opts, + }); + this.name = "InvalidSecurityGroupException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidSecurityGroupException.prototype); + this.Message = opts.Message; } - return contents; -}; -const de_PathPatternConditionConfig = (output, context) => { - const contents = {}; - if (output.Values === "") { - contents.Values = []; +} +exports.InvalidSecurityGroupException = InvalidSecurityGroupException; +class InvalidSubnetException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "InvalidSubnetException", + $fault: "client", + ...opts, + }); + this.name = "InvalidSubnetException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidSubnetException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidSubnetException = InvalidSubnetException; +class OperationNotPermittedException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "OperationNotPermittedException", + $fault: "client", + ...opts, + }); + this.name = "OperationNotPermittedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OperationNotPermittedException.prototype); + this.Message = opts.Message; } - else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); +} +exports.OperationNotPermittedException = OperationNotPermittedException; +class ResourceInUseException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "ResourceInUseException", + $fault: "client", + ...opts, + }); + this.name = "ResourceInUseException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceInUseException.prototype); + this.Message = opts.Message; } - return contents; -}; -const de_PriorityInUseException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +} +exports.ResourceInUseException = ResourceInUseException; +class SubnetNotFoundException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "SubnetNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "SubnetNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, SubnetNotFoundException.prototype); + this.Message = opts.Message; } - return contents; -}; -const de_QueryStringConditionConfig = (output, context) => { - const contents = {}; - if (output.Values === "") { - contents.Values = []; +} +exports.SubnetNotFoundException = SubnetNotFoundException; +class TooManyLoadBalancersException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TooManyLoadBalancersException", + $fault: "client", + ...opts, + }); + this.name = "TooManyLoadBalancersException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyLoadBalancersException.prototype); + this.Message = opts.Message; } - else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_QueryStringKeyValuePairList((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); +} +exports.TooManyLoadBalancersException = TooManyLoadBalancersException; +class PriorityInUseException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "PriorityInUseException", + $fault: "client", + ...opts, + }); + this.name = "PriorityInUseException"; + this.$fault = "client"; + Object.setPrototypeOf(this, PriorityInUseException.prototype); + this.Message = opts.Message; } - return contents; -}; -const de_QueryStringKeyValuePair = (output, context) => { - const contents = {}; - if (output["Key"] !== undefined) { - contents.Key = (0, smithy_client_1.expectString)(output["Key"]); +} +exports.PriorityInUseException = PriorityInUseException; +class TooManyRulesException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TooManyRulesException", + $fault: "client", + ...opts, + }); + this.name = "TooManyRulesException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyRulesException.prototype); + this.Message = opts.Message; } - if (output["Value"] !== undefined) { - contents.Value = (0, smithy_client_1.expectString)(output["Value"]); +} +exports.TooManyRulesException = TooManyRulesException; +class TooManyTargetGroupsException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "TooManyTargetGroupsException", + $fault: "client", + ...opts, + }); + this.name = "TooManyTargetGroupsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyTargetGroupsException.prototype); + this.Message = opts.Message; } - return contents; +} +exports.TooManyTargetGroupsException = TooManyTargetGroupsException; +exports.TargetGroupIpAddressTypeEnum = { + IPV4: "ipv4", + IPV6: "ipv6", }; -const de_QueryStringKeyValuePairList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_QueryStringKeyValuePair(entry, context); - }); +exports.TargetTypeEnum = { + ALB: "alb", + INSTANCE: "instance", + IP: "ip", + LAMBDA: "lambda", }; -const de_RedirectActionConfig = (output, context) => { - const contents = {}; - if (output["Protocol"] !== undefined) { - contents.Protocol = (0, smithy_client_1.expectString)(output["Protocol"]); - } - if (output["Port"] !== undefined) { - contents.Port = (0, smithy_client_1.expectString)(output["Port"]); - } - if (output["Host"] !== undefined) { - contents.Host = (0, smithy_client_1.expectString)(output["Host"]); - } - if (output["Path"] !== undefined) { - contents.Path = (0, smithy_client_1.expectString)(output["Path"]); - } - if (output["Query"] !== undefined) { - contents.Query = (0, smithy_client_1.expectString)(output["Query"]); +class DuplicateTargetGroupNameException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "DuplicateTargetGroupNameException", + $fault: "client", + ...opts, + }); + this.name = "DuplicateTargetGroupNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DuplicateTargetGroupNameException.prototype); + this.Message = opts.Message; } - if (output["StatusCode"] !== undefined) { - contents.StatusCode = (0, smithy_client_1.expectString)(output["StatusCode"]); +} +exports.DuplicateTargetGroupNameException = DuplicateTargetGroupNameException; +class InvalidTargetException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "InvalidTargetException", + $fault: "client", + ...opts, + }); + this.name = "InvalidTargetException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTargetException.prototype); + this.Message = opts.Message; } - return contents; +} +exports.InvalidTargetException = InvalidTargetException; +exports.TargetHealthReasonEnum = { + DEREGISTRATION_IN_PROGRESS: "Target.DeregistrationInProgress", + FAILED_HEALTH_CHECKS: "Target.FailedHealthChecks", + HEALTH_CHECK_DISABLED: "Target.HealthCheckDisabled", + INITIAL_HEALTH_CHECKING: "Elb.InitialHealthChecking", + INTERNAL_ERROR: "Elb.InternalError", + INVALID_STATE: "Target.InvalidState", + IP_UNUSABLE: "Target.IpUnusable", + NOT_IN_USE: "Target.NotInUse", + NOT_REGISTERED: "Target.NotRegistered", + REGISTRATION_IN_PROGRESS: "Elb.RegistrationInProgress", + RESPONSE_CODE_MISMATCH: "Target.ResponseCodeMismatch", + TIMEOUT: "Target.Timeout", }; -const de_RegisterTargetsOutput = (output, context) => { - const contents = {}; - return contents; +exports.TargetHealthStateEnum = { + DRAINING: "draining", + HEALTHY: "healthy", + INITIAL: "initial", + UNAVAILABLE: "unavailable", + UNHEALTHY: "unhealthy", + UNUSED: "unused", }; -const de_RemoveListenerCertificatesOutput = (output, context) => { - const contents = {}; - return contents; +class HealthUnavailableException extends ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException { + constructor(opts) { + super({ + name: "HealthUnavailableException", + $fault: "server", + ...opts, + }); + this.name = "HealthUnavailableException"; + this.$fault = "server"; + Object.setPrototypeOf(this, HealthUnavailableException.prototype); + this.Message = opts.Message; + } +} +exports.HealthUnavailableException = HealthUnavailableException; +exports.EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum = { + off: "off", + on: "on", }; -const de_RemoveTagsOutput = (output, context) => { - const contents = {}; - return contents; + + +/***/ }), + +/***/ 386: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeListeners = void 0; +const DescribeListenersCommand_1 = __nccwpck_require__(76871); +const ElasticLoadBalancingV2Client_1 = __nccwpck_require__(72577); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeListenersCommand_1.DescribeListenersCommand(input), ...args); }; -const de_ResourceInUseException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +async function* paginateDescribeListeners(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.Marker = token; + if (config.client instanceof ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected ElasticLoadBalancingV2 | ElasticLoadBalancingV2Client"); + } + yield page; + const prevToken = token; + token = page.NextMarker; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); } - return contents; + return undefined; +} +exports.paginateDescribeListeners = paginateDescribeListeners; + + +/***/ }), + +/***/ 30854: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeLoadBalancers = void 0; +const DescribeLoadBalancersCommand_1 = __nccwpck_require__(85295); +const ElasticLoadBalancingV2Client_1 = __nccwpck_require__(72577); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand(input), ...args); }; -const de_Rule = (output, context) => { - const contents = {}; - if (output["RuleArn"] !== undefined) { - contents.RuleArn = (0, smithy_client_1.expectString)(output["RuleArn"]); - } - if (output["Priority"] !== undefined) { - contents.Priority = (0, smithy_client_1.expectString)(output["Priority"]); - } - if (output.Conditions === "") { - contents.Conditions = []; - } - else if (output["Conditions"] !== undefined && output["Conditions"]["member"] !== undefined) { - contents.Conditions = de_RuleConditionList((0, smithy_client_1.getArrayIfSingleItem)(output["Conditions"]["member"]), context); - } - if (output.Actions === "") { - contents.Actions = []; - } - else if (output["Actions"] !== undefined && output["Actions"]["member"] !== undefined) { - contents.Actions = de_Actions((0, smithy_client_1.getArrayIfSingleItem)(output["Actions"]["member"]), context); - } - if (output["IsDefault"] !== undefined) { - contents.IsDefault = (0, smithy_client_1.parseBoolean)(output["IsDefault"]); +async function* paginateDescribeLoadBalancers(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.Marker = token; + if (config.client instanceof ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected ElasticLoadBalancingV2 | ElasticLoadBalancingV2Client"); + } + yield page; + const prevToken = token; + token = page.NextMarker; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); } - return contents; + return undefined; +} +exports.paginateDescribeLoadBalancers = paginateDescribeLoadBalancers; + + +/***/ }), + +/***/ 36784: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeTargetGroups = void 0; +const DescribeTargetGroupsCommand_1 = __nccwpck_require__(17626); +const ElasticLoadBalancingV2Client_1 = __nccwpck_require__(72577); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeTargetGroupsCommand_1.DescribeTargetGroupsCommand(input), ...args); }; -const de_RuleCondition = (output, context) => { - const contents = {}; - if (output["Field"] !== undefined) { - contents.Field = (0, smithy_client_1.expectString)(output["Field"]); - } - if (output.Values === "") { - contents.Values = []; - } - else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); - } - if (output["HostHeaderConfig"] !== undefined) { - contents.HostHeaderConfig = de_HostHeaderConditionConfig(output["HostHeaderConfig"], context); - } - if (output["PathPatternConfig"] !== undefined) { - contents.PathPatternConfig = de_PathPatternConditionConfig(output["PathPatternConfig"], context); - } - if (output["HttpHeaderConfig"] !== undefined) { - contents.HttpHeaderConfig = de_HttpHeaderConditionConfig(output["HttpHeaderConfig"], context); - } - if (output["QueryStringConfig"] !== undefined) { - contents.QueryStringConfig = de_QueryStringConditionConfig(output["QueryStringConfig"], context); - } - if (output["HttpRequestMethodConfig"] !== undefined) { - contents.HttpRequestMethodConfig = de_HttpRequestMethodConditionConfig(output["HttpRequestMethodConfig"], context); - } - if (output["SourceIpConfig"] !== undefined) { - contents.SourceIpConfig = de_SourceIpConditionConfig(output["SourceIpConfig"], context); +async function* paginateDescribeTargetGroups(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.Marker = token; + if (config.client instanceof ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected ElasticLoadBalancingV2 | ElasticLoadBalancingV2Client"); + } + yield page; + const prevToken = token; + token = page.NextMarker; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); } - return contents; + return undefined; +} +exports.paginateDescribeTargetGroups = paginateDescribeTargetGroups; + + +/***/ }), + +/***/ 46914: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 55649: +/***/ ((__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__(386), exports); +tslib_1.__exportStar(__nccwpck_require__(30854), exports); +tslib_1.__exportStar(__nccwpck_require__(36784), exports); +tslib_1.__exportStar(__nccwpck_require__(46914), exports); + + +/***/ }), + +/***/ 60483: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.de_DescribeLoadBalancersCommand = exports.de_DescribeLoadBalancerAttributesCommand = exports.de_DescribeListenersCommand = exports.de_DescribeListenerCertificatesCommand = exports.de_DescribeAccountLimitsCommand = exports.de_DeregisterTargetsCommand = exports.de_DeleteTargetGroupCommand = exports.de_DeleteRuleCommand = exports.de_DeleteLoadBalancerCommand = exports.de_DeleteListenerCommand = exports.de_CreateTargetGroupCommand = exports.de_CreateRuleCommand = exports.de_CreateLoadBalancerCommand = exports.de_CreateListenerCommand = exports.de_AddTagsCommand = exports.de_AddListenerCertificatesCommand = exports.se_SetSubnetsCommand = exports.se_SetSecurityGroupsCommand = exports.se_SetRulePrioritiesCommand = exports.se_SetIpAddressTypeCommand = exports.se_RemoveTagsCommand = exports.se_RemoveListenerCertificatesCommand = exports.se_RegisterTargetsCommand = exports.se_ModifyTargetGroupAttributesCommand = exports.se_ModifyTargetGroupCommand = exports.se_ModifyRuleCommand = exports.se_ModifyLoadBalancerAttributesCommand = exports.se_ModifyListenerCommand = exports.se_DescribeTargetHealthCommand = exports.se_DescribeTargetGroupsCommand = exports.se_DescribeTargetGroupAttributesCommand = exports.se_DescribeTagsCommand = exports.se_DescribeSSLPoliciesCommand = exports.se_DescribeRulesCommand = exports.se_DescribeLoadBalancersCommand = exports.se_DescribeLoadBalancerAttributesCommand = exports.se_DescribeListenersCommand = exports.se_DescribeListenerCertificatesCommand = exports.se_DescribeAccountLimitsCommand = exports.se_DeregisterTargetsCommand = exports.se_DeleteTargetGroupCommand = exports.se_DeleteRuleCommand = exports.se_DeleteLoadBalancerCommand = exports.se_DeleteListenerCommand = exports.se_CreateTargetGroupCommand = exports.se_CreateRuleCommand = exports.se_CreateLoadBalancerCommand = exports.se_CreateListenerCommand = exports.se_AddTagsCommand = exports.se_AddListenerCertificatesCommand = void 0; +exports.de_SetSubnetsCommand = exports.de_SetSecurityGroupsCommand = exports.de_SetRulePrioritiesCommand = exports.de_SetIpAddressTypeCommand = exports.de_RemoveTagsCommand = exports.de_RemoveListenerCertificatesCommand = exports.de_RegisterTargetsCommand = exports.de_ModifyTargetGroupAttributesCommand = exports.de_ModifyTargetGroupCommand = exports.de_ModifyRuleCommand = exports.de_ModifyLoadBalancerAttributesCommand = exports.de_ModifyListenerCommand = exports.de_DescribeTargetHealthCommand = exports.de_DescribeTargetGroupsCommand = exports.de_DescribeTargetGroupAttributesCommand = exports.de_DescribeTagsCommand = exports.de_DescribeSSLPoliciesCommand = exports.de_DescribeRulesCommand = void 0; +const protocol_http_1 = __nccwpck_require__(64418); +const smithy_client_1 = __nccwpck_require__(63570); +const fast_xml_parser_1 = __nccwpck_require__(12603); +const ElasticLoadBalancingV2ServiceException_1 = __nccwpck_require__(8182); +const models_0_1 = __nccwpck_require__(72907); +const se_AddListenerCertificatesCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_AddListenerCertificatesInput(input, context), + Action: "AddListenerCertificates", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_RuleConditionList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_RuleCondition(entry, context); +exports.se_AddListenerCertificatesCommand = se_AddListenerCertificatesCommand; +const se_AddTagsCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_AddTagsInput(input, context), + Action: "AddTags", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_RuleNotFoundException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); - } - return contents; +exports.se_AddTagsCommand = se_AddTagsCommand; +const se_CreateListenerCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_CreateListenerInput(input, context), + Action: "CreateListener", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_Rules = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Rule(entry, context); +exports.se_CreateListenerCommand = se_CreateListenerCommand; +const se_CreateLoadBalancerCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_CreateLoadBalancerInput(input, context), + Action: "CreateLoadBalancer", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SecurityGroups = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return (0, smithy_client_1.expectString)(entry); +exports.se_CreateLoadBalancerCommand = se_CreateLoadBalancerCommand; +const se_CreateRuleCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_CreateRuleInput(input, context), + Action: "CreateRule", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SetIpAddressTypeOutput = (output, context) => { - const contents = {}; - if (output["IpAddressType"] !== undefined) { - contents.IpAddressType = (0, smithy_client_1.expectString)(output["IpAddressType"]); - } - return contents; +exports.se_CreateRuleCommand = se_CreateRuleCommand; +const se_CreateTargetGroupCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_CreateTargetGroupInput(input, context), + Action: "CreateTargetGroup", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SetRulePrioritiesOutput = (output, context) => { - const contents = {}; - if (output.Rules === "") { - contents.Rules = []; - } - else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { - contents.Rules = de_Rules((0, smithy_client_1.getArrayIfSingleItem)(output["Rules"]["member"]), context); - } - return contents; +exports.se_CreateTargetGroupCommand = se_CreateTargetGroupCommand; +const se_DeleteListenerCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DeleteListenerInput(input, context), + Action: "DeleteListener", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SetSecurityGroupsOutput = (output, context) => { - const contents = {}; - if (output.SecurityGroupIds === "") { - contents.SecurityGroupIds = []; - } - else if (output["SecurityGroupIds"] !== undefined && output["SecurityGroupIds"]["member"] !== undefined) { - contents.SecurityGroupIds = de_SecurityGroups((0, smithy_client_1.getArrayIfSingleItem)(output["SecurityGroupIds"]["member"]), context); - } - if (output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] !== undefined) { - contents.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = (0, smithy_client_1.expectString)(output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"]); - } - return contents; +exports.se_DeleteListenerCommand = se_DeleteListenerCommand; +const se_DeleteLoadBalancerCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DeleteLoadBalancerInput(input, context), + Action: "DeleteLoadBalancer", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SetSubnetsOutput = (output, context) => { - const contents = {}; - if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } - else if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["member"] !== undefined) { - contents.AvailabilityZones = de_AvailabilityZones((0, smithy_client_1.getArrayIfSingleItem)(output["AvailabilityZones"]["member"]), context); - } - if (output["IpAddressType"] !== undefined) { - contents.IpAddressType = (0, smithy_client_1.expectString)(output["IpAddressType"]); - } - return contents; +exports.se_DeleteLoadBalancerCommand = se_DeleteLoadBalancerCommand; +const se_DeleteRuleCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DeleteRuleInput(input, context), + Action: "DeleteRule", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SourceIpConditionConfig = (output, context) => { - const contents = {}; - if (output.Values === "") { - contents.Values = []; - } - else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); - } - return contents; +exports.se_DeleteRuleCommand = se_DeleteRuleCommand; +const se_DeleteTargetGroupCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DeleteTargetGroupInput(input, context), + Action: "DeleteTargetGroup", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SslPolicies = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_SslPolicy(entry, context); +exports.se_DeleteTargetGroupCommand = se_DeleteTargetGroupCommand; +const se_DeregisterTargetsCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DeregisterTargetsInput(input, context), + Action: "DeregisterTargets", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SslPolicy = (output, context) => { - const contents = {}; - if (output.SslProtocols === "") { - contents.SslProtocols = []; - } - else if (output["SslProtocols"] !== undefined && output["SslProtocols"]["member"] !== undefined) { - contents.SslProtocols = de_SslProtocols((0, smithy_client_1.getArrayIfSingleItem)(output["SslProtocols"]["member"]), context); - } - if (output.Ciphers === "") { - contents.Ciphers = []; - } - else if (output["Ciphers"] !== undefined && output["Ciphers"]["member"] !== undefined) { - contents.Ciphers = de_Ciphers((0, smithy_client_1.getArrayIfSingleItem)(output["Ciphers"]["member"]), context); - } - if (output["Name"] !== undefined) { - contents.Name = (0, smithy_client_1.expectString)(output["Name"]); - } - if (output.SupportedLoadBalancerTypes === "") { - contents.SupportedLoadBalancerTypes = []; - } - else if (output["SupportedLoadBalancerTypes"] !== undefined && - output["SupportedLoadBalancerTypes"]["member"] !== undefined) { - contents.SupportedLoadBalancerTypes = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["SupportedLoadBalancerTypes"]["member"]), context); - } - return contents; +exports.se_DeregisterTargetsCommand = se_DeregisterTargetsCommand; +const se_DescribeAccountLimitsCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeAccountLimitsInput(input, context), + Action: "DescribeAccountLimits", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SSLPolicyNotFoundException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); - } - return contents; +exports.se_DescribeAccountLimitsCommand = se_DescribeAccountLimitsCommand; +const se_DescribeListenerCertificatesCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeListenerCertificatesInput(input, context), + Action: "DescribeListenerCertificates", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SslProtocols = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return (0, smithy_client_1.expectString)(entry); +exports.se_DescribeListenerCertificatesCommand = se_DescribeListenerCertificatesCommand; +const se_DescribeListenersCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeListenersInput(input, context), + Action: "DescribeListeners", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_SubnetNotFoundException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); - } - return contents; +exports.se_DescribeListenersCommand = se_DescribeListenersCommand; +const se_DescribeLoadBalancerAttributesCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeLoadBalancerAttributesInput(input, context), + Action: "DescribeLoadBalancerAttributes", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_Tag = (output, context) => { - const contents = {}; - if (output["Key"] !== undefined) { - contents.Key = (0, smithy_client_1.expectString)(output["Key"]); - } - if (output["Value"] !== undefined) { - contents.Value = (0, smithy_client_1.expectString)(output["Value"]); - } - return contents; +exports.se_DescribeLoadBalancerAttributesCommand = se_DescribeLoadBalancerAttributesCommand; +const se_DescribeLoadBalancersCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeLoadBalancersInput(input, context), + Action: "DescribeLoadBalancers", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TagDescription = (output, context) => { - const contents = {}; - if (output["ResourceArn"] !== undefined) { - contents.ResourceArn = (0, smithy_client_1.expectString)(output["ResourceArn"]); - } - if (output.Tags === "") { - contents.Tags = []; - } - else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_TagList((0, smithy_client_1.getArrayIfSingleItem)(output["Tags"]["member"]), context); - } - return contents; +exports.se_DescribeLoadBalancersCommand = se_DescribeLoadBalancersCommand; +const se_DescribeRulesCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeRulesInput(input, context), + Action: "DescribeRules", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TagDescriptions = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_TagDescription(entry, context); +exports.se_DescribeRulesCommand = se_DescribeRulesCommand; +const se_DescribeSSLPoliciesCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeSSLPoliciesInput(input, context), + Action: "DescribeSSLPolicies", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TagList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Tag(entry, context); +exports.se_DescribeSSLPoliciesCommand = se_DescribeSSLPoliciesCommand; +const se_DescribeTagsCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeTagsInput(input, context), + Action: "DescribeTags", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetDescription = (output, context) => { - const contents = {}; - if (output["Id"] !== undefined) { - contents.Id = (0, smithy_client_1.expectString)(output["Id"]); - } - if (output["Port"] !== undefined) { - contents.Port = (0, smithy_client_1.strictParseInt32)(output["Port"]); - } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = (0, smithy_client_1.expectString)(output["AvailabilityZone"]); - } - return contents; +exports.se_DescribeTagsCommand = se_DescribeTagsCommand; +const se_DescribeTargetGroupAttributesCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeTargetGroupAttributesInput(input, context), + Action: "DescribeTargetGroupAttributes", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetGroup = (output, context) => { - const contents = {}; - if (output["TargetGroupArn"] !== undefined) { - contents.TargetGroupArn = (0, smithy_client_1.expectString)(output["TargetGroupArn"]); - } - if (output["TargetGroupName"] !== undefined) { - contents.TargetGroupName = (0, smithy_client_1.expectString)(output["TargetGroupName"]); - } - if (output["Protocol"] !== undefined) { - contents.Protocol = (0, smithy_client_1.expectString)(output["Protocol"]); - } - if (output["Port"] !== undefined) { - contents.Port = (0, smithy_client_1.strictParseInt32)(output["Port"]); - } - if (output["VpcId"] !== undefined) { - contents.VpcId = (0, smithy_client_1.expectString)(output["VpcId"]); - } - if (output["HealthCheckProtocol"] !== undefined) { - contents.HealthCheckProtocol = (0, smithy_client_1.expectString)(output["HealthCheckProtocol"]); - } - if (output["HealthCheckPort"] !== undefined) { - contents.HealthCheckPort = (0, smithy_client_1.expectString)(output["HealthCheckPort"]); - } - if (output["HealthCheckEnabled"] !== undefined) { - contents.HealthCheckEnabled = (0, smithy_client_1.parseBoolean)(output["HealthCheckEnabled"]); - } - if (output["HealthCheckIntervalSeconds"] !== undefined) { - contents.HealthCheckIntervalSeconds = (0, smithy_client_1.strictParseInt32)(output["HealthCheckIntervalSeconds"]); - } - if (output["HealthCheckTimeoutSeconds"] !== undefined) { - contents.HealthCheckTimeoutSeconds = (0, smithy_client_1.strictParseInt32)(output["HealthCheckTimeoutSeconds"]); - } - if (output["HealthyThresholdCount"] !== undefined) { - contents.HealthyThresholdCount = (0, smithy_client_1.strictParseInt32)(output["HealthyThresholdCount"]); - } - if (output["UnhealthyThresholdCount"] !== undefined) { - contents.UnhealthyThresholdCount = (0, smithy_client_1.strictParseInt32)(output["UnhealthyThresholdCount"]); - } - if (output["HealthCheckPath"] !== undefined) { - contents.HealthCheckPath = (0, smithy_client_1.expectString)(output["HealthCheckPath"]); - } - if (output["Matcher"] !== undefined) { - contents.Matcher = de_Matcher(output["Matcher"], context); - } - if (output.LoadBalancerArns === "") { - contents.LoadBalancerArns = []; - } - else if (output["LoadBalancerArns"] !== undefined && output["LoadBalancerArns"]["member"] !== undefined) { - contents.LoadBalancerArns = de_LoadBalancerArns((0, smithy_client_1.getArrayIfSingleItem)(output["LoadBalancerArns"]["member"]), context); - } - if (output["TargetType"] !== undefined) { - contents.TargetType = (0, smithy_client_1.expectString)(output["TargetType"]); - } - if (output["ProtocolVersion"] !== undefined) { - contents.ProtocolVersion = (0, smithy_client_1.expectString)(output["ProtocolVersion"]); - } - if (output["IpAddressType"] !== undefined) { - contents.IpAddressType = (0, smithy_client_1.expectString)(output["IpAddressType"]); - } - return contents; +exports.se_DescribeTargetGroupAttributesCommand = se_DescribeTargetGroupAttributesCommand; +const se_DescribeTargetGroupsCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeTargetGroupsInput(input, context), + Action: "DescribeTargetGroups", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetGroupAssociationLimitException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); - } - return contents; +exports.se_DescribeTargetGroupsCommand = se_DescribeTargetGroupsCommand; +const se_DescribeTargetHealthCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DescribeTargetHealthInput(input, context), + Action: "DescribeTargetHealth", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetGroupAttribute = (output, context) => { - const contents = {}; - if (output["Key"] !== undefined) { - contents.Key = (0, smithy_client_1.expectString)(output["Key"]); - } - if (output["Value"] !== undefined) { - contents.Value = (0, smithy_client_1.expectString)(output["Value"]); - } - return contents; +exports.se_DescribeTargetHealthCommand = se_DescribeTargetHealthCommand; +const se_ModifyListenerCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_ModifyListenerInput(input, context), + Action: "ModifyListener", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetGroupAttributes = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_TargetGroupAttribute(entry, context); +exports.se_ModifyListenerCommand = se_ModifyListenerCommand; +const se_ModifyLoadBalancerAttributesCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_ModifyLoadBalancerAttributesInput(input, context), + Action: "ModifyLoadBalancerAttributes", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetGroupList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_TargetGroupTuple(entry, context); +exports.se_ModifyLoadBalancerAttributesCommand = se_ModifyLoadBalancerAttributesCommand; +const se_ModifyRuleCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_ModifyRuleInput(input, context), + Action: "ModifyRule", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetGroupNotFoundException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); - } - return contents; +exports.se_ModifyRuleCommand = se_ModifyRuleCommand; +const se_ModifyTargetGroupCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_ModifyTargetGroupInput(input, context), + Action: "ModifyTargetGroup", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetGroups = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_TargetGroup(entry, context); +exports.se_ModifyTargetGroupCommand = se_ModifyTargetGroupCommand; +const se_ModifyTargetGroupAttributesCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_ModifyTargetGroupAttributesInput(input, context), + Action: "ModifyTargetGroupAttributes", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetGroupStickinessConfig = (output, context) => { - const contents = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = (0, smithy_client_1.parseBoolean)(output["Enabled"]); - } - if (output["DurationSeconds"] !== undefined) { - contents.DurationSeconds = (0, smithy_client_1.strictParseInt32)(output["DurationSeconds"]); - } - return contents; +exports.se_ModifyTargetGroupAttributesCommand = se_ModifyTargetGroupAttributesCommand; +const se_RegisterTargetsCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_RegisterTargetsInput(input, context), + Action: "RegisterTargets", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetGroupTuple = (output, context) => { - const contents = {}; - if (output["TargetGroupArn"] !== undefined) { - contents.TargetGroupArn = (0, smithy_client_1.expectString)(output["TargetGroupArn"]); - } - if (output["Weight"] !== undefined) { - contents.Weight = (0, smithy_client_1.strictParseInt32)(output["Weight"]); - } - return contents; +exports.se_RegisterTargetsCommand = se_RegisterTargetsCommand; +const se_RemoveListenerCertificatesCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_RemoveListenerCertificatesInput(input, context), + Action: "RemoveListenerCertificates", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetHealth = (output, context) => { - const contents = {}; - if (output["State"] !== undefined) { - contents.State = (0, smithy_client_1.expectString)(output["State"]); - } - if (output["Reason"] !== undefined) { - contents.Reason = (0, smithy_client_1.expectString)(output["Reason"]); - } - if (output["Description"] !== undefined) { - contents.Description = (0, smithy_client_1.expectString)(output["Description"]); - } - return contents; +exports.se_RemoveListenerCertificatesCommand = se_RemoveListenerCertificatesCommand; +const se_RemoveTagsCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_RemoveTagsInput(input, context), + Action: "RemoveTags", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetHealthDescription = (output, context) => { - const contents = {}; - if (output["Target"] !== undefined) { - contents.Target = de_TargetDescription(output["Target"], context); - } - if (output["HealthCheckPort"] !== undefined) { - contents.HealthCheckPort = (0, smithy_client_1.expectString)(output["HealthCheckPort"]); - } - if (output["TargetHealth"] !== undefined) { - contents.TargetHealth = de_TargetHealth(output["TargetHealth"], context); - } - return contents; +exports.se_RemoveTagsCommand = se_RemoveTagsCommand; +const se_SetIpAddressTypeCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_SetIpAddressTypeInput(input, context), + Action: "SetIpAddressType", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_SetIpAddressTypeCommand = se_SetIpAddressTypeCommand; +const se_SetRulePrioritiesCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_SetRulePrioritiesInput(input, context), + Action: "SetRulePriorities", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TargetHealthDescriptions = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_TargetHealthDescription(entry, context); +exports.se_SetRulePrioritiesCommand = se_SetRulePrioritiesCommand; +const se_SetSecurityGroupsCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_SetSecurityGroupsInput(input, context), + Action: "SetSecurityGroups", + Version: "2015-12-01", }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); }; -const de_TooManyActionsException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +exports.se_SetSecurityGroupsCommand = se_SetSecurityGroupsCommand; +const se_SetSubnetsCommand = async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_SetSubnetsInput(input, context), + Action: "SetSubnets", + Version: "2015-12-01", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.se_SetSubnetsCommand = se_SetSubnetsCommand; +const de_AddListenerCertificatesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_AddListenerCertificatesCommandError(output, context); } - return contents; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_AddListenerCertificatesOutput(data.AddListenerCertificatesResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -const de_TooManyCertificatesException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +exports.de_AddListenerCertificatesCommand = de_AddListenerCertificatesCommand; +const de_AddListenerCertificatesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "CertificateNotFound": + case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException": + throw await de_CertificateNotFoundExceptionRes(parsedOutput, context); + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + case "TooManyCertificates": + case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException": + throw await de_TooManyCertificatesExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - return contents; }; -const de_TooManyListenersException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +const de_AddTagsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_AddTagsCommandError(output, context); } - return contents; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_AddTagsOutput(data.AddTagsResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -const de_TooManyLoadBalancersException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +exports.de_AddTagsCommand = de_AddTagsCommand; +const de_AddTagsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DuplicateTagKeys": + case "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException": + throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context); + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "RuleNotFound": + case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": + throw await de_RuleNotFoundExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "TooManyTags": + case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": + throw await de_TooManyTagsExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - return contents; }; -const de_TooManyRegistrationsForTargetIdException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +const de_CreateListenerCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_CreateListenerCommandError(output, context); } - return contents; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_CreateListenerOutput(data.CreateListenerResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -const de_TooManyRulesException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +exports.de_CreateListenerCommand = de_CreateListenerCommand; +const de_CreateListenerCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ALPNPolicyNotFound": + case "com.amazonaws.elasticloadbalancingv2#ALPNPolicyNotSupportedException": + throw await de_ALPNPolicyNotSupportedExceptionRes(parsedOutput, context); + case "CertificateNotFound": + case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException": + throw await de_CertificateNotFoundExceptionRes(parsedOutput, context); + case "DuplicateListener": + case "com.amazonaws.elasticloadbalancingv2#DuplicateListenerException": + throw await de_DuplicateListenerExceptionRes(parsedOutput, context); + case "IncompatibleProtocols": + case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException": + throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context); + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "InvalidLoadBalancerAction": + case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException": + throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context); + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "SSLPolicyNotFound": + case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException": + throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context); + case "TargetGroupAssociationLimit": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException": + throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "TooManyActions": + case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException": + throw await de_TooManyActionsExceptionRes(parsedOutput, context); + case "TooManyCertificates": + case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException": + throw await de_TooManyCertificatesExceptionRes(parsedOutput, context); + case "TooManyListeners": + case "com.amazonaws.elasticloadbalancingv2#TooManyListenersException": + throw await de_TooManyListenersExceptionRes(parsedOutput, context); + case "TooManyRegistrationsForTargetId": + case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": + throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context); + case "TooManyTags": + case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": + throw await de_TooManyTagsExceptionRes(parsedOutput, context); + case "TooManyTargets": + case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": + throw await de_TooManyTargetsExceptionRes(parsedOutput, context); + case "TooManyUniqueTargetGroupsPerLoadBalancer": + case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException": + throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context); + case "UnsupportedProtocol": + case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": + throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - return contents; }; -const de_TooManyTagsException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +const de_CreateLoadBalancerCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_CreateLoadBalancerCommandError(output, context); } - return contents; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_CreateLoadBalancerOutput(data.CreateLoadBalancerResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -const de_TooManyTargetGroupsException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +exports.de_CreateLoadBalancerCommand = de_CreateLoadBalancerCommand; +const de_CreateLoadBalancerCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AllocationIdNotFound": + case "com.amazonaws.elasticloadbalancingv2#AllocationIdNotFoundException": + throw await de_AllocationIdNotFoundExceptionRes(parsedOutput, context); + case "AvailabilityZoneNotSupported": + case "com.amazonaws.elasticloadbalancingv2#AvailabilityZoneNotSupportedException": + throw await de_AvailabilityZoneNotSupportedExceptionRes(parsedOutput, context); + case "DuplicateLoadBalancerName": + case "com.amazonaws.elasticloadbalancingv2#DuplicateLoadBalancerNameException": + throw await de_DuplicateLoadBalancerNameExceptionRes(parsedOutput, context); + case "DuplicateTagKeys": + case "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException": + throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context); + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "InvalidScheme": + case "com.amazonaws.elasticloadbalancingv2#InvalidSchemeException": + throw await de_InvalidSchemeExceptionRes(parsedOutput, context); + case "InvalidSecurityGroup": + case "com.amazonaws.elasticloadbalancingv2#InvalidSecurityGroupException": + throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context); + case "InvalidSubnet": + case "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException": + throw await de_InvalidSubnetExceptionRes(parsedOutput, context); + case "OperationNotPermitted": + case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": + throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); + case "ResourceInUse": + case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); + case "SubnetNotFound": + case "com.amazonaws.elasticloadbalancingv2#SubnetNotFoundException": + throw await de_SubnetNotFoundExceptionRes(parsedOutput, context); + case "TooManyLoadBalancers": + case "com.amazonaws.elasticloadbalancingv2#TooManyLoadBalancersException": + throw await de_TooManyLoadBalancersExceptionRes(parsedOutput, context); + case "TooManyTags": + case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": + throw await de_TooManyTagsExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - return contents; }; -const de_TooManyTargetsException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +const de_CreateRuleCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_CreateRuleCommandError(output, context); } - return contents; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_CreateRuleOutput(data.CreateRuleResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -const de_TooManyUniqueTargetGroupsPerLoadBalancerException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +exports.de_CreateRuleCommand = de_CreateRuleCommand; +const de_CreateRuleCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "IncompatibleProtocols": + case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException": + throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context); + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "InvalidLoadBalancerAction": + case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException": + throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context); + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + case "PriorityInUse": + case "com.amazonaws.elasticloadbalancingv2#PriorityInUseException": + throw await de_PriorityInUseExceptionRes(parsedOutput, context); + case "TargetGroupAssociationLimit": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException": + throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "TooManyActions": + case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException": + throw await de_TooManyActionsExceptionRes(parsedOutput, context); + case "TooManyRegistrationsForTargetId": + case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": + throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context); + case "TooManyRules": + case "com.amazonaws.elasticloadbalancingv2#TooManyRulesException": + throw await de_TooManyRulesExceptionRes(parsedOutput, context); + case "TooManyTags": + case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": + throw await de_TooManyTagsExceptionRes(parsedOutput, context); + case "TooManyTargetGroups": + case "com.amazonaws.elasticloadbalancingv2#TooManyTargetGroupsException": + throw await de_TooManyTargetGroupsExceptionRes(parsedOutput, context); + case "TooManyTargets": + case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": + throw await de_TooManyTargetsExceptionRes(parsedOutput, context); + case "TooManyUniqueTargetGroupsPerLoadBalancer": + case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException": + throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context); + case "UnsupportedProtocol": + case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": + throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - return contents; }; -const de_UnsupportedProtocolException = (output, context) => { - const contents = {}; - if (output["Message"] !== undefined) { - contents.Message = (0, smithy_client_1.expectString)(output["Message"]); +const de_CreateTargetGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_CreateTargetGroupCommandError(output, context); } - return contents; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_CreateTargetGroupOutput(data.CreateTargetGroupResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -const deserializeMetadata = (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"], -}); -const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -const throwDefaultError = (0, smithy_client_1.withBaseException)(ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException); -const buildHttpRpcRequest = 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, +exports.de_CreateTargetGroupCommand = de_CreateTargetGroupCommand; +const de_CreateTargetGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DuplicateTargetGroupName": + case "com.amazonaws.elasticloadbalancingv2#DuplicateTargetGroupNameException": + throw await de_DuplicateTargetGroupNameExceptionRes(parsedOutput, context); + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "TooManyTags": + case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": + throw await de_TooManyTagsExceptionRes(parsedOutput, context); + case "TooManyTargetGroups": + case "com.amazonaws.elasticloadbalancingv2#TooManyTargetGroupsException": + throw await de_TooManyTargetGroupsExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - return new protocol_http_1.HttpRequest(contents); -}; -const SHARED_HEADERS = { - "content-type": "application/x-www-form-urlencoded", }; -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - const parser = new fast_xml_parser_1.XMLParser({ - attributeNamePrefix: "", - htmlEntities: true, - ignoreAttributes: false, - ignoreDeclaration: true, - parseTagValue: false, - trimValues: false, - tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined), - }); - parser.addEntity("#xD", "\r"); - parser.addEntity("#10", "\n"); - const parsedObj = parser.parse(encoded); - 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, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); - } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - if (value.Error) { - value.Error.message = value.Error.message ?? value.Error.Message; +const de_DeleteListenerCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteListenerCommandError(output, context); } - return value; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DeleteListenerOutput(data.DeleteListenerResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries) - .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)) - .join("&"); -const loadQueryErrorCode = (output, data) => { - if (data.Error?.Code !== undefined) { - return data.Error.Code; - } - if (output.statusCode == 404) { - return "NotFound"; +exports.de_DeleteListenerCommand = de_DeleteListenerCommand; +const de_DeleteListenerCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + case "ResourceInUse": + case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } }; - - -/***/ }), - -/***/ 51401: -/***/ ((__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__(71031)); -const client_sts_1 = __nccwpck_require__(5336); -const credential_provider_node_1 = __nccwpck_require__(55340); -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__(77742); -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); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_node_1.defaultUserAgent)({ 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), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(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, - }), - 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), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), +const de_DeleteLoadBalancerCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteLoadBalancerCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DeleteLoadBalancerOutput(data.DeleteLoadBalancerResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, }; + return response; }; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 77742: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -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 endpointResolver_1 = __nccwpck_require__(97017); -const getRuntimeConfig = (config) => ({ - apiVersion: "2015-12-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 ?? [], - logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - serviceId: config?.serviceId ?? "Elastic Load Balancing v2", - urlParser: config?.urlParser ?? url_parser_1.parseUrl, - utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, - utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8, -}); -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 47313: -/***/ ((__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 asPartial = (t) => t; -const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), +exports.de_DeleteLoadBalancerCommand = de_DeleteLoadBalancerCommand; +const de_DeleteLoadBalancerCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), }; -}; -exports.resolveRuntimeExtensions = resolveRuntimeExtensions; - - -/***/ }), - -/***/ 80616: -/***/ ((__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__(83615), exports); -tslib_1.__exportStar(__nccwpck_require__(60125), exports); -tslib_1.__exportStar(__nccwpck_require__(87845), exports); -tslib_1.__exportStar(__nccwpck_require__(30853), exports); -tslib_1.__exportStar(__nccwpck_require__(47457), exports); - - -/***/ }), - -/***/ 83615: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilLoadBalancerAvailable = exports.waitForLoadBalancerAvailable = void 0; -const util_waiter_1 = __nccwpck_require__(78011); -const DescribeLoadBalancersCommand_1 = __nccwpck_require__(85295); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand(input)); - reason = result; - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.LoadBalancers); - const projection_3 = flat_1.map((element_2) => { - return element_2.State.Code; - }); - return projection_3; - }; - let allStringEq_5 = returnComparator().length > 0; - for (const element_4 of returnComparator()) { - allStringEq_5 = allStringEq_5 && element_4 == "active"; - } - if (allStringEq_5) { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.LoadBalancers); - const projection_3 = flat_1.map((element_2) => { - return element_2.State.Code; - }); - return projection_3; - }; - for (const anyStringEq_4 of returnComparator()) { - if (anyStringEq_4 == "provisioning") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - if (exception.name && exception.name == "LoadBalancerNotFound") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "OperationNotPermitted": + case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": + throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); + case "ResourceInUse": + case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForLoadBalancerAvailable = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForLoadBalancerAvailable = waitForLoadBalancerAvailable; -const waitUntilLoadBalancerAvailable = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); }; -exports.waitUntilLoadBalancerAvailable = waitUntilLoadBalancerAvailable; - - -/***/ }), - -/***/ 60125: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilLoadBalancerExists = exports.waitForLoadBalancerExists = void 0; -const util_waiter_1 = __nccwpck_require__(78011); -const DescribeLoadBalancersCommand_1 = __nccwpck_require__(85295); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand(input)); - reason = result; - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - catch (exception) { - reason = exception; - if (exception.name && exception.name == "LoadBalancerNotFound") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } +const de_DeleteRuleCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteRuleCommandError(output, context); } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForLoadBalancerExists = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForLoadBalancerExists = waitForLoadBalancerExists; -const waitUntilLoadBalancerExists = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DeleteRuleOutput(data.DeleteRuleResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.waitUntilLoadBalancerExists = waitUntilLoadBalancerExists; - - -/***/ }), - -/***/ 87845: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilLoadBalancersDeleted = exports.waitForLoadBalancersDeleted = void 0; -const util_waiter_1 = __nccwpck_require__(78011); -const DescribeLoadBalancersCommand_1 = __nccwpck_require__(85295); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand(input)); - reason = result; - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.LoadBalancers); - const projection_3 = flat_1.map((element_2) => { - return element_2.State.Code; - }); - return projection_3; - }; - let allStringEq_5 = returnComparator().length > 0; - for (const element_4 of returnComparator()) { - allStringEq_5 = allStringEq_5 && element_4 == "active"; - } - if (allStringEq_5) { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - if (exception.name && exception.name == "LoadBalancerNotFound") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } +exports.de_DeleteRuleCommand = de_DeleteRuleCommand; +const de_DeleteRuleCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "OperationNotPermitted": + case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": + throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); + case "RuleNotFound": + case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": + throw await de_RuleNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForLoadBalancersDeleted = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForLoadBalancersDeleted = waitForLoadBalancersDeleted; -const waitUntilLoadBalancersDeleted = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); }; -exports.waitUntilLoadBalancersDeleted = waitUntilLoadBalancersDeleted; - - -/***/ }), - -/***/ 30853: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilTargetDeregistered = exports.waitForTargetDeregistered = void 0; -const util_waiter_1 = __nccwpck_require__(78011); -const DescribeTargetHealthCommand_1 = __nccwpck_require__(48163); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeTargetHealthCommand_1.DescribeTargetHealthCommand(input)); - reason = result; - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.TargetHealthDescriptions); - const projection_3 = flat_1.map((element_2) => { - return element_2.TargetHealth.State; - }); - return projection_3; - }; - let allStringEq_5 = returnComparator().length > 0; - for (const element_4 of returnComparator()) { - allStringEq_5 = allStringEq_5 && element_4 == "unused"; - } - if (allStringEq_5) { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - if (exception.name && exception.name == "InvalidTarget") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } +const de_DeleteTargetGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeleteTargetGroupCommandError(output, context); } - return { state: util_waiter_1.WaiterState.RETRY, reason }; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DeleteTargetGroupOutput(data.DeleteTargetGroupResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -const waitForTargetDeregistered = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); +exports.de_DeleteTargetGroupCommand = de_DeleteTargetGroupCommand; +const de_DeleteTargetGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ResourceInUse": + case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); + } }; -exports.waitForTargetDeregistered = waitForTargetDeregistered; -const waitUntilTargetDeregistered = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); +const de_DeregisterTargetsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DeregisterTargetsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DeregisterTargetsOutput(data.DeregisterTargetsResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.waitUntilTargetDeregistered = waitUntilTargetDeregistered; - - -/***/ }), - -/***/ 47457: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilTargetInService = exports.waitForTargetInService = void 0; -const util_waiter_1 = __nccwpck_require__(78011); -const DescribeTargetHealthCommand_1 = __nccwpck_require__(48163); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeTargetHealthCommand_1.DescribeTargetHealthCommand(input)); - reason = result; - try { - const returnComparator = () => { - const flat_1 = [].concat(...result.TargetHealthDescriptions); - const projection_3 = flat_1.map((element_2) => { - return element_2.TargetHealth.State; - }); - return projection_3; - }; - let allStringEq_5 = returnComparator().length > 0; - for (const element_4 of returnComparator()) { - allStringEq_5 = allStringEq_5 && element_4 == "healthy"; - } - if (allStringEq_5) { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - catch (e) { } +exports.de_DeregisterTargetsCommand = de_DeregisterTargetsCommand; +const de_DeregisterTargetsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidTarget": + case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException": + throw await de_InvalidTargetExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - catch (exception) { - reason = exception; - if (exception.name && exception.name == "InvalidInstance") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } +}; +const de_DescribeAccountLimitsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeAccountLimitsCommandError(output, context); } - return { state: util_waiter_1.WaiterState.RETRY, reason }; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeAccountLimitsOutput(data.DescribeAccountLimitsResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -const waitForTargetInService = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); +exports.de_DescribeAccountLimitsCommand = de_DescribeAccountLimitsCommand; +const de_DescribeAccountLimitsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); }; -exports.waitForTargetInService = waitForTargetInService; -const waitUntilTargetInService = async (params, input) => { - const serviceDefaults = { minDelay: 15, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); +const de_DescribeListenerCertificatesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeListenerCertificatesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeListenerCertificatesOutput(data.DescribeListenerCertificatesResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.waitUntilTargetInService = waitUntilTargetInService; - - -/***/ }), - -/***/ 49032: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSO = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -const GetRoleCredentialsCommand_1 = __nccwpck_require__(47873); -const ListAccountRolesCommand_1 = __nccwpck_require__(36553); -const ListAccountsCommand_1 = __nccwpck_require__(13833); -const LogoutCommand_1 = __nccwpck_require__(77023); -const SSOClient_1 = __nccwpck_require__(76707); -const commands = { - GetRoleCredentialsCommand: GetRoleCredentialsCommand_1.GetRoleCredentialsCommand, - ListAccountRolesCommand: ListAccountRolesCommand_1.ListAccountRolesCommand, - ListAccountsCommand: ListAccountsCommand_1.ListAccountsCommand, - LogoutCommand: LogoutCommand_1.LogoutCommand, +exports.de_DescribeListenerCertificatesCommand = de_DescribeListenerCertificatesCommand; +const de_DescribeListenerCertificatesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); + } }; -class SSO extends SSOClient_1.SSOClient { -} -exports.SSO = SSO; -(0, smithy_client_1.createAggregatedClient)(commands, SSO); - - -/***/ }), - -/***/ 76707: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSOClient = exports.__Client = void 0; -const middleware_host_header_1 = __nccwpck_require__(59820); -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 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 EndpointParameters_1 = __nccwpck_require__(35224); -const runtimeConfig_1 = __nccwpck_require__(65411); -const runtimeExtensions_1 = __nccwpck_require__(77297); -class SSOClient extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); - const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - const _config_7 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_6, configuration?.extensions || []); - super(_config_7); - this.config = _config_7; - 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, middleware_user_agent_1.getUserAgentPlugin)(this.config)); +const de_DescribeListenersCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeListenersCommandError(output, context); } - destroy() { - super.destroy(); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeListenersOutput(data.DescribeListenersResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DescribeListenersCommand = de_DescribeListenersCommand; +const de_DescribeListenersCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "UnsupportedProtocol": + case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": + throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } -} -exports.SSOClient = SSOClient; - - -/***/ }), - -/***/ 47873: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetRoleCredentialsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(30295); -const Aws_restJson1_1 = __nccwpck_require__(15222); -class GetRoleCredentialsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; +}; +const de_DescribeLoadBalancerAttributesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeLoadBalancerAttributesCommandError(output, context); } - constructor(input) { - super(); - this.input = input; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeLoadBalancerAttributesOutput(data.DescribeLoadBalancerAttributesResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DescribeLoadBalancerAttributesCommand = de_DescribeLoadBalancerAttributesCommand; +const de_DescribeLoadBalancerAttributesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetRoleCredentialsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "GetRoleCredentialsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "GetRoleCredentials", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); +}; +const de_DescribeLoadBalancersCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeLoadBalancersCommandError(output, context); } - serialize(input, context) { - return (0, Aws_restJson1_1.se_GetRoleCredentialsCommand)(input, context); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeLoadBalancersOutput(data.DescribeLoadBalancersResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DescribeLoadBalancersCommand = de_DescribeLoadBalancersCommand; +const de_DescribeLoadBalancersCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - deserialize(output, context) { - return (0, Aws_restJson1_1.de_GetRoleCredentialsCommand)(output, context); +}; +const de_DescribeRulesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeRulesCommandError(output, context); } -} -exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; - - -/***/ }), - -/***/ 36553: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAccountRolesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(30295); -const Aws_restJson1_1 = __nccwpck_require__(15222); -class ListAccountRolesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeRulesOutput(data.DescribeRulesResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DescribeRulesCommand = de_DescribeRulesCommand; +const de_DescribeRulesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + case "RuleNotFound": + case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": + throw await de_RuleNotFoundExceptionRes(parsedOutput, context); + case "UnsupportedProtocol": + case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": + throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - constructor(input) { - super(); - this.input = input; +}; +const de_DescribeSSLPoliciesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeSSLPoliciesCommandError(output, context); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccountRolesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountRolesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "ListAccountRoles", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeSSLPoliciesOutput(data.DescribeSSLPoliciesResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DescribeSSLPoliciesCommand = de_DescribeSSLPoliciesCommand; +const de_DescribeSSLPoliciesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "SSLPolicyNotFound": + case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException": + throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - serialize(input, context) { - return (0, Aws_restJson1_1.se_ListAccountRolesCommand)(input, context); +}; +const de_DescribeTagsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeTagsCommandError(output, context); } - deserialize(output, context) { - return (0, Aws_restJson1_1.de_ListAccountRolesCommand)(output, context); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeTagsOutput(data.DescribeTagsResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DescribeTagsCommand = de_DescribeTagsCommand; +const de_DescribeTagsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "RuleNotFound": + case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": + throw await de_RuleNotFoundExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } -} -exports.ListAccountRolesCommand = ListAccountRolesCommand; - - -/***/ }), - -/***/ 13833: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAccountsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(30295); -const Aws_restJson1_1 = __nccwpck_require__(15222); -class ListAccountsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; +}; +const de_DescribeTargetGroupAttributesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeTargetGroupAttributesCommandError(output, context); } - constructor(input) { - super(); - this.input = input; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeTargetGroupAttributesOutput(data.DescribeTargetGroupAttributesResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DescribeTargetGroupAttributesCommand = de_DescribeTargetGroupAttributesCommand; +const de_DescribeTargetGroupAttributesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccountsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "ListAccounts", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); +}; +const de_DescribeTargetGroupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeTargetGroupsCommandError(output, context); } - serialize(input, context) { - return (0, Aws_restJson1_1.se_ListAccountsCommand)(input, context); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeTargetGroupsOutput(data.DescribeTargetGroupsResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DescribeTargetGroupsCommand = de_DescribeTargetGroupsCommand; +const de_DescribeTargetGroupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - deserialize(output, context) { - return (0, Aws_restJson1_1.de_ListAccountsCommand)(output, context); +}; +const de_DescribeTargetHealthCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_DescribeTargetHealthCommandError(output, context); } -} -exports.ListAccountsCommand = ListAccountsCommand; - - -/***/ }), - -/***/ 77023: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LogoutCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(30295); -const Aws_restJson1_1 = __nccwpck_require__(15222); -class LogoutCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_DescribeTargetHealthOutput(data.DescribeTargetHealthResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_DescribeTargetHealthCommand = de_DescribeTargetHealthCommand; +const de_DescribeTargetHealthCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "HealthUnavailable": + case "com.amazonaws.elasticloadbalancingv2#HealthUnavailableException": + throw await de_HealthUnavailableExceptionRes(parsedOutput, context); + case "InvalidTarget": + case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException": + throw await de_InvalidTargetExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - constructor(input) { - super(); - this.input = input; +}; +const de_ModifyListenerCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_ModifyListenerCommandError(output, context); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, LogoutCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "LogoutCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "Logout", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_ModifyListenerOutput(data.ModifyListenerResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_ModifyListenerCommand = de_ModifyListenerCommand; +const de_ModifyListenerCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ALPNPolicyNotFound": + case "com.amazonaws.elasticloadbalancingv2#ALPNPolicyNotSupportedException": + throw await de_ALPNPolicyNotSupportedExceptionRes(parsedOutput, context); + case "CertificateNotFound": + case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException": + throw await de_CertificateNotFoundExceptionRes(parsedOutput, context); + case "DuplicateListener": + case "com.amazonaws.elasticloadbalancingv2#DuplicateListenerException": + throw await de_DuplicateListenerExceptionRes(parsedOutput, context); + case "IncompatibleProtocols": + case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException": + throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context); + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "InvalidLoadBalancerAction": + case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException": + throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context); + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + case "SSLPolicyNotFound": + case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException": + throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context); + case "TargetGroupAssociationLimit": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException": + throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "TooManyActions": + case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException": + throw await de_TooManyActionsExceptionRes(parsedOutput, context); + case "TooManyCertificates": + case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException": + throw await de_TooManyCertificatesExceptionRes(parsedOutput, context); + case "TooManyListeners": + case "com.amazonaws.elasticloadbalancingv2#TooManyListenersException": + throw await de_TooManyListenersExceptionRes(parsedOutput, context); + case "TooManyRegistrationsForTargetId": + case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": + throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context); + case "TooManyTargets": + case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": + throw await de_TooManyTargetsExceptionRes(parsedOutput, context); + case "TooManyUniqueTargetGroupsPerLoadBalancer": + case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException": + throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context); + case "UnsupportedProtocol": + case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": + throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - serialize(input, context) { - return (0, Aws_restJson1_1.se_LogoutCommand)(input, context); +}; +const de_ModifyLoadBalancerAttributesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_ModifyLoadBalancerAttributesCommandError(output, context); } - deserialize(output, context) { - return (0, Aws_restJson1_1.de_LogoutCommand)(output, context); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_ModifyLoadBalancerAttributesOutput(data.ModifyLoadBalancerAttributesResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_ModifyLoadBalancerAttributesCommand = de_ModifyLoadBalancerAttributesCommand; +const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } -} -exports.LogoutCommand = LogoutCommand; - - -/***/ }), - -/***/ 98802: -/***/ ((__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__(47873), exports); -tslib_1.__exportStar(__nccwpck_require__(36553), exports); -tslib_1.__exportStar(__nccwpck_require__(13833), exports); -tslib_1.__exportStar(__nccwpck_require__(77023), exports); - - -/***/ }), - -/***/ 35224: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveClientEndpointParameters = void 0; -const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "awsssoportal", +}; +const de_ModifyRuleCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_ModifyRuleCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_ModifyRuleOutput(data.ModifyRuleResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, }; + return response; }; -exports.resolveClientEndpointParameters = resolveClientEndpointParameters; - - -/***/ }), - -/***/ 95695: -/***/ ((__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 ruleset_1 = __nccwpck_require__(62943); -const defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); +exports.de_ModifyRuleCommand = de_ModifyRuleCommand; +const de_ModifyRuleCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "IncompatibleProtocols": + case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException": + throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context); + case "InvalidLoadBalancerAction": + case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException": + throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context); + case "OperationNotPermitted": + case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": + throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); + case "RuleNotFound": + case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": + throw await de_RuleNotFoundExceptionRes(parsedOutput, context); + case "TargetGroupAssociationLimit": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException": + throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "TooManyActions": + case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException": + throw await de_TooManyActionsExceptionRes(parsedOutput, context); + case "TooManyRegistrationsForTargetId": + case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": + throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context); + case "TooManyTargets": + case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": + throw await de_TooManyTargetsExceptionRes(parsedOutput, context); + case "TooManyUniqueTargetGroupsPerLoadBalancer": + case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException": + throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context); + case "UnsupportedProtocol": + case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": + throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); + } }; -exports.defaultEndpointResolver = defaultEndpointResolver; - - -/***/ }), - -/***/ 62943: -/***/ ((__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 = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }]; -const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }; -exports.ruleSet = _data; - - -/***/ }), - -/***/ 50446: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSOServiceException = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(76707), exports); -tslib_1.__exportStar(__nccwpck_require__(49032), exports); -tslib_1.__exportStar(__nccwpck_require__(98802), exports); -tslib_1.__exportStar(__nccwpck_require__(47655), exports); -tslib_1.__exportStar(__nccwpck_require__(95924), exports); -var SSOServiceException_1 = __nccwpck_require__(55493); -Object.defineProperty(exports, "SSOServiceException", ({ enumerable: true, get: function () { return SSOServiceException_1.SSOServiceException; } })); - - -/***/ }), - -/***/ 55493: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSOServiceException = exports.__ServiceException = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } })); -class SSOServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, SSOServiceException.prototype); +const de_ModifyTargetGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_ModifyTargetGroupCommandError(output, context); } -} -exports.SSOServiceException = SSOServiceException; - - -/***/ }), - -/***/ 95924: -/***/ ((__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__(30295), exports); - - -/***/ }), - -/***/ 30295: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -const SSOServiceException_1 = __nccwpck_require__(55493); -class InvalidRequestException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidRequestException.prototype); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_ModifyTargetGroupOutput(data.ModifyTargetGroupResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_ModifyTargetGroupCommand = de_ModifyTargetGroupCommand; +const de_ModifyTargetGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } -} -exports.InvalidRequestException = InvalidRequestException; -class ResourceNotFoundException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "ResourceNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ResourceNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceNotFoundException.prototype); +}; +const de_ModifyTargetGroupAttributesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_ModifyTargetGroupAttributesCommandError(output, context); } -} -exports.ResourceNotFoundException = ResourceNotFoundException; -class TooManyRequestsException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "TooManyRequestsException", - $fault: "client", - ...opts, - }); - this.name = "TooManyRequestsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyRequestsException.prototype); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_ModifyTargetGroupAttributesOutput(data.ModifyTargetGroupAttributesResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_ModifyTargetGroupAttributesCommand = de_ModifyTargetGroupAttributesCommand; +const de_ModifyTargetGroupAttributesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } -} -exports.TooManyRequestsException = TooManyRequestsException; -class UnauthorizedException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "UnauthorizedException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnauthorizedException.prototype); +}; +const de_RegisterTargetsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_RegisterTargetsCommandError(output, context); } -} -exports.UnauthorizedException = UnauthorizedException; -const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; -const RoleCredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }), - ...(obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; -const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.roleCredentials && { roleCredentials: (0, exports.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) }), -}); -exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; -const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; -const ListAccountsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; -const LogoutRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; - - -/***/ }), - -/***/ 59571: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 96271: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAccountRoles = void 0; -const ListAccountRolesCommand_1 = __nccwpck_require__(36553); -const SSOClient_1 = __nccwpck_require__(76707); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_RegisterTargetsOutput(data.RegisterTargetsResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -async function* paginateListAccountRoles(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); +exports.de_RegisterTargetsCommand = de_RegisterTargetsCommand; +const de_RegisterTargetsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidTarget": + case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException": + throw await de_InvalidTargetExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "TooManyRegistrationsForTargetId": + case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": + throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context); + case "TooManyTargets": + case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": + throw await de_TooManyTargetsExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); } - return undefined; -} -exports.paginateListAccountRoles = paginateListAccountRoles; - - -/***/ }), - -/***/ 2947: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAccounts = void 0; -const ListAccountsCommand_1 = __nccwpck_require__(13833); -const SSOClient_1 = __nccwpck_require__(76707); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); }; -async function* paginateListAccounts(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); +const de_RemoveListenerCertificatesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_RemoveListenerCertificatesCommandError(output, context); } - return undefined; -} -exports.paginateListAccounts = paginateListAccounts; - - -/***/ }), - -/***/ 47655: -/***/ ((__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__(59571), exports); -tslib_1.__exportStar(__nccwpck_require__(96271), exports); -tslib_1.__exportStar(__nccwpck_require__(2947), exports); - - -/***/ }), - -/***/ 15222: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.de_LogoutCommand = exports.de_ListAccountsCommand = exports.de_ListAccountRolesCommand = exports.de_GetRoleCredentialsCommand = exports.se_LogoutCommand = exports.se_ListAccountsCommand = exports.se_ListAccountRolesCommand = exports.se_GetRoleCredentialsCommand = void 0; -const protocol_http_1 = __nccwpck_require__(64418); -const smithy_client_1 = __nccwpck_require__(63570); -const models_0_1 = __nccwpck_require__(30295); -const SSOServiceException_1 = __nccwpck_require__(55493); -const se_GetRoleCredentialsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/federation/credentials"; - const query = (0, smithy_client_1.map)({ - role_name: [, (0, smithy_client_1.expectNonNull)(input.roleName, `roleName`)], - account_id: [, (0, smithy_client_1.expectNonNull)(input.accountId, `accountId`)], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_RemoveListenerCertificatesOutput(data.RemoveListenerCertificatesResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_GetRoleCredentialsCommand = se_GetRoleCredentialsCommand; -const se_ListAccountRolesCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/roles"; - const query = (0, smithy_client_1.map)({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - account_id: [, (0, smithy_client_1.expectNonNull)(input.accountId, `accountId`)], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); +exports.de_RemoveListenerCertificatesCommand = de_RemoveListenerCertificatesCommand; +const de_RemoveListenerCertificatesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + case "OperationNotPermitted": + case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": + throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); + } }; -exports.se_ListAccountRolesCommand = se_ListAccountRolesCommand; -const se_ListAccountsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/accounts"; - const query = (0, smithy_client_1.map)({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); +const de_RemoveTagsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_RemoveTagsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_RemoveTagsOutput(data.RemoveTagsResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; }; -exports.se_ListAccountsCommand = se_ListAccountsCommand; -const se_LogoutCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logout"; - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); +exports.de_RemoveTagsCommand = de_RemoveTagsCommand; +const de_RemoveTagsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ListenerNotFound": + case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": + throw await de_ListenerNotFoundExceptionRes(parsedOutput, context); + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "RuleNotFound": + case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": + throw await de_RuleNotFoundExceptionRes(parsedOutput, context); + case "TargetGroupNotFound": + case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": + throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context); + case "TooManyTags": + case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": + throw await de_TooManyTagsExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); + } }; -exports.se_LogoutCommand = se_LogoutCommand; -const de_GetRoleCredentialsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_GetRoleCredentialsCommandError(output, context); +const de_SetIpAddressTypeCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_SetIpAddressTypeCommandError(output, context); } - const contents = (0, smithy_client_1.map)({ + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_SetIpAddressTypeOutput(data.SetIpAddressTypeResult, context); + const response = { $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_1.take)(data, { - roleCredentials: smithy_client_1._json, - }); - Object.assign(contents, doc); - return contents; + ...contents, + }; + return response; }; -exports.de_GetRoleCredentialsCommand = de_GetRoleCredentialsCommand; -const de_GetRoleCredentialsCommandError = async (output, context) => { +exports.de_SetIpAddressTypeCommand = de_SetIpAddressTypeCommand; +const de_SetIpAddressTypeCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + const errorCode = loadQueryErrorCode(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); + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "InvalidSubnet": + case "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException": + throw await de_InvalidSubnetExceptionRes(parsedOutput, context); + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody, + parsedBody: parsedBody.Error, errorCode, }); } }; -const de_ListAccountRolesCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListAccountRolesCommandError(output, context); +const de_SetRulePrioritiesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_SetRulePrioritiesCommandError(output, context); } - const contents = (0, smithy_client_1.map)({ + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_SetRulePrioritiesOutput(data.SetRulePrioritiesResult, context); + const response = { $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_1.take)(data, { - nextToken: smithy_client_1.expectString, - roleList: smithy_client_1._json, - }); - Object.assign(contents, doc); - return contents; + ...contents, + }; + return response; }; -exports.de_ListAccountRolesCommand = de_ListAccountRolesCommand; -const de_ListAccountRolesCommandError = async (output, context) => { +exports.de_SetRulePrioritiesCommand = de_SetRulePrioritiesCommand; +const de_SetRulePrioritiesCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + const errorCode = loadQueryErrorCode(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); + case "OperationNotPermitted": + case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": + throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); + case "PriorityInUse": + case "com.amazonaws.elasticloadbalancingv2#PriorityInUseException": + throw await de_PriorityInUseExceptionRes(parsedOutput, context); + case "RuleNotFound": + case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": + throw await de_RuleNotFoundExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody, + parsedBody: parsedBody.Error, errorCode, }); } }; -const de_ListAccountsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListAccountsCommandError(output, context); +const de_SetSecurityGroupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_SetSecurityGroupsCommandError(output, context); } - const contents = (0, smithy_client_1.map)({ + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_SetSecurityGroupsOutput(data.SetSecurityGroupsResult, context); + const response = { $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_1.take)(data, { - accountList: smithy_client_1._json, - nextToken: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - return contents; + ...contents, + }; + return response; }; -exports.de_ListAccountsCommand = de_ListAccountsCommand; -const de_ListAccountsCommandError = async (output, context) => { +exports.de_SetSecurityGroupsCommand = de_SetSecurityGroupsCommand; +const de_SetSecurityGroupsCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + const errorCode = loadQueryErrorCode(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); + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "InvalidSecurityGroup": + case "com.amazonaws.elasticloadbalancingv2#InvalidSecurityGroupException": + throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context); + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, - parsedBody, + parsedBody: parsedBody.Error, errorCode, }); } }; -const de_LogoutCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_LogoutCommandError(output, context); +const de_SetSubnetsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return de_SetSubnetsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = de_SetSubnetsOutput(data.SetSubnetsResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; +exports.de_SetSubnetsCommand = de_SetSubnetsCommand; +const de_SetSubnetsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AllocationIdNotFound": + case "com.amazonaws.elasticloadbalancingv2#AllocationIdNotFoundException": + throw await de_AllocationIdNotFoundExceptionRes(parsedOutput, context); + case "AvailabilityZoneNotSupported": + case "com.amazonaws.elasticloadbalancingv2#AvailabilityZoneNotSupportedException": + throw await de_AvailabilityZoneNotSupportedExceptionRes(parsedOutput, context); + case "InvalidConfigurationRequest": + case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": + throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context); + case "InvalidSubnet": + case "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException": + throw await de_InvalidSubnetExceptionRes(parsedOutput, context); + case "LoadBalancerNotFound": + case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": + throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context); + case "SubnetNotFound": + case "com.amazonaws.elasticloadbalancingv2#SubnetNotFoundException": + throw await de_SubnetNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody: parsedBody.Error, + errorCode, + }); + } +}; +const de_AllocationIdNotFoundExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_AllocationIdNotFoundException(body.Error, context); + const exception = new models_0_1.AllocationIdNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_ALPNPolicyNotSupportedExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_ALPNPolicyNotSupportedException(body.Error, context); + const exception = new models_0_1.ALPNPolicyNotSupportedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_AvailabilityZoneNotSupportedExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_AvailabilityZoneNotSupportedException(body.Error, context); + const exception = new models_0_1.AvailabilityZoneNotSupportedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_CertificateNotFoundExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_CertificateNotFoundException(body.Error, context); + const exception = new models_0_1.CertificateNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_DuplicateListenerExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_DuplicateListenerException(body.Error, context); + const exception = new models_0_1.DuplicateListenerException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_DuplicateLoadBalancerNameExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_DuplicateLoadBalancerNameException(body.Error, context); + const exception = new models_0_1.DuplicateLoadBalancerNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_DuplicateTagKeysExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_DuplicateTagKeysException(body.Error, context); + const exception = new models_0_1.DuplicateTagKeysException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_DuplicateTargetGroupNameExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_DuplicateTargetGroupNameException(body.Error, context); + const exception = new models_0_1.DuplicateTargetGroupNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_HealthUnavailableExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_HealthUnavailableException(body.Error, context); + const exception = new models_0_1.HealthUnavailableException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_IncompatibleProtocolsExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_IncompatibleProtocolsException(body.Error, context); + const exception = new models_0_1.IncompatibleProtocolsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_InvalidConfigurationRequestExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_InvalidConfigurationRequestException(body.Error, context); + const exception = new models_0_1.InvalidConfigurationRequestException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_InvalidLoadBalancerActionExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_InvalidLoadBalancerActionException(body.Error, context); + const exception = new models_0_1.InvalidLoadBalancerActionException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_InvalidSchemeExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_InvalidSchemeException(body.Error, context); + const exception = new models_0_1.InvalidSchemeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_InvalidSecurityGroupExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_InvalidSecurityGroupException(body.Error, context); + const exception = new models_0_1.InvalidSecurityGroupException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_InvalidSubnetExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_InvalidSubnetException(body.Error, context); + const exception = new models_0_1.InvalidSubnetException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_InvalidTargetExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_InvalidTargetException(body.Error, context); + const exception = new models_0_1.InvalidTargetException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_ListenerNotFoundExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_ListenerNotFoundException(body.Error, context); + const exception = new models_0_1.ListenerNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_LoadBalancerNotFoundExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_LoadBalancerNotFoundException(body.Error, context); + const exception = new models_0_1.LoadBalancerNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_OperationNotPermittedException(body.Error, context); + const exception = new models_0_1.OperationNotPermittedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_PriorityInUseExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_PriorityInUseException(body.Error, context); + const exception = new models_0_1.PriorityInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_ResourceInUseExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_ResourceInUseException(body.Error, context); + const exception = new models_0_1.ResourceInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_RuleNotFoundExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_RuleNotFoundException(body.Error, context); + const exception = new models_0_1.RuleNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_SSLPolicyNotFoundExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_SSLPolicyNotFoundException(body.Error, context); + const exception = new models_0_1.SSLPolicyNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_SubnetNotFoundExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_SubnetNotFoundException(body.Error, context); + const exception = new models_0_1.SubnetNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TargetGroupAssociationLimitExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TargetGroupAssociationLimitException(body.Error, context); + const exception = new models_0_1.TargetGroupAssociationLimitException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TargetGroupNotFoundExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TargetGroupNotFoundException(body.Error, context); + const exception = new models_0_1.TargetGroupNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TooManyActionsExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TooManyActionsException(body.Error, context); + const exception = new models_0_1.TooManyActionsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TooManyCertificatesExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TooManyCertificatesException(body.Error, context); + const exception = new models_0_1.TooManyCertificatesException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TooManyListenersExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TooManyListenersException(body.Error, context); + const exception = new models_0_1.TooManyListenersException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TooManyLoadBalancersExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TooManyLoadBalancersException(body.Error, context); + const exception = new models_0_1.TooManyLoadBalancersException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TooManyRegistrationsForTargetIdExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TooManyRegistrationsForTargetIdException(body.Error, context); + const exception = new models_0_1.TooManyRegistrationsForTargetIdException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TooManyRulesExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TooManyRulesException(body.Error, context); + const exception = new models_0_1.TooManyRulesException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TooManyTagsExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TooManyTagsException(body.Error, context); + const exception = new models_0_1.TooManyTagsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TooManyTargetGroupsExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TooManyTargetGroupsException(body.Error, context); + const exception = new models_0_1.TooManyTargetGroupsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TooManyTargetsExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TooManyTargetsException(body.Error, context); + const exception = new models_0_1.TooManyTargetsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_TooManyUniqueTargetGroupsPerLoadBalancerException(body.Error, context); + const exception = new models_0_1.TooManyUniqueTargetGroupsPerLoadBalancerException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const de_UnsupportedProtocolExceptionRes = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_UnsupportedProtocolException(body.Error, context); + const exception = new models_0_1.UnsupportedProtocolException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const se_Action = (input, context) => { + const entries = {}; + if (input.Type != null) { + entries["Type"] = input.Type; + } + if (input.TargetGroupArn != null) { + entries["TargetGroupArn"] = input.TargetGroupArn; + } + if (input.AuthenticateOidcConfig != null) { + const memberEntries = se_AuthenticateOidcActionConfig(input.AuthenticateOidcConfig, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `AuthenticateOidcConfig.${key}`; + entries[loc] = value; + }); + } + if (input.AuthenticateCognitoConfig != null) { + const memberEntries = se_AuthenticateCognitoActionConfig(input.AuthenticateCognitoConfig, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `AuthenticateCognitoConfig.${key}`; + entries[loc] = value; + }); + } + if (input.Order != null) { + entries["Order"] = input.Order; + } + if (input.RedirectConfig != null) { + const memberEntries = se_RedirectActionConfig(input.RedirectConfig, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `RedirectConfig.${key}`; + entries[loc] = value; + }); + } + if (input.FixedResponseConfig != null) { + const memberEntries = se_FixedResponseActionConfig(input.FixedResponseConfig, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `FixedResponseConfig.${key}`; + entries[loc] = value; + }); + } + if (input.ForwardConfig != null) { + const memberEntries = se_ForwardActionConfig(input.ForwardConfig, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `ForwardConfig.${key}`; + entries[loc] = value; + }); + } + return entries; +}; +const se_Actions = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = se_Action(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; + } + return entries; +}; +const se_AddListenerCertificatesInput = (input, context) => { + const entries = {}; + if (input.ListenerArn != null) { + entries["ListenerArn"] = input.ListenerArn; + } + if (input.Certificates != null) { + const memberEntries = se_CertificateList(input.Certificates, context); + if (input.Certificates?.length === 0) { + entries.Certificates = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Certificates.${key}`; + entries[loc] = value; + }); + } + return entries; +}; +const se_AddTagsInput = (input, context) => { + const entries = {}; + if (input.ResourceArns != null) { + const memberEntries = se_ResourceArns(input.ResourceArns, context); + if (input.ResourceArns?.length === 0) { + entries.ResourceArns = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `ResourceArns.${key}`; + entries[loc] = value; + }); + } + if (input.Tags != null) { + const memberEntries = se_TagList(input.Tags, context); + if (input.Tags?.length === 0) { + entries.Tags = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); + } + return entries; +}; +const se_AlpnPolicyName = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; +}; +const se_AuthenticateCognitoActionAuthenticationRequestExtraParams = (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; +}; +const se_AuthenticateCognitoActionConfig = (input, context) => { + const entries = {}; + if (input.UserPoolArn != null) { + entries["UserPoolArn"] = input.UserPoolArn; + } + if (input.UserPoolClientId != null) { + entries["UserPoolClientId"] = input.UserPoolClientId; + } + if (input.UserPoolDomain != null) { + entries["UserPoolDomain"] = input.UserPoolDomain; + } + if (input.SessionCookieName != null) { + entries["SessionCookieName"] = input.SessionCookieName; + } + if (input.Scope != null) { + entries["Scope"] = input.Scope; + } + if (input.SessionTimeout != null) { + entries["SessionTimeout"] = input.SessionTimeout; + } + if (input.AuthenticationRequestExtraParams != null) { + const memberEntries = se_AuthenticateCognitoActionAuthenticationRequestExtraParams(input.AuthenticationRequestExtraParams, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `AuthenticationRequestExtraParams.${key}`; + entries[loc] = value; + }); } - const contents = (0, smithy_client_1.map)({ - $metadata: deserializeMetadata(output), - }); - await (0, smithy_client_1.collectBody)(output.body, context); - return contents; -}; -exports.de_LogoutCommand = de_LogoutCommand; -const de_LogoutCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(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, - }); + if (input.OnUnauthenticatedRequest != null) { + entries["OnUnauthenticatedRequest"] = input.OnUnauthenticatedRequest; } + return entries; }; -const throwDefaultError = (0, smithy_client_1.withBaseException)(SSOServiceException_1.SSOServiceException); -const de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, +const se_AuthenticateOidcActionAuthenticationRequestExtraParams = (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 (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + return entries; }; -const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.TooManyRequestsException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); +const se_AuthenticateOidcActionConfig = (input, context) => { + const entries = {}; + if (input.Issuer != null) { + entries["Issuer"] = input.Issuer; + } + if (input.AuthorizationEndpoint != null) { + entries["AuthorizationEndpoint"] = input.AuthorizationEndpoint; + } + if (input.TokenEndpoint != null) { + entries["TokenEndpoint"] = input.TokenEndpoint; + } + if (input.UserInfoEndpoint != null) { + entries["UserInfoEndpoint"] = input.UserInfoEndpoint; + } + if (input.ClientId != null) { + entries["ClientId"] = input.ClientId; + } + if (input.ClientSecret != null) { + entries["ClientSecret"] = input.ClientSecret; + } + if (input.SessionCookieName != null) { + entries["SessionCookieName"] = input.SessionCookieName; + } + if (input.Scope != null) { + entries["Scope"] = input.Scope; + } + if (input.SessionTimeout != null) { + entries["SessionTimeout"] = input.SessionTimeout; + } + if (input.AuthenticationRequestExtraParams != null) { + const memberEntries = se_AuthenticateOidcActionAuthenticationRequestExtraParams(input.AuthenticationRequestExtraParams, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `AuthenticationRequestExtraParams.${key}`; + entries[loc] = value; + }); + } + if (input.OnUnauthenticatedRequest != null) { + entries["OnUnauthenticatedRequest"] = input.OnUnauthenticatedRequest; + } + if (input.UseExistingClientSecret != null) { + entries["UseExistingClientSecret"] = input.UseExistingClientSecret; + } + return entries; }; -const de_UnauthorizedExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.UnauthorizedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); +const se_Certificate = (input, context) => { + const entries = {}; + if (input.CertificateArn != null) { + entries["CertificateArn"] = input.CertificateArn; + } + if (input.IsDefault != null) { + entries["IsDefault"] = input.IsDefault; + } + return entries; }; -const deserializeMetadata = (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"], -}); -const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -const isSerializableHeaderValue = (value) => value !== undefined && - value !== null && - value !== "" && - (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && - (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); +const se_CertificateList = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = se_Certificate(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; + return entries; }; -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); +const se_CreateListenerInput = (input, context) => { + const entries = {}; + if (input.LoadBalancerArn != null) { + entries["LoadBalancerArn"] = input.LoadBalancerArn; + } + if (input.Protocol != null) { + entries["Protocol"] = input.Protocol; + } + if (input.Port != null) { + entries["Port"] = input.Port; + } + if (input.SslPolicy != null) { + entries["SslPolicy"] = input.SslPolicy; + } + if (input.Certificates != null) { + const memberEntries = se_CertificateList(input.Certificates, context); + if (input.Certificates?.length === 0) { + entries.Certificates = []; } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Certificates.${key}`; + entries[loc] = value; + }); + } + if (input.DefaultActions != null) { + const memberEntries = se_Actions(input.DefaultActions, context); + if (input.DefaultActions?.length === 0) { + entries.DefaultActions = []; } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `DefaultActions.${key}`; + entries[loc] = value; + }); + } + if (input.AlpnPolicy != null) { + const memberEntries = se_AlpnPolicyName(input.AlpnPolicy, context); + if (input.AlpnPolicy?.length === 0) { + entries.AlpnPolicy = []; } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `AlpnPolicy.${key}`; + entries[loc] = value; + }); + } + if (input.Tags != null) { + const memberEntries = se_TagList(input.Tags, context); + if (input.Tags?.length === 0) { + entries.Tags = []; } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); + return entries; +}; +const se_CreateLoadBalancerInput = (input, context) => { + const entries = {}; + if (input.Name != null) { + entries["Name"] = input.Name; } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); + if (input.Subnets != null) { + const memberEntries = se_Subnets(input.Subnets, context); + if (input.Subnets?.length === 0) { + entries.Subnets = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Subnets.${key}`; + entries[loc] = value; + }); } -}; - - -/***/ }), - -/***/ 65411: -/***/ ((__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__(23013)); -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__(17669); -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); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_node_1.defaultUserAgent)({ 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), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(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, - }), - 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), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 17669: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -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 endpointResolver_1 = __nccwpck_require__(95695); -const getRuntimeConfig = (config) => ({ - 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 ?? [], - 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; - - -/***/ }), - -/***/ 77297: -/***/ ((__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 asPartial = (t) => t; -const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - }; -}; -exports.resolveRuntimeExtensions = resolveRuntimeExtensions; - - -/***/ }), - -/***/ 21858: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STS = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -const AssumeRoleCommand_1 = __nccwpck_require__(66759); -const AssumeRoleWithSAMLCommand_1 = __nccwpck_require__(39265); -const AssumeRoleWithWebIdentityCommand_1 = __nccwpck_require__(26423); -const DecodeAuthorizationMessageCommand_1 = __nccwpck_require__(75341); -const GetAccessKeyInfoCommand_1 = __nccwpck_require__(20385); -const GetCallerIdentityCommand_1 = __nccwpck_require__(91175); -const GetFederationTokenCommand_1 = __nccwpck_require__(90058); -const GetSessionTokenCommand_1 = __nccwpck_require__(1742); -const STSClient_1 = __nccwpck_require__(40221); -const commands = { - AssumeRoleCommand: AssumeRoleCommand_1.AssumeRoleCommand, - AssumeRoleWithSAMLCommand: AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand, - AssumeRoleWithWebIdentityCommand: AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand, - DecodeAuthorizationMessageCommand: DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand, - GetAccessKeyInfoCommand: GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand, - GetCallerIdentityCommand: GetCallerIdentityCommand_1.GetCallerIdentityCommand, - GetFederationTokenCommand: GetFederationTokenCommand_1.GetFederationTokenCommand, - GetSessionTokenCommand: GetSessionTokenCommand_1.GetSessionTokenCommand, -}; -class STS extends STSClient_1.STSClient { -} -exports.STS = STS; -(0, smithy_client_1.createAggregatedClient)(commands, STS); - - -/***/ }), - -/***/ 40221: -/***/ ((__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__(59820); -const middleware_logger_1 = __nccwpck_require__(20014); -const middleware_recursion_detection_1 = __nccwpck_require__(85525); -const middleware_sdk_sts_1 = __nccwpck_require__(55959); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const config_resolver_1 = __nccwpck_require__(53098); -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 EndpointParameters_1 = __nccwpck_require__(97652); -const runtimeConfig_1 = __nccwpck_require__(48226); -const runtimeExtensions_1 = __nccwpck_require__(62654); -class STSClient extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); - const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_5, { stsClientCtor: STSClient }); - const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6); - const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []); - super(_config_8); - this.config = _config_8; - 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, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + if (input.SubnetMappings != null) { + const memberEntries = se_SubnetMappings(input.SubnetMappings, context); + if (input.SubnetMappings?.length === 0) { + entries.SubnetMappings = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `SubnetMappings.${key}`; + entries[loc] = value; + }); } - destroy() { - super.destroy(); + if (input.SecurityGroups != null) { + const memberEntries = se_SecurityGroups(input.SecurityGroups, context); + if (input.SecurityGroups?.length === 0) { + entries.SecurityGroups = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `SecurityGroups.${key}`; + entries[loc] = value; + }); } -} -exports.STSClient = STSClient; - - -/***/ }), - -/***/ 66759: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(15445); -const Aws_query_1 = __nccwpck_require__(27386); -class AssumeRoleCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - 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" }, - }; + if (input.Scheme != null) { + entries["Scheme"] = input.Scheme; } - constructor(input) { - super(); - this.input = input; + if (input.Tags != null) { + const memberEntries = se_TagList(input.Tags, context); + if (input.Tags?.length === 0) { + entries.Tags = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRole", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + if (input.Type != null) { + entries["Type"] = input.Type; } - serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleCommand)(input, context); + if (input.IpAddressType != null) { + entries["IpAddressType"] = input.IpAddressType; } - deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleCommand)(output, context); + if (input.CustomerOwnedIpv4Pool != null) { + entries["CustomerOwnedIpv4Pool"] = input.CustomerOwnedIpv4Pool; } -} -exports.AssumeRoleCommand = AssumeRoleCommand; - - -/***/ }), - -/***/ 39265: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleWithSAMLCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(15445); -const Aws_query_1 = __nccwpck_require__(27386); -class AssumeRoleWithSAMLCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - 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" }, - }; + return entries; +}; +const se_CreateRuleInput = (input, context) => { + const entries = {}; + if (input.ListenerArn != null) { + entries["ListenerArn"] = input.ListenerArn; } - constructor(input) { - super(); - this.input = input; + if (input.Conditions != null) { + const memberEntries = se_RuleConditionList(input.Conditions, context); + if (input.Conditions?.length === 0) { + entries.Conditions = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Conditions.${key}`; + entries[loc] = value; + }); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleWithSAMLCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithSAMLCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRoleWithSAML", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + if (input.Priority != null) { + entries["Priority"] = input.Priority; } - serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleWithSAMLCommand)(input, context); + if (input.Actions != null) { + const memberEntries = se_Actions(input.Actions, context); + if (input.Actions?.length === 0) { + entries.Actions = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Actions.${key}`; + entries[loc] = value; + }); } - deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleWithSAMLCommand)(output, context); + if (input.Tags != null) { + const memberEntries = se_TagList(input.Tags, context); + if (input.Tags?.length === 0) { + entries.Tags = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); } -} -exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; - - -/***/ }), - -/***/ 26423: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleWithWebIdentityCommand = exports.$Command = void 0; -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(15445); -const Aws_query_1 = __nccwpck_require__(27386); -class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - 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" }, - }; + return entries; +}; +const se_CreateTargetGroupInput = (input, context) => { + const entries = {}; + if (input.Name != null) { + entries["Name"] = input.Name; } - constructor(input) { - super(); - this.input = input; + if (input.Protocol != null) { + entries["Protocol"] = input.Protocol; } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithWebIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRoleWithWebIdentity", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + if (input.ProtocolVersion != null) { + entries["ProtocolVersion"] = input.ProtocolVersion; } - serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleWithWebIdentityCommand)(input, context); + if (input.Port != null) { + entries["Port"] = input.Port; } - deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleWithWebIdentityCommand)(output, context); + if (input.VpcId != null) { + entries["VpcId"] = input.VpcId; } -} -exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; - - -/***/ }), - -/***/ 75341: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DecodeAuthorizationMessageCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(27386); -class DecodeAuthorizationMessageCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - 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" }, - }; + if (input.HealthCheckProtocol != null) { + entries["HealthCheckProtocol"] = input.HealthCheckProtocol; } - constructor(input) { - super(); - this.input = input; + if (input.HealthCheckPort != null) { + entries["HealthCheckPort"] = input.HealthCheckPort; } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DecodeAuthorizationMessageCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "DecodeAuthorizationMessageCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "DecodeAuthorizationMessage", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + if (input.HealthCheckEnabled != null) { + entries["HealthCheckEnabled"] = input.HealthCheckEnabled; } - serialize(input, context) { - return (0, Aws_query_1.se_DecodeAuthorizationMessageCommand)(input, context); + if (input.HealthCheckPath != null) { + entries["HealthCheckPath"] = input.HealthCheckPath; } - deserialize(output, context) { - return (0, Aws_query_1.de_DecodeAuthorizationMessageCommand)(output, context); + if (input.HealthCheckIntervalSeconds != null) { + entries["HealthCheckIntervalSeconds"] = input.HealthCheckIntervalSeconds; } -} -exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; - - -/***/ }), - -/***/ 20385: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetAccessKeyInfoCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(27386); -class GetAccessKeyInfoCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - 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" }, - }; + if (input.HealthCheckTimeoutSeconds != null) { + entries["HealthCheckTimeoutSeconds"] = input.HealthCheckTimeoutSeconds; } - constructor(input) { - super(); - this.input = input; + if (input.HealthyThresholdCount != null) { + entries["HealthyThresholdCount"] = input.HealthyThresholdCount; } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccessKeyInfoCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetAccessKeyInfoCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetAccessKeyInfo", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + if (input.UnhealthyThresholdCount != null) { + entries["UnhealthyThresholdCount"] = input.UnhealthyThresholdCount; } - serialize(input, context) { - return (0, Aws_query_1.se_GetAccessKeyInfoCommand)(input, context); + if (input.Matcher != null) { + const memberEntries = se_Matcher(input.Matcher, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Matcher.${key}`; + entries[loc] = value; + }); } - deserialize(output, context) { - return (0, Aws_query_1.de_GetAccessKeyInfoCommand)(output, context); + if (input.TargetType != null) { + entries["TargetType"] = input.TargetType; } -} -exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; - - -/***/ }), - -/***/ 91175: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetCallerIdentityCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const Aws_query_1 = __nccwpck_require__(27386); -class GetCallerIdentityCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - 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" }, - }; + if (input.Tags != null) { + const memberEntries = se_TagList(input.Tags, context); + if (input.Tags?.length === 0) { + entries.Tags = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); } - constructor(input) { - super(); - this.input = input; + if (input.IpAddressType != null) { + entries["IpAddressType"] = input.IpAddressType; } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCallerIdentityCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetCallerIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetCallerIdentity", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + return entries; +}; +const se_DeleteListenerInput = (input, context) => { + const entries = {}; + if (input.ListenerArn != null) { + entries["ListenerArn"] = input.ListenerArn; } - serialize(input, context) { - return (0, Aws_query_1.se_GetCallerIdentityCommand)(input, context); + return entries; +}; +const se_DeleteLoadBalancerInput = (input, context) => { + const entries = {}; + if (input.LoadBalancerArn != null) { + entries["LoadBalancerArn"] = input.LoadBalancerArn; } - deserialize(output, context) { - return (0, Aws_query_1.de_GetCallerIdentityCommand)(output, context); + return entries; +}; +const se_DeleteRuleInput = (input, context) => { + const entries = {}; + if (input.RuleArn != null) { + entries["RuleArn"] = input.RuleArn; } -} -exports.GetCallerIdentityCommand = GetCallerIdentityCommand; - - -/***/ }), - -/***/ 90058: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetFederationTokenCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(15445); -const Aws_query_1 = __nccwpck_require__(27386); -class GetFederationTokenCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - 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" }, - }; + return entries; +}; +const se_DeleteTargetGroupInput = (input, context) => { + const entries = {}; + if (input.TargetGroupArn != null) { + entries["TargetGroupArn"] = input.TargetGroupArn; } - constructor(input) { - super(); - this.input = input; + return entries; +}; +const se_DeregisterTargetsInput = (input, context) => { + const entries = {}; + if (input.TargetGroupArn != null) { + entries["TargetGroupArn"] = input.TargetGroupArn; } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetFederationTokenCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetFederationTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetFederationToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + if (input.Targets != null) { + const memberEntries = se_TargetDescriptions(input.Targets, context); + if (input.Targets?.length === 0) { + entries.Targets = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Targets.${key}`; + entries[loc] = value; + }); } - serialize(input, context) { - return (0, Aws_query_1.se_GetFederationTokenCommand)(input, context); + return entries; +}; +const se_DescribeAccountLimitsInput = (input, context) => { + const entries = {}; + if (input.Marker != null) { + entries["Marker"] = input.Marker; } - deserialize(output, context) { - return (0, Aws_query_1.de_GetFederationTokenCommand)(output, context); + if (input.PageSize != null) { + entries["PageSize"] = input.PageSize; } -} -exports.GetFederationTokenCommand = GetFederationTokenCommand; - - -/***/ }), - -/***/ 1742: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetSessionTokenCommand = exports.$Command = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); -const middleware_endpoint_1 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } })); -const types_1 = __nccwpck_require__(55756); -const models_0_1 = __nccwpck_require__(15445); -const Aws_query_1 = __nccwpck_require__(27386); -class GetSessionTokenCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - 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" }, - }; + return entries; +}; +const se_DescribeListenerCertificatesInput = (input, context) => { + const entries = {}; + if (input.ListenerArn != null) { + entries["ListenerArn"] = input.ListenerArn; + } + if (input.Marker != null) { + entries["Marker"] = input.Marker; } - constructor(input) { - super(); - this.input = input; + if (input.PageSize != null) { + entries["PageSize"] = input.PageSize; } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSessionTokenCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetSessionTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetSessionToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + return entries; +}; +const se_DescribeListenersInput = (input, context) => { + const entries = {}; + if (input.LoadBalancerArn != null) { + entries["LoadBalancerArn"] = input.LoadBalancerArn; } - serialize(input, context) { - return (0, Aws_query_1.se_GetSessionTokenCommand)(input, context); + if (input.ListenerArns != null) { + const memberEntries = se_ListenerArns(input.ListenerArns, context); + if (input.ListenerArns?.length === 0) { + entries.ListenerArns = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `ListenerArns.${key}`; + entries[loc] = value; + }); } - deserialize(output, context) { - return (0, Aws_query_1.de_GetSessionTokenCommand)(output, context); + if (input.Marker != null) { + entries["Marker"] = input.Marker; } -} -exports.GetSessionTokenCommand = GetSessionTokenCommand; - - -/***/ }), - -/***/ 91333: -/***/ ((__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__(66759), exports); -tslib_1.__exportStar(__nccwpck_require__(39265), exports); -tslib_1.__exportStar(__nccwpck_require__(26423), exports); -tslib_1.__exportStar(__nccwpck_require__(75341), exports); -tslib_1.__exportStar(__nccwpck_require__(20385), exports); -tslib_1.__exportStar(__nccwpck_require__(91175), exports); -tslib_1.__exportStar(__nccwpck_require__(90058), exports); -tslib_1.__exportStar(__nccwpck_require__(1742), exports); - - -/***/ }), - -/***/ 30781: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; -const defaultStsRoleAssumers_1 = __nccwpck_require__(49606); -const STSClient_1 = __nccwpck_require__(40221); -const getCustomizableStsClientCtor = (baseCtor, customizations) => { - if (!customizations) - return baseCtor; - else - return class CustomizableSTSClient extends baseCtor { - constructor(config) { - super(config); - for (const customization of customizations) { - this.middlewareStack.use(customization); - } - } - }; + if (input.PageSize != null) { + entries["PageSize"] = input.PageSize; + } + return entries; }; -const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); -exports.getDefaultRoleAssumer = getDefaultRoleAssumer; -const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); -exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; -const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input), - ...input, -}); -exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; - - -/***/ }), - -/***/ 49606: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; -const AssumeRoleCommand_1 = __nccwpck_require__(66759); -const AssumeRoleWithWebIdentityCommand_1 = __nccwpck_require__(26423); -const ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; -const decorateDefaultRegion = (region) => { - if (typeof region !== "function") { - return region === undefined ? ASSUME_ROLE_DEFAULT_REGION : region; +const se_DescribeLoadBalancerAttributesInput = (input, context) => { + const entries = {}; + if (input.LoadBalancerArn != null) { + entries["LoadBalancerArn"] = input.LoadBalancerArn; } - return async () => { - try { - return await region(); - } - catch (e) { - return ASSUME_ROLE_DEFAULT_REGION; - } - }; + return entries; }; -const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { - let stsClient; - let closureSourceCreds; - return async (sourceCreds, params) => { - closureSourceCreds = sourceCreds; - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - credentialDefaultProvider: () => async () => closureSourceCreds, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); +const se_DescribeLoadBalancersInput = (input, context) => { + const entries = {}; + if (input.LoadBalancerArns != null) { + const memberEntries = se_LoadBalancerArns(input.LoadBalancerArns, context); + if (input.LoadBalancerArns?.length === 0) { + entries.LoadBalancerArns = []; } - const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `LoadBalancerArns.${key}`; + entries[loc] = value; + }); + } + if (input.Names != null) { + const memberEntries = se_LoadBalancerNames(input.Names, context); + if (input.Names?.length === 0) { + entries.Names = []; } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - }; - }; + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Names.${key}`; + entries[loc] = value; + }); + } + if (input.Marker != null) { + entries["Marker"] = input.Marker; + } + if (input.PageSize != null) { + entries["PageSize"] = input.PageSize; + } + return entries; }; -exports.getDefaultRoleAssumer = getDefaultRoleAssumer; -const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { - let stsClient; - return async (params) => { - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); +const se_DescribeRulesInput = (input, context) => { + const entries = {}; + if (input.ListenerArn != null) { + entries["ListenerArn"] = input.ListenerArn; + } + if (input.RuleArns != null) { + const memberEntries = se_RuleArns(input.RuleArns, context); + if (input.RuleArns?.length === 0) { + entries.RuleArns = []; } - const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `RuleArns.${key}`; + entries[loc] = value; + }); + } + if (input.Marker != null) { + entries["Marker"] = input.Marker; + } + if (input.PageSize != null) { + entries["PageSize"] = input.PageSize; + } + return entries; +}; +const se_DescribeSSLPoliciesInput = (input, context) => { + const entries = {}; + if (input.Names != null) { + const memberEntries = se_SslPolicyNames(input.Names, context); + if (input.Names?.length === 0) { + entries.Names = []; } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - }; - }; + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Names.${key}`; + entries[loc] = value; + }); + } + if (input.Marker != null) { + entries["Marker"] = input.Marker; + } + if (input.PageSize != null) { + entries["PageSize"] = input.PageSize; + } + if (input.LoadBalancerType != null) { + entries["LoadBalancerType"] = input.LoadBalancerType; + } + return entries; }; -exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; -const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), - ...input, -}); -exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; - - -/***/ }), - -/***/ 97652: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveClientEndpointParameters = void 0; -const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - useGlobalEndpoint: options.useGlobalEndpoint ?? false, - defaultSigningName: "sts", - }; +const se_DescribeTagsInput = (input, context) => { + const entries = {}; + if (input.ResourceArns != null) { + const memberEntries = se_ResourceArns(input.ResourceArns, context); + if (input.ResourceArns?.length === 0) { + entries.ResourceArns = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `ResourceArns.${key}`; + entries[loc] = value; + }); + } + return entries; }; -exports.resolveClientEndpointParameters = resolveClientEndpointParameters; - - -/***/ }), - -/***/ 85425: -/***/ ((__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 ruleset_1 = __nccwpck_require__(83258); -const defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); +const se_DescribeTargetGroupAttributesInput = (input, context) => { + const entries = {}; + if (input.TargetGroupArn != null) { + entries["TargetGroupArn"] = input.TargetGroupArn; + } + return entries; }; -exports.defaultEndpointResolver = defaultEndpointResolver; - - -/***/ }), - -/***/ 83258: -/***/ ((__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 = "tree", e = "stringEquals", f = "sigv4", g = "sts", h = "us-east-1", i = "endpoint", j = "https://sts.{Region}.{PartitionResult#dnsSuffix}", 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": f, "signingName": g, "signingRegion": h }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: e, [I]: [q, "aws-global"] }], [i]: u, [G]: i }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: c, [I]: [true, { [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] }], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: i }, w, { conditions: [{ [H]: e, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, h] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-east-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-2"] }], endpoint: u, [G]: i }, { endpoint: { url: j, properties: { authSchemes: [{ name: f, signingName: g, signingRegion: "{Region}" }] }, headers: v }, [G]: i }] }, { conditions: C, [G]: d, 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]: i }] }, { conditions: [p], [G]: d, rules: [{ conditions: [r], [G]: d, rules: [{ conditions: [x, y], [G]: d, rules: [{ conditions: [z, B], [G]: d, rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }] }, { conditions: D, [G]: d, rules: [{ conditions: [z], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: ["aws-us-gov", { [H]: l, [I]: [A, "name"] }] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: i }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }] }, { conditions: E, [G]: d, rules: [{ conditions: [B], [G]: d, rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }] }, w, { endpoint: { url: j, properties: v, headers: v }, [G]: i }] }] }, { error: "Invalid Configuration: Missing Region", [G]: k }] }; -exports.ruleSet = _data; - - -/***/ }), - -/***/ 5336: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STSServiceException = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(40221), exports); -tslib_1.__exportStar(__nccwpck_require__(21858), exports); -tslib_1.__exportStar(__nccwpck_require__(91333), exports); -tslib_1.__exportStar(__nccwpck_require__(46737), exports); -tslib_1.__exportStar(__nccwpck_require__(30781), exports); -var STSServiceException_1 = __nccwpck_require__(18493); -Object.defineProperty(exports, "STSServiceException", ({ enumerable: true, get: function () { return STSServiceException_1.STSServiceException; } })); - - -/***/ }), - -/***/ 18493: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STSServiceException = exports.__ServiceException = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } })); -class STSServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, STSServiceException.prototype); +const se_DescribeTargetGroupsInput = (input, context) => { + const entries = {}; + if (input.LoadBalancerArn != null) { + entries["LoadBalancerArn"] = input.LoadBalancerArn; } -} -exports.STSServiceException = STSServiceException; - - -/***/ }), - -/***/ 46737: -/***/ ((__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__(15445), exports); - - -/***/ }), - -/***/ 15445: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetSessionTokenResponseFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports.AssumeRoleResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.InvalidAuthorizationMessageException = exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0; -const smithy_client_1 = __nccwpck_require__(63570); -const STSServiceException_1 = __nccwpck_require__(18493); -class ExpiredTokenException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, + if (input.TargetGroupArns != null) { + const memberEntries = se_TargetGroupArns(input.TargetGroupArns, context); + if (input.TargetGroupArns?.length === 0) { + entries.TargetGroupArns = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `TargetGroupArns.${key}`; + entries[loc] = value; }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ExpiredTokenException.prototype); } -} -exports.ExpiredTokenException = ExpiredTokenException; -class MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "MalformedPolicyDocumentException", - $fault: "client", - ...opts, + if (input.Names != null) { + const memberEntries = se_TargetGroupNames(input.Names, context); + if (input.Names?.length === 0) { + entries.Names = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Names.${key}`; + entries[loc] = value; }); - this.name = "MalformedPolicyDocumentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); } -} -exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; -class PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "PackedPolicyTooLargeException", - $fault: "client", - ...opts, - }); - this.name = "PackedPolicyTooLargeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); + if (input.Marker != null) { + entries["Marker"] = input.Marker; } -} -exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; -class RegionDisabledException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "RegionDisabledException", - $fault: "client", - ...opts, + if (input.PageSize != null) { + entries["PageSize"] = input.PageSize; + } + return entries; +}; +const se_DescribeTargetHealthInput = (input, context) => { + const entries = {}; + if (input.TargetGroupArn != null) { + entries["TargetGroupArn"] = input.TargetGroupArn; + } + if (input.Targets != null) { + const memberEntries = se_TargetDescriptions(input.Targets, context); + if (input.Targets?.length === 0) { + entries.Targets = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Targets.${key}`; + entries[loc] = value; }); - this.name = "RegionDisabledException"; - this.$fault = "client"; - Object.setPrototypeOf(this, RegionDisabledException.prototype); } -} -exports.RegionDisabledException = RegionDisabledException; -class IDPRejectedClaimException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "IDPRejectedClaimException", - $fault: "client", - ...opts, + return entries; +}; +const se_FixedResponseActionConfig = (input, context) => { + const entries = {}; + if (input.MessageBody != null) { + entries["MessageBody"] = input.MessageBody; + } + if (input.StatusCode != null) { + entries["StatusCode"] = input.StatusCode; + } + if (input.ContentType != null) { + entries["ContentType"] = input.ContentType; + } + return entries; +}; +const se_ForwardActionConfig = (input, context) => { + const entries = {}; + if (input.TargetGroups != null) { + const memberEntries = se_TargetGroupList(input.TargetGroups, context); + if (input.TargetGroups?.length === 0) { + entries.TargetGroups = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `TargetGroups.${key}`; + entries[loc] = value; }); - this.name = "IDPRejectedClaimException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); } -} -exports.IDPRejectedClaimException = IDPRejectedClaimException; -class InvalidIdentityTokenException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "InvalidIdentityTokenException", - $fault: "client", - ...opts, + if (input.TargetGroupStickinessConfig != null) { + const memberEntries = se_TargetGroupStickinessConfig(input.TargetGroupStickinessConfig, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `TargetGroupStickinessConfig.${key}`; + entries[loc] = value; }); - this.name = "InvalidIdentityTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); } -} -exports.InvalidIdentityTokenException = InvalidIdentityTokenException; -class IDPCommunicationErrorException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "IDPCommunicationErrorException", - $fault: "client", - ...opts, + return entries; +}; +const se_HostHeaderConditionConfig = (input, context) => { + const entries = {}; + if (input.Values != null) { + const memberEntries = se_ListOfString(input.Values, context); + if (input.Values?.length === 0) { + entries.Values = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Values.${key}`; + entries[loc] = value; }); - this.name = "IDPCommunicationErrorException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); } -} -exports.IDPCommunicationErrorException = IDPCommunicationErrorException; -class InvalidAuthorizationMessageException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "InvalidAuthorizationMessageException", - $fault: "client", - ...opts, + return entries; +}; +const se_HttpHeaderConditionConfig = (input, context) => { + const entries = {}; + if (input.HttpHeaderName != null) { + entries["HttpHeaderName"] = input.HttpHeaderName; + } + if (input.Values != null) { + const memberEntries = se_ListOfString(input.Values, context); + if (input.Values?.length === 0) { + entries.Values = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Values.${key}`; + entries[loc] = value; }); - this.name = "InvalidAuthorizationMessageException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); } -} -exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; -const CredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.SecretAccessKey && { SecretAccessKey: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; -const AssumeRoleResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; -const AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.SAMLAssertion && { SAMLAssertion: smithy_client_1.SENSITIVE_STRING }), -}); -exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; -const AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; -const AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.WebIdentityToken && { WebIdentityToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; -const AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; -const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; -const GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; - - -/***/ }), - -/***/ 27386: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.de_GetSessionTokenCommand = exports.de_GetFederationTokenCommand = exports.de_GetCallerIdentityCommand = exports.de_GetAccessKeyInfoCommand = exports.de_DecodeAuthorizationMessageCommand = exports.de_AssumeRoleWithWebIdentityCommand = exports.de_AssumeRoleWithSAMLCommand = exports.de_AssumeRoleCommand = exports.se_GetSessionTokenCommand = exports.se_GetFederationTokenCommand = exports.se_GetCallerIdentityCommand = exports.se_GetAccessKeyInfoCommand = exports.se_DecodeAuthorizationMessageCommand = exports.se_AssumeRoleWithWebIdentityCommand = exports.se_AssumeRoleWithSAMLCommand = exports.se_AssumeRoleCommand = void 0; -const protocol_http_1 = __nccwpck_require__(64418); -const smithy_client_1 = __nccwpck_require__(63570); -const fast_xml_parser_1 = __nccwpck_require__(12603); -const models_0_1 = __nccwpck_require__(15445); -const STSServiceException_1 = __nccwpck_require__(18493); -const se_AssumeRoleCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleRequest(input, context), - Action: "AssumeRole", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); + return entries; }; -exports.se_AssumeRoleCommand = se_AssumeRoleCommand; -const se_AssumeRoleWithSAMLCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleWithSAMLRequest(input, context), - Action: "AssumeRoleWithSAML", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const se_HttpRequestMethodConditionConfig = (input, context) => { + const entries = {}; + if (input.Values != null) { + const memberEntries = se_ListOfString(input.Values, context); + if (input.Values?.length === 0) { + entries.Values = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Values.${key}`; + entries[loc] = value; + }); + } + return entries; }; -exports.se_AssumeRoleWithSAMLCommand = se_AssumeRoleWithSAMLCommand; -const se_AssumeRoleWithWebIdentityCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleWithWebIdentityRequest(input, context), - Action: "AssumeRoleWithWebIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const se_ListenerArns = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; }; -exports.se_AssumeRoleWithWebIdentityCommand = se_AssumeRoleWithWebIdentityCommand; -const se_DecodeAuthorizationMessageCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DecodeAuthorizationMessageRequest(input, context), - Action: "DecodeAuthorizationMessage", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const se_ListOfString = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; }; -exports.se_DecodeAuthorizationMessageCommand = se_DecodeAuthorizationMessageCommand; -const se_GetAccessKeyInfoCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetAccessKeyInfoRequest(input, context), - Action: "GetAccessKeyInfo", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const se_LoadBalancerArns = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; }; -exports.se_GetAccessKeyInfoCommand = se_GetAccessKeyInfoCommand; -const se_GetCallerIdentityCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetCallerIdentityRequest(input, context), - Action: "GetCallerIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const se_LoadBalancerAttribute = (input, context) => { + const entries = {}; + if (input.Key != null) { + entries["Key"] = input.Key; + } + if (input.Value != null) { + entries["Value"] = input.Value; + } + return entries; }; -exports.se_GetCallerIdentityCommand = se_GetCallerIdentityCommand; -const se_GetFederationTokenCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetFederationTokenRequest(input, context), - Action: "GetFederationToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const se_LoadBalancerAttributes = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = se_LoadBalancerAttribute(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; + } + return entries; }; -exports.se_GetFederationTokenCommand = se_GetFederationTokenCommand; -const se_GetSessionTokenCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetSessionTokenRequest(input, context), - Action: "GetSessionToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); +const se_LoadBalancerNames = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; }; -exports.se_GetSessionTokenCommand = se_GetSessionTokenCommand; -const de_AssumeRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleCommandError(output, context); +const se_Matcher = (input, context) => { + const entries = {}; + if (input.HttpCode != null) { + entries["HttpCode"] = input.HttpCode; } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleResponse(data.AssumeRoleResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; + if (input.GrpcCode != null) { + entries["GrpcCode"] = input.GrpcCode; + } + return entries; }; -exports.de_AssumeRoleCommand = de_AssumeRoleCommand; -const de_AssumeRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); +const se_ModifyListenerInput = (input, context) => { + const entries = {}; + if (input.ListenerArn != null) { + entries["ListenerArn"] = input.ListenerArn; + } + if (input.Port != null) { + entries["Port"] = input.Port; + } + if (input.Protocol != null) { + entries["Protocol"] = input.Protocol; + } + if (input.SslPolicy != null) { + entries["SslPolicy"] = input.SslPolicy; + } + if (input.Certificates != null) { + const memberEntries = se_CertificateList(input.Certificates, context); + if (input.Certificates?.length === 0) { + entries.Certificates = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Certificates.${key}`; + entries[loc] = value; + }); + } + if (input.DefaultActions != null) { + const memberEntries = se_Actions(input.DefaultActions, context); + if (input.DefaultActions?.length === 0) { + entries.DefaultActions = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `DefaultActions.${key}`; + entries[loc] = value; + }); + } + if (input.AlpnPolicy != null) { + const memberEntries = se_AlpnPolicyName(input.AlpnPolicy, context); + if (input.AlpnPolicy?.length === 0) { + entries.AlpnPolicy = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `AlpnPolicy.${key}`; + entries[loc] = value; + }); } + return entries; }; -const de_AssumeRoleWithSAMLCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleWithSAMLCommandError(output, context); +const se_ModifyLoadBalancerAttributesInput = (input, context) => { + const entries = {}; + if (input.LoadBalancerArn != null) { + entries["LoadBalancerArn"] = input.LoadBalancerArn; } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; + if (input.Attributes != null) { + const memberEntries = se_LoadBalancerAttributes(input.Attributes, context); + if (input.Attributes?.length === 0) { + entries.Attributes = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Attributes.${key}`; + entries[loc] = value; + }); + } + return entries; }; -exports.de_AssumeRoleWithSAMLCommand = de_AssumeRoleWithSAMLCommand; -const de_AssumeRoleWithSAMLCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(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 "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); - 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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); +const se_ModifyRuleInput = (input, context) => { + const entries = {}; + if (input.RuleArn != null) { + entries["RuleArn"] = input.RuleArn; + } + if (input.Conditions != null) { + const memberEntries = se_RuleConditionList(input.Conditions, context); + if (input.Conditions?.length === 0) { + entries.Conditions = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Conditions.${key}`; + entries[loc] = value; + }); } + if (input.Actions != null) { + const memberEntries = se_Actions(input.Actions, context); + if (input.Actions?.length === 0) { + entries.Actions = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Actions.${key}`; + entries[loc] = value; + }); + } + return entries; }; -const de_AssumeRoleWithWebIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleWithWebIdentityCommandError(output, context); +const se_ModifyTargetGroupAttributesInput = (input, context) => { + const entries = {}; + if (input.TargetGroupArn != null) { + entries["TargetGroupArn"] = input.TargetGroupArn; } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; + if (input.Attributes != null) { + const memberEntries = se_TargetGroupAttributes(input.Attributes, context); + if (input.Attributes?.length === 0) { + entries.Attributes = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Attributes.${key}`; + entries[loc] = value; + }); + } + return entries; }; -exports.de_AssumeRoleWithWebIdentityCommand = de_AssumeRoleWithWebIdentityCommand; -const de_AssumeRoleWithWebIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(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 "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); - 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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); +const se_ModifyTargetGroupInput = (input, context) => { + const entries = {}; + if (input.TargetGroupArn != null) { + entries["TargetGroupArn"] = input.TargetGroupArn; + } + if (input.HealthCheckProtocol != null) { + entries["HealthCheckProtocol"] = input.HealthCheckProtocol; + } + if (input.HealthCheckPort != null) { + entries["HealthCheckPort"] = input.HealthCheckPort; + } + if (input.HealthCheckPath != null) { + entries["HealthCheckPath"] = input.HealthCheckPath; + } + if (input.HealthCheckEnabled != null) { + entries["HealthCheckEnabled"] = input.HealthCheckEnabled; + } + if (input.HealthCheckIntervalSeconds != null) { + entries["HealthCheckIntervalSeconds"] = input.HealthCheckIntervalSeconds; + } + if (input.HealthCheckTimeoutSeconds != null) { + entries["HealthCheckTimeoutSeconds"] = input.HealthCheckTimeoutSeconds; + } + if (input.HealthyThresholdCount != null) { + entries["HealthyThresholdCount"] = input.HealthyThresholdCount; } -}; -const de_DecodeAuthorizationMessageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DecodeAuthorizationMessageCommandError(output, context); + if (input.UnhealthyThresholdCount != null) { + entries["UnhealthyThresholdCount"] = input.UnhealthyThresholdCount; } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DecodeAuthorizationMessageCommand = de_DecodeAuthorizationMessageCommand; -const de_DecodeAuthorizationMessageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidAuthorizationMessageException": - case "com.amazonaws.sts#InvalidAuthorizationMessageException": - throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); + if (input.Matcher != null) { + const memberEntries = se_Matcher(input.Matcher, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Matcher.${key}`; + entries[loc] = value; + }); } + return entries; }; -const de_GetAccessKeyInfoCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetAccessKeyInfoCommandError(output, context); +const se_PathPatternConditionConfig = (input, context) => { + const entries = {}; + if (input.Values != null) { + const memberEntries = se_ListOfString(input.Values, context); + if (input.Values?.length === 0) { + entries.Values = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Values.${key}`; + entries[loc] = value; + }); } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetAccessKeyInfoCommand = de_GetAccessKeyInfoCommand; -const de_GetAccessKeyInfoCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); + return entries; }; -const de_GetCallerIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetCallerIdentityCommandError(output, context); +const se_QueryStringConditionConfig = (input, context) => { + const entries = {}; + if (input.Values != null) { + const memberEntries = se_QueryStringKeyValuePairList(input.Values, context); + if (input.Values?.length === 0) { + entries.Values = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Values.${key}`; + entries[loc] = value; + }); } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetCallerIdentityCommand = de_GetCallerIdentityCommand; -const de_GetCallerIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); + return entries; }; -const de_GetFederationTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetFederationTokenCommandError(output, context); +const se_QueryStringKeyValuePair = (input, context) => { + const entries = {}; + if (input.Key != null) { + entries["Key"] = input.Key; } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetFederationTokenCommand = de_GetFederationTokenCommand; -const de_GetFederationTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - 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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); + if (input.Value != null) { + entries["Value"] = input.Value; } + return entries; }; -const de_GetSessionTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetSessionTokenCommandError(output, context); +const se_QueryStringKeyValuePairList = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = se_QueryStringKeyValuePair(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; + return entries; }; -exports.de_GetSessionTokenCommand = de_GetSessionTokenCommand; -const de_GetSessionTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); +const se_RedirectActionConfig = (input, context) => { + const entries = {}; + if (input.Protocol != null) { + entries["Protocol"] = input.Protocol; } + if (input.Port != null) { + entries["Port"] = input.Port; + } + if (input.Host != null) { + entries["Host"] = input.Host; + } + if (input.Path != null) { + entries["Path"] = input.Path; + } + if (input.Query != null) { + entries["Query"] = input.Query; + } + if (input.StatusCode != null) { + entries["StatusCode"] = input.StatusCode; + } + return entries; }; -const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_ExpiredTokenException(body.Error, context); - const exception = new models_0_1.ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_IDPCommunicationErrorException(body.Error, context); - const exception = new models_0_1.IDPCommunicationErrorException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_IDPRejectedClaimException(body.Error, context); - const exception = new models_0_1.IDPRejectedClaimException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidAuthorizationMessageExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_InvalidAuthorizationMessageException(body.Error, context); - const exception = new models_0_1.InvalidAuthorizationMessageException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_InvalidIdentityTokenException(body.Error, context); - const exception = new models_0_1.InvalidIdentityTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); +const se_RegisterTargetsInput = (input, context) => { + const entries = {}; + if (input.TargetGroupArn != null) { + entries["TargetGroupArn"] = input.TargetGroupArn; + } + if (input.Targets != null) { + const memberEntries = se_TargetDescriptions(input.Targets, context); + if (input.Targets?.length === 0) { + entries.Targets = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Targets.${key}`; + entries[loc] = value; + }); + } + return entries; }; -const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_MalformedPolicyDocumentException(body.Error, context); - const exception = new models_0_1.MalformedPolicyDocumentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); +const se_RemoveListenerCertificatesInput = (input, context) => { + const entries = {}; + if (input.ListenerArn != null) { + entries["ListenerArn"] = input.ListenerArn; + } + if (input.Certificates != null) { + const memberEntries = se_CertificateList(input.Certificates, context); + if (input.Certificates?.length === 0) { + entries.Certificates = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Certificates.${key}`; + entries[loc] = value; + }); + } + return entries; }; -const de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_PackedPolicyTooLargeException(body.Error, context); - const exception = new models_0_1.PackedPolicyTooLargeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); +const se_RemoveTagsInput = (input, context) => { + const entries = {}; + if (input.ResourceArns != null) { + const memberEntries = se_ResourceArns(input.ResourceArns, context); + if (input.ResourceArns?.length === 0) { + entries.ResourceArns = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `ResourceArns.${key}`; + entries[loc] = value; + }); + } + if (input.TagKeys != null) { + const memberEntries = se_TagKeys(input.TagKeys, context); + if (input.TagKeys?.length === 0) { + entries.TagKeys = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `TagKeys.${key}`; + entries[loc] = value; + }); + } + return entries; }; -const de_RegionDisabledExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_RegionDisabledException(body.Error, context); - const exception = new models_0_1.RegionDisabledException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); +const se_ResourceArns = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; }; -const se_AssumeRoleRequest = (input, context) => { +const se_RuleArns = (input, context) => { const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; + return entries; +}; +const se_RuleCondition = (input, context) => { + const entries = {}; + if (input.Field != null) { + entries["Field"] = input.Field; } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; + if (input.Values != null) { + const memberEntries = se_ListOfString(input.Values, context); + if (input.Values?.length === 0) { + entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; + const loc = `Values.${key}`; entries[loc] = value; }); } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input.HostHeaderConfig != null) { + const memberEntries = se_HostHeaderConditionConfig(input.HostHeaderConfig, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `HostHeaderConfig.${key}`; + entries[loc] = value; + }); } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } + if (input.PathPatternConfig != null) { + const memberEntries = se_PathPatternConditionConfig(input.PathPatternConfig, context); Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; + const loc = `PathPatternConfig.${key}`; entries[loc] = value; }); } - if (input.TransitiveTagKeys != null) { - const memberEntries = se_tagKeyListType(input.TransitiveTagKeys, context); - if (input.TransitiveTagKeys?.length === 0) { - entries.TransitiveTagKeys = []; - } + if (input.HttpHeaderConfig != null) { + const memberEntries = se_HttpHeaderConditionConfig(input.HttpHeaderConfig, context); Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `TransitiveTagKeys.${key}`; + const loc = `HttpHeaderConfig.${key}`; entries[loc] = value; }); } - if (input.ExternalId != null) { - entries["ExternalId"] = input.ExternalId; + if (input.QueryStringConfig != null) { + const memberEntries = se_QueryStringConditionConfig(input.QueryStringConfig, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `QueryStringConfig.${key}`; + entries[loc] = value; + }); } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input.HttpRequestMethodConfig != null) { + const memberEntries = se_HttpRequestMethodConditionConfig(input.HttpRequestMethodConfig, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `HttpRequestMethodConfig.${key}`; + entries[loc] = value; + }); } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; + if (input.SourceIpConfig != null) { + const memberEntries = se_SourceIpConditionConfig(input.SourceIpConfig, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `SourceIpConfig.${key}`; + entries[loc] = value; + }); } - if (input.SourceIdentity != null) { - entries["SourceIdentity"] = input.SourceIdentity; + return entries; +}; +const se_RuleConditionList = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = se_RuleCondition(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; } - if (input.ProvidedContexts != null) { - const memberEntries = se_ProvidedContextsListType(input.ProvidedContexts, context); - if (input.ProvidedContexts?.length === 0) { - entries.ProvidedContexts = []; + return entries; +}; +const se_RulePriorityList = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; } + const memberEntries = se_RulePriorityPair(entry, context); Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `ProvidedContexts.${key}`; - entries[loc] = value; + entries[`member.${counter}.${key}`] = value; }); + counter++; } return entries; }; -const se_AssumeRoleWithSAMLRequest = (input, context) => { +const se_RulePriorityPair = (input, context) => { const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input.RuleArn != null) { + entries["RuleArn"] = input.RuleArn; } - if (input.PrincipalArn != null) { - entries["PrincipalArn"] = input.PrincipalArn; + if (input.Priority != null) { + entries["Priority"] = input.Priority; } - if (input.SAMLAssertion != null) { - entries["SAMLAssertion"] = input.SAMLAssertion; + return entries; +}; +const se_SecurityGroups = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; + return entries; +}; +const se_SetIpAddressTypeInput = (input, context) => { + const entries = {}; + if (input.LoadBalancerArn != null) { + entries["LoadBalancerArn"] = input.LoadBalancerArn; + } + if (input.IpAddressType != null) { + entries["IpAddressType"] = input.IpAddressType; + } + return entries; +}; +const se_SetRulePrioritiesInput = (input, context) => { + const entries = {}; + if (input.RulePriorities != null) { + const memberEntries = se_RulePriorityList(input.RulePriorities, context); + if (input.RulePriorities?.length === 0) { + entries.RulePriorities = []; } Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; + const loc = `RulePriorities.${key}`; entries[loc] = value; }); } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } return entries; }; -const se_AssumeRoleWithWebIdentityRequest = (input, context) => { +const se_SetSecurityGroupsInput = (input, context) => { const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input.LoadBalancerArn != null) { + entries["LoadBalancerArn"] = input.LoadBalancerArn; } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; + if (input.SecurityGroups != null) { + const memberEntries = se_SecurityGroups(input.SecurityGroups, context); + if (input.SecurityGroups?.length === 0) { + entries.SecurityGroups = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `SecurityGroups.${key}`; + entries[loc] = value; + }); } - if (input.WebIdentityToken != null) { - entries["WebIdentityToken"] = input.WebIdentityToken; + if (input.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic != null) { + entries["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] = + input.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic; } - if (input.ProviderId != null) { - entries["ProviderId"] = input.ProviderId; + return entries; +}; +const se_SetSubnetsInput = (input, context) => { + const entries = {}; + if (input.LoadBalancerArn != null) { + entries["LoadBalancerArn"] = input.LoadBalancerArn; } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; + if (input.Subnets != null) { + const memberEntries = se_Subnets(input.Subnets, context); + if (input.Subnets?.length === 0) { + entries.Subnets = []; } Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; + const loc = `Subnets.${key}`; entries[loc] = value; }); } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + if (input.SubnetMappings != null) { + const memberEntries = se_SubnetMappings(input.SubnetMappings, context); + if (input.SubnetMappings?.length === 0) { + entries.SubnetMappings = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `SubnetMappings.${key}`; + entries[loc] = value; + }); } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input.IpAddressType != null) { + entries["IpAddressType"] = input.IpAddressType; } return entries; }; -const se_DecodeAuthorizationMessageRequest = (input, context) => { +const se_SourceIpConditionConfig = (input, context) => { const entries = {}; - if (input.EncodedMessage != null) { - entries["EncodedMessage"] = input.EncodedMessage; + if (input.Values != null) { + const memberEntries = se_ListOfString(input.Values, context); + if (input.Values?.length === 0) { + entries.Values = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Values.${key}`; + entries[loc] = value; + }); } return entries; }; -const se_GetAccessKeyInfoRequest = (input, context) => { +const se_SslPolicyNames = (input, context) => { const entries = {}; - if (input.AccessKeyId != null) { - entries["AccessKeyId"] = input.AccessKeyId; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; } return entries; }; -const se_GetCallerIdentityRequest = (input, context) => { +const se_SubnetMapping = (input, context) => { const entries = {}; + if (input.SubnetId != null) { + entries["SubnetId"] = input.SubnetId; + } + if (input.AllocationId != null) { + entries["AllocationId"] = input.AllocationId; + } + if (input.PrivateIPv4Address != null) { + entries["PrivateIPv4Address"] = input.PrivateIPv4Address; + } + if (input.IPv6Address != null) { + entries["IPv6Address"] = input.IPv6Address; + } return entries; }; -const se_GetFederationTokenRequest = (input, context) => { +const se_SubnetMappings = (input, context) => { const entries = {}; - if (input.Name != null) { - entries["Name"] = input.Name; - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; } + const memberEntries = se_SubnetMapping(entry, context); Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; + entries[`member.${counter}.${key}`] = value; }); + counter++; } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + return entries; +}; +const se_Subnets = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; + return entries; +}; +const se_Tag = (input, context) => { + const entries = {}; + if (input.Key != null) { + entries["Key"] = input.Key; + } + if (input.Value != null) { + entries["Value"] = input.Value; + } + return entries; +}; +const se_TagKeys = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; +}; +const se_TagList = (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]) => { - const loc = `Tags.${key}`; - entries[loc] = value; + entries[`member.${counter}.${key}`] = value; }); + counter++; } return entries; }; -const se_GetSessionTokenRequest = (input, context) => { +const se_TargetDescription = (input, context) => { const entries = {}; - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input.Id != null) { + entries["Id"] = input.Id; } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input.Port != null) { + entries["Port"] = input.Port; } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; + if (input.AvailabilityZone != null) { + entries["AvailabilityZone"] = input.AvailabilityZone; } return entries; }; -const se_policyDescriptorListType = (input, context) => { +const se_TargetDescriptions = (input, context) => { const entries = {}; let counter = 1; for (const entry of input) { if (entry === null) { continue; } - const memberEntries = se_PolicyDescriptorType(entry, context); + const memberEntries = se_TargetDescription(entry, context); Object.entries(memberEntries).forEach(([key, value]) => { entries[`member.${counter}.${key}`] = value; }); @@ -141508,2194 +131784,1968 @@ const se_policyDescriptorListType = (input, context) => { } return entries; }; -const se_PolicyDescriptorType = (input, context) => { +const se_TargetGroupArns = (input, context) => { const entries = {}; - if (input.arn != null) { - entries["arn"] = input.arn; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; } return entries; }; -const se_ProvidedContext = (input, context) => { +const se_TargetGroupAttribute = (input, context) => { const entries = {}; - if (input.ProviderArn != null) { - entries["ProviderArn"] = input.ProviderArn; + if (input.Key != null) { + entries["Key"] = input.Key; } - if (input.ContextAssertion != null) { - entries["ContextAssertion"] = input.ContextAssertion; + if (input.Value != null) { + entries["Value"] = input.Value; } return entries; }; -const se_ProvidedContextsListType = (input, context) => { +const se_TargetGroupAttributes = (input, context) => { const entries = {}; let counter = 1; for (const entry of input) { if (entry === null) { continue; } - const memberEntries = se_ProvidedContext(entry, context); + const memberEntries = se_TargetGroupAttribute(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; + } + return entries; +}; +const se_TargetGroupList = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = se_TargetGroupTuple(entry, context); Object.entries(memberEntries).forEach(([key, value]) => { entries[`member.${counter}.${key}`] = value; }); counter++; } - return entries; + return entries; +}; +const se_TargetGroupNames = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; +}; +const se_TargetGroupStickinessConfig = (input, context) => { + const entries = {}; + if (input.Enabled != null) { + entries["Enabled"] = input.Enabled; + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + return entries; +}; +const se_TargetGroupTuple = (input, context) => { + const entries = {}; + if (input.TargetGroupArn != null) { + entries["TargetGroupArn"] = input.TargetGroupArn; + } + if (input.Weight != null) { + entries["Weight"] = input.Weight; + } + return entries; +}; +const de_Action = (output, context) => { + const contents = {}; + if (output["Type"] !== undefined) { + contents.Type = (0, smithy_client_1.expectString)(output["Type"]); + } + if (output["TargetGroupArn"] !== undefined) { + contents.TargetGroupArn = (0, smithy_client_1.expectString)(output["TargetGroupArn"]); + } + if (output["AuthenticateOidcConfig"] !== undefined) { + contents.AuthenticateOidcConfig = de_AuthenticateOidcActionConfig(output["AuthenticateOidcConfig"], context); + } + if (output["AuthenticateCognitoConfig"] !== undefined) { + contents.AuthenticateCognitoConfig = de_AuthenticateCognitoActionConfig(output["AuthenticateCognitoConfig"], context); + } + if (output["Order"] !== undefined) { + contents.Order = (0, smithy_client_1.strictParseInt32)(output["Order"]); + } + if (output["RedirectConfig"] !== undefined) { + contents.RedirectConfig = de_RedirectActionConfig(output["RedirectConfig"], context); + } + if (output["FixedResponseConfig"] !== undefined) { + contents.FixedResponseConfig = de_FixedResponseActionConfig(output["FixedResponseConfig"], context); + } + if (output["ForwardConfig"] !== undefined) { + contents.ForwardConfig = de_ForwardActionConfig(output["ForwardConfig"], context); + } + return contents; +}; +const de_Actions = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Action(entry, context); + }); +}; +const de_AddListenerCertificatesOutput = (output, context) => { + const contents = {}; + if (output.Certificates === "") { + contents.Certificates = []; + } + else if (output["Certificates"] !== undefined && output["Certificates"]["member"] !== undefined) { + contents.Certificates = de_CertificateList((0, smithy_client_1.getArrayIfSingleItem)(output["Certificates"]["member"]), context); + } + return contents; +}; +const de_AddTagsOutput = (output, context) => { + const contents = {}; + return contents; +}; +const de_AllocationIdNotFoundException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + } + return contents; +}; +const de_AlpnPolicyName = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return (0, smithy_client_1.expectString)(entry); + }); +}; +const de_ALPNPolicyNotSupportedException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + } + return contents; +}; +const de_AuthenticateCognitoActionAuthenticationRequestExtraParams = (output, context) => { + return output.reduce((acc, pair) => { + if (pair["value"] === null) { + return acc; + } + acc[pair["key"]] = (0, smithy_client_1.expectString)(pair["value"]); + return acc; + }, {}); +}; +const de_AuthenticateCognitoActionConfig = (output, context) => { + const contents = {}; + if (output["UserPoolArn"] !== undefined) { + contents.UserPoolArn = (0, smithy_client_1.expectString)(output["UserPoolArn"]); + } + if (output["UserPoolClientId"] !== undefined) { + contents.UserPoolClientId = (0, smithy_client_1.expectString)(output["UserPoolClientId"]); + } + if (output["UserPoolDomain"] !== undefined) { + contents.UserPoolDomain = (0, smithy_client_1.expectString)(output["UserPoolDomain"]); + } + if (output["SessionCookieName"] !== undefined) { + contents.SessionCookieName = (0, smithy_client_1.expectString)(output["SessionCookieName"]); + } + if (output["Scope"] !== undefined) { + contents.Scope = (0, smithy_client_1.expectString)(output["Scope"]); + } + if (output["SessionTimeout"] !== undefined) { + contents.SessionTimeout = (0, smithy_client_1.strictParseLong)(output["SessionTimeout"]); + } + if (output.AuthenticationRequestExtraParams === "") { + contents.AuthenticationRequestExtraParams = {}; + } + else if (output["AuthenticationRequestExtraParams"] !== undefined && + output["AuthenticationRequestExtraParams"]["entry"] !== undefined) { + contents.AuthenticationRequestExtraParams = de_AuthenticateCognitoActionAuthenticationRequestExtraParams((0, smithy_client_1.getArrayIfSingleItem)(output["AuthenticationRequestExtraParams"]["entry"]), context); + } + if (output["OnUnauthenticatedRequest"] !== undefined) { + contents.OnUnauthenticatedRequest = (0, smithy_client_1.expectString)(output["OnUnauthenticatedRequest"]); + } + return contents; +}; +const de_AuthenticateOidcActionAuthenticationRequestExtraParams = (output, context) => { + return output.reduce((acc, pair) => { + if (pair["value"] === null) { + return acc; + } + acc[pair["key"]] = (0, smithy_client_1.expectString)(pair["value"]); + return acc; + }, {}); +}; +const de_AuthenticateOidcActionConfig = (output, context) => { + const contents = {}; + if (output["Issuer"] !== undefined) { + contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]); + } + if (output["AuthorizationEndpoint"] !== undefined) { + contents.AuthorizationEndpoint = (0, smithy_client_1.expectString)(output["AuthorizationEndpoint"]); + } + if (output["TokenEndpoint"] !== undefined) { + contents.TokenEndpoint = (0, smithy_client_1.expectString)(output["TokenEndpoint"]); + } + if (output["UserInfoEndpoint"] !== undefined) { + contents.UserInfoEndpoint = (0, smithy_client_1.expectString)(output["UserInfoEndpoint"]); + } + if (output["ClientId"] !== undefined) { + contents.ClientId = (0, smithy_client_1.expectString)(output["ClientId"]); + } + if (output["ClientSecret"] !== undefined) { + contents.ClientSecret = (0, smithy_client_1.expectString)(output["ClientSecret"]); + } + if (output["SessionCookieName"] !== undefined) { + contents.SessionCookieName = (0, smithy_client_1.expectString)(output["SessionCookieName"]); + } + if (output["Scope"] !== undefined) { + contents.Scope = (0, smithy_client_1.expectString)(output["Scope"]); + } + if (output["SessionTimeout"] !== undefined) { + contents.SessionTimeout = (0, smithy_client_1.strictParseLong)(output["SessionTimeout"]); + } + if (output.AuthenticationRequestExtraParams === "") { + contents.AuthenticationRequestExtraParams = {}; + } + else if (output["AuthenticationRequestExtraParams"] !== undefined && + output["AuthenticationRequestExtraParams"]["entry"] !== undefined) { + contents.AuthenticationRequestExtraParams = de_AuthenticateOidcActionAuthenticationRequestExtraParams((0, smithy_client_1.getArrayIfSingleItem)(output["AuthenticationRequestExtraParams"]["entry"]), context); + } + if (output["OnUnauthenticatedRequest"] !== undefined) { + contents.OnUnauthenticatedRequest = (0, smithy_client_1.expectString)(output["OnUnauthenticatedRequest"]); + } + if (output["UseExistingClientSecret"] !== undefined) { + contents.UseExistingClientSecret = (0, smithy_client_1.parseBoolean)(output["UseExistingClientSecret"]); + } + return contents; +}; +const de_AvailabilityZone = (output, context) => { + const contents = {}; + if (output["ZoneName"] !== undefined) { + contents.ZoneName = (0, smithy_client_1.expectString)(output["ZoneName"]); + } + if (output["SubnetId"] !== undefined) { + contents.SubnetId = (0, smithy_client_1.expectString)(output["SubnetId"]); + } + if (output["OutpostId"] !== undefined) { + contents.OutpostId = (0, smithy_client_1.expectString)(output["OutpostId"]); + } + if (output.LoadBalancerAddresses === "") { + contents.LoadBalancerAddresses = []; + } + else if (output["LoadBalancerAddresses"] !== undefined && output["LoadBalancerAddresses"]["member"] !== undefined) { + contents.LoadBalancerAddresses = de_LoadBalancerAddresses((0, smithy_client_1.getArrayIfSingleItem)(output["LoadBalancerAddresses"]["member"]), context); + } + return contents; +}; +const de_AvailabilityZoneNotSupportedException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + } + return contents; +}; +const de_AvailabilityZones = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_AvailabilityZone(entry, context); + }); +}; +const de_Certificate = (output, context) => { + const contents = {}; + if (output["CertificateArn"] !== undefined) { + contents.CertificateArn = (0, smithy_client_1.expectString)(output["CertificateArn"]); + } + if (output["IsDefault"] !== undefined) { + contents.IsDefault = (0, smithy_client_1.parseBoolean)(output["IsDefault"]); + } + return contents; +}; +const de_CertificateList = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Certificate(entry, context); + }); +}; +const de_CertificateNotFoundException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + } + return contents; +}; +const de_Cipher = (output, context) => { + const contents = {}; + if (output["Name"] !== undefined) { + contents.Name = (0, smithy_client_1.expectString)(output["Name"]); + } + if (output["Priority"] !== undefined) { + contents.Priority = (0, smithy_client_1.strictParseInt32)(output["Priority"]); + } + return contents; +}; +const de_Ciphers = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Cipher(entry, context); + }); +}; +const de_CreateListenerOutput = (output, context) => { + const contents = {}; + if (output.Listeners === "") { + contents.Listeners = []; + } + else if (output["Listeners"] !== undefined && output["Listeners"]["member"] !== undefined) { + contents.Listeners = de_Listeners((0, smithy_client_1.getArrayIfSingleItem)(output["Listeners"]["member"]), context); + } + return contents; }; -const se_Tag = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries["Key"] = input.Key; +const de_CreateLoadBalancerOutput = (output, context) => { + const contents = {}; + if (output.LoadBalancers === "") { + contents.LoadBalancers = []; } - if (input.Value != null) { - entries["Value"] = input.Value; + else if (output["LoadBalancers"] !== undefined && output["LoadBalancers"]["member"] !== undefined) { + contents.LoadBalancers = de_LoadBalancers((0, smithy_client_1.getArrayIfSingleItem)(output["LoadBalancers"]["member"]), context); } - return entries; + return contents; }; -const se_tagKeyListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; +const de_CreateRuleOutput = (output, context) => { + const contents = {}; + if (output.Rules === "") { + contents.Rules = []; } - return entries; -}; -const se_tagListType = (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++; + else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { + contents.Rules = de_Rules((0, smithy_client_1.getArrayIfSingleItem)(output["Rules"]["member"]), context); } - return entries; + return contents; }; -const de_AssumedRoleUser = (output, context) => { +const de_CreateTargetGroupOutput = (output, context) => { const contents = {}; - if (output["AssumedRoleId"] !== undefined) { - contents.AssumedRoleId = (0, smithy_client_1.expectString)(output["AssumedRoleId"]); + if (output.TargetGroups === "") { + contents.TargetGroups = []; } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { + contents.TargetGroups = de_TargetGroups((0, smithy_client_1.getArrayIfSingleItem)(output["TargetGroups"]["member"]), context); } return contents; }; -const de_AssumeRoleResponse = (output, context) => { +const de_DeleteListenerOutput = (output, context) => { const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); + return contents; +}; +const de_DeleteLoadBalancerOutput = (output, context) => { + const contents = {}; + return contents; +}; +const de_DeleteRuleOutput = (output, context) => { + const contents = {}; + return contents; +}; +const de_DeleteTargetGroupOutput = (output, context) => { + const contents = {}; + return contents; +}; +const de_DeregisterTargetsOutput = (output, context) => { + const contents = {}; + return contents; +}; +const de_DescribeAccountLimitsOutput = (output, context) => { + const contents = {}; + if (output.Limits === "") { + contents.Limits = []; } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + else if (output["Limits"] !== undefined && output["Limits"]["member"] !== undefined) { + contents.Limits = de_Limits((0, smithy_client_1.getArrayIfSingleItem)(output["Limits"]["member"]), context); } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + if (output["NextMarker"] !== undefined) { + contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); } return contents; }; -const de_AssumeRoleWithSAMLResponse = (output, context) => { +const de_DescribeListenerCertificatesOutput = (output, context) => { const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); + if (output.Certificates === "") { + contents.Certificates = []; } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); + else if (output["Certificates"] !== undefined && output["Certificates"]["member"] !== undefined) { + contents.Certificates = de_CertificateList((0, smithy_client_1.getArrayIfSingleItem)(output["Certificates"]["member"]), context); } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + if (output["NextMarker"] !== undefined) { + contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); } - if (output["Subject"] !== undefined) { - contents.Subject = (0, smithy_client_1.expectString)(output["Subject"]); + return contents; +}; +const de_DescribeListenersOutput = (output, context) => { + const contents = {}; + if (output.Listeners === "") { + contents.Listeners = []; } - if (output["SubjectType"] !== undefined) { - contents.SubjectType = (0, smithy_client_1.expectString)(output["SubjectType"]); + else if (output["Listeners"] !== undefined && output["Listeners"]["member"] !== undefined) { + contents.Listeners = de_Listeners((0, smithy_client_1.getArrayIfSingleItem)(output["Listeners"]["member"]), context); } - if (output["Issuer"] !== undefined) { - contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]); + if (output["NextMarker"] !== undefined) { + contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); } - if (output["Audience"] !== undefined) { - contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); + return contents; +}; +const de_DescribeLoadBalancerAttributesOutput = (output, context) => { + const contents = {}; + if (output.Attributes === "") { + contents.Attributes = []; } - if (output["NameQualifier"] !== undefined) { - contents.NameQualifier = (0, smithy_client_1.expectString)(output["NameQualifier"]); + else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { + contents.Attributes = de_LoadBalancerAttributes((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["member"]), context); } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + return contents; +}; +const de_DescribeLoadBalancersOutput = (output, context) => { + const contents = {}; + if (output.LoadBalancers === "") { + contents.LoadBalancers = []; + } + else if (output["LoadBalancers"] !== undefined && output["LoadBalancers"]["member"] !== undefined) { + contents.LoadBalancers = de_LoadBalancers((0, smithy_client_1.getArrayIfSingleItem)(output["LoadBalancers"]["member"]), context); + } + if (output["NextMarker"] !== undefined) { + contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); } return contents; }; -const de_AssumeRoleWithWebIdentityResponse = (output, context) => { +const de_DescribeRulesOutput = (output, context) => { const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); + if (output.Rules === "") { + contents.Rules = []; } - if (output["SubjectFromWebIdentityToken"] !== undefined) { - contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output["SubjectFromWebIdentityToken"]); + else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { + contents.Rules = de_Rules((0, smithy_client_1.getArrayIfSingleItem)(output["Rules"]["member"]), context); } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); + if (output["NextMarker"] !== undefined) { + contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + return contents; +}; +const de_DescribeSSLPoliciesOutput = (output, context) => { + const contents = {}; + if (output.SslPolicies === "") { + contents.SslPolicies = []; } - if (output["Provider"] !== undefined) { - contents.Provider = (0, smithy_client_1.expectString)(output["Provider"]); + else if (output["SslPolicies"] !== undefined && output["SslPolicies"]["member"] !== undefined) { + contents.SslPolicies = de_SslPolicies((0, smithy_client_1.getArrayIfSingleItem)(output["SslPolicies"]["member"]), context); } - if (output["Audience"] !== undefined) { - contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); + if (output["NextMarker"] !== undefined) { + contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + return contents; +}; +const de_DescribeTagsOutput = (output, context) => { + const contents = {}; + if (output.TagDescriptions === "") { + contents.TagDescriptions = []; + } + else if (output["TagDescriptions"] !== undefined && output["TagDescriptions"]["member"] !== undefined) { + contents.TagDescriptions = de_TagDescriptions((0, smithy_client_1.getArrayIfSingleItem)(output["TagDescriptions"]["member"]), context); } return contents; }; -const de_Credentials = (output, context) => { +const de_DescribeTargetGroupAttributesOutput = (output, context) => { const contents = {}; - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]); + if (output.Attributes === "") { + contents.Attributes = []; } - if (output["SecretAccessKey"] !== undefined) { - contents.SecretAccessKey = (0, smithy_client_1.expectString)(output["SecretAccessKey"]); + else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { + contents.Attributes = de_TargetGroupAttributes((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["member"]), context); } - if (output["SessionToken"] !== undefined) { - contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]); + return contents; +}; +const de_DescribeTargetGroupsOutput = (output, context) => { + const contents = {}; + if (output.TargetGroups === "") { + contents.TargetGroups = []; } - if (output["Expiration"] !== undefined) { - contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Expiration"])); + else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { + contents.TargetGroups = de_TargetGroups((0, smithy_client_1.getArrayIfSingleItem)(output["TargetGroups"]["member"]), context); + } + if (output["NextMarker"] !== undefined) { + contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]); } return contents; }; -const de_DecodeAuthorizationMessageResponse = (output, context) => { +const de_DescribeTargetHealthOutput = (output, context) => { const contents = {}; - if (output["DecodedMessage"] !== undefined) { - contents.DecodedMessage = (0, smithy_client_1.expectString)(output["DecodedMessage"]); + if (output.TargetHealthDescriptions === "") { + contents.TargetHealthDescriptions = []; + } + else if (output["TargetHealthDescriptions"] !== undefined && + output["TargetHealthDescriptions"]["member"] !== undefined) { + contents.TargetHealthDescriptions = de_TargetHealthDescriptions((0, smithy_client_1.getArrayIfSingleItem)(output["TargetHealthDescriptions"]["member"]), context); } return contents; }; -const de_ExpiredTokenException = (output, context) => { +const de_DuplicateListenerException = (output, context) => { const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } return contents; }; -const de_FederatedUser = (output, context) => { +const de_DuplicateLoadBalancerNameException = (output, context) => { const contents = {}; - if (output["FederatedUserId"] !== undefined) { - contents.FederatedUserId = (0, smithy_client_1.expectString)(output["FederatedUserId"]); + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + return contents; +}; +const de_DuplicateTagKeysException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } return contents; }; -const de_GetAccessKeyInfoResponse = (output, context) => { +const de_DuplicateTargetGroupNameException = (output, context) => { const contents = {}; - if (output["Account"] !== undefined) { - contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } return contents; }; -const de_GetCallerIdentityResponse = (output, context) => { +const de_FixedResponseActionConfig = (output, context) => { const contents = {}; - if (output["UserId"] !== undefined) { - contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]); + if (output["MessageBody"] !== undefined) { + contents.MessageBody = (0, smithy_client_1.expectString)(output["MessageBody"]); } - if (output["Account"] !== undefined) { - contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + if (output["StatusCode"] !== undefined) { + contents.StatusCode = (0, smithy_client_1.expectString)(output["StatusCode"]); } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + if (output["ContentType"] !== undefined) { + contents.ContentType = (0, smithy_client_1.expectString)(output["ContentType"]); } return contents; }; -const de_GetFederationTokenResponse = (output, context) => { +const de_ForwardActionConfig = (output, context) => { const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); + if (output.TargetGroups === "") { + contents.TargetGroups = []; } - if (output["FederatedUser"] !== undefined) { - contents.FederatedUser = de_FederatedUser(output["FederatedUser"], context); + else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { + contents.TargetGroups = de_TargetGroupList((0, smithy_client_1.getArrayIfSingleItem)(output["TargetGroups"]["member"]), context); } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + if (output["TargetGroupStickinessConfig"] !== undefined) { + contents.TargetGroupStickinessConfig = de_TargetGroupStickinessConfig(output["TargetGroupStickinessConfig"], context); } return contents; }; -const de_GetSessionTokenResponse = (output, context) => { +const de_HealthUnavailableException = (output, context) => { const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } return contents; }; -const de_IDPCommunicationErrorException = (output, context) => { +const de_HostHeaderConditionConfig = (output, context) => { const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + if (output.Values === "") { + contents.Values = []; + } + else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { + contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); } return contents; }; -const de_IDPRejectedClaimException = (output, context) => { +const de_HttpHeaderConditionConfig = (output, context) => { const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + if (output["HttpHeaderName"] !== undefined) { + contents.HttpHeaderName = (0, smithy_client_1.expectString)(output["HttpHeaderName"]); + } + if (output.Values === "") { + contents.Values = []; + } + else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { + contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); } return contents; }; -const de_InvalidAuthorizationMessageException = (output, context) => { +const de_HttpRequestMethodConditionConfig = (output, context) => { const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + if (output.Values === "") { + contents.Values = []; + } + else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { + contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); } return contents; }; -const de_InvalidIdentityTokenException = (output, context) => { +const de_IncompatibleProtocolsException = (output, context) => { const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } return contents; }; -const de_MalformedPolicyDocumentException = (output, context) => { +const de_InvalidConfigurationRequestException = (output, context) => { const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } return contents; }; -const de_PackedPolicyTooLargeException = (output, context) => { +const de_InvalidLoadBalancerActionException = (output, context) => { const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } return contents; }; -const de_RegionDisabledException = (output, context) => { +const de_InvalidSchemeException = (output, context) => { const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } return contents; }; -const deserializeMetadata = (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"], -}); -const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -const throwDefaultError = (0, smithy_client_1.withBaseException)(STSServiceException_1.STSServiceException); -const buildHttpRpcRequest = 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 !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; +const de_InvalidSecurityGroupException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - return new protocol_http_1.HttpRequest(contents); -}; -const SHARED_HEADERS = { - "content-type": "application/x-www-form-urlencoded", + return contents; }; -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - const parser = new fast_xml_parser_1.XMLParser({ - attributeNamePrefix: "", - htmlEntities: true, - ignoreAttributes: false, - ignoreDeclaration: true, - parseTagValue: false, - trimValues: false, - tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined), - }); - parser.addEntity("#xD", "\r"); - parser.addEntity("#10", "\n"); - const parsedObj = parser.parse(encoded); - 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, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); +const de_InvalidSubnetException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - if (value.Error) { - value.Error.message = value.Error.message ?? value.Error.Message; + return contents; +}; +const de_InvalidTargetException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - return value; + return contents; }; -const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries) - .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)) - .join("&"); -const loadQueryErrorCode = (output, data) => { - if (data.Error?.Code !== undefined) { - return data.Error.Code; +const de_Limit = (output, context) => { + const contents = {}; + if (output["Name"] !== undefined) { + contents.Name = (0, smithy_client_1.expectString)(output["Name"]); } - if (output.statusCode == 404) { - return "NotFound"; + if (output["Max"] !== undefined) { + contents.Max = (0, smithy_client_1.expectString)(output["Max"]); } + return contents; }; - - -/***/ }), - -/***/ 48226: -/***/ ((__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__(92101)); -const defaultStsRoleAssumers_1 = __nccwpck_require__(49606); -const credential_provider_node_1 = __nccwpck_require__(55340); -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__(8644); -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); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_node_1.defaultUserAgent)({ 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), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(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, - }), - 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), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 8644: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -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 endpointResolver_1 = __nccwpck_require__(85425); -const getRuntimeConfig = (config) => ({ - 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 ?? [], - 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; - - -/***/ }), - -/***/ 62654: -/***/ ((__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 asPartial = (t) => t; -const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - }; -}; -exports.resolveRuntimeExtensions = resolveRuntimeExtensions; - - -/***/ }), - -/***/ 16887: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromIni = void 0; -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const resolveProfileData_1 = __nccwpck_require__(46709); -const fromIni = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); +const de_Limits = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Limit(entry, context); + }); }; -exports.fromIni = fromIni; - - -/***/ }), - -/***/ 94879: -/***/ ((__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__(16887), exports); - - -/***/ }), - -/***/ 48756: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveAssumeRoleCredentials = exports.isAssumeRoleProfile = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const resolveCredentialSource_1 = __nccwpck_require__(40292); -const resolveProfileData_1 = __nccwpck_require__(46709); -const isAssumeRoleProfile = (arg) => 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) || isAssumeRoleWithProviderProfile(arg)); -exports.isAssumeRoleProfile = isAssumeRoleProfile; -const isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; -const isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; -const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (!options.roleAssumer) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false); +const de_Listener = (output, context) => { + const contents = {}; + if (output["ListenerArn"] !== undefined) { + contents.ListenerArn = (0, smithy_client_1.expectString)(output["ListenerArn"]); } - const { source_profile } = data; - if (source_profile && source_profile in visitedProfiles) { - throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` + - ` ${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: ` + - Object.keys(visitedProfiles).join(", "), false); + if (output["LoadBalancerArn"] !== undefined) { + contents.LoadBalancerArn = (0, smithy_client_1.expectString)(output["LoadBalancerArn"]); } - const sourceCredsProvider = source_profile - ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { - ...visitedProfiles, - [source_profile]: true, - }) - : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); - const params = { - RoleArn: data.role_arn, - RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, - ExternalId: data.external_id, - DurationSeconds: parseInt(data.duration_seconds || "3600", 10), - }; - const { mfa_serial } = data; - if (mfa_serial) { - if (!options.mfaCodeProvider) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, false); - } - params.SerialNumber = mfa_serial; - params.TokenCode = await options.mfaCodeProvider(mfa_serial); + if (output["Port"] !== undefined) { + contents.Port = (0, smithy_client_1.strictParseInt32)(output["Port"]); } - const sourceCreds = await sourceCredsProvider; - return options.roleAssumer(sourceCreds, params); -}; -exports.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; - - -/***/ }), - -/***/ 40292: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveCredentialSource = void 0; -const credential_provider_env_1 = __nccwpck_require__(15972); -const credential_provider_imds_1 = __nccwpck_require__(7477); -const property_provider_1 = __nccwpck_require__(79721); -const resolveCredentialSource = (credentialSource, profileName) => { - const sourceProvidersMap = { - EcsContainer: credential_provider_imds_1.fromContainerMetadata, - Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, - Environment: credential_provider_env_1.fromEnv, - }; - if (credentialSource in sourceProvidersMap) { - return sourceProvidersMap[credentialSource](); + if (output["Protocol"] !== undefined) { + contents.Protocol = (0, smithy_client_1.expectString)(output["Protocol"]); } - else { - throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` + - `expected EcsContainer or Ec2InstanceMetadata or Environment.`); + if (output.Certificates === "") { + contents.Certificates = []; } -}; -exports.resolveCredentialSource = resolveCredentialSource; - - -/***/ }), - -/***/ 91794: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveProcessCredentials = exports.isProcessProfile = void 0; -const credential_provider_process_1 = __nccwpck_require__(89969); -const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string"; -exports.isProcessProfile = isProcessProfile; -const resolveProcessCredentials = async (options, profile) => (0, credential_provider_process_1.fromProcess)({ - ...options, - profile, -})(); -exports.resolveProcessCredentials = resolveProcessCredentials; - - -/***/ }), - -/***/ 46709: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveProfileData = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const resolveAssumeRoleCredentials_1 = __nccwpck_require__(48756); -const resolveProcessCredentials_1 = __nccwpck_require__(91794); -const resolveSsoCredentials_1 = __nccwpck_require__(96912); -const resolveStaticCredentials_1 = __nccwpck_require__(31656); -const resolveWebIdentityCredentials_1 = __nccwpck_require__(32307); -const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + else if (output["Certificates"] !== undefined && output["Certificates"]["member"] !== undefined) { + contents.Certificates = de_CertificateList((0, smithy_client_1.getArrayIfSingleItem)(output["Certificates"]["member"]), context); } - if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { - return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); + if (output["SslPolicy"] !== undefined) { + contents.SslPolicy = (0, smithy_client_1.expectString)(output["SslPolicy"]); } - if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + if (output.DefaultActions === "") { + contents.DefaultActions = []; } - if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { - return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); + else if (output["DefaultActions"] !== undefined && output["DefaultActions"]["member"] !== undefined) { + contents.DefaultActions = de_Actions((0, smithy_client_1.getArrayIfSingleItem)(output["DefaultActions"]["member"]), context); } - if ((0, resolveProcessCredentials_1.isProcessProfile)(data)) { - return (0, resolveProcessCredentials_1.resolveProcessCredentials)(options, profileName); + if (output.AlpnPolicy === "") { + contents.AlpnPolicy = []; } - if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { - return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); + else if (output["AlpnPolicy"] !== undefined && output["AlpnPolicy"]["member"] !== undefined) { + contents.AlpnPolicy = de_AlpnPolicyName((0, smithy_client_1.getArrayIfSingleItem)(output["AlpnPolicy"]["member"]), context); } - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`); + return contents; }; -exports.resolveProfileData = resolveProfileData; - - -/***/ }), - -/***/ 96912: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveSsoCredentials = exports.isSsoProfile = void 0; -const credential_provider_sso_1 = __nccwpck_require__(47153); -var credential_provider_sso_2 = __nccwpck_require__(47153); -Object.defineProperty(exports, "isSsoProfile", ({ enumerable: true, get: function () { return credential_provider_sso_2.isSsoProfile; } })); -const resolveSsoCredentials = (data) => { - const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); - return (0, credential_provider_sso_1.fromSSO)({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoSession: sso_session, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - })(); +const de_ListenerNotFoundException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + } + return contents; }; -exports.resolveSsoCredentials = resolveSsoCredentials; - - -/***/ }), - -/***/ 31656: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0; -const isStaticCredsProfile = (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; -exports.isStaticCredsProfile = isStaticCredsProfile; -const resolveStaticCredentials = (profile) => Promise.resolve({ - accessKeyId: profile.aws_access_key_id, - secretAccessKey: profile.aws_secret_access_key, - sessionToken: profile.aws_session_token, -}); -exports.resolveStaticCredentials = resolveStaticCredentials; - - -/***/ }), - -/***/ 32307: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0; -const credential_provider_web_identity_1 = __nccwpck_require__(15646); -const isWebIdentityProfile = (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; -exports.isWebIdentityProfile = isWebIdentityProfile; -const resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ - webIdentityTokenFile: profile.web_identity_token_file, - roleArn: profile.role_arn, - roleSessionName: profile.role_session_name, - roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, -})(); -exports.resolveWebIdentityCredentials = resolveWebIdentityCredentials; - - -/***/ }), - -/***/ 83918: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultProvider = void 0; -const credential_provider_env_1 = __nccwpck_require__(15972); -const credential_provider_ini_1 = __nccwpck_require__(94879); -const credential_provider_process_1 = __nccwpck_require__(89969); -const credential_provider_sso_1 = __nccwpck_require__(47153); -const credential_provider_web_identity_1 = __nccwpck_require__(15646); -const property_provider_1 = __nccwpck_require__(79721); -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const remoteProvider_1 = __nccwpck_require__(93100); -const defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...(init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()]), (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { - throw new property_provider_1.CredentialsProviderError("Could not load credentials from any providers", false); -}), (credentials) => credentials.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000, (credentials) => credentials.expiration !== undefined); -exports.defaultProvider = defaultProvider; - - -/***/ }), - -/***/ 55340: -/***/ ((__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__(83918), exports); - - -/***/ }), - -/***/ 93100: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.remoteProvider = exports.ENV_IMDS_DISABLED = void 0; -const credential_provider_imds_1 = __nccwpck_require__(7477); -const property_provider_1 = __nccwpck_require__(79721); -exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -const remoteProvider = (init) => { - if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { - return (0, credential_provider_imds_1.fromContainerMetadata)(init); +const de_Listeners = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Listener(entry, context); + }); +}; +const de_ListOfString = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return (0, smithy_client_1.expectString)(entry); + }); +}; +const de_LoadBalancer = (output, context) => { + const contents = {}; + if (output["LoadBalancerArn"] !== undefined) { + contents.LoadBalancerArn = (0, smithy_client_1.expectString)(output["LoadBalancerArn"]); } - if (process.env[exports.ENV_IMDS_DISABLED]) { - return async () => { - throw new property_provider_1.CredentialsProviderError("EC2 Instance Metadata Service access disabled"); - }; + if (output["DNSName"] !== undefined) { + contents.DNSName = (0, smithy_client_1.expectString)(output["DNSName"]); } - return (0, credential_provider_imds_1.fromInstanceMetadata)(init); -}; -exports.remoteProvider = remoteProvider; - - -/***/ }), - -/***/ 78440: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromSSO = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const isSsoProfile_1 = __nccwpck_require__(20441); -const resolveSSOCredentials_1 = __nccwpck_require__(8281); -const validateSsoProfile_1 = __nccwpck_require__(37881); -const fromSSO = (init = {}) => async () => { - const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, ssoSession } = init; - const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); - if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - const profile = profiles[profileName]; - if (!profile) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} was not found.`); - } - if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`); - } - if (profile === null || profile === void 0 ? void 0 : profile.sso_session) { - const ssoSessions = await (0, shared_ini_file_loader_1.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 property_provider_1.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, false); - } - if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) { - throw new property_provider_1.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, false); - } - 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 } = (0, validateSsoProfile_1.validateSsoProfile)(profile); - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ - ssoStartUrl: sso_start_url, - ssoSession: sso_session, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - ssoClient: ssoClient, - profile: profileName, - }); + if (output["CanonicalHostedZoneId"] !== undefined) { + contents.CanonicalHostedZoneId = (0, smithy_client_1.expectString)(output["CanonicalHostedZoneId"]); } - else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { - throw new property_provider_1.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + - '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"'); + if (output["CreatedTime"] !== undefined) { + contents.CreatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CreatedTime"])); } - else { - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ - ssoStartUrl, - ssoSession, - ssoAccountId, - ssoRegion, - ssoRoleName, - ssoClient, - profile: profileName, - }); + if (output["LoadBalancerName"] !== undefined) { + contents.LoadBalancerName = (0, smithy_client_1.expectString)(output["LoadBalancerName"]); } -}; -exports.fromSSO = fromSSO; - - -/***/ }), - -/***/ 47153: -/***/ ((__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__(78440), exports); -tslib_1.__exportStar(__nccwpck_require__(20441), exports); -tslib_1.__exportStar(__nccwpck_require__(78936), exports); -tslib_1.__exportStar(__nccwpck_require__(37881), exports); - - -/***/ }), - -/***/ 20441: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isSsoProfile = void 0; -const isSsoProfile = (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"); -exports.isSsoProfile = isSsoProfile; - - -/***/ }), - -/***/ 8281: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveSSOCredentials = void 0; -const client_sso_1 = __nccwpck_require__(50446); -const token_providers_1 = __nccwpck_require__(73682); -const property_provider_1 = __nccwpck_require__(79721); -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const SHOULD_FAIL_CREDENTIAL_CHAIN = false; -const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => { - let token; - const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`; - if (ssoSession) { - try { - const _token = await (0, token_providers_1.fromSso)({ profile })(); - token = { - accessToken: _token.token, - expiresAt: new Date(_token.expiration).toISOString(), - }; - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message, SHOULD_FAIL_CREDENTIAL_CHAIN); - } + if (output["Scheme"] !== undefined) { + contents.Scheme = (0, smithy_client_1.expectString)(output["Scheme"]); } - else { - try { - token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } + if (output["VpcId"] !== undefined) { + contents.VpcId = (0, smithy_client_1.expectString)(output["VpcId"]); } - if (new Date(token.expiresAt).getTime() - Date.now() <= 0) { - throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); + if (output["State"] !== undefined) { + contents.State = de_LoadBalancerState(output["State"], context); } - const { accessToken } = token; - const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); - let ssoResp; - try { - ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ - accountId: ssoAccountId, - roleName: ssoRoleName, - accessToken, - })); + if (output["Type"] !== undefined) { + contents.Type = (0, smithy_client_1.expectString)(output["Type"]); + } + if (output.AvailabilityZones === "") { + contents.AvailabilityZones = []; + } + else if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["member"] !== undefined) { + contents.AvailabilityZones = de_AvailabilityZones((0, smithy_client_1.getArrayIfSingleItem)(output["AvailabilityZones"]["member"]), context); + } + if (output.SecurityGroups === "") { + contents.SecurityGroups = []; + } + else if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) { + contents.SecurityGroups = de_SecurityGroups((0, smithy_client_1.getArrayIfSingleItem)(output["SecurityGroups"]["member"]), context); } - catch (e) { - throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); + if (output["IpAddressType"] !== undefined) { + contents.IpAddressType = (0, smithy_client_1.expectString)(output["IpAddressType"]); } - const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; - if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { - throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN); + if (output["CustomerOwnedIpv4Pool"] !== undefined) { + contents.CustomerOwnedIpv4Pool = (0, smithy_client_1.expectString)(output["CustomerOwnedIpv4Pool"]); } - return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; -}; -exports.resolveSSOCredentials = resolveSSOCredentials; - - -/***/ }), - -/***/ 78936: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 37881: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateSsoProfile = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const validateSsoProfile = (profile) => { - 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 property_provider_1.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(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false); + if (output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] !== undefined) { + contents.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = (0, smithy_client_1.expectString)(output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"]); } - return profile; + return contents; }; -exports.validateSsoProfile = validateSsoProfile; - - -/***/ }), - -/***/ 59820: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; -const protocol_http_1 = __nccwpck_require__(64418); -function resolveHostHeaderConfig(input) { - return input; -} -exports.resolveHostHeaderConfig = resolveHostHeaderConfig; -const hostHeaderMiddleware = (options) => (next) => async (args) => { - if (!protocol_http_1.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 : ""); +const de_LoadBalancerAddress = (output, context) => { + const contents = {}; + if (output["IpAddress"] !== undefined) { + contents.IpAddress = (0, smithy_client_1.expectString)(output["IpAddress"]); } - else if (!request.headers["host"]) { - let host = request.hostname; - if (request.port != null) - host += `:${request.port}`; - request.headers["host"] = host; + if (output["AllocationId"] !== undefined) { + contents.AllocationId = (0, smithy_client_1.expectString)(output["AllocationId"]); } - return next(args); + if (output["PrivateIPv4Address"] !== undefined) { + contents.PrivateIPv4Address = (0, smithy_client_1.expectString)(output["PrivateIPv4Address"]); + } + if (output["IPv6Address"] !== undefined) { + contents.IPv6Address = (0, smithy_client_1.expectString)(output["IPv6Address"]); + } + return contents; }; -exports.hostHeaderMiddleware = hostHeaderMiddleware; -exports.hostHeaderMiddlewareOptions = { - name: "hostHeaderMiddleware", - step: "build", - priority: "low", - tags: ["HOST"], - override: true, +const de_LoadBalancerAddresses = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_LoadBalancerAddress(entry, context); + }); }; -const getHostHeaderPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.hostHeaderMiddleware)(options), exports.hostHeaderMiddlewareOptions); - }, -}); -exports.getHostHeaderPlugin = getHostHeaderPlugin; - - -/***/ }), - -/***/ 47202: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.SSOOIDCClient = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.CreateTokenCommand = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0; -const middleware_host_header_1 = __nccwpck_require__(59820); -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 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); -var resolveClientEndpointParameters = (options) => { - var _a, _b; - return { - ...options, - useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false, - useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false, - defaultSigningName: "awsssooidc" - }; +const de_LoadBalancerArns = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return (0, smithy_client_1.expectString)(entry); + }); }; -var package_default = { version: "3.387.0" }; -const util_user_agent_node_1 = __nccwpck_require__(98095); -const config_resolver_2 = __nccwpck_require__(53098); -const hash_node_1 = __nccwpck_require__(3081); -const middleware_retry_2 = __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 smithy_client_2 = __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 util_endpoints_1 = __nccwpck_require__(13350); -var p = "required"; -var q = "fn"; -var r = "argv"; -var s = "ref"; -var a = "PartitionResult"; -var b = "tree"; -var c = "error"; -var d = "endpoint"; -var e = { [p]: false, "type": "String" }; -var f = { [p]: true, "default": false, "type": "Boolean" }; -var g = { [s]: "Endpoint" }; -var h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }; -var i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }; -var j = {}; -var k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }; -var l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }; -var m = [g]; -var n = [h]; -var o = [i]; -var _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }; -var ruleSet = _data; -var defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleSet, { - endpointParams, - logger: context.logger +const de_LoadBalancerAttribute = (output, context) => { + const contents = {}; + if (output["Key"] !== undefined) { + contents.Key = (0, smithy_client_1.expectString)(output["Key"]); + } + if (output["Value"] !== undefined) { + contents.Value = (0, smithy_client_1.expectString)(output["Value"]); + } + return contents; +}; +const de_LoadBalancerAttributes = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_LoadBalancerAttribute(entry, context); }); }; -var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j; - return ({ - apiVersion: "2019-06-10", - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_1.toBase64, - disableHostPrefix: (_c = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _c !== void 0 ? _c : false, - endpointProvider: (_d = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _d !== void 0 ? _d : defaultEndpointResolver, - logger: (_e = config === null || config === void 0 ? void 0 : config.logger) !== null && _e !== void 0 ? _e : new smithy_client_2.NoOpLogger(), - serviceId: (_f = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _f !== void 0 ? _f : "SSO OIDC", - urlParser: (_g = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _g !== void 0 ? _g : url_parser_1.parseUrl, - utf8Decoder: (_h = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _h !== void 0 ? _h : util_utf8_1.fromUtf8, - utf8Encoder: (_j = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _j !== void 0 ? _j : util_utf8_1.toUtf8 +const de_LoadBalancerNotFoundException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + } + return contents; +}; +const de_LoadBalancers = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_LoadBalancer(entry, context); }); }; -const smithy_client_3 = __nccwpck_require__(63570); -const util_defaults_mode_node_1 = __nccwpck_require__(72429); -const smithy_client_4 = __nccwpck_require__(63570); -var getRuntimeConfig2 = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; - (0, smithy_client_4.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_3.loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: (_a = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _a !== void 0 ? _a : util_body_length_node_1.calculateBodyLength, - defaultUserAgentProvider: (_b = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _b !== void 0 ? _b : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), - maxAttempts: (_c = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _c !== void 0 ? _c : (0, node_config_provider_1.loadConfig)(middleware_retry_2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_d = config === null || config === void 0 ? void 0 : config.region) !== null && _d !== void 0 ? _d : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_REGION_CONFIG_OPTIONS, config_resolver_2.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_e = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _e !== void 0 ? _e : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_f = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_2.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE - }), - sha256: (_g = config === null || config === void 0 ? void 0 : config.sha256) !== null && _g !== void 0 ? _g : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_h = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _h !== void 0 ? _h : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_j = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_k = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS) - }; +const de_LoadBalancerState = (output, context) => { + const contents = {}; + if (output["Code"] !== undefined) { + contents.Code = (0, smithy_client_1.expectString)(output["Code"]); + } + if (output["Reason"] !== undefined) { + contents.Reason = (0, smithy_client_1.expectString)(output["Reason"]); + } + return contents; }; -var SSOOIDCClient = class extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = getRuntimeConfig2(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - super(_config_6); - this.config = _config_6; - 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, middleware_user_agent_1.getUserAgentPlugin)(this.config)); +const de_Matcher = (output, context) => { + const contents = {}; + if (output["HttpCode"] !== undefined) { + contents.HttpCode = (0, smithy_client_1.expectString)(output["HttpCode"]); } - destroy() { - super.destroy(); + if (output["GrpcCode"] !== undefined) { + contents.GrpcCode = (0, smithy_client_1.expectString)(output["GrpcCode"]); } + return contents; }; -exports.SSOOIDCClient = SSOOIDCClient; -const smithy_client_5 = __nccwpck_require__(63570); -const middleware_endpoint_2 = __nccwpck_require__(82918); -const middleware_serde_1 = __nccwpck_require__(81238); -const smithy_client_6 = __nccwpck_require__(63570); -const protocol_http_1 = __nccwpck_require__(64418); -const smithy_client_7 = __nccwpck_require__(63570); -const smithy_client_8 = __nccwpck_require__(63570); -var SSOOIDCServiceException = class _SSOOIDCServiceException extends smithy_client_8.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); +const de_ModifyListenerOutput = (output, context) => { + const contents = {}; + if (output.Listeners === "") { + contents.Listeners = []; + } + else if (output["Listeners"] !== undefined && output["Listeners"]["member"] !== undefined) { + contents.Listeners = de_Listeners((0, smithy_client_1.getArrayIfSingleItem)(output["Listeners"]["member"]), context); } + return contents; }; -var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "AccessDeniedException", - $fault: "client", - ...opts - }); - this.name = "AccessDeniedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AccessDeniedException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_ModifyLoadBalancerAttributesOutput = (output, context) => { + const contents = {}; + if (output.Attributes === "") { + contents.Attributes = []; + } + else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { + contents.Attributes = de_LoadBalancerAttributes((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["member"]), context); } + return contents; }; -exports.AccessDeniedException = AccessDeniedException; -var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "AuthorizationPendingException", - $fault: "client", - ...opts - }); - this.name = "AuthorizationPendingException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_ModifyRuleOutput = (output, context) => { + const contents = {}; + if (output.Rules === "") { + contents.Rules = []; + } + else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { + contents.Rules = de_Rules((0, smithy_client_1.getArrayIfSingleItem)(output["Rules"]["member"]), context); } + return contents; }; -exports.AuthorizationPendingException = AuthorizationPendingException; -var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_ModifyTargetGroupAttributesOutput = (output, context) => { + const contents = {}; + if (output.Attributes === "") { + contents.Attributes = []; + } + else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { + contents.Attributes = de_TargetGroupAttributes((0, smithy_client_1.getArrayIfSingleItem)(output["Attributes"]["member"]), context); } + return contents; }; -exports.ExpiredTokenException = ExpiredTokenException; -var InternalServerException = class _InternalServerException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InternalServerException", - $fault: "server", - ...opts - }); - this.name = "InternalServerException"; - this.$fault = "server"; - Object.setPrototypeOf(this, _InternalServerException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_ModifyTargetGroupOutput = (output, context) => { + const contents = {}; + if (output.TargetGroups === "") { + contents.TargetGroups = []; } + else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { + contents.TargetGroups = de_TargetGroups((0, smithy_client_1.getArrayIfSingleItem)(output["TargetGroups"]["member"]), context); + } + return contents; }; -exports.InternalServerException = InternalServerException; -var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidClientException", - $fault: "client", - ...opts - }); - this.name = "InvalidClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_OperationNotPermittedException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } + return contents; }; -exports.InvalidClientException = InvalidClientException; -var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidGrantException", - $fault: "client", - ...opts - }); - this.name = "InvalidGrantException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidGrantException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_PathPatternConditionConfig = (output, context) => { + const contents = {}; + if (output.Values === "") { + contents.Values = []; + } + else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { + contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); } + return contents; }; -var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidRequestException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_PriorityInUseException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } + return contents; }; -exports.InvalidRequestException = InvalidRequestException; -var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidScopeException", - $fault: "client", - ...opts - }); - this.name = "InvalidScopeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidScopeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_QueryStringConditionConfig = (output, context) => { + const contents = {}; + if (output.Values === "") { + contents.Values = []; + } + else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { + contents.Values = de_QueryStringKeyValuePairList((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); } + return contents; }; -exports.InvalidScopeException = InvalidScopeException; -var SlowDownException = class _SlowDownException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "SlowDownException", - $fault: "client", - ...opts - }); - this.name = "SlowDownException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _SlowDownException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_QueryStringKeyValuePair = (output, context) => { + const contents = {}; + if (output["Key"] !== undefined) { + contents.Key = (0, smithy_client_1.expectString)(output["Key"]); + } + if (output["Value"] !== undefined) { + contents.Value = (0, smithy_client_1.expectString)(output["Value"]); } + return contents; }; -exports.SlowDownException = SlowDownException; -var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "UnauthorizedClientException", - $fault: "client", - ...opts - }); - this.name = "UnauthorizedClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_QueryStringKeyValuePairList = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_QueryStringKeyValuePair(entry, context); + }); +}; +const de_RedirectActionConfig = (output, context) => { + const contents = {}; + if (output["Protocol"] !== undefined) { + contents.Protocol = (0, smithy_client_1.expectString)(output["Protocol"]); + } + if (output["Port"] !== undefined) { + contents.Port = (0, smithy_client_1.expectString)(output["Port"]); + } + if (output["Host"] !== undefined) { + contents.Host = (0, smithy_client_1.expectString)(output["Host"]); + } + if (output["Path"] !== undefined) { + contents.Path = (0, smithy_client_1.expectString)(output["Path"]); + } + if (output["Query"] !== undefined) { + contents.Query = (0, smithy_client_1.expectString)(output["Query"]); + } + if (output["StatusCode"] !== undefined) { + contents.StatusCode = (0, smithy_client_1.expectString)(output["StatusCode"]); } + return contents; }; -exports.UnauthorizedClientException = UnauthorizedClientException; -var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "UnsupportedGrantTypeException", - $fault: "client", - ...opts - }); - this.name = "UnsupportedGrantTypeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_RegisterTargetsOutput = (output, context) => { + const contents = {}; + return contents; +}; +const de_RemoveListenerCertificatesOutput = (output, context) => { + const contents = {}; + return contents; +}; +const de_RemoveTagsOutput = (output, context) => { + const contents = {}; + return contents; +}; +const de_ResourceInUseException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } + return contents; }; -exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException; -var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidClientMetadataException", - $fault: "client", - ...opts - }); - this.name = "InvalidClientMetadataException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; +const de_Rule = (output, context) => { + const contents = {}; + if (output["RuleArn"] !== undefined) { + contents.RuleArn = (0, smithy_client_1.expectString)(output["RuleArn"]); + } + if (output["Priority"] !== undefined) { + contents.Priority = (0, smithy_client_1.expectString)(output["Priority"]); + } + if (output.Conditions === "") { + contents.Conditions = []; + } + else if (output["Conditions"] !== undefined && output["Conditions"]["member"] !== undefined) { + contents.Conditions = de_RuleConditionList((0, smithy_client_1.getArrayIfSingleItem)(output["Conditions"]["member"]), context); + } + if (output.Actions === "") { + contents.Actions = []; + } + else if (output["Actions"] !== undefined && output["Actions"]["member"] !== undefined) { + contents.Actions = de_Actions((0, smithy_client_1.getArrayIfSingleItem)(output["Actions"]["member"]), context); } + if (output["IsDefault"] !== undefined) { + contents.IsDefault = (0, smithy_client_1.parseBoolean)(output["IsDefault"]); + } + return contents; }; -var se_CreateTokenCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json" - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/token`; - let body; - body = JSON.stringify((0, smithy_client_7.take)(input, { - clientId: [], - clientSecret: [], - code: [], - deviceCode: [], - grantType: [], - redirectUri: [], - refreshToken: [], - scope: (_) => (0, smithy_client_7._json)(_) - })); - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body +const de_RuleCondition = (output, context) => { + const contents = {}; + if (output["Field"] !== undefined) { + contents.Field = (0, smithy_client_1.expectString)(output["Field"]); + } + if (output.Values === "") { + contents.Values = []; + } + else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { + contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); + } + if (output["HostHeaderConfig"] !== undefined) { + contents.HostHeaderConfig = de_HostHeaderConditionConfig(output["HostHeaderConfig"], context); + } + if (output["PathPatternConfig"] !== undefined) { + contents.PathPatternConfig = de_PathPatternConditionConfig(output["PathPatternConfig"], context); + } + if (output["HttpHeaderConfig"] !== undefined) { + contents.HttpHeaderConfig = de_HttpHeaderConditionConfig(output["HttpHeaderConfig"], context); + } + if (output["QueryStringConfig"] !== undefined) { + contents.QueryStringConfig = de_QueryStringConditionConfig(output["QueryStringConfig"], context); + } + if (output["HttpRequestMethodConfig"] !== undefined) { + contents.HttpRequestMethodConfig = de_HttpRequestMethodConditionConfig(output["HttpRequestMethodConfig"], context); + } + if (output["SourceIpConfig"] !== undefined) { + contents.SourceIpConfig = de_SourceIpConditionConfig(output["SourceIpConfig"], context); + } + return contents; +}; +const de_RuleConditionList = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_RuleCondition(entry, context); }); }; -var se_RegisterClientCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json" - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/client/register`; - let body; - body = JSON.stringify((0, smithy_client_7.take)(input, { - clientName: [], - clientType: [], - scopes: (_) => (0, smithy_client_7._json)(_) - })); - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body +const de_RuleNotFoundException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + } + return contents; +}; +const de_Rules = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Rule(entry, context); }); }; -var se_StartDeviceAuthorizationCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json" - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/device_authorization`; - let body; - body = JSON.stringify((0, smithy_client_7.take)(input, { - clientId: [], - clientSecret: [], - startUrl: [] - })); - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body +const de_SecurityGroups = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return (0, smithy_client_1.expectString)(entry); }); }; -var de_CreateTokenCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CreateTokenCommandError(output, context); +const de_SetIpAddressTypeOutput = (output, context) => { + const contents = {}; + if (output["IpAddressType"] !== undefined) { + contents.IpAddressType = (0, smithy_client_1.expectString)(output["IpAddressType"]); } - const contents = (0, smithy_client_7.map)({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_7.expectNonNull)((0, smithy_client_7.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_7.take)(data, { - accessToken: smithy_client_7.expectString, - expiresIn: smithy_client_7.expectInt32, - idToken: smithy_client_7.expectString, - refreshToken: smithy_client_7.expectString, - tokenType: smithy_client_7.expectString - }); - Object.assign(contents, doc); return contents; }; -var de_CreateTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = 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 - }); +const de_SetRulePrioritiesOutput = (output, context) => { + const contents = {}; + if (output.Rules === "") { + contents.Rules = []; } + else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { + contents.Rules = de_Rules((0, smithy_client_1.getArrayIfSingleItem)(output["Rules"]["member"]), context); + } + return contents; }; -var de_RegisterClientCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_RegisterClientCommandError(output, context); +const de_SetSecurityGroupsOutput = (output, context) => { + const contents = {}; + if (output.SecurityGroupIds === "") { + contents.SecurityGroupIds = []; + } + else if (output["SecurityGroupIds"] !== undefined && output["SecurityGroupIds"]["member"] !== undefined) { + contents.SecurityGroupIds = de_SecurityGroups((0, smithy_client_1.getArrayIfSingleItem)(output["SecurityGroupIds"]["member"]), context); + } + if (output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] !== undefined) { + contents.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = (0, smithy_client_1.expectString)(output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"]); } - const contents = (0, smithy_client_7.map)({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_7.expectNonNull)((0, smithy_client_7.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_7.take)(data, { - authorizationEndpoint: smithy_client_7.expectString, - clientId: smithy_client_7.expectString, - clientIdIssuedAt: smithy_client_7.expectLong, - clientSecret: smithy_client_7.expectString, - clientSecretExpiresAt: smithy_client_7.expectLong, - tokenEndpoint: smithy_client_7.expectString - }); - Object.assign(contents, doc); return contents; }; -var de_RegisterClientCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientMetadataException": - case "com.amazonaws.ssooidc#InvalidClientMetadataException": - throw await de_InvalidClientMetadataExceptionRes(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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); +const de_SetSubnetsOutput = (output, context) => { + const contents = {}; + if (output.AvailabilityZones === "") { + contents.AvailabilityZones = []; } + else if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["member"] !== undefined) { + contents.AvailabilityZones = de_AvailabilityZones((0, smithy_client_1.getArrayIfSingleItem)(output["AvailabilityZones"]["member"]), context); + } + if (output["IpAddressType"] !== undefined) { + contents.IpAddressType = (0, smithy_client_1.expectString)(output["IpAddressType"]); + } + return contents; }; -var de_StartDeviceAuthorizationCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_StartDeviceAuthorizationCommandError(output, context); +const de_SourceIpConditionConfig = (output, context) => { + const contents = {}; + if (output.Values === "") { + contents.Values = []; } - const contents = (0, smithy_client_7.map)({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_7.expectNonNull)((0, smithy_client_7.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_7.take)(data, { - deviceCode: smithy_client_7.expectString, - expiresIn: smithy_client_7.expectInt32, - interval: smithy_client_7.expectInt32, - userCode: smithy_client_7.expectString, - verificationUri: smithy_client_7.expectString, - verificationUriComplete: smithy_client_7.expectString + else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { + contents.Values = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["Values"]["member"]), context); + } + return contents; +}; +const de_SslPolicies = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_SslPolicy(entry, context); }); - Object.assign(contents, doc); +}; +const de_SslPolicy = (output, context) => { + const contents = {}; + if (output.SslProtocols === "") { + contents.SslProtocols = []; + } + else if (output["SslProtocols"] !== undefined && output["SslProtocols"]["member"] !== undefined) { + contents.SslProtocols = de_SslProtocols((0, smithy_client_1.getArrayIfSingleItem)(output["SslProtocols"]["member"]), context); + } + if (output.Ciphers === "") { + contents.Ciphers = []; + } + else if (output["Ciphers"] !== undefined && output["Ciphers"]["member"] !== undefined) { + contents.Ciphers = de_Ciphers((0, smithy_client_1.getArrayIfSingleItem)(output["Ciphers"]["member"]), context); + } + if (output["Name"] !== undefined) { + contents.Name = (0, smithy_client_1.expectString)(output["Name"]); + } + if (output.SupportedLoadBalancerTypes === "") { + contents.SupportedLoadBalancerTypes = []; + } + else if (output["SupportedLoadBalancerTypes"] !== undefined && + output["SupportedLoadBalancerTypes"]["member"] !== undefined) { + contents.SupportedLoadBalancerTypes = de_ListOfString((0, smithy_client_1.getArrayIfSingleItem)(output["SupportedLoadBalancerTypes"]["member"]), context); + } return contents; }; -var de_StartDeviceAuthorizationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - 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 "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(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); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); +const de_SSLPolicyNotFoundException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } + return contents; }; -var throwDefaultError = (0, smithy_client_7.withBaseException)(SSOOIDCServiceException); -var de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new AccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents +const de_SslProtocols = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return (0, smithy_client_1.expectString)(entry); }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); }; -var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new AuthorizationPendingException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); +const de_SubnetNotFoundException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + } + return contents; }; -var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); +const de_Tag = (output, context) => { + const contents = {}; + if (output["Key"] !== undefined) { + contents.Key = (0, smithy_client_1.expectString)(output["Key"]); + } + if (output["Value"] !== undefined) { + contents.Value = (0, smithy_client_1.expectString)(output["Value"]); + } + return contents; }; -var de_InternalServerExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InternalServerException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); +const de_TagDescription = (output, context) => { + const contents = {}; + if (output["ResourceArn"] !== undefined) { + contents.ResourceArn = (0, smithy_client_1.expectString)(output["ResourceArn"]); + } + if (output.Tags === "") { + contents.Tags = []; + } + else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { + contents.Tags = de_TagList((0, smithy_client_1.getArrayIfSingleItem)(output["Tags"]["member"]), context); + } + return contents; }; -var de_InvalidClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InvalidClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents +const de_TagDescriptions = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_TagDescription(entry, context); }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); }; -var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InvalidClientMetadataException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents +const de_TagList = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_Tag(entry, context); }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); }; -var de_InvalidGrantExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InvalidGrantException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); +const de_TargetDescription = (output, context) => { + const contents = {}; + if (output["Id"] !== undefined) { + contents.Id = (0, smithy_client_1.expectString)(output["Id"]); + } + if (output["Port"] !== undefined) { + contents.Port = (0, smithy_client_1.strictParseInt32)(output["Port"]); + } + if (output["AvailabilityZone"] !== undefined) { + contents.AvailabilityZone = (0, smithy_client_1.expectString)(output["AvailabilityZone"]); + } + return contents; }; -var de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); +const de_TargetGroup = (output, context) => { + const contents = {}; + if (output["TargetGroupArn"] !== undefined) { + contents.TargetGroupArn = (0, smithy_client_1.expectString)(output["TargetGroupArn"]); + } + if (output["TargetGroupName"] !== undefined) { + contents.TargetGroupName = (0, smithy_client_1.expectString)(output["TargetGroupName"]); + } + if (output["Protocol"] !== undefined) { + contents.Protocol = (0, smithy_client_1.expectString)(output["Protocol"]); + } + if (output["Port"] !== undefined) { + contents.Port = (0, smithy_client_1.strictParseInt32)(output["Port"]); + } + if (output["VpcId"] !== undefined) { + contents.VpcId = (0, smithy_client_1.expectString)(output["VpcId"]); + } + if (output["HealthCheckProtocol"] !== undefined) { + contents.HealthCheckProtocol = (0, smithy_client_1.expectString)(output["HealthCheckProtocol"]); + } + if (output["HealthCheckPort"] !== undefined) { + contents.HealthCheckPort = (0, smithy_client_1.expectString)(output["HealthCheckPort"]); + } + if (output["HealthCheckEnabled"] !== undefined) { + contents.HealthCheckEnabled = (0, smithy_client_1.parseBoolean)(output["HealthCheckEnabled"]); + } + if (output["HealthCheckIntervalSeconds"] !== undefined) { + contents.HealthCheckIntervalSeconds = (0, smithy_client_1.strictParseInt32)(output["HealthCheckIntervalSeconds"]); + } + if (output["HealthCheckTimeoutSeconds"] !== undefined) { + contents.HealthCheckTimeoutSeconds = (0, smithy_client_1.strictParseInt32)(output["HealthCheckTimeoutSeconds"]); + } + if (output["HealthyThresholdCount"] !== undefined) { + contents.HealthyThresholdCount = (0, smithy_client_1.strictParseInt32)(output["HealthyThresholdCount"]); + } + if (output["UnhealthyThresholdCount"] !== undefined) { + contents.UnhealthyThresholdCount = (0, smithy_client_1.strictParseInt32)(output["UnhealthyThresholdCount"]); + } + if (output["HealthCheckPath"] !== undefined) { + contents.HealthCheckPath = (0, smithy_client_1.expectString)(output["HealthCheckPath"]); + } + if (output["Matcher"] !== undefined) { + contents.Matcher = de_Matcher(output["Matcher"], context); + } + if (output.LoadBalancerArns === "") { + contents.LoadBalancerArns = []; + } + else if (output["LoadBalancerArns"] !== undefined && output["LoadBalancerArns"]["member"] !== undefined) { + contents.LoadBalancerArns = de_LoadBalancerArns((0, smithy_client_1.getArrayIfSingleItem)(output["LoadBalancerArns"]["member"]), context); + } + if (output["TargetType"] !== undefined) { + contents.TargetType = (0, smithy_client_1.expectString)(output["TargetType"]); + } + if (output["ProtocolVersion"] !== undefined) { + contents.ProtocolVersion = (0, smithy_client_1.expectString)(output["ProtocolVersion"]); + } + if (output["IpAddressType"] !== undefined) { + contents.IpAddressType = (0, smithy_client_1.expectString)(output["IpAddressType"]); + } + return contents; }; -var de_InvalidScopeExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new InvalidScopeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); +const de_TargetGroupAssociationLimitException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + } + return contents; }; -var de_SlowDownExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new SlowDownException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); +const de_TargetGroupAttribute = (output, context) => { + const contents = {}; + if (output["Key"] !== undefined) { + contents.Key = (0, smithy_client_1.expectString)(output["Key"]); + } + if (output["Value"] !== undefined) { + contents.Value = (0, smithy_client_1.expectString)(output["Value"]); + } + return contents; }; -var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new UnauthorizedClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents +const de_TargetGroupAttributes = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_TargetGroupAttribute(entry, context); }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); }; -var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString - }); - Object.assign(contents, doc); - const exception = new UnsupportedGrantTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents +const de_TargetGroupList = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_TargetGroupTuple(entry, context); }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); }; -var deserializeMetadata = (output) => { - var _a, _b; - return ({ - httpStatusCode: output.statusCode, - requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"] +const de_TargetGroupNotFoundException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); + } + return contents; +}; +const de_TargetGroups = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_TargetGroup(entry, context); }); }; -var collectBodyString = (streamBody, context) => (0, smithy_client_7.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); +const de_TargetGroupStickinessConfig = (output, context) => { + const contents = {}; + if (output["Enabled"] !== undefined) { + contents.Enabled = (0, smithy_client_1.parseBoolean)(output["Enabled"]); } - return {}; -}); -var parseErrorBody = async (errorBody, context) => { - var _a; - const value = await parseBody(errorBody, context); - value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message; - return value; + if (output["DurationSeconds"] !== undefined) { + contents.DurationSeconds = (0, smithy_client_1.strictParseInt32)(output["DurationSeconds"]); + } + return contents; }; -var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k2) => k2.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (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; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); +const de_TargetGroupTuple = (output, context) => { + const contents = {}; + if (output["TargetGroupArn"] !== undefined) { + contents.TargetGroupArn = (0, smithy_client_1.expectString)(output["TargetGroupArn"]); } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); + if (output["Weight"] !== undefined) { + contents.Weight = (0, smithy_client_1.strictParseInt32)(output["Weight"]); } - if (data["__type"] !== void 0) { - return sanitizeErrorCode(data["__type"]); + return contents; +}; +const de_TargetHealth = (output, context) => { + const contents = {}; + if (output["State"] !== undefined) { + contents.State = (0, smithy_client_1.expectString)(output["State"]); + } + if (output["Reason"] !== undefined) { + contents.Reason = (0, smithy_client_1.expectString)(output["Reason"]); } + if (output["Description"] !== undefined) { + contents.Description = (0, smithy_client_1.expectString)(output["Description"]); + } + return contents; }; -var CreateTokenCommand = class _CreateTokenCommand extends smithy_client_6.Command { - constructor(input) { - super(); - this.input = input; +const de_TargetHealthDescription = (output, context) => { + const contents = {}; + if (output["Target"] !== undefined) { + contents.Target = de_TargetDescription(output["Target"], context); } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; + if (output["HealthCheckPort"] !== undefined) { + contents.HealthCheckPort = (0, smithy_client_1.expectString)(output["HealthCheckPort"]); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_2.getEndpointPlugin)(configuration, _CreateTokenCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "CreateTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + if (output["TargetHealth"] !== undefined) { + contents.TargetHealth = de_TargetHealth(output["TargetHealth"], context); } - serialize(input, context) { - return se_CreateTokenCommand(input, context); + return contents; +}; +const de_TargetHealthDescriptions = (output, context) => { + return (output || []) + .filter((e) => e != null) + .map((entry) => { + return de_TargetHealthDescription(entry, context); + }); +}; +const de_TooManyActionsException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - deserialize(output, context) { - return de_CreateTokenCommand(output, context); + return contents; +}; +const de_TooManyCertificatesException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } + return contents; }; -exports.CreateTokenCommand = CreateTokenCommand; -const middleware_endpoint_3 = __nccwpck_require__(82918); -const middleware_serde_2 = __nccwpck_require__(81238); -const smithy_client_9 = __nccwpck_require__(63570); -var RegisterClientCommand = class _RegisterClientCommand extends smithy_client_9.Command { - constructor(input) { - super(); - this.input = input; +const de_TooManyListenersException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; + return contents; +}; +const de_TooManyLoadBalancersException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_2.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_3.getEndpointPlugin)(configuration, _RegisterClientCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "RegisterClientCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + return contents; +}; +const de_TooManyRegistrationsForTargetIdException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - serialize(input, context) { - return se_RegisterClientCommand(input, context); + return contents; +}; +const de_TooManyRulesException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - deserialize(output, context) { - return de_RegisterClientCommand(output, context); + return contents; +}; +const de_TooManyTagsException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } + return contents; }; -const middleware_endpoint_4 = __nccwpck_require__(82918); -const middleware_serde_3 = __nccwpck_require__(81238); -const smithy_client_10 = __nccwpck_require__(63570); -var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends smithy_client_10.Command { - constructor(input) { - super(); - this.input = input; +const de_TooManyTargetGroupsException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; + return contents; +}; +const de_TooManyTargetsException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_3.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_4.getEndpointPlugin)(configuration, _StartDeviceAuthorizationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "StartDeviceAuthorizationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + return contents; +}; +const de_TooManyUniqueTargetGroupsPerLoadBalancerException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - serialize(input, context) { - return se_StartDeviceAuthorizationCommand(input, context); + return contents; +}; +const de_UnsupportedProtocolException = (output, context) => { + const contents = {}; + if (output["Message"] !== undefined) { + contents.Message = (0, smithy_client_1.expectString)(output["Message"]); } - deserialize(output, context) { - return de_StartDeviceAuthorizationCommand(output, context); + return contents; +}; +const deserializeMetadata = (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"], +}); +const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); +const throwDefaultError = (0, smithy_client_1.withBaseException)(ElasticLoadBalancingV2ServiceException_1.ElasticLoadBalancingV2ServiceException); +const buildHttpRpcRequest = 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 !== undefined) { + contents.hostname = resolvedHostname; + } + if (body !== undefined) { + contents.body = body; } + return new protocol_http_1.HttpRequest(contents); }; -var commands = { - CreateTokenCommand, - RegisterClientCommand, - StartDeviceAuthorizationCommand +const SHARED_HEADERS = { + "content-type": "application/x-www-form-urlencoded", }; -var SSOOIDC = class extends SSOOIDCClient { +const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + const parser = new fast_xml_parser_1.XMLParser({ + attributeNamePrefix: "", + htmlEntities: true, + ignoreAttributes: false, + ignoreDeclaration: true, + parseTagValue: false, + trimValues: false, + tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined), + }); + parser.addEntity("#xD", "\r"); + parser.addEntity("#10", "\n"); + const parsedObj = parser.parse(encoded); + 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, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); + } + return {}; +}); +const parseErrorBody = async (errorBody, context) => { + const value = await parseBody(errorBody, context); + if (value.Error) { + value.Error.message = value.Error.message ?? value.Error.Message; + } + return value; +}; +const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries) + .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)) + .join("&"); +const loadQueryErrorCode = (output, data) => { + if (data.Error?.Code !== undefined) { + return data.Error.Code; + } + if (output.statusCode == 404) { + return "NotFound"; + } }; -(0, smithy_client_5.createAggregatedClient)(commands, SSOOIDC); - - -/***/ }), - -/***/ 89535: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.REFRESH_MESSAGE = exports.EXPIRE_WINDOW_MS = void 0; -exports.EXPIRE_WINDOW_MS = 5 * 60 * 1000; -exports.REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; /***/ }), -/***/ 22968: +/***/ 51401: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromSso = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const constants_1 = __nccwpck_require__(89535); -const getNewSsoOidcToken_1 = __nccwpck_require__(29236); -const validateTokenExpiry_1 = __nccwpck_require__(70702); -const validateTokenKey_1 = __nccwpck_require__(71994); -const writeSSOTokenToFile_1 = __nccwpck_require__(99010); -const lastRefreshAttemptTime = new Date(0); -const fromSso = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); - const profile = profiles[profileName]; - if (!profile) { - throw new property_provider_1.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false); - } - else if (!profile["sso_session"]) { - throw new property_provider_1.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`); - } - const ssoSessionName = profile["sso_session"]; - const ssoSessions = await (0, shared_ini_file_loader_1.loadSsoSessionData)(init); - const ssoSession = ssoSessions[ssoSessionName]; - if (!ssoSession) { - throw new property_provider_1.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 property_provider_1.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, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoSessionName); - } - catch (e) { - throw new property_provider_1.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${constants_1.REFRESH_MESSAGE}`, false); - } - (0, validateTokenKey_1.validateTokenKey)("accessToken", ssoToken.accessToken); - (0, validateTokenKey_1.validateTokenKey)("expiresAt", ssoToken.expiresAt); - const { accessToken, expiresAt } = ssoToken; - const existingToken = { token: accessToken, expiration: new Date(expiresAt) }; - if (existingToken.expiration.getTime() - Date.now() > constants_1.EXPIRE_WINDOW_MS) { - return existingToken; - } - if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) { - (0, validateTokenExpiry_1.validateTokenExpiry)(existingToken); - return existingToken; - } - (0, validateTokenKey_1.validateTokenKey)("clientId", ssoToken.clientId, true); - (0, validateTokenKey_1.validateTokenKey)("clientSecret", ssoToken.clientSecret, true); - (0, validateTokenKey_1.validateTokenKey)("refreshToken", ssoToken.refreshToken, true); - try { - lastRefreshAttemptTime.setTime(Date.now()); - const newSsoOidcToken = await (0, getNewSsoOidcToken_1.getNewSsoOidcToken)(ssoToken, ssoRegion); - (0, validateTokenKey_1.validateTokenKey)("accessToken", newSsoOidcToken.accessToken); - (0, validateTokenKey_1.validateTokenKey)("expiresIn", newSsoOidcToken.expiresIn); - const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000); - try { - await (0, writeSSOTokenToFile_1.writeSSOTokenToFile)(ssoSessionName, { - ...ssoToken, - accessToken: newSsoOidcToken.accessToken, - expiresAt: newTokenExpiration.toISOString(), - refreshToken: newSsoOidcToken.refreshToken, - }); - } - catch (error) { - } - return { - token: newSsoOidcToken.accessToken, - expiration: newTokenExpiration, - }; - } - catch (error) { - (0, validateTokenExpiry_1.validateTokenExpiry)(existingToken); - return existingToken; - } +exports.getRuntimeConfig = void 0; +const tslib_1 = __nccwpck_require__(4351); +const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(71031)); +const client_sts_1 = __nccwpck_require__(52209); +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__(77742); +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); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: config?.defaultUserAgentProvider ?? + (0, util_user_agent_node_1.defaultUserAgent)({ 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), + region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(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, + }), + 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), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + }; }; -exports.fromSso = fromSso; +exports.getRuntimeConfig = getRuntimeConfig; /***/ }), -/***/ 59348: +/***/ 77742: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromStatic = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const fromStatic = ({ token }) => async () => { - if (!token || !token.token) { - throw new property_provider_1.TokenProviderError(`Please pass a valid token to fromStatic`, false); - } - return token; -}; -exports.fromStatic = fromStatic; +exports.getRuntimeConfig = void 0; +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 endpointResolver_1 = __nccwpck_require__(97017); +const getRuntimeConfig = (config) => ({ + apiVersion: "2015-12-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 ?? [], + logger: config?.logger ?? new smithy_client_1.NoOpLogger(), + serviceId: config?.serviceId ?? "Elastic Load Balancing v2", + urlParser: config?.urlParser ?? url_parser_1.parseUrl, + utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, + utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8, +}); +exports.getRuntimeConfig = getRuntimeConfig; /***/ }), -/***/ 29236: +/***/ 47313: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getNewSsoOidcToken = void 0; -const client_sso_oidc_node_1 = __nccwpck_require__(47202); -const getSsoOidcClient_1 = __nccwpck_require__(41198); -const getNewSsoOidcToken = (ssoToken, ssoRegion) => { - const ssoOidcClient = (0, getSsoOidcClient_1.getSsoOidcClient)(ssoRegion); - return ssoOidcClient.send(new client_sso_oidc_node_1.CreateTokenCommand({ - clientId: ssoToken.clientId, - clientSecret: ssoToken.clientSecret, - refreshToken: ssoToken.refreshToken, - grantType: "refresh_token", - })); +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 asPartial = (t) => t; +const resolveRuntimeExtensions = (runtimeConfig, extensions) => { + const extensionConfiguration = { + ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + }; + extensions.forEach((extension) => extension.configure(extensionConfiguration)); + return { + ...runtimeConfig, + ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), + ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), + ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + }; }; -exports.getNewSsoOidcToken = getNewSsoOidcToken; +exports.resolveRuntimeExtensions = resolveRuntimeExtensions; /***/ }), -/***/ 41198: +/***/ 80616: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSsoOidcClient = void 0; -const client_sso_oidc_node_1 = __nccwpck_require__(47202); -const ssoOidcClientsHash = {}; -const getSsoOidcClient = (ssoRegion) => { - if (ssoOidcClientsHash[ssoRegion]) { - return ssoOidcClientsHash[ssoRegion]; - } - const ssoOidcClient = new client_sso_oidc_node_1.SSOOIDCClient({ region: ssoRegion }); - ssoOidcClientsHash[ssoRegion] = ssoOidcClient; - return ssoOidcClient; -}; -exports.getSsoOidcClient = getSsoOidcClient; +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(83615), exports); +tslib_1.__exportStar(__nccwpck_require__(60125), exports); +tslib_1.__exportStar(__nccwpck_require__(87845), exports); +tslib_1.__exportStar(__nccwpck_require__(30853), exports); +tslib_1.__exportStar(__nccwpck_require__(47457), exports); /***/ }), -/***/ 73682: +/***/ 83615: /***/ ((__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__(47202), exports); -tslib_1.__exportStar(__nccwpck_require__(22968), exports); -tslib_1.__exportStar(__nccwpck_require__(59348), exports); -tslib_1.__exportStar(__nccwpck_require__(44395), exports); +exports.waitUntilLoadBalancerAvailable = exports.waitForLoadBalancerAvailable = void 0; +const util_waiter_1 = __nccwpck_require__(78011); +const DescribeLoadBalancersCommand_1 = __nccwpck_require__(85295); +const checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand(input)); + reason = result; + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.LoadBalancers); + const projection_3 = flat_1.map((element_2) => { + return element_2.State.Code; + }); + return projection_3; + }; + let allStringEq_5 = returnComparator().length > 0; + for (const element_4 of returnComparator()) { + allStringEq_5 = allStringEq_5 && element_4 == "active"; + } + if (allStringEq_5) { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } + catch (e) { } + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.LoadBalancers); + const projection_3 = flat_1.map((element_2) => { + return element_2.State.Code; + }); + return projection_3; + }; + for (const anyStringEq_4 of returnComparator()) { + if (anyStringEq_4 == "provisioning") { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + } + catch (e) { } + } + catch (exception) { + reason = exception; + if (exception.name && exception.name == "LoadBalancerNotFound") { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; +}; +const waitForLoadBalancerAvailable = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); +}; +exports.waitForLoadBalancerAvailable = waitForLoadBalancerAvailable; +const waitUntilLoadBalancerAvailable = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); +}; +exports.waitUntilLoadBalancerAvailable = waitUntilLoadBalancerAvailable; /***/ }), -/***/ 44395: +/***/ 60125: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.nodeProvider = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const fromSso_1 = __nccwpck_require__(22968); -const nodeProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromSso_1.fromSso)(init), async () => { - throw new property_provider_1.TokenProviderError("Could not load token from any providers", false); -}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined); -exports.nodeProvider = nodeProvider; +exports.waitUntilLoadBalancerExists = exports.waitForLoadBalancerExists = void 0; +const util_waiter_1 = __nccwpck_require__(78011); +const DescribeLoadBalancersCommand_1 = __nccwpck_require__(85295); +const checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand(input)); + reason = result; + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + catch (exception) { + reason = exception; + if (exception.name && exception.name == "LoadBalancerNotFound") { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; +}; +const waitForLoadBalancerExists = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); +}; +exports.waitForLoadBalancerExists = waitForLoadBalancerExists; +const waitUntilLoadBalancerExists = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); +}; +exports.waitUntilLoadBalancerExists = waitUntilLoadBalancerExists; /***/ }), -/***/ 70702: +/***/ 87845: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateTokenExpiry = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const constants_1 = __nccwpck_require__(89535); -const validateTokenExpiry = (token) => { - if (token.expiration && token.expiration.getTime() < Date.now()) { - throw new property_provider_1.TokenProviderError(`Token is expired. ${constants_1.REFRESH_MESSAGE}`, false); +exports.waitUntilLoadBalancersDeleted = exports.waitForLoadBalancersDeleted = void 0; +const util_waiter_1 = __nccwpck_require__(78011); +const DescribeLoadBalancersCommand_1 = __nccwpck_require__(85295); +const checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand(input)); + reason = result; + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.LoadBalancers); + const projection_3 = flat_1.map((element_2) => { + return element_2.State.Code; + }); + return projection_3; + }; + let allStringEq_5 = returnComparator().length > 0; + for (const element_4 of returnComparator()) { + allStringEq_5 = allStringEq_5 && element_4 == "active"; + } + if (allStringEq_5) { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + catch (e) { } + } + catch (exception) { + reason = exception; + if (exception.name && exception.name == "LoadBalancerNotFound") { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } } + return { state: util_waiter_1.WaiterState.RETRY, reason }; }; -exports.validateTokenExpiry = validateTokenExpiry; +const waitForLoadBalancersDeleted = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); +}; +exports.waitForLoadBalancersDeleted = waitForLoadBalancersDeleted; +const waitUntilLoadBalancersDeleted = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); +}; +exports.waitUntilLoadBalancersDeleted = waitUntilLoadBalancersDeleted; /***/ }), -/***/ 71994: +/***/ 30853: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateTokenKey = void 0; -const property_provider_1 = __nccwpck_require__(79721); -const constants_1 = __nccwpck_require__(89535); -const validateTokenKey = (key, value, forRefresh = false) => { - if (typeof value === "undefined") { - throw new property_provider_1.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${constants_1.REFRESH_MESSAGE}`, false); +exports.waitUntilTargetDeregistered = exports.waitForTargetDeregistered = void 0; +const util_waiter_1 = __nccwpck_require__(78011); +const DescribeTargetHealthCommand_1 = __nccwpck_require__(48163); +const checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeTargetHealthCommand_1.DescribeTargetHealthCommand(input)); + reason = result; + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.TargetHealthDescriptions); + const projection_3 = flat_1.map((element_2) => { + return element_2.TargetHealth.State; + }); + return projection_3; + }; + let allStringEq_5 = returnComparator().length > 0; + for (const element_4 of returnComparator()) { + allStringEq_5 = allStringEq_5 && element_4 == "unused"; + } + if (allStringEq_5) { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } + catch (e) { } } + catch (exception) { + reason = exception; + if (exception.name && exception.name == "InvalidTarget") { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; }; -exports.validateTokenKey = validateTokenKey; +const waitForTargetDeregistered = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); +}; +exports.waitForTargetDeregistered = waitForTargetDeregistered; +const waitUntilTargetDeregistered = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); +}; +exports.waitUntilTargetDeregistered = waitUntilTargetDeregistered; /***/ }), -/***/ 99010: +/***/ 47457: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.writeSSOTokenToFile = void 0; -const shared_ini_file_loader_1 = __nccwpck_require__(43507); -const fs_1 = __nccwpck_require__(57147); -const { writeFile } = fs_1.promises; -const writeSSOTokenToFile = (id, ssoToken) => { - const tokenFilepath = (0, shared_ini_file_loader_1.getSSOTokenFilepath)(id); - const tokenString = JSON.stringify(ssoToken, null, 2); - return writeFile(tokenFilepath, tokenString); +exports.waitUntilTargetInService = exports.waitForTargetInService = void 0; +const util_waiter_1 = __nccwpck_require__(78011); +const DescribeTargetHealthCommand_1 = __nccwpck_require__(48163); +const checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeTargetHealthCommand_1.DescribeTargetHealthCommand(input)); + reason = result; + try { + const returnComparator = () => { + const flat_1 = [].concat(...result.TargetHealthDescriptions); + const projection_3 = flat_1.map((element_2) => { + return element_2.TargetHealth.State; + }); + return projection_3; + }; + let allStringEq_5 = returnComparator().length > 0; + for (const element_4 of returnComparator()) { + allStringEq_5 = allStringEq_5 && element_4 == "healthy"; + } + if (allStringEq_5) { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } + catch (e) { } + } + catch (exception) { + reason = exception; + if (exception.name && exception.name == "InvalidInstance") { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; }; -exports.writeSSOTokenToFile = writeSSOTokenToFile; +const waitForTargetInService = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); +}; +exports.waitForTargetInService = waitForTargetInService; +const waitUntilTargetInService = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); +}; +exports.waitUntilTargetInService = waitUntilTargetInService; /***/ }), @@ -147708,7 +137758,7 @@ const hostHeaderMiddleware = (options) => (next) => async (args) => { const { handlerProtocol = "" } = options.requestHandler.metadata || {}; if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { delete request.headers["host"]; - request.headers[":authority"] = ""; + request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : ""); } else if (!request.headers["host"]) { let host = request.hostname; @@ -176267,22 +166317,6 @@ exports.visit = visit; exports.visitAsync = visitAsync; -/***/ }), - -/***/ 61677: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.429.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.429.0","@aws-sdk/middleware-logger":"3.428.0","@aws-sdk/middleware-recursion-detection":"3.428.0","@aws-sdk/middleware-user-agent":"3.428.0","@aws-sdk/region-config-resolver":"3.428.0","@aws-sdk/types":"3.428.0","@aws-sdk/util-endpoints":"3.428.0","@aws-sdk/util-user-agent-browser":"3.428.0","@aws-sdk/util-user-agent-node":"3.428.0","@smithy/config-resolver":"^2.0.14","@smithy/fetch-http-handler":"^2.2.3","@smithy/hash-node":"^2.0.11","@smithy/invalid-dependency":"^2.0.11","@smithy/middleware-content-length":"^2.0.13","@smithy/middleware-endpoint":"^2.1.1","@smithy/middleware-retry":"^2.0.16","@smithy/middleware-serde":"^2.0.11","@smithy/middleware-stack":"^2.0.5","@smithy/node-config-provider":"^2.1.1","@smithy/node-http-handler":"^2.1.7","@smithy/protocol-http":"^3.0.7","@smithy/smithy-client":"^2.1.11","@smithy/types":"^2.3.5","@smithy/url-parser":"^2.0.11","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.15","@smithy/util-defaults-mode-node":"^2.0.19","@smithy/util-retry":"^2.0.4","@smithy/util-utf8":"^2.0.0","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); - -/***/ }), - -/***/ 8065: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.429.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.429.0","@aws-sdk/middleware-host-header":"3.429.0","@aws-sdk/middleware-logger":"3.428.0","@aws-sdk/middleware-recursion-detection":"3.428.0","@aws-sdk/middleware-sdk-sts":"3.428.0","@aws-sdk/middleware-signing":"3.428.0","@aws-sdk/middleware-user-agent":"3.428.0","@aws-sdk/region-config-resolver":"3.428.0","@aws-sdk/types":"3.428.0","@aws-sdk/util-endpoints":"3.428.0","@aws-sdk/util-user-agent-browser":"3.428.0","@aws-sdk/util-user-agent-node":"3.428.0","@smithy/config-resolver":"^2.0.14","@smithy/fetch-http-handler":"^2.2.3","@smithy/hash-node":"^2.0.11","@smithy/invalid-dependency":"^2.0.11","@smithy/middleware-content-length":"^2.0.13","@smithy/middleware-endpoint":"^2.1.1","@smithy/middleware-retry":"^2.0.16","@smithy/middleware-serde":"^2.0.11","@smithy/middleware-stack":"^2.0.5","@smithy/node-config-provider":"^2.1.1","@smithy/node-http-handler":"^2.1.7","@smithy/protocol-http":"^3.0.7","@smithy/smithy-client":"^2.1.11","@smithy/types":"^2.3.5","@smithy/url-parser":"^2.0.11","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.15","@smithy/util-defaults-mode-node":"^2.0.19","@smithy/util-retry":"^2.0.4","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); - /***/ }), /***/ 95650: @@ -176297,23 +166331,7 @@ module.exports = JSON.parse('{"name":"@aws-sdk/client-ec2","description":"AWS SD /***/ ((module) => { "use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-ecs","description":"AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native","version":"3.428.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.428.0","@aws-sdk/credential-provider-node":"3.428.0","@aws-sdk/middleware-host-header":"3.428.0","@aws-sdk/middleware-logger":"3.428.0","@aws-sdk/middleware-recursion-detection":"3.428.0","@aws-sdk/middleware-signing":"3.428.0","@aws-sdk/middleware-user-agent":"3.428.0","@aws-sdk/region-config-resolver":"3.428.0","@aws-sdk/types":"3.428.0","@aws-sdk/util-endpoints":"3.428.0","@aws-sdk/util-user-agent-browser":"3.428.0","@aws-sdk/util-user-agent-node":"3.428.0","@smithy/config-resolver":"^2.0.14","@smithy/fetch-http-handler":"^2.2.3","@smithy/hash-node":"^2.0.11","@smithy/invalid-dependency":"^2.0.11","@smithy/middleware-content-length":"^2.0.13","@smithy/middleware-endpoint":"^2.1.0","@smithy/middleware-retry":"^2.0.16","@smithy/middleware-serde":"^2.0.11","@smithy/middleware-stack":"^2.0.5","@smithy/node-config-provider":"^2.1.1","@smithy/node-http-handler":"^2.1.7","@smithy/protocol-http":"^3.0.7","@smithy/smithy-client":"^2.1.11","@smithy/types":"^2.3.5","@smithy/url-parser":"^2.0.11","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.15","@smithy/util-defaults-mode-node":"^2.0.19","@smithy/util-retry":"^2.0.4","@smithy/util-utf8":"^2.0.0","@smithy/util-waiter":"^2.0.11","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecs","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecs"}}'); - -/***/ }), - -/***/ 23013: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.429.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.429.0","@aws-sdk/middleware-logger":"3.428.0","@aws-sdk/middleware-recursion-detection":"3.428.0","@aws-sdk/middleware-user-agent":"3.428.0","@aws-sdk/region-config-resolver":"3.428.0","@aws-sdk/types":"3.428.0","@aws-sdk/util-endpoints":"3.428.0","@aws-sdk/util-user-agent-browser":"3.428.0","@aws-sdk/util-user-agent-node":"3.428.0","@smithy/config-resolver":"^2.0.14","@smithy/fetch-http-handler":"^2.2.3","@smithy/hash-node":"^2.0.11","@smithy/invalid-dependency":"^2.0.11","@smithy/middleware-content-length":"^2.0.13","@smithy/middleware-endpoint":"^2.1.1","@smithy/middleware-retry":"^2.0.16","@smithy/middleware-serde":"^2.0.11","@smithy/middleware-stack":"^2.0.5","@smithy/node-config-provider":"^2.1.1","@smithy/node-http-handler":"^2.1.7","@smithy/protocol-http":"^3.0.7","@smithy/smithy-client":"^2.1.11","@smithy/types":"^2.3.5","@smithy/url-parser":"^2.0.11","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.15","@smithy/util-defaults-mode-node":"^2.0.19","@smithy/util-retry":"^2.0.4","@smithy/util-utf8":"^2.0.0","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); - -/***/ }), - -/***/ 92101: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.429.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.429.0","@aws-sdk/middleware-host-header":"3.429.0","@aws-sdk/middleware-logger":"3.428.0","@aws-sdk/middleware-recursion-detection":"3.428.0","@aws-sdk/middleware-sdk-sts":"3.428.0","@aws-sdk/middleware-signing":"3.428.0","@aws-sdk/middleware-user-agent":"3.428.0","@aws-sdk/region-config-resolver":"3.428.0","@aws-sdk/types":"3.428.0","@aws-sdk/util-endpoints":"3.428.0","@aws-sdk/util-user-agent-browser":"3.428.0","@aws-sdk/util-user-agent-node":"3.428.0","@smithy/config-resolver":"^2.0.14","@smithy/fetch-http-handler":"^2.2.3","@smithy/hash-node":"^2.0.11","@smithy/invalid-dependency":"^2.0.11","@smithy/middleware-content-length":"^2.0.13","@smithy/middleware-endpoint":"^2.1.1","@smithy/middleware-retry":"^2.0.16","@smithy/middleware-serde":"^2.0.11","@smithy/middleware-stack":"^2.0.5","@smithy/node-config-provider":"^2.1.1","@smithy/node-http-handler":"^2.1.7","@smithy/protocol-http":"^3.0.7","@smithy/smithy-client":"^2.1.11","@smithy/types":"^2.3.5","@smithy/url-parser":"^2.0.11","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.15","@smithy/util-defaults-mode-node":"^2.0.19","@smithy/util-retry":"^2.0.4","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); +module.exports = JSON.parse('{"name":"@aws-sdk/client-ecs","description":"AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native","version":"3.429.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.429.0","@aws-sdk/credential-provider-node":"3.429.0","@aws-sdk/middleware-host-header":"3.429.0","@aws-sdk/middleware-logger":"3.428.0","@aws-sdk/middleware-recursion-detection":"3.428.0","@aws-sdk/middleware-signing":"3.428.0","@aws-sdk/middleware-user-agent":"3.428.0","@aws-sdk/region-config-resolver":"3.428.0","@aws-sdk/types":"3.428.0","@aws-sdk/util-endpoints":"3.428.0","@aws-sdk/util-user-agent-browser":"3.428.0","@aws-sdk/util-user-agent-node":"3.428.0","@smithy/config-resolver":"^2.0.14","@smithy/fetch-http-handler":"^2.2.3","@smithy/hash-node":"^2.0.11","@smithy/invalid-dependency":"^2.0.11","@smithy/middleware-content-length":"^2.0.13","@smithy/middleware-endpoint":"^2.1.1","@smithy/middleware-retry":"^2.0.16","@smithy/middleware-serde":"^2.0.11","@smithy/middleware-stack":"^2.0.5","@smithy/node-config-provider":"^2.1.1","@smithy/node-http-handler":"^2.1.7","@smithy/protocol-http":"^3.0.7","@smithy/smithy-client":"^2.1.11","@smithy/types":"^2.3.5","@smithy/url-parser":"^2.0.11","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.15","@smithy/util-defaults-mode-node":"^2.0.19","@smithy/util-retry":"^2.0.4","@smithy/util-utf8":"^2.0.0","@smithy/util-waiter":"^2.0.11","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecs","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecs"}}'); /***/ }), @@ -176329,7 +166347,7 @@ module.exports = JSON.parse('{"name":"@aws-sdk/client-elastic-load-balancing-v2" /***/ ((module) => { "use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.428.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.428.0","@aws-sdk/middleware-logger":"3.428.0","@aws-sdk/middleware-recursion-detection":"3.428.0","@aws-sdk/middleware-user-agent":"3.428.0","@aws-sdk/region-config-resolver":"3.428.0","@aws-sdk/types":"3.428.0","@aws-sdk/util-endpoints":"3.428.0","@aws-sdk/util-user-agent-browser":"3.428.0","@aws-sdk/util-user-agent-node":"3.428.0","@smithy/config-resolver":"^2.0.14","@smithy/fetch-http-handler":"^2.2.3","@smithy/hash-node":"^2.0.11","@smithy/invalid-dependency":"^2.0.11","@smithy/middleware-content-length":"^2.0.13","@smithy/middleware-endpoint":"^2.1.0","@smithy/middleware-retry":"^2.0.16","@smithy/middleware-serde":"^2.0.11","@smithy/middleware-stack":"^2.0.5","@smithy/node-config-provider":"^2.1.1","@smithy/node-http-handler":"^2.1.7","@smithy/protocol-http":"^3.0.7","@smithy/smithy-client":"^2.1.11","@smithy/types":"^2.3.5","@smithy/url-parser":"^2.0.11","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.15","@smithy/util-defaults-mode-node":"^2.0.19","@smithy/util-retry":"^2.0.4","@smithy/util-utf8":"^2.0.0","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); +module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.429.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.429.0","@aws-sdk/middleware-logger":"3.428.0","@aws-sdk/middleware-recursion-detection":"3.428.0","@aws-sdk/middleware-user-agent":"3.428.0","@aws-sdk/region-config-resolver":"3.428.0","@aws-sdk/types":"3.428.0","@aws-sdk/util-endpoints":"3.428.0","@aws-sdk/util-user-agent-browser":"3.428.0","@aws-sdk/util-user-agent-node":"3.428.0","@smithy/config-resolver":"^2.0.14","@smithy/fetch-http-handler":"^2.2.3","@smithy/hash-node":"^2.0.11","@smithy/invalid-dependency":"^2.0.11","@smithy/middleware-content-length":"^2.0.13","@smithy/middleware-endpoint":"^2.1.1","@smithy/middleware-retry":"^2.0.16","@smithy/middleware-serde":"^2.0.11","@smithy/middleware-stack":"^2.0.5","@smithy/node-config-provider":"^2.1.1","@smithy/node-http-handler":"^2.1.7","@smithy/protocol-http":"^3.0.7","@smithy/smithy-client":"^2.1.11","@smithy/types":"^2.3.5","@smithy/url-parser":"^2.0.11","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.15","@smithy/util-defaults-mode-node":"^2.0.19","@smithy/util-retry":"^2.0.4","@smithy/util-utf8":"^2.0.0","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); /***/ }), @@ -176337,7 +166355,7 @@ module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SD /***/ ((module) => { "use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.428.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.428.0","@aws-sdk/middleware-host-header":"3.428.0","@aws-sdk/middleware-logger":"3.428.0","@aws-sdk/middleware-recursion-detection":"3.428.0","@aws-sdk/middleware-sdk-sts":"3.428.0","@aws-sdk/middleware-signing":"3.428.0","@aws-sdk/middleware-user-agent":"3.428.0","@aws-sdk/region-config-resolver":"3.428.0","@aws-sdk/types":"3.428.0","@aws-sdk/util-endpoints":"3.428.0","@aws-sdk/util-user-agent-browser":"3.428.0","@aws-sdk/util-user-agent-node":"3.428.0","@smithy/config-resolver":"^2.0.14","@smithy/fetch-http-handler":"^2.2.3","@smithy/hash-node":"^2.0.11","@smithy/invalid-dependency":"^2.0.11","@smithy/middleware-content-length":"^2.0.13","@smithy/middleware-endpoint":"^2.1.0","@smithy/middleware-retry":"^2.0.16","@smithy/middleware-serde":"^2.0.11","@smithy/middleware-stack":"^2.0.5","@smithy/node-config-provider":"^2.1.1","@smithy/node-http-handler":"^2.1.7","@smithy/protocol-http":"^3.0.7","@smithy/smithy-client":"^2.1.11","@smithy/types":"^2.3.5","@smithy/url-parser":"^2.0.11","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.15","@smithy/util-defaults-mode-node":"^2.0.19","@smithy/util-retry":"^2.0.4","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); +module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.429.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.429.0","@aws-sdk/middleware-host-header":"3.429.0","@aws-sdk/middleware-logger":"3.428.0","@aws-sdk/middleware-recursion-detection":"3.428.0","@aws-sdk/middleware-sdk-sts":"3.428.0","@aws-sdk/middleware-signing":"3.428.0","@aws-sdk/middleware-user-agent":"3.428.0","@aws-sdk/region-config-resolver":"3.428.0","@aws-sdk/types":"3.428.0","@aws-sdk/util-endpoints":"3.428.0","@aws-sdk/util-user-agent-browser":"3.428.0","@aws-sdk/util-user-agent-node":"3.428.0","@smithy/config-resolver":"^2.0.14","@smithy/fetch-http-handler":"^2.2.3","@smithy/hash-node":"^2.0.11","@smithy/invalid-dependency":"^2.0.11","@smithy/middleware-content-length":"^2.0.13","@smithy/middleware-endpoint":"^2.1.1","@smithy/middleware-retry":"^2.0.16","@smithy/middleware-serde":"^2.0.11","@smithy/middleware-stack":"^2.0.5","@smithy/node-config-provider":"^2.1.1","@smithy/node-http-handler":"^2.1.7","@smithy/protocol-http":"^3.0.7","@smithy/smithy-client":"^2.1.11","@smithy/types":"^2.3.5","@smithy/url-parser":"^2.0.11","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.15","@smithy/util-defaults-mode-node":"^2.0.19","@smithy/util-retry":"^2.0.4","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); /***/ }), diff --git a/package.json b/package.json index 5c57858..05f0b14 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "package": "ncc build src/index.ts --license licenses.txt", "package:watch": "npm run package -- --watch", "ghadocs": "github-action-readme-generator --readme README.md", - "all": "npm run format:write && npm run lint && npm run type-check && npm run package && npm run ghadocs && node fixReadme.mjs && npx standard-version" + "all": "npm run format:write && npm run lint && npm run type-check && npm run package && npm run ghadocs && node fixReadme.mjs" }, "license": "MIT", "jest": {